Friday 10 August 2012

A sample Automation Framework using SOAP UI


Test Configuration Files:Test configuration files  are used to set the configuration for the following:


3rd party API’s:
JavaExcel:JExcel an opensource 3rd party API is used  along with groovy to provide datasource to SOAPUI for Data Driven Testing, as the open-source version of SOAPUI doesn’t have any inbuilt feature to perform Data Driven Testing.

Groovy.Jar: Groovy is used as a scripting language to create automation framework Groovy .jar is added to SOAPUI to Lib folder of the tool.

Test Runner:Test Runner.bat gets called each time when a test case is executed in Soap UI.

.

SoapUI Project / script file:SoapUI project is a collection of Test Suites which contains Test cases .A test case a   :
1. Groovy script to input the request
2. SOAP Request:Soap request with input parameters configured.
3. Assertions :Using Xpath assertions to validate data at each node
4.Groovy Script to generate the Report or update the result flag in Test properties.

3 comments:

  1. It could be helpful if you provide a sample project.

    ReplyDelete
  2. Hi could you please provide a sample project for the reference

    ReplyDelete