mrdwprice
3 years agoContributor
setRunType
I have this groovy script as a project level setup script.
But when tests execute via the ReadyAPI Azure DevOps extension, the execution is PARALLEL for both DEV and TEST.
Is there an error in my script?
def env = runner.project.getActiveEnvironment().name
import com.eviware.soapui.model.testsuite.TestSuite
project.setRunType(TestSuite.TestSuiteRunType.PARALLEL )
if (env == "DEV")
{
project.setRunType(TestSuite.TestSuiteRunType.SEQUENTIAL )
log.info project.getRunType()
}
if (env == "TEST")
{
project.setRunType(TestSuite.TestSuiteRunType.PARALLEL )
log.info project.getRunType()
}
.