Forum Discussion
corki
17 years agoContributor
Very thank you man.
I solved it by creating one property in TestSuite Properties, and every testCase in that TestSuite has groovy check where this property is loaded and compare to true/false,
Then I can stop running every one testCase separateli one by one with this command :
if(context.getCurrentStep().getTestCase().getTestSuite().getPropertyValue("availableToRun").compareTo("false")==0 ) testRunner.cancel("testCase forced to canceled by testSuite property - avaiableToRun")
I solved it by creating one property in TestSuite Properties, and every testCase in that TestSuite has groovy check where this property is loaded and compare to true/false,
Then I can stop running every one testCase separateli one by one with this command :
if(context.getCurrentStep().getTestCase().getTestSuite().getPropertyValue("availableToRun").compareTo("false")==0 ) testRunner.cancel("testCase forced to canceled by testSuite property - avaiableToRun")