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 r the things,u prefer and prepare before starting testing?

0 Answers   CTS,


Are Test Condition and Test Description/Procedure are different? Please Reply

1 Answers  


where do we use checkpoints in real time?where they actually come into picture?

1 Answers  


with multiple testers how does one know which test case are assigned to them?Folder structure.Test process

2 Answers   Wipro,


what is effect variance ,Budget variance , Schedule Variance , Defect Density ?

3 Answers   Tech Mahindra,


as a test eng, tell me ur challenges? aug 6. plz answer

2 Answers   CTS, HP, Mannaran,


Can you explain the different maturity levels in staged representation?

0 Answers  


Acceptance testing is designed whether or not the software is FIT for the user to use. The concept of FIT is important in both design and testing. There are four components of FIT. State these 4 components?

0 Answers  


write test case for 1<=a<10;10<=b<=20 using boundry value analysis

2 Answers  


How to do Website Cookie Testing manually. Explain in Detail with an example. Tnx in Advance

3 Answers   Novasoft,


What is checklist? who will prepare it? i face this question in HSBC?

6 Answers   HSBC, University,


Why do we write test cases?

10 Answers   Synergy,


Categories