Forum Discussion

tarleaa's avatar
tarleaa
Contributor
16 years ago

ReRun failed tests

Hello, 


is there a way for TC to somehow check the Test Log and run again a failed test? 


Thank you, 


Andrei


11 Replies

  • Hi Andrei,




    Is there a way to clear the current test item log from script, before test run is completed?



    There is no way to do this, and that is why, the sample script stores the number of errors before launching the test and then uses the stored value (not zero) for comparison:



    var ErrCount = Log.ErrCount;

    ...

    // Your test's code

    ...

    // If the execution log contains errors, save the routine call

    if (Log.ErrCount > ErrCount)


    BTW, we were unable to reproduce the empty data issue. I guess, you just didn't call the Test1 routine before calling Test2.