Forum Discussion

louiselaine's avatar
louiselaine
Occasional Contributor
6 years ago
Solved

How to get the execution Status if Passed or Failed

Hi Guys,   Another Newbie question here:   I have a set of  7 automated test and the last part will send the execution result using sendmail, this works perfectly if All the 6 Testcases passed.  ...
  • tristaanogre's avatar
    6 years ago

    Most likely you have "Stop On Error" set to true in Tools | Current Project Properties | Playback.  As soon as an error gets logged, this will cause your test project to halt immediately, preventing any future tests to execute in that run.

     

    My recommendation is to turn off any and all options that automatically stop the project on an error and build your code/tests in such a way that they will halt the individual test on an error but not halt the whole project.

  • m_essaid's avatar
    m_essaid
    6 years ago

    Hi Louiselaine,

    In addition to what tristaanogre said, I suggest you to add to the event "OnLogError" the following script :

     

    function GeneralEvents_OnLogError(Sender; LogParams);
    begin
      Runner.Stop(True);
    end;

     

    See the help for the True paramete of Runner.Stop

    It will pass to the next test item...