Finan
15 years agoFrequent Contributor
[Resolved] setRunMode
Hi,
Another groovy-script question:
I know how to check the runMode of a runTestCase testStep, but I do not know how to set it. (In a tearDownScript)
I've tried (amongst other attempts):
1. testStep.setRunMode(PARRALLEL) , returns No such property for script....
2. testStep.setRunMode("PARRALLEL), returns No such method [..] possible solution: setRunMode(com.eviware.soapui.config.RunTestCaseRunModeTypeConfig$Enum).
How do I go about fixing this?
I already found a work-around:
1. Add 3 (disabled) runTestCase testSteps to the testCase (a = PARRALLEL, b= SINGLETON_AND_FAIL and c= SINGLETON_AND_WAIT)
2. To set the runMode of a testCase do : testStep["d"].setRunMode(testStep["c"].getRunMode())
Another groovy-script question:
I know how to check the runMode of a runTestCase testStep, but I do not know how to set it. (In a tearDownScript)
I've tried (amongst other attempts):
1. testStep.setRunMode(PARRALLEL) , returns No such property for script....
2. testStep.setRunMode("PARRALLEL), returns No such method [..] possible solution: setRunMode(com.eviware.soapui.config.RunTestCaseRunModeTypeConfig$Enum).
How do I go about fixing this?
I already found a work-around:
1. Add 3 (disabled) runTestCase testSteps to the testCase (a = PARRALLEL, b= SINGLETON_AND_FAIL and c= SINGLETON_AND_WAIT)
2. To set the runMode of a testCase do : testStep["d"].setRunMode(testStep["c"].getRunMode())