SoapUI

SoapUI: Groovy Scripts

Groovy Script in SOAPUI allow for reaching out to external data and return reporting elements and data

  • Open Flie/DB connection
  • Read from Excel/Database
  • Re-Name Test Steps from Excel Columns
  • Get Values from spreadsheet/database for test step(s) values
  • Use variables/properties for
    • logging
    • Renaming Test Cases on-the-fly
    • Populating Request Messages
    • Populating Response Messages
    • Resetting Test Case to default values
  • Closing Flies/DB connections

Script Logging

log.info( "NEXT: : " + curTC.getPropertyValue("Symbol") ) 
log.info( "Test Case TearDown.." )

 

TestSuite

SetupScript

log.info(runner.getTestSuite().toString())
log.info(runner.toString())

 

Tags

SoapUI: Project Walkthrough

Create a SOAPUI project from WSDL

  • Go to Projects in the tree
  • And select New soapUI Project

 

  • Give the project a name, then click ‘Browse’ and select the appropriate WSDL file.
  • Some WSDLs reference an XSD file that provides definitions to the data in the WSDL contract.

 

 

 

Tags

Eclipse: Maven & SoapUI Setup

Introduction

What Is?

 

SOAPUI in 5 Minutes

  • Eclipse
  • New Maven Project, Next, Next
  • Filter cxf: org.apache.cxf.archetype (cxf-jaxws-javafirst)
  • Open “HelloWorldImpl.java
  • Beans.xml
  • Web.xml
  • Cxfsample/pom.xml @ the <build> tag

 

 

  • Select an Archetype

 

 

  • Specify Archetype parameters

 

Subscribe to SoapUI