Ask a Question

Run failed Tests again

SOLVED
Lagencie
Frequent Contributor

Run failed Tests again

Is there a function or whatever, to run all failed tests from a log again?

 

Or create a new testrun with the failed tests in a simple and fast way?

1 ACCEPTED SOLUTION

Accepted Solutions
karkadil
Valued Contributor

Re: Run failed Tests again

Some time ago I implemented such a feature and wrote a blog post on how I did it.

You can find the post here

https://alpaev.com/testcomplete-rerun-failed-tests/

 

It is in Russian, but I think you can use google translate to get an English version.

 

General idea is to add each test with an error to the list (batch-file in my case) and run them all after the main set is finished.

View solution in original post

3 REPLIES 3
tristaanogre
Community Hero

Re: Run failed Tests again

No, there is not.  Keep in mind, that TestComplete, being a flexible tool with many ways of doing the same thing... what defines a "test"? I have a framework that I developed in TestComplete which runs a test run based upon a set of SQL data.  If one of those fails, how do I tell TestComplete to re-run one of those tests?  Meanwhile, other folks use the TestItems feature of TestComplete to define a test.  Some have something that looks entirely different... so, to get a log file out of TestComplete and say, "Rerun failed tests"... what is the context for defining what a test is?


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
karkadil
Valued Contributor

Re: Run failed Tests again

Some time ago I implemented such a feature and wrote a blog post on how I did it.

You can find the post here

https://alpaev.com/testcomplete-rerun-failed-tests/

 

It is in Russian, but I think you can use google translate to get an English version.

 

General idea is to add each test with an error to the list (batch-file in my case) and run them all after the main set is finished.

View solution in original post

Lagencie
Frequent Contributor

Re: Run failed Tests again

will read into it, thx - and yeah google translate does its job

cancel
Showing results for 
Search instead for 
Did you mean: