Scripting and Regression Testing Variables


APPX_SCRIPT_IN

“Plays back” all keystrokes recorded in it into the invocation of the APPX engine, as if the user had manually pressed these keys. It also substitutes any “#$word” sequences it finds in APPX_SCRIPT_IN with the current value of the environment variable denoted by “word”. For example, #$USER becomes “michael” if the environment variable USER is set to “michael”.

Valid values: path to an existing script file

Default value: not set

 

APPX_SCRIPT_OUT

Records all user keystrokes (and selected Processes executed in the program flow) into an output file. This file is quite readable and is editable for the use of APPX_SCRIPT_IN (described above). It is initialized upon entering APPX. It is not populated until APPX is successfully exited.

Valid values: path to an existing script-recording file

Default value: not set

 

APPX_SCRIPT_STEP

Causes APPX to pause before each APPX OPTION key is sent from APPX_SCRIPT_IN. While paused, you can press certain keys to do special processing:

·    c = continues running the remainder of the script without stepping

·    p = pauses and lets the user take over the keyboard until ‘Ctrl-r’ is pressed

·    e = terminates the script playback and lets the user take control of the session

Any other key will step forward in the script until the next APPX OPTION key is encountered.

Valid values: 1

Default value: not set

 

APPX_SCRIPT_STOP

Specifies the behavior of APPX when running with APPX_SCRIPT_IN set, and performing regression testing. When set to “ALL”, it causes APPX to exit when a recorded screen differs from an actual screen generated during regression playback. When set to “STATUS”, it causes APPX to exit when a recorded screen’s status area differs from the status area of an actual screen generated during regression playback.

Valid values: ALL or STATUS

Default value: not set

 

APPX_TST_DIR

Points to a directory that can capture screen images. If this variable is set, APPX records every screen image it encounters into this location. If you are running with APPX_SCRIPT_OUT set, it stores the images in a subdirectory named “expect”. If you are running with APPX_SCRIPT_IN set, it stores the images in a subdirectory named “actual”. The screens themselves are saved in files with a name starting with “screen000”; the last three digits are incremented for each successive screen.

Valid values: any write-enabled directory that contains write-enabled subdirectories named “expect” and “actual”

Default value: not set