Fail a test, but do not report as failed
Posted: Mon May 20, 2013 4:29 pm
So here is what I am trying to do. I have a data source set up with different environments. I want to read from a data source and if the cell value is blank Fail the Test Case and jump to the next sibling. If it is succesful preceed to the child. It is working as I want, however it reports failures when even though its behaving how I want it.
What i want to know is how can I
A.Jump out of a recording to a sibling test
OR
B. Use the On fail logic to handle jumping but not report that the step failed.
public void CheckBlank()
{
if (String.Equals(DataSource,"")){
throw new Ranorex.ElementNotFoundException("Data Source Blank - Not a failure but jump to sibling test case", null);
}
else
Report.Success("User Specific Validation","Data source Values correct...continue with this recording");
What i want to know is how can I
A.Jump out of a recording to a sibling test
OR
B. Use the On fail logic to handle jumping but not report that the step failed.
public void CheckBlank()
{
if (String.Equals(DataSource,"")){
throw new Ranorex.ElementNotFoundException("Data Source Blank - Not a failure but jump to sibling test case", null);
}
else
Report.Success("User Specific Validation","Data source Values correct...continue with this recording");