Worksoft Certify – SoapUI Integration Guide – Part – 1

SoapUI is an open-source web service testing tool for service-oriented architectures (SOA) and representational state transfers (REST). Its functionality covers web service inspection, invoking, development, simulation and mocking, functional testing, load and compliance testing.
Source Ref: https://en.wikipedia.org/wiki/SoapUI 
Tutorial: https://www.soapui.org/getting-started/soapui-interface.html

A web service is a service offered by a device to another device, communicating with each other via the World Wide Web. In a Web service, Web technology such as HTTP is utilized for machine-to-machine communication. Communication happens in the machine-readable file formats such as XML and JSON.

Source Ref: https://en.wikipedia.org/wiki/Web_service

 

Web Service Architecture

To get started we need the SoapUI in the system you want to test your web service along with your Worksoft Certify.

Any version of SoapUI would work here. You can download and install the SoapUI from the link below according to your platform.

Download Link: https://www.soapui.org/downloads/latest-release.html

Once you have it installed, you should see the icon below on your desktop

Open the SoapUI application, your SoapUI home screen would look something like below

Let’s create a sample Project in SoapUI that would later be integrated to Worksoft Certify
1) Navigate to the menu File — > New SOAP Project

2) Input Project Name and Initial WSDL,

Using a Sample URL ( http://www.webservicex.net/ConvertComputer.asmx?WSDL ) for demonstration purpose

You can leave the default checkboxes as it is and click on OK button

3) Your project ConvertComputerUnit should now be created. See the below screen

ComputerUnitSOAP12 is the latest version of SOAP and hence we will use this.

4) Click on Request 1 to see the Request and Response screen in the right side

The Response is blank because we have not made any request till now.

This webservice is used to convert computer size units,

Ex: Converting 1000 Megabyte to Kilobyte would result in the response 1024000 (Kilobyte)

5) Let’s implement this on the Request and Check the Response returned by the web service

Input the ComputerValue, fromComputerUnit, toComputerUnit and Click on Submit button to get the response that has the conversion result.

Now that we know the web service is working as it should, lets create a TestCase. Before we create a Test Case, we must create a Test Suite.

6) To create a Test Suite, Right Click on the Project folder and select New TestSuite

Give some name to your Test Suite and Click OK

The created Test Suite should now appear in your project

7) To Create a Test Case, Right Click on the TestSuite and select New TestCase

Input a TestCase name and Click OK

The created TestCase should now appear under your TestSuite

You can see the step count is “0” because we have not yet added our test steps

8) To add a Request to the TestCase that you created in the above steps,
Right Click on the Request that you want to test and select Add to TestCase

Select the TestSuite and the TestCase to add the selected Request and click OK

Input a Name for the Request and click OK

You can now see the Request under the Test Steps of your TestCase

Double Click on the above Request to check the request data before execution

9) To Execute the TestCase, double click on your TestCase that you want to execute,
Click on the green arrow button to Execute

You can see the Execution has completed successfully and received a Response from the Web Service

Click on Save All (Toolbar) to save your Project

Click on Yes and select a location to save your project

We have now successfully created a Project to be integrated with Worksoft Certify.

A continuation of this blog in Part 2 touches on the pre-requisites for SoapUI – Worksoft Certify Integration and finally how to use Certify in this context.

Contribution by Avinash Kumar

 

WRITTEN BY:

LEAVE A COMMENT