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

Don't log errors (continue on failure) as errors

3 Answers 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Software
Top achievements
Rank 1
Software asked on 02 May 2017, 01:57 PM

Hello,

we have a problem. In most cases we get a dialog on a website (the user is already logged in). That is why we created a test step to continue our test by clicking on OK. The test should continue on failure, because sometimes the dialog is not shown. When the dialog is not shown, the test will continue, but after the run we get an error message and the test is marked red. Is it possible to ignore failures completely (without any error message)?

 

Thank you very much.

 

 

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 02 May 2017, 02:42 PM
Hi Matthias,

Thanks for your interest in Telerik Test Studio. 

Here is an article that describes how to use try..catch block to handle such situation when a dialog may not appear but is required to be handled if appears. I hope this will be helpful to you to solve the scenario faced. 

Thanks! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Software
Top achievements
Rank 1
answered on 02 May 2017, 07:38 PM
Thank you for your solution with a coded step. Is there another solution to just ignore certain error messages?
0
Elena
Telerik team
answered on 03 May 2017, 02:13 PM
Hello Matthias,

Thanks for getting back to me. 

Such scenario could be handled in code only as described in the provided article. There is no other approach you could apply in that case. 

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