SlideShare uma empresa Scribd logo
1 de 14
How to test WebServices
using SOAP UI
June 8th, ISTC workshop
What is a WebService?
• Definition: The term Web services describes a standardized way of integrating Web-based
applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol
backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for
describing the services available and UDDI is used for listing what services are available.
• Usage:
Amazon Web Services offers a complete set of infrastructure and application services that enable
you to run virtually everything in the cloud: from enterprise applications and big data projects to social
games and mobile apps.
A report from 2012 done by a web analytics firm has revealed that web sites using cloud computing
outfit Amazon Web Services (AWS) are visited daily by a third of all internet users worldwide.
Travel Holdings WebServices
Our web services are mostly oriented to the travelling industry exposing our API in order to:
• Search for products (mainly hotels)
• Get hotel details
• Book reservations
• Manage previous reservations
Internally we are also using where possible as much WS as we can in order to push our solution
development to be more an more service oriented.
Commercially we are called by an average of 2 million searches per hour allowing our clients to book an
average of almost 10000 reservations per day.
What is SoapUI?
http://www.soapui.org/
SoapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use
graphical interface, and enterprise-class features, SoapUI allows you to easily and rapidly create and
execute automated functional, regression, compliance, and load tests. In a single test
environment, SoapUI provides complete test coverage and supports all the standard protocols and
technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's
most complete testing tool!
What can it do?
• Automated testing solution including: data driven tests, load tests, scenario-based tests
• MockServices feature gives the unique ability to mimic Web services and create/run Functional and
Load Tests against them even before they are implemented.
• Built-in reporting capabilities
SoapUI Test Structure
SoapUI structures functional tests into three levels; TestSuites, TestCases and TestSteps.
1. A TestSuite is a collection of TestCases that can be used for grouping functional tests into logical
units. Any number of TestSuites can be created inside a soapUI project to support massive testing
scenarios.
2. A TestCase is a collection of TestSteps that are assembled to test some specific aspect of your
service(s). You can add any number of TestCases to a containing TestSuite and even modularize
them to call each other for complex testing scenarios.
3. TestSteps are the "building blocks" of functional tests in soapUI. They are added to a TestCase and
used control the flow of execution and validate the functionality of the service(s) to be tested.
SoapUI Test Structure
A test is added by creating a new project and setting the wsdl page of your WS application. For
example we used public WS which provides Country Details:
http://www.webservicex.net/country.asmx?WSDL
SoapUI Test Structure
When adding a new project, all of the WSs
methods will be loaded with sample (empty)
requests already created.
Opening such a request will show you the
editor of the .xml file which is to be sent to the
web server.
SoapUI gives you possibility to see the request
in the editor as xml, raw data, Outline and
Form, making it easier to manually edit the
data you plan to send to the WS server.
The response received is also shown (on the
right side of the tool’s layout) as xml, raw
data, Outline or Form, making it easier to read.
SoapUI Test Structure
Data Driven Tests
http://www.soapui.org/
SoapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use
graphical interface, and enterprise-class features, SoapUI allows you to easily and rapidly create and
execute automated functional, regression, compliance, and load tests. In a single test
environment, SoapUI provides complete test coverage and supports all the standard protocols and
technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's
most complete testing tool!
What can it do?
• Automated testing solution including: data driven tests, load tests, scenario-based tests
• MockServices feature gives the unique ability to mimic Web services and create/run Functional and
Load Tests against them even before they are implemented.
• Built-in reporting capabilities
Data Driven Example
http://www.webservicex.net/uszip.asmx?WSDL
We used a public WS which we found on the internet. This is returning the details of specific ZIP codes
from United States which is a good opportunity for us to validate if data received from our clients is valid
or not.
Extracting from our DB random ZIP Codes, City Names and State Codes we can validate if City Name
and State Code are matching the ZIP code by using it as a request and assert if the result is correct. All
this test data we added into an Excel file which we used as DataSource for our test.
Data Driven Example
DataSource will require the file location from you and also what are the Test Properties to be used from
the file.
These declared TestProperties are actually the parameters you will use for the requests or for the
assertion.
When adding a new TestRequest you will have the possibility to replace the single parameter from the
request with a Property from the DataSource by right-clicking the field:
Data Driven Example
In the same TestRequest you can add an assertion and choosing Property Content / XPath Match in
order to choose specific element from the response to be validated against specific TestProperty from
the DataSource:
Data Driven Example
In the assertion you will need to replace the hardcoded value with the TestProperty from the
DataSource:
Data Driven Example
Now your test will be ready and will validate request parameters with specific values from the
response, all this according to the .xls DataSource.
Thank You!

Mais conteúdo relacionado

Destaque

Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...
Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...
Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...SQALab
 
