Skip to content

continueRunFromLastFailedInstruction (Exception Handling)

Compatible with:
  • Purpose
  • In most of the applications, specifically e-commerce application, a popover shoots up at random places. You need to write explicit code or use the Exception Handler to handle these instances. But even after they put in due diligence, it so happens that they tend to show up failures because of the random popovers and the test run is shown as a failure.

    To account for this, a new command “continueRunFromLastFailedInstruction” is added. This command, when added to ExceptionHandler, will allow you to automate by not worrying about coding for pop over instances (when the close locator for pop over is the same). When the command is used in ExceptionHandler, the execution will continue from the last failed instruction by re-executing the instruction. If it fails for the second time, then the ExceptionHandler code is not to be invoked again to avoid the cyclic condition.
  • Syntax
  • continueRunFromLastFailedInstruction
  • Target
  • N/A
  • Value
  • N/A
  • Return Value
  • N/A

 


Feedback and Knowledge Base