what is meant by web service testing and what is the use of
web service testing ?
Answer Posted / vishal
You can test Web services by calling Web methods from unit
tests. Testing Web services is much like testing other code
by using unit tests in that you can use Assert statements,
and the tests produce the same range of results. However,
the Microsoft.VisualStudio.TestTools.UnitTesting.Web
namespace of Team Edition for Testers provides attributes
and methods specifically for testing Web services; they are
described in Testing a Web Service Locally.
Example :
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;
using TestProject1.localhost;
[TestMethod]
[AspNetDevelopmentServer("HelloWorldServer", @"C:\Documents
and Settings\user\My Documents\Visual Studio
2005\WebSites\WebSite1")]
public void HelloWorldTest()
{
HelloWorldService target = new HelloWorldService();
Assert.IsTrue( WebServiceHelper.TryUrlRedirection
(
target,
testContextInstance,
"HelloWorldServer"
),
"Web service redirection failed."
);
string expected = "Hello World";
string actual;
actual = target.HelloWorld();
Assert.AreEqual(
expected,
actual,
"TestProject1.localhost.HelloWorldService.HelloWorld did not
return the expected value."
);
}
I am not getting exact answer for ues of web services testing.
Please correct me if i am wrong
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a test scenario?
What is bug release?
is it possible to do performance testing in stand alone application..how wil u do that ???????
Can any one give a summary of testing a territory management system? what would be the test scenarios, few test cases. how it works.
i need manual testing interview questions for 2+ experience plzz help me..
Can any tell me how a clinical data management system is tested? what are the test scenarios? what are the test cases? work flow.
I studied MBA, I want learn any softwarecourse, which course is better hadoop or testing tools(manual+selenium?)
What is the Testing strategy for testing client server applications/products?
What is the difference between a bug, a defect and an error?
What r the features,u take care in prototype testing?
Hi,Please can any one tell me about SAP Testing concepts.
What is the difference between static testing and dynamic testing?
What criteria would you use to select Web transactions for load testing?
When do we perform smoke testing?
I have 6 months experience as project tarine and one and a half year experience as software engineer.Should i write taht my total experience id 2 years.