A coded step will be set to "Fail" by throwing an assert. Any assert will do the job. Any code following the assert will not get executed. The rest of the test steps also will not get executed (unless your coded step is set to "Continue on Failure").
We recommend using our Assert class. There are many test conditions you can take advantage of which will conditionally fail the test if the condition being tested does not match. For example:
The above code will fail the test if the colors do not match.
To use the value of an extracted variable use code like this:
string newReq = (string)GetExtractedValue("varname");
You can also set the value of a variable in code like this:
All the best,
the Telerik team
for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!
Have you looked at the new Online User Guide
for Telerik Test Studio?