Forum Discussion

Finan's avatar
Finan
Frequent Contributor
15 years ago

[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())

2 Replies

  • Hi,

    This should work:
    step.setRunMode( com.eviware.soapui.config.RunTestCaseRunModeTypeConfig.PARALLELL )

    We should probably make this easier to access from Groovy.

    Regards!

    /Henrik
    eviware.com
  • Finan's avatar
    Finan
    Frequent Contributor
    Thx, (also for the fast response/solution) it works perfectly:)