An introduction to api testing | David Tzemach
An introduction to api testing | David TzemachAn introduction to api testing | David Tzemach
An introduction to api testing | David TzemachDavid Tzemach
 
Soa testing soap ui (2)
Soa testing   soap ui (2)Soa testing   soap ui (2)
Soa testing soap ui (2)Knoldus Inc.
 
Presentation for soap ui
Presentation for soap uiPresentation for soap ui
Presentation for soap uiAnjali Rao
 
Testing Agile Web Services from soapUI
Testing Agile Web Services from soapUITesting Agile Web Services from soapUI
Testing Agile Web Services from soapUIPLM Mechanic .
 
SOAP-UI The Web service Testing
SOAP-UI The Web service TestingSOAP-UI The Web service Testing
SOAP-UI The Web service TestingGanesh Mandala
 
Getting Started with API Security Testing
Getting Started with API Security TestingGetting Started with API Security Testing
Getting Started with API Security TestingSmartBear
 
Automate REST API Testing
Automate REST API TestingAutomate REST API Testing
Automate REST API TestingTechWell
 
REST API testing with SpecFlow
REST API testing with SpecFlowREST API testing with SpecFlow
REST API testing with SpecFlowAiste Stikliute
 
4 Major Advantages of API Testing
4 Major Advantages of API Testing4 Major Advantages of API Testing
4 Major Advantages of API TestingQASource
 

Destaque (13)

Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...
Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...
Автоматизация настолько хороша, насколько хорош человек использующий ее (блиц...
 
An introduction to api testing | David Tzemach
An introduction to api testing | David TzemachAn introduction to api testing | David Tzemach
An introduction to api testing | David Tzemach
 
Soa testing soap ui (2)
Soa testing   soap ui (2)Soa testing   soap ui (2)
Soa testing soap ui (2)
 
Presentation for soap ui
Presentation for soap uiPresentation for soap ui
Presentation for soap ui
 
Testing soapui
Testing soapuiTesting soapui
Testing soapui
 
Testing Agile Web Services from soapUI
Testing Agile Web Services from soapUITesting Agile Web Services from soapUI
Testing Agile Web Services from soapUI
 
SOAP-UI The Web service Testing
SOAP-UI The Web service TestingSOAP-UI The Web service Testing
SOAP-UI The Web service Testing
 
Getting Started with API Security Testing
Getting Started with API Security TestingGetting Started with API Security Testing
Getting Started with API Security Testing
 
Automate REST API Testing
Automate REST API TestingAutomate REST API Testing
Automate REST API Testing
 
REST API testing with SpecFlow
REST API testing with SpecFlowREST API testing with SpecFlow
REST API testing with SpecFlow
 
Api testing
Api testingApi testing
Api testing
 
API Testing
API TestingAPI Testing
API Testing
 
4 Major Advantages of API Testing
4 Major Advantages of API Testing4 Major Advantages of API Testing
4 Major Advantages of API Testing
 

Mais de RomSoft SRL

Automation Testing with TestComplete
Automation Testing with TestCompleteAutomation Testing with TestComplete
Automation Testing with TestCompleteRomSoft SRL
 
Penetration Testing
Penetration Testing Penetration Testing
Penetration Testing RomSoft SRL
 
Automation Testing
Automation TestingAutomation Testing
Automation TestingRomSoft SRL
 
Rom soft - Diadvisor presentation - CodeCamp 10 march 2012
Rom soft  - Diadvisor presentation - CodeCamp 10 march 2012Rom soft  - Diadvisor presentation - CodeCamp 10 march 2012
Rom soft - Diadvisor presentation - CodeCamp 10 march 2012RomSoft SRL
 
The Dependency Injection - Sorin Damian, Software Developer@RomSoft
The Dependency Injection - Sorin Damian, Software Developer@RomSoftThe Dependency Injection - Sorin Damian, Software Developer@RomSoft
The Dependency Injection - Sorin Damian, Software Developer@RomSoftRomSoft SRL
 

Mais de RomSoft SRL (6)

Automation Testing with TestComplete
Automation Testing with TestCompleteAutomation Testing with TestComplete
Automation Testing with TestComplete
 
Test Complete
Test CompleteTest Complete
Test Complete
 
Penetration Testing
Penetration Testing Penetration Testing
Penetration Testing
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Rom soft - Diadvisor presentation - CodeCamp 10 march 2012
Rom soft  - Diadvisor presentation - CodeCamp 10 march 2012Rom soft  - Diadvisor presentation - CodeCamp 10 march 2012
Rom soft - Diadvisor presentation - CodeCamp 10 march 2012
 
The Dependency Injection - Sorin Damian, Software Developer@RomSoft
The Dependency Injection - Sorin Damian, Software Developer@RomSoftThe Dependency Injection - Sorin Damian, Software Developer@RomSoft
The Dependency Injection - Sorin Damian, Software Developer@RomSoft
 

Último

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Último (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

How to Test Web Services Using SOAP UI

  • 1. How to test WebServices using SOAP UI June 8th, ISTC workshop
  • 2. What is a WebService? • Definition: The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. • Usage: Amazon Web Services offers a complete set of infrastructure and application services that enable you to run virtually everything in the cloud: from enterprise applications and big data projects to social games and mobile apps. A report from 2012 done by a web analytics firm has revealed that web sites using cloud computing outfit Amazon Web Services (AWS) are visited daily by a third of all internet users worldwide.
  • 3. Travel Holdings WebServices Our web services are mostly oriented to the travelling industry exposing our API in order to: • Search for products (mainly hotels) • Get hotel details • Book reservations • Manage previous reservations Internally we are also using where possible as much WS as we can in order to push our solution development to be more an more service oriented. Commercially we are called by an average of 2 million searches per hour allowing our clients to book an average of almost 10000 reservations per day.
  • 4. What is SoapUI? http://www.soapui.org/ SoapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use graphical interface, and enterprise-class features, SoapUI allows you to easily and rapidly create and execute automated functional, regression, compliance, and load tests. In a single test environment, SoapUI provides complete test coverage and supports all the standard protocols and technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete testing tool! What can it do? • Automated testing solution including: data driven tests, load tests, scenario-based tests • MockServices feature gives the unique ability to mimic Web services and create/run Functional and Load Tests against them even before they are implemented. • Built-in reporting capabilities
  • 5. SoapUI Test Structure SoapUI structures functional tests into three levels; TestSuites, TestCases and TestSteps. 1. A TestSuite is a collection of TestCases that can be used for grouping functional tests into logical units. Any number of TestSuites can be created inside a soapUI project to support massive testing scenarios. 2. A TestCase is a collection of TestSteps that are assembled to test some specific aspect of your service(s). You can add any number of TestCases to a containing TestSuite and even modularize them to call each other for complex testing scenarios. 3. TestSteps are the "building blocks" of functional tests in soapUI. They are added to a TestCase and used control the flow of execution and validate the functionality of the service(s) to be tested.
  • 6. SoapUI Test Structure A test is added by creating a new project and setting the wsdl page of your WS application. For example we used public WS which provides Country Details: http://www.webservicex.net/country.asmx?WSDL
  • 7. SoapUI Test Structure When adding a new project, all of the WSs methods will be loaded with sample (empty) requests already created. Opening such a request will show you the editor of the .xml file which is to be sent to the web server. SoapUI gives you possibility to see the request in the editor as xml, raw data, Outline and Form, making it easier to manually edit the data you plan to send to the WS server. The response received is also shown (on the right side of the tool’s layout) as xml, raw data, Outline or Form, making it easier to read.
  • 9. Data Driven Tests http://www.soapui.org/ SoapUI is a free and open source cross-platform Functional Testing solution. With an easy-to-use graphical interface, and enterprise-class features, SoapUI allows you to easily and rapidly create and execute automated functional, regression, compliance, and load tests. In a single test environment, SoapUI provides complete test coverage and supports all the standard protocols and technologies. There are simply no limits to what you can do with your tests. Meet SoapUI, the world's most complete testing tool! What can it do? • Automated testing solution including: data driven tests, load tests, scenario-based tests • MockServices feature gives the unique ability to mimic Web services and create/run Functional and Load Tests against them even before they are implemented. • Built-in reporting capabilities
  • 10. Data Driven Example http://www.webservicex.net/uszip.asmx?WSDL We used a public WS which we found on the internet. This is returning the details of specific ZIP codes from United States which is a good opportunity for us to validate if data received from our clients is valid or not. Extracting from our DB random ZIP Codes, City Names and State Codes we can validate if City Name and State Code are matching the ZIP code by using it as a request and assert if the result is correct. All this test data we added into an Excel file which we used as DataSource for our test.
  • 11. Data Driven Example DataSource will require the file location from you and also what are the Test Properties to be used from the file. These declared TestProperties are actually the parameters you will use for the requests or for the assertion. When adding a new TestRequest you will have the possibility to replace the single parameter from the request with a Property from the DataSource by right-clicking the field:
  • 12. Data Driven Example In the same TestRequest you can add an assertion and choosing Property Content / XPath Match in order to choose specific element from the response to be validated against specific TestProperty from the DataSource:
  • 13. Data Driven Example In the assertion you will need to replace the hardcoded value with the TestProperty from the DataSource:
  • 14. Data Driven Example Now your test will be ready and will validate request parameters with specific values from the response, all this according to the .xls DataSource. Thank You!