11-25-2020 07:23 AM
Hi All,
When the steps are skipped, the status of the sequence call for the steps was given the status as Passed. Is there any way to make the sequence call status to "Failed" when the steps inside are "Skipped". I had attached a snip of the result. Pls Help
A big Thanks in Advance!!!
11-25-2020 07:42 AM
I think you would need a specific test within the subsequence that tests to see if the step was skipped. You could add a PassFail Test after the step and use an expression like RunState.PreviousStep.Result.Status != "Skipped".
11-25-2020 10:00 AM
The reason the sequence is passing is because by default a sequence is passing. Since there was no test that failed the sequence passes.
What exactly are you trying to do here? Is the step skipped at run-time? If so why is it being skipped at run-time? If you have a condition that is dynamically skipping the step at run-time then you would want to set the SequenceFailed property at the same time if you want the sequence to fail.
If you want the test to fail if a developer sets the step to skipped and runs the test that is a different situation. In this situation you want to use a callback like PostResultListEntry and set to SequenceFailed property if any step is skipped.