SessionTest

Summary

The session directive indicates whether the page participates in an http session. Session is an implicit object and it is of type javax.servlet.http.HttpSession.

Positive Tests

positiveSession Test: Set the value of the session attribute to "true".Then try to access the implicit session object and call one of its methods.

title SessionTest
source SessionTest.java
executeClass core_syntax.directives.page.session.SessionTest
executeArgs -TestCaseID positiveSession -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

positiveSessionDefault Test: Do not set the value of session at all. Try to invoke a method on the implicit session object.

title SessionTest
source SessionTest.java
executeClass core_syntax.directives.page.session.SessionTest
executeArgs -TestCaseID positiveSessionDefault -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

Negative Tests

negativeSession Test: Set the value of the session attribute to "false".Then try to invoke a method on the implicit session object.

title SessionTest
source SessionTest.java
executeClass core_syntax.directives.page.session.SessionTest
executeArgs -TestCaseID negativeSession -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI