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


Please Help Members By Posting Answers For Below Questions

What is a test scenario?

919


What is bug release?

934


is it possible to do performance testing in stand alone application..how wil u do that ???????

2020


Can any one give a summary of testing a territory management system? what would be the test scenarios, few test cases. how it works.

1768


i need manual testing interview questions for 2+ experience plzz help me..

4232


Can any tell me how a clinical data management system is tested? what are the test scenarios? what are the test cases? work flow.

1699


I studied MBA, I want learn any softwarecourse, which course is better hadoop or testing tools(manual+selenium?)

1418


What is the Testing strategy for testing client server applications/products?

2094


What is the difference between a bug, a defect and an error?

923


What r the features,u take care in prototype testing?

1987


Hi,Please can any one tell me about SAP Testing concepts.

1785


What is the difference between static testing and dynamic testing?

884


What criteria would you use to select Web transactions for load testing?

1903


When do we perform smoke testing?

893


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.

1714