4.5 Java Script Library

The following key information helps you while executing JS Library:

  • The content of the Javascript Library is be available to all tests.

  • Javascript expressions can be executed in any field within a Test Action using the js: directive.

  • You may use Identity Validator variables within a Javascript expression. Note that you must include the variable token in quotes if the variable value is a string.

  • To use your own Java classes, place your custom jar into the lib/ext folder and restart Identity Validator 2.0, and then import your custom classes using the importPackage statement. For example: importPackage(org.jasypt.util.text)

  • See the Generic Actions Connector Documentation for more information.

The Java Script Library tab helps the users to create Java script functions in the Test Cases. Write the Java script functions and use it anywhere in the Test Suites. The option to manage Java Script methods in an Editor which will be used in the Test Suite that is available.

Figure 4-5 JS Library