Define a new error page
Procedure
-
To add a new Custom Error Page definition, click (or, to edit an existing one, select it and click ).
The Custom Error Page dialog box appears.
- In the Type list, select:
- String: Match a string found in the HTML content of your error pages.
- Regular Expression: Match a regular expression found in the HTML content of your error pages. You can open the Expression Test PowerTool by clicking button, to help you verify the syntax of the regular expression.
- URL: Match the URL of the response page.
- Page: Match the exact response page.
- In the Value text box, enter the string, regular
expression, or URL (relative path and filename).Important: Incorrect error page definitions may cause both "false positive" and "false negative" results, therefore when you add or delete error pages after the Test stage of a scan, the scan results should be updated.
- For tests where the previous definition indicated the success of a test, results can be updated by clicking Apply to Current Results
- For tests where the previous definition indicated the failure of a test, you must re-test.
- Click OK.
Any response that matches the string, regular expression, or URL will be recognized by AppScan® as an error page from now on.