This is a migrated thread and some comments may be shown as answers.

Automatic Re-run in Scheduler

3 Answers 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ondrej
Top achievements
Rank 1
Ondrej asked on 19 Jun 2017, 09:08 AM

Hello,

is there some possibility to add Re-run testlist feature to scheduler ? with some parameters like turn on/off or how many times telerik should run ReRun, like 2-3x times, not only 1x times. 

http://www.telerik.com/forums/automatic-re-run-of-failed-tests-from-a-test-list-execution

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 21 Jun 2017, 02:26 PM
Hello Ondrej,

Thank you for your interest. 

I see you have found the example of how to rerun the failed tests. In the execution extension you could add your custom code and logic in order to accomplish your requirements. Please review the article and sample project from the forum post you referred to and use them as examples to build extension as per your needs. 

Let us know in case you would need any assistance! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Ondrej
Top achievements
Rank 1
answered on 14 Jul 2017, 11:40 AM

Hello Elena,

thank for your reply.

I looked at it one more again, and download the C# code a read it. I think, i can able to modify the plugin / extend the config by one more parametr to define "how many times" telerik should generate ReRunTestlist (take failed testes from ReRun and generate new).

But i dont know, how to implement this for Scheduler. 
I need to change the ProcessToRun ? from "ArtOfTest.Runner.exe" to "Telerik.TestStudio.Scheduling.Client.exe" or how can i do it ? is there any docs/api about telerik methods ? 

Thanks for reply. 
Regards,
Ondrej Lasak

0
Daniel Djambov
Telerik team
answered on 19 Jul 2017, 08:35 AM
Hello Ondrej,

Elena is out of the office and I will answer your question.

You cannot implement this for 'Telerik.TestStudio.Scheduling.Client.exe', you can only trigger ArtOfTest.Runner from command prompt to perform the re-run.

There are some specifics however:
1. if you schedule runs locally on your machine, what will happen is that when executing the Test List locally, using the extension modifications, you will prepare creation of new Test List for re-run in the OnBeforeTestListStarted event and after the test list finishes execution, if conditions are met (failed tests, specific failure, etc.), in the OnAfterTestListCompleted method you can call ArtOfTestRunner to run your newly generated test list with failed tests only. This is explained in the forum post.

2. the above will not work for scheduler on remote machines or when using scheduling with multiple machines, because the OnBeforeTestListStarted and OnAfterTestListCompleted methods are only run where there is a Scheduling Service running or when called by ArtOFTestRunner. In remote setup, only mthods OnBeforeTestStarted and OnAfterTestCompleted can be used and you can configre to make re-run of single tests in this case, but you have to re-write your extension and make it work for your case.

Hope this information will help you figure out how to implement your custom modifications.

Best Regards,
Daniel Djambov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Ondrej
Top achievements
Rank 1
Answers by
Elena
Telerik team
Ondrej
Top achievements
Rank 1
Daniel Djambov
Telerik team
Share this question
or