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.....wat r d major bugs we can find in banking domain???

0 Answers  


What is security testing? How to test the web application using security testing ?

5 Answers   Miracle Solutions,


how to execute manual test cases? for example i have a test cases for atm/credit card purchase how to execute them.

1 Answers  


Explain Water fall Model

7 Answers   ITC Infotech,


After completion of testing process what are the mandatory documents that a tester can produce?

4 Answers   ArisGlobal, IBM, TCS,






what is lifecycle of a buG??? give an example of high severioty and low priority bug???

3 Answers   FIC,


what is the diff between testing methodology and testing technique

6 Answers  


Hi , Am Working in Testing(manual) in one of company in chennai and am testing on web portals i.e our company own products.So am testing manually . can i know My Designation is SOFTWARE TEST ENGINEER OR QA ENGINEER ?

3 Answers  


what is entry and exit criteria?

3 Answers   ACS, GE,


what types of testing do testers perform?

4 Answers  


who is preparing PIN document?

1 Answers  


What do you plan to become after say 2-5yrs (Ex: QA Manager, Why?)

0 Answers   3i Infotech,


Categories