Forum Discussion

sabereshcp's avatar
sabereshcp
Contributor
15 years ago

Disabling a test case

Hi,

I want to disable a testcase from another test case. Can anyone tell me whether this can be done or not.If yes , please share the groovy script for the same.


Thanks in Advance,
Saberesh C P

1 Reply

  • mkliba's avatar
    mkliba
    Occasional Contributor
    Try this:

    def TC = testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC"] 
    TC.disabled = true

    Michel