Skip to content

setMarkerForPointOfFailure (Exception Handling)

  • Purpose
  • This command will mark a point of failure within the executed test by setting the execution outcome of a test instruction that uses this command to 'failed'. Such instructions will then appear as a failed instruction on the test execution details screen and reports like the test cycle level transactional details report.

    You can optionally pass into the 'target field of the test instructions that contain this new command ether a variable that contains the error text or a constant string that holds the error text you want shown on the mouse over on the failure indicator icon. If you do not pass any value into the 'target' field, Worksoft SaaS will automatically populate as the error text for the instruction the result of the command 'getErrorTextForLastFailedInstruction'.

    A real-time screenshot will automatically get captured for the test instruction that uses this new command..
  • Syntax
  • setMarkerForPointOfFailure(variableName|constant)
  • Target
  • variableName|constant
  • Value
  • NA
  • Return Value
  • NA
 

Feedback and Knowledge Base