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

how to write test case for triangle and sqaure?

3 Answers   TCS,


What is Testing Life Cycle?

9 Answers   Xavient,


When new application ready to test than whats your testing strategies?

0 Answers   Capillary Technologies,


how can we connect database in manual testing? pls answer for this

2 Answers   IBM, Logica CMG,


what is the combination of grey box testing

6 Answers  






how will you test window media player?

1 Answers   nvidia,


what is the diffrence b/w Test approach,test stratagy,test plan?

1 Answers   CIL,


what is the use of a tester.Even admin or developer others can do testing What is the main advantage of atester. why do testing team need testers.

4 Answers   HCL,


what is the role of QA manager

1 Answers  


what is gap analysis

2 Answers   QA,


what is tracebility matrix and what will be there in tracebility matrix?tell me details like idno, discription....etc.pls any one answer this question?

5 Answers   IBM,


Can anyone clarify my doubt that is the defect status cycle and the appropriate person responsible for changing the status.(who is responsible for which status) Ex: New by tester....

3 Answers  


Categories