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 Snapshot Testing? When we need to do and who will involve in this process and also what is the output document of this testing
anybody there with 3+ exp in software testing looking for change and like to work in bangalore fwd your resume to vinodhanandhan@gmail.com
how to write defects in excel sheets when defects occured
What is big bang approach?
1. what exactly is heuristic checklist approach for unit testing ?
Write a set of test cases to test youtube?
Can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
Explain accessibility testing and its importance in the present scenario.
Login screen with Username, Password input fields,remember me check box,sign in and reset button write Test Cases for GUI, Funcitonal, Negative, Usability and Security testing.
how can we give (ASSIGN) bug privitorirs and seviroty to the bug explain with exanple
How should your staff be managed? How about your overtime?
You may undergone many projects. Do all the projects match up with customer’s expectations?
How will u decide test data to see that evey feature is thoroughly tested
could u pls anyone tel me .."which is the best instute that provides eficient practical knowledge and also real-time oriented knowldge to do a project in manual and automation testing..in hyd" pls send me to dis mail-id if u find any..? sinducute17@gmail.com
what are the types of Bug?