Oracle Application Testing Suite ( a.ka. OATS ) has very user-friendly way of testing Web Services, in this article you will learn how to create a Web Services test script using Openscript IDE of OATS.
Just to let you know, web services testing is one of the most hot topic around the globe, due to the pace at which cloud applications, mobile applications are emerging in to the market, the necessity of integrating them has also increased multi fold. Especially the cases of integrations between multiple Enterprise applications or mobile applications for the cloud applications, web services play a major role and needs to be tested thoroughly.
Lets see how we can create a simple web services testing script using Oracle Application Testing Suite ( OATS )
In this article we are using a sample wsdl http://www.webservicex.com/globalweather.asmx?wsdl which is publicly available for testing web services.
Step by Step Instructions to create a web services testing script using OATS / Oracle Application Testing Suite:
- Open OpenScript IDE or Oracle Application Testing Suite.
- Click New Button.
- Select “Web Services” as project type and click Next Button
- Give script name of your choice and click Finish.
- Once the script tab is ready to use, In the WSDL Manager View of Openscript IDE, click on New Icon.
- Give the sample wsdl file url in the Parse WSDL Dialog window and click on Next Button.
- OpenScript IDE lists out all the services and methods present in each service in a tree format, click on Finish Button.
- Expand the url in the “WSDL Manager” view to the desired method you want to test.
- Right click on the method and click on “Add to script” context menu item.
- WS script code gets added to the script automatically.
- In the “Tree View” expand the step group till we see the “XML Post Data” Node and double click to open the “Post Data” dialog window.
- Expand the Method Node in the Post Data Dialog window to see the list of input parameters to submit the request
- Give desired country name for the parameter and “Click OK” , for example: “India” and click “OK” button.
- Save the updated script and click on “PlayBack” icon of Openscript and observe “Console”/”Results” view to see the completion of script execution.
- Once the script execution is complete, expand the results view to see more details.
- In order to see the response response of the submitted web service request, click on the url in the results section, you will be able to see the complete response returned by this script execution.
The response could be stored in a string and using XML reader utilities, you can write some programming logic to validate if expected response and actual response are matching.
Please do leave queries through comments, I would be more than happy to help.
Founder of TestingTools.co, constantly shares knowledge on different test automation tools. Has experience in building proof of concepts, solutions, frameworks, platforms & implementation of test automation projects.
In pursuit of building a platform with inbuilt framework and reusable components for Oracle Cloud applications ( Oracle HCM, CX, SCM, Financials clouds, Salesforce and other cloud applications )
Major accomplishments in his career:
- Product architect and development manager for test automation platforms
- Oracle Flow Builder @ Oracle
- CloudTestr @ Suneratech
- 2 times to oracle open world
- More than 20 successful POCs ( Proof of concepts )
- 100 demos
- Designed pricing models.
- Trained more than 50 members.
- Built more than 100 re-usable functions.
Worked with tools: