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 Snapshot Testing? When we need to do and who will involve in this process and also what is the output document of this testing

2682


anybody there with 3+ exp in software testing looking for change and like to work in bangalore fwd your resume to vinodhanandhan@gmail.com

2031


how to write defects in excel sheets when defects occured

1815


What is big bang approach?

1076


1. what exactly is heuristic checklist approach for unit testing ?

2494


Write a set of test cases to test youtube?

7445


Can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1718


Explain accessibility testing and its importance in the present scenario.

945


Login screen with Username, Password input fields,remember me check box,sign in and reset button write Test Cases for GUI, Funcitonal, Negative, Usability and Security testing.

2546


how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple

2059


How should your staff be managed? How about your overtime?

3013


You may undergone many projects. Do all the projects match up with customer’s expectations?

960


How will u decide test data to see that evey feature is thoroughly tested

1853


could u pls anyone tel me .."which is the best instute that provides eficient practical knowledge and also real-time oriented knowldge to do a project in manual and automation testing..in hyd" pls send me to dis mail-id if u find any..? sinducute17@gmail.com

1939


what are the types of Bug?

1286