1. Web Services
Introduction to Web Services
Web Services Testing by Visual Studio 2010
Created By: Yana Altunyan
Reviewed by: Vladimir Soghoyan
Ogma Applications
2. What is a Web Service?
Web Service Standards
Web Service Testing by Visual Studio 2010
Web Service Load Test
9/18/2012Ogma Applications 2
Overview
3. 1. Web services are Web-based enterprise
applications that use open, XML-based
standards and transport protocols to
Exchange data with calling clients.
2. Web Service
Is a Software that performs a task.
Sits on a network so other systems can
talk to it (most often SOAP over HTTP).
Has a defined, published interface (usually
via WSDL).
Is platform and language independent.
Typically uses XML.
9/18/2012Ogma Applications 3
What is a Web Service?
4. XML
WSDL (Web Services Description
Language)
UDDI (Universal Description, Discovery
and Integration)
XML-RPC
SOAP (Simple Object Access Protocol)
9/18/2012Ogma Applications 4
Web Service Standards
5. Sequence of Steps
Create New Project
Web Performance Test template
Add Web Service Request
Web Service URL
Web Service String Body (XML)
Run Test
Results
9/18/2012Ogma Applications 5
Web Service Testing by Visual Studio 2010
6. Create New Project
Create New Project
Select Test Projects
Select Test Documents
Give Appropriate Name
9/18/2012Ogma Applications 6
Web Service Testing by Visual Studio 2010
7. Web Performance Test template
Add New Test
Select Web Performance Test
9/18/2012Ogma Applications 7
Web Service Testing by Visual Studio 2010
8. Add Web Service Request
Right Click on WebTest
Select Add Web Service Request
9/18/2012Ogma Applications 8
Web Service Testing by Visual Studio 2010
9. Web Service URL
Copy Web Service URL to Web Service Property
9/18/2012Ogma Applications 9
Web Service Testing by Visual Studio 2010
10. Web Service String Body (XML)
Copy Web Service String Body
9/18/2012Ogma Applications 10
Web Service Testing by Visual Studio 2010
14. Run Test
Receive Response
9/18/2012Ogma Applications 14
Web Service Testing by Visual Studio 2010
15. Conclusion
In both cases response was correct, as web service
reacts for appropriate and wrong values in right way.
9/18/2012Ogma Applications 15
Web Service Testing by Visual Studio 2010
16. To determine how well your software responds to various levels of
usage, you conduct load tests. A load test models the expected usage of
a software program by simulating multiple users who access the
program at the same time.
Load test can be performed for Web Services also.
9/18/2012Ogma Applications 16
Web Service Load Test
17. Create New Project
Load Test template
Load Test wizard steps
Run Load Test
Results
9/18/2012Ogma Applications 17
Web Service Load Test
18. Load Test Process
Counters
Charts
Overview
9/18/2012Ogma Applications 18
Web Service Load Test
19. Load Test Results
Load Test Summary
Test Run Information
Overall Results
Test Results
Page Results
Transactions Results
Key Statistics
9/18/2012Ogma Applications 19
Web Service Load Test