Blog to understand automation concepts in QTP, Selenium Webdriver and Manual Testing concepts

Creating first test in Soap UI/Ready API


In this article, We will discuss on how to create a test in SOAP UI. Before starting, we need to discuss what SOAP UI is.  SOAP UI is web service testing application for SOA and Rest. Below is the step by step process and each step is described in detail to as to enable user able to create first tests in SOAP UI/ Ready API. We will discuss on following in this article                                                   

1.   Creating first project in SOAP UI

2.   Creating a test suite.

3.   Adding test case in the test suite

4.   Adding test steps to test case.

5.   Executing the test case.



1.   Creating first project in SOAP UI


a.    A new project can be created using menu Option File>Create a new Project or pressing Ctrl + shift + N.


b.   A new project Window appears to create a new project. Select the required option. Since in this example, we are creating a project from WSDL file, I have selected the option to import project from a WSDL definition (SOAP). Click on Ok.

c.   In New SOAP Project, Provide the URL /Path of WSDL and Name of the Project

d.   User can opt for creating sample request for operations in the WSDL and creation of a test suite for the Project.


2.   Useful  Setup information at Project level


a.   There are some project specific properties. Together with Project Properties, we can define custom properties that are used across test suites or requests in the test.
b.   We can define the endpoints and custom properties of different environment at project in case we have different environment on which we need to test the application.

c.   We can define the users in WSS-configuration to use the username/Password to access operations in the soap.


3.   Once a project is created, we can create a test suite in the Project.  A test suite contains a collection of test cases. Each test case consists further of test step. There can be multiple test suites in the Project. We can provide custom properties at the test suite similar to project and can set the environment to run the test suite.

4.   Inside a test suite are test cases. At test case level we define the test steps which are created to be executed. Below are some of the useful test steps in a test case:


a.   Data Source – To create a data driven test in soap UI, We create a data source.
b.   Data Source Loop – To loop through the steps in the test case from target step.
c.   Properties – Sets properties to be used in the test.
d.   Groovy Script – Groovy script to generate output from a script
e.   SOAP request – Adding a soap request in the test
f.    Property transfer – Transferring property value from the response to  data sink
g.   Data Sink – transferring value from test to external file.
h.   Delay – Delaying the execution by millisecond

5.   In Soap request, we can define assertions in the test to validate if the response from the request is valid and as expected.



No comments:

Post a Comment