cancel
Showing results for 
Search instead for 
Did you mean: 

Go to next test item on error

Highlighted
Valued Contributor

Go to next test item on error

Hi,

As I set up my framework, I need to stop test item execution at any error and at this moment go to the next test item.

Generaly that's what the robot does.

But I noticed that there are some errors that stop all the project, and consequently don't save the report on the disk and don't send the summary by mail.

It's errors like runtime errors, files not found, ...

Do I have somewhere a parameter to set up to go to the next test item even in theses cases ?

Thank you in advance,

Regards,

Mehdi

3 REPLIES 3
Highlighted
Valued Contributor

Re: Go to next test item on error

Another kind of error that stops everything is when I use a variable that haven't been declared before (I use Delphi script).

Highlighted
Community Hero

Re: Go to next test item on error

That's the stop on exception setting.  You set that on the TestItems as well.  you may need to select to view the column.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Valued Contributor

Re: Go to next test item on error

Hi Robert,

 

I do the following for each error :

function GeneralEvents_OnLogError(Sender; LogParams);
begin
  Project.Variables.VariableByName['ErrCount']:=
    Project.Variables.VariableByName['ErrCount'] + 1;
  Runner.Stop(True);
end;

Do you mean that having this code I should set up TestComplete like this ?

 

playback.PNG

 

 

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors