Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
www.gauravkhurana.in

Gaurav Khurana gauravkhuraana

💭
www.gauravkhurana.in
View GitHub Profile
View Groovy Script to run all test Steps
Groovy Script to run a test case steps in SoapUI
YOu can disable all steps apart from the Groovy step and paste the below code
@gauravkhuraana
gauravkhuraana / Clear Log-output groovy step.groovy
Created Oct 18, 2017
Clear log-output for soapui Groovy script.
View Clear Log-output groovy step.groovy
// Remember script log and log-output are different things. The below script is for the log-output which comes below the log-output
//Note that in ReadyAPI 2.1 you will need to use the following script:
import com.eviware.soapui.SoapUI
log.info("test")
//Writing to the log is executed in the separate thread, so it is need to wait some time to get all notifications.
sleep(1000)
def teststep = context.getCurrentStep()
def tesStepPanel = SoapUI.getDesktop().getDesktopPanel(teststep)