This is a migrated thread and some comments may be shown as answers.
Eugene
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
Evgeniy
Top achievements
Rank 1
Evgeniy asked on 30 Mar 2012, 02:39 PM
Hello. I'm a new Test Studio user, now using a trial version,
Can anybody advice me, how i can manually, in code, set current step as failed?

Thank you.
Eugene

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 30 Mar 2012, 06:17 PM
Hello Evgeniy,

The normal approach is to use one of our many Assert methods. This is exactly what all of our standard verification steps do under the covers.

This can also be done by using the following code in coded step:

throw new Exception("This is an error message!");

Should you have any additional questions please let us know.  All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Asked by
Evgeniy
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or