What you and your programmers will want to do is override the CleanUp() method in a code behind file. This won't actually appear as a custom step. The code will resemble this:
.ExecutionContext.TestResult.Result == ArtOfTest.Common.Design.ResultType.Fail)
// The test has failed. Perform any action needed on failure.
To add this using QA edition follow these steps:
- Open the test you want this code added to.
- Click Script Step - you can skip this step if you already have a custom coded step. This is just to get the code behind file created. We won't actually be creating a custom coded step.
- Click Class View to view the entire code behind file.
- Above the added "CodedStep" line add the public override method as shown above. You can skip the CaptureBrowser if you like. I put it in there just for demonstration purposes. You can now delete the entire CodedStep method that was added in step 2 above. We won't be using it.
The only caveat to the above I need to warn you about is that the CleanUp method is only called at the very end of a test run... i.e. after all iterations of a data driven test have been executed. Let me know if I can be of further assistance.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items