what is meant by web service testing and what is the use of
web service testing ?



what is meant by web service testing and what is the use of web service testing ?..

Answer / 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

More Manual Testing Interview Questions

hi all, please let me know how to down load QTP from internet?

1 Answers  


i have source and target having same data structure 500 fields and one lacks records. how to validate data. write 5 scenarios.

2 Answers   HCL, iGate,


compatibility testing?

2 Answers   NDS,


In one company i got a question like this..... Find bugs in this sentance?

2 Answers   TCS,


I am graduate and have 6 yrs of experience in Testing. How much salary can I demand or expect

3 Answers  






What is test summery report and it content?

3 Answers   Covansys,


Why is it impossible to test a program completely?

0 Answers  


What is SQL Index ?

1 Answers   TCS,


How do we analyse a bug?

4 Answers  


what is the diff between BVA & ECP and also advantages about thease techniques..& i want some proper examples... from sekhar yadav sunkara svsekhar2003@gmail.com

1 Answers   iGate, TCS,


What would be the designation of the tester in the company,would it be called as software engineer.

2 Answers  


What is the best testing tool to test an desktop application(extJS app)?

2 Answers   Nagarro,


Categories