Currently, you can only test for exceptions directly by checking the error code. So you can simply choose Exception at the type of data that is being tested (top left field in the outcome grid), and then provide the Onumber -20001 as the expected value.
If you want to check the error message, then:
- Add a new outcome
- Choose Expression as the type of data that was Changed by Program.
- Press the […] button below, set the type of the Expression to VARCHAR2.
- Enter the following code in the expression code window:
- Press OK and then decide how you want to test this string. You could test for equality ( = operator) and type in the entire string, you could choose “contains” and type in a portion of the string you want to match against.
Let me know if this does the trick.