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
what is acid testing?
If we have no srs, brs but we have test cases does you execute the test cases blindly or do you follow any other process?
What is the difference between static testing and dynamic testing?
What's the relationship between environment reality and test phases?
What are the main key components in client and server applications?
What is AGP?what is setup.inf?What are the ways to install driver?
Hi, I want "Intergraph" placement papers for experienced people which was conducted recently in Hyderabad. Thanks, Purnima.
what is the difference between website and web based application ?
Hello can anybody list out supported and unsupported browsers for Window OS,Android OS,MAC OS Ubuntu
Functional and Integration test scenarios for actitime application
Do you know anything about Set Top Boxes?
What is grey box testing?
What does 100% statement coverage mean?
What is white box testing?
What do you do (with the project tasks) when the schedule fails?