ErrorpageTest

Summary

iserrorpage action is used to set true/false on a jsp page.

Positive Tests

positiveErrorPage Test: Set the value of iserrorpage to "true" on this page. Ensure that this page returns the value of the stackTrace of the Throwable from an error page. Now access a page that throws a specific exception. The second page's errorpage attribute should be set to the first page.

title ErrorpageTest
source ErrorpageTest.java
executeClass core_syntax.directives.page.errorpage.ErrorpageTest
executeArgs -TestCaseID positiveErrorPage -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

Negative Tests

negativeIsErrorPage Test: Set the value of iserrorpage to "false" in a page. Now try to access the "exception" variable of this page in a scriptlet.

title ErrorpageTest
source ErrorpageTest.java
executeClass core_syntax.directives.page.errorpage.ErrorpageTest
executeArgs -TestCaseID negativeIsErrorPage -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

negativeNoErrorPageBuff Test: Create a jsp page that contains an exception. Set its errorpage attribute to a second page. On the second page, set the buffer to "false" and iserrorpage to "true". Access the first page.

title ErrorpageTest
source ErrorpageTest.java
executeClass core_syntax.directives.page.errorpage.ErrorpageTest
executeArgs -TestCaseID negativeNoErrorPageBuff -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI