In my scenario, i need to validate if there exists 10 objects in a page.
If any of the object doesn't exists, then the step should be failed and eventually the scenario should also be reported as failed, but the script execution should continue to validate the remaining object exists.
I know scenario.getStatus()
give if the scenario is failed, but how can i set the status of the scenario to failed? Importantly the script execution should continue afterwards.