Hi all

I need to stop exeuction of a test in a test set when a specified condition is found. The script i used is as follows
Set R1 = TDConnection.RunFactory
Set R2 = R1.Item(1)
R2.CancelRun()
R2.Post()

I placed the script in the TestLab_RunTestsManually(Tests)event. But when I select a test in test lab and click run button, the execution is not stopped. can anyone help me on this issue.

Thanks in advance.