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
Why testers wil prepare useracceptance testcases,system testcases and integration testcases,What is the differenece between all this test cases
Pls u can u r mail id to my personal mail id also if they dont want to give u r mail id n comman place
How do you go about testing a project?
What is the difference between Sleep and wait in winrunner what is integration testing and types of testing present what is system testing what is data driven testing what is functionality testing if requirements are given to you then how do you write the test cases for it Account number = Ok cancel For above given form the valid account number starts from 1 to 1000 so is it necessary to input the 1,2,3 ….998,999,1000 test cases to check the conditions of valid account numbers I,e is it compulsory to write 1000 test cases for the above form
What are quality assurance and quality control?
Hi Friends, This is Chennamsubbaraidu.i Have 2+ Years Realtime Exp in Manual Testing.Am Looking to Shift From My Present Company.Please if u Have Any Openings in Your Company's, Please Let Me Know.Any Location Prefer.Thanks.
Hi All I want discuss abt Testing tools is any one available online in google chat?
anybody there with 3+ exp in software testing looking for change and like to work in bangalore fwd your resume to vinodhanandhan@gmail.com
Hi Can any one tell wht type of questions will be asked in project manager round...urgent plz...
What is the big deal about ‘requirements’?
Explain severity with example and expalin each example?
What is big bang approach?
how to test the case with 5 combination and inputs
How can we test for drastic (severe) memory leakages?
What r all the security problems u r facing & the measures taken to solve.