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

What did you do in you last project? Can any one tell me about the application in detail any project regarding credit card

1 Answers  


What is open issue?please explain in detail?

6 Answers  


what is meant by Adapt testing?

1 Answers  


I have one year of experience in IT as tester.Do i know any openings,if u heard?

1 Answers   Infosys,


What are all the things ur going to keep in mind while System testing?

2 Answers  






what is mean by test preparation? and explain it?

2 Answers   IBM,


hello frens. Im Arun from the uk. im planning to apply for tester jobs with 3yrs experience. the problem is i dont have resumes. i have to mention atleast 3 projects (preferably financial projects) in my CV. im totally blank. can u plz send ur CV's to my email.... arunmoses1982@yahoo.com. this would be a great help from you guyz. n u need any help from me? just mail me n ill get in touch with u. Thanx.

0 Answers  


what is the structure of test cases

3 Answers  


what is Software Development Life Cycle (SDLC)?

1 Answers   iFlex, STC,


Hi guys, i have 2 years experience in manual testing, apart from that i don't have any knowledge in testing. I like to try for some other company, what else should i prepare to survive in this field for getting good pay ?

0 Answers  


How and when can the Testing Organization detect software defects?

0 Answers  


In how many ways you perform batchtesting ?

0 Answers   Lehman Brothers,


Categories