Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.

Automated Test Framework use case: test a script include

Log in to subscribe to topics and get notified when content changes.

Automated Test Framework use case: test a script include

This use case illustrates testing a script include with the Automated Test Framework.

To test a script include with the Automated Test Framework, create a test that performs these steps:
  • a step that causes the system to execute the script include. Examples:
    • Run Server Side Script test step that calls the script include.
    • Form action step script – such as open a form, submit or form, or set a field value – that invokes the script include.
  • A step that validates that the script include took the expected actions. The specific test step for this validation depends on what the script include is designed to do. Examples:
    • Field values validation, if the script sets a field value
    • Field state validation, if the script changes a field state
    • Record Query, if the script generates a new record

This example shows a test with one test step: Run Server Side Script. The script associated with this test step calls a script include that returns the value of its argument plus three. If the value returned from the script include is 8, the script include has worked as intended and the test passes.

Figure 1. Automated Test to test a script include

Automated test to test a script include
Figure 2. Automated test step for testing script include

Run server side script test step
Figure 3. Script include to test with Automated Test Framework

Script include