Countries SOAP API tested in SOAPUI Open Source Version. It involves groovy scripting for a data-driven test case which outputs a CSV file.
Demo / Explanation Video: https://www.youtube.com/watch?v=AeaR5Yi4O-M
Manually download the project, unzip it and then select Import Project
from the File
menu.
This project uses:
- opencsv to write the CSV Output file.
- list-of-countries.txt from dariusz-wozniak's GIST.
- Apache Ant to generate HTML Report.
The list-of-countries.txt
is provided with the project, user's would have to download opencsv
manually and place the jar file in C:\Program Files\SmartBear\<SOAPUI-version-installation>\bin\ext
.
The file no-iso-countries.txt
was made by Sunpreet Singh Rathor
during the build of this project.
Since the project has a WSDL file, all requests are automatically added. This leads to running the project or it's components in a number of ways, such as:
- Open a request, fill in the required fields and press
Submit
button. This sends a single request. - Double click
Initial Suite
and press theRun
button to execute the test suite. - Double click a Test Case and press
Run
button to execute all Test Steps within the selected Test Case. - Open a request within a Test Case, fill in the required information and press
Submit
. Assertions can directly be added here.
To generate the HTML Report, edit the build.xml
to specify the following:
- SOAPUI Installation Folder
- Apache Ant Installation Folder
- Current Project Folder
After these have been updated, run the command ant
in the project folder in Command Prompt or PowerShell. The HTML Report would be generated in HTML
folder of the project directory.