Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is the difference in testing a secured site 'https' & a non secured site 'http'?

0 Answers  


what is mean by test suite?

5 Answers  


what are the test data for factorial function ?

1 Answers  


Explain me software life cycle and SDLC

3 Answers  


What knowledge I must have as a 3 yrs. manual tester??

0 Answers  


What is the ONE key element of ‘test case’? What is the ONE key element of a Test Plan?

1 Answers  


What is d difference between Black Box Testing and Functional Testing?

4 Answers  


does anybody have requirement document for any project? if u have , could u plz forward it to my mail brahma412@yahoo.co.in

0 Answers  


if you have compressed file which has multiple source files,after make of this source file, you are getting undefinedreference error. How your will debug this problem ? Whatmight be different root causes for this ?

1 Answers   Tech Mahindra,


Can u please explain the regression testing criteria? we are having 1000 testcases, outof 1000 TC'S 800 defects we find,whose priority and seviority is high . in this situation how we can done the regression testing?

1 Answers   iGate,


What is the initial stage of testing?

5 Answers  


2. What resources do you use to learn about Web accessibility?

0 Answers  


Categories