Forum Discussion

Liberty_Informa's avatar
Liberty_Informa
Regular Contributor
11 years ago

(Resolved)Parallel and Sequential RunType

Hi

As I understand in soapUI we can mark runType as parallel or sequential at two levels.

1. TestSuite level
2. TestCases level

I have following piece of code in the project load script to control the runType.

testSuiteList = project.getTestSuites()
testSuiteList.each
{
testSuite = project.getTestSuiteByName(it.key)
testCaseList = testSuite.getTestCases()

testSuite.setRunType(TestSuiteRunType.SEQUENTIAL)
}


This makes testCase level execution as sequential.

My question what code should I write to get control over testSuite level of runtype execution?

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    You can control the runType from Project level or TestSuite level.

    It works like this:

    • project.setRunType(...) -> makes all testSuites in the project run with a specific runType.

    • testSuite.setRunType(...) -> makes all testCases in the testSuite run with a specific runType.



    To control how all testSuites in a project run you have to set the projects runType.

    Regards,
    Max
    SmartBear Software