In Part 1 of this blog, we had discussed on how to create a sample Project in SoapUI that could be integrated to Worksoft Certify. This Part 2, continues to touch on the pre-requisites for SoapUI – Worksoft Certify Integration and finally how to use Certify in this context.

Pre-Requisites for SoapUI – Worksoft Certify Integration

  • SoapUI
  • Worksoft Certify 10 or more (doesn’t work with 9.x.x)
  • Configure “Path” Environment System Variable with the URL of your SoapUI Installation Bin Folder ( Very Important )

Ex:  C:Program FilesSmartBearSoapUI-5.3.0bin

  • SoapUI Project that is ready to be integrated to Worksoft Certify

 

SoapUI

To integrate SoapUI Project to Worksoft Certify, we must make some changes to the existing SoapUI project.

  • Create Project Variables within SoapUI to input the Request data and to store the Response that will be later used by Worksoft Certify to Input, Execute and Store Response Output from SoapUI.
  • Create Property Transfer: Step used to send the Response to a project Variable created in the previous step.

Now let’s see the above points in detail1)  To Create Project Variables in SoapUI, Select the Project Folder

Click on Custom Properties Tab in the same pane

Give a Name and a Value to the Variable

We need 4 Project Variables for the project as we have 3 data inputs in the Request and one output from the Response

To create these variables, click on the green Plus (+) button in the Custom Properties Tab

Give a Name and a Value to the Variable

 

The Variables SizeValue, FromUnit, ToUnit are for Input data in the Request and ResultValue is for storing the Response output.

The ResultValue is blank because the output value (1024000) will be automatically stored to this variable during the Property Transfer.

2) Parameterize the Input fields in the Request with the Project Variables created earlier

Right Click on the field, Get Data — > Project [ConvertComputerUnit] à Select Variable created

Once you have parameterized all the Input Data from the Request, it should look something like this below

3) Create Property Transfer to store the Response Value to the Project Variable
Right Click on the Test Steps of your TestCase, Select Add Step à Property Transfer

Input a Name to your Property Transfer and click OK
You can see the Property Transfer step now created under your Test Step

Create a new Transfer by clicking the green + button

Double click on the Property Transfer, Input Source and Target as per the below screen and click on Execute Transfer button (Green Arrow)

What happens here is the value from the Response is transferred to your Project Variable “ResultValue

The XPath Code is used to fetch the specific node value within “ChangeComputerUnitResult” tag, else the variable would contain the whole Response data.

For tutorials on XPath please visit

https://groovyinsoapui.wordpress.com/tag/xpath-assertion-in-soap-ui/

https://learnsoapui.wordpress.com/tag/soapui-xpath/

After you execute the Property Transfer you should see the value “1024000” transferred to your “ResultValue” Variable

You should also see your Custom Properties Tab should now have the transferred value

We have completed the SoapUI Steps.

WORKSOFT CERTIFY

For Worksoft Certify 10 to access SoapUI we need the following details

  • Project path
  • Project Variable names
  • TestSuite name
  • TestCase name

Note: SoapUI and Worksoft Certify 10 must be installed on the same machine for the integration to work.If you have an existing SoapUI project make sure you get the above data to use it with Certify.Now Let’s see how we can use these details with Certify and execute the SoapUI Project from Certify without opening your SoapUI.1) Open Worksoft Certify 10, create an Application with Interface type “SoapUI” and link it to your projectNote: If you do not have an existing Certify project, create it and link your application to it.
2) Create a new Window under your Application with the below details Note: You can input any value for Name, Physical Name and Attribute Value3) Create a Process, and add the step as shown below The first step in Certify is to load your SoapUI Project. For the “Load” action we need to input at least three minimum parametersa) Project File Name: Your SoapUI Project path Note: You can find the Project path when you double click your SoapUI Project folder in SoapUI b) Test Suite: Your SoapUI Test Suite name c) Test Case: Your SoapUI Test Case name4) Pass below data to your SoapUI Project Variables Note: Since you have 3 input Project Variables in SoapUI, the same number of steps must be created here to pass data5) Add a step to Run the SoapUI Project 6) Add a Property Transfer step to execute the Property Transfer step in SoapUI and store the result in your Certify Variable Note:  The “ResultValue” here is the name of the Property Transfer that you created in SoapUI. The Output parameter can have any variable from Certify.7) Let’s execute the Certify ProcessNote: It is recommended to close the SoapUI application if open before executing the Certify Process

Data#1

Data#2

SoapUI LOGSThe SoapUI logs can be found at %APPDATA%RoamingWorksoftSoapUI folder OK = Passed in SoapUI, FAILED = Failed in SoapUIReference:https://community.worksoft.com/Knowledge-Base/Worksoft-Products/Worksoft-Certify-Interface/worksoft-certify-smartbear-soap-ui-interface.htmlContribution by Avinash Kumar

 

Leave a Reply

Your email address will not be published. Required fields are marked *