getErrorTextForLastFailedInstruction (Exception Handling)
Compatible with:
- Purpose
- This command allows to retrieve the error text of the last failed instruction and also optionally pass command name in the value field. If command name is passed then it returns the error text of the last failed command.
- Syntax
- getErrorTextForLastFailedInstruction(variableName, CommandName(Optional))
- Target
- Variable Name - This variable holds the error text
- Value
- Command Name (Optional)
- Return Value
- The Error Text of the last failed command in the Test Run.