Skip to content

Instantly share code, notes, and snippets.

@olensmar
Created February 12, 2013 13:28
Show Gist options
  • Save olensmar/4769898 to your computer and use it in GitHub Desktop.
Save olensmar/4769898 to your computer and use it in GitHub Desktop.
Sample Groovy Console Script
import com.eviware.soapui.support.UISupport
project = workspace.createProject( "My Project", null )
testSuite = project.addNewTestSuite( "TestSuite" )
testCase = testSuite.addNewTestCase( "TestCase" )
testCase.addTestStep( "httprequest", "HTTP Request" )
UISupport.showDesktopPanel( testCase )
testRunner = testCase.run( null, false )
UISupport.showInfoMessage( "TestCase finished with status $testRunner.status" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment