Groovy in SOAP UI

Archive for the ‘Groovy’ Category

Using Script Assertion in SOAP UI

Posted by: devakara on: November 27, 2008

Script assertion in SOAP UI helps the developer to immediately run some primary tests after the current messageExchange.
It feels/sounds similar to Groovy Script test step but, in a lot ways it’s more handy. If say we want to validate on the response time and proceed further for succeeding test steps, it feels heavy to have [...]

Operations with sql instance

Posted by: devakara on: October 17, 2008

Groovy provides very robust methods with sql instance to retrieve and manipulate the ResultSet. 
There are methods for retrieving the first row,  the ResultSet of some sql query, directly executing insert/update/delete queries.
Prerequisite: Obtain sql instance using
import groovy.sql.Sql
def sql = Sql.newInstance(dbpath, dbusr, dbpwd, dbdriver)
 
Below are some comprehensive examples which use the above sql instance.
firstRow( sqlQuery ) : This method returns the [...]

load testing with SOAP request having variable parameter(s)

Posted by: devakara on: September 30, 2008

 

At times there could be requirement of Load Testing a Web Service following different strategies based on the requirement.
But say if there are fields in the SOAP request which are supposed to be unique for every request that hits the service while load testing…really this could be tough to deal with.
With the new feature called [...]