LanguageTest

Summary

Defines the scripting language to be used. In JSP1.0 , the only defined and required scripting language is "java".

Positive Tests

positiveLang Test: Use a jsp directive in the page with the language attribute set to "java".

title LanguageTest
source LanguageTest.java
executeClass core_syntax.directives.page.language.LanguageTest
executeArgs -TestCaseID positiveLang -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

Negative Tests

negativeLangJava Test: Create two jsp directives on the same page with language attribute set to "java" in both cases.

title LanguageTest
source LanguageTest.java
executeClass core_syntax.directives.page.language.LanguageTest
executeArgs -TestCaseID negativeLangJava -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

negativeLangAny Test: Create two jsp directives on the same page with language attribute set to "java" in the first case and anything other than "java" in the second.

title LanguageTest
source LanguageTest.java
executeClass core_syntax.directives.page.language.LanguageTest
executeArgs -TestCaseID negativeLangAny -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

negativeNonJava Test: Create a page with a scriptlet (before a jsp directive). Then put a jsp directive after the scriptlet with language not set to java.

title LanguageTest
source LanguageTest.java
executeClass core_syntax.directives.page.language.LanguageTest
executeArgs -TestCaseID negativeNonJava -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

negativeLangIncludeAny Test: Create a page with the language attribute set to "java" and with an include attribute. The included page should have a jsp directive with language attribute not set to java.

title LanguageTest
source LanguageTest.java
executeClass core_syntax.directives.page.language.LanguageTest
executeArgs -TestCaseID negativeLangIncludeAny -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI

negativeLangIncludeJava Test: Create a page with the language attribute set to "java" and with an include attribute. The included page should have a jsp directive with language attribute set to java.

title LanguageTest
source LanguageTest.java
executeClass core_syntax.directives.page.language.LanguageTest
executeArgs -TestCaseID negativeLangIncludeJava -ServerHost $servletServerHost -ServerPort $servletServerPort -UrlMaps $servletMaps
keywords positive extensionAPI