Introduction to Web ServicesWeb Services Testing by Visual Studio 2010
What is a Web Service?
Web Service Standards
Web Service Testing by Visual Studio 2010
Web Service Load Test
-----------------------------------------------------
Created By: Yana Altunyan
Reviewed by: Vladimir Soghoyan
Ogma Applications
DevoxxFR 2024 Reproducible Builds with Apache Maven
Web Services Testing
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. Overview
What is a Web Service?
Web Service Standards
Web Service Testing by Visual Studio 2010
Web Service Load Test
Ogma Applications
2
9/18/2012
3. What is a Web Service?
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.
Ogma Applications
3
9/18/2012
4. Web Service Standards
XML
WSDL (Web Services Description
Language)
UDDI (Universal Description, Discovery
and Integration)
XML-RPC
SOAP (Simple Object Access Protocol)
Ogma Applications
4
9/18/2012
5. Web Service Testing by Visual Studio 2010
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
Ogma Applications
5
9/18/2012
6. Web Service Testing by Visual Studio 2010
Create New Project
Create New Project
Select Test Projects
Select Test Documents
Give Appropriate Name
Ogma Applications
6
9/18/2012
7. Web Service Testing by Visual Studio 2010
Web Performance Test template
Add New Test
Select Web Performance Test
Ogma Applications
7
9/18/2012
8. Web Service Testing by Visual Studio 2010
Add Web Service Request
Right Click on WebTest
Select Add Web Service Request
Ogma Applications
8
9/18/2012
9. Web Service Testing by Visual Studio 2010
Web Service URL
Copy Web Service URL to Web Service Property
Ogma Applications
9
9/18/2012
10. Web Service Testing by Visual Studio 2010
Web Service String Body (XML)
Copy Web Service String Body
Ogma Applications
10
9/18/2012
11. Web Service Testing by Visual Studio 2010
Give Appropriate Values
<SessionID>QA1212</SessionID>
<CommunityID>753</CommunityID>
<startDate>2012-09-18</startDate>
<endDate>2012-09-30</endDate>
Ogma Applications
11
9/18/2012
12. Web Service Testing by Visual Studio 2010
Run Test
Receive Response (part)
Ogma Applications
12
9/18/2012
13. Web Service Testing by Visual Studio 2010
Give Wrong Values
<SessionID>QA1212</SessionID>
<CommunityID>A28</CommunityID>
<startDate>2012-09-18</startDate>
<endDate>2012-09-30</endDate>
Ogma Applications
13
9/18/2012
14. Web Service Testing by Visual Studio 2010
Run Test
Receive Response
Ogma Applications
14
9/18/2012
15. Web Service Testing by Visual Studio 2010
Conclusion
In both cases response was correct, as web service
reacts for appropriate and wrong values in right way.
Ogma Applications
15
9/18/2012
16. Web Service Load Test
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.
Ogma Applications
16
9/18/2012
17. Web Service Load Test
Create New Project
Load Test template
Load Test wizard steps
Run Load Test
Results
Ogma Applications
17
9/18/2012
18. Web Service Load Test
Load Test Process
Counters
Charts
Overview
Ogma Applications
18
9/18/2012
19. Web Service Load Test
Load Test Results
Load Test Summary
Test Run Information
Overall Results
Test Results
Page Results
Transactions Results
Key Statistics
Ogma Applications
19
9/18/2012