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 your Expected CTC? Should I tell my expected salary or say as per company norms? Tell me proper answer for it?

10 Answers   Accenture, Dream Careers, Flextronics, Havells, Royal Public Health,


Define the bug life cycle?

3 Answers   MD Synergy,


Hello, I am interested to make a career in software testing. I am searching for a recommended book in manual Testing tools Please advise recommended books which is a good text book for learning software testing.

2 Answers   TCS,


Who will do the Effort Estimation and Scheduling ?

2 Answers   IBM,


What is difference between system and functional testing?

6 Answers   BMC,


What are the bugs we cannot find in black box?

0 Answers  


is there any test cases for sanity testingPlease tell me any consultancies or companies both in chennai, bangalore( not in hyderabad), who can provide mail id with an Id( official ID). Iam planning to keep exp. in 3 small companies( not MNCs) iam trying on 3.5 yrs manual testing in chennai,bangalore my mail id pranu_soft@yahoo.co.in

1 Answers   Mind Tree,


1.What kind of i/p we require from end user to start proper esting? 2.what's confirmation testing ? 3.Whats pilot testing ? 4. what's Defect cascading ? 5.Concept of work bench ?

1 Answers   CTS,


You have been given 2 projects to test, what are the key factors you consider when prioritizing you work load?

1 Answers   Syncada,


What is the difference between use case and test case? give example.

9 Answers   Keane India Ltd,


What is the Difference Between Manual and Automation Testing.Give Some Example Both of them

1 Answers  


What are the different types of models?

8 Answers   Covansys,


Categories