dcomte
15 years agoNew Contributor
crashing testSuite Setup Script running a test case in it
Hi
I am using the free version 3.5.1, and trying to use the setup script of a test suite to run an external test case, which has the actual setup operations that will be common to several test suites.
the suites are like this :
and my setup script is like this :
if I run it, the "tc.run" call triggers an empty error dialog (just the window border and title), then soapUI is all frozen and I have to kill it.
any idea what I'm doing wrong ?
I am using the free version 3.5.1, and trying to use the setup script of a test suite to run an external test case, which has the actual setup operations that will be common to several test suites.
the suites are like this :
+ _setupScripts (Disabled)
+ project_setup
+ suite_setup
+ ... steps
+ suite_teardown
+ 00_actual_tests
+ ...test cases
and my setup script is like this :
import com.eviware.soapui.model.testsuite.TestRunner.Status
// get TestCase
def ts = testSuite
def p = ts.getProject()
def tst = p.testSuites["_setupScripts"]
def tc = tst.testCases["suite_setup"]
// run test synchrouously
def tcrunner = tc.run(null, false)
// show that it worked out ok
log.info tc.name + ": Status: $tcrunner.status, time taken for TestCase was: $tcrunner.timeTaken ms"
// assert that it didn't fail
assert tcrunner.status != Status.FAILED : tcrunner.reason
if I run it, the "tc.run" call triggers an empty error dialog (just the window border and title), then soapUI is all frozen and I have to kill it.
any idea what I'm doing wrong ?