Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

disable / enable test suite via groovy

Hello,
I have a load script in my project. I want to do the following with my load script.

1. disable all the testsuites in project.
2. enable the test suite named 'xxxxxx'

how can I accomplish this via groovy.

Thanks

Ali

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    Please try the following:

    for( testSuite in project.testSuiteList )
    {
        testSuite.disabled = testSuite.name != "the name not to disable"
    }


    regards!

    /Ole
    eviware.com