To record an interactive terminal test, perform the following steps: 1. Pull down the Testing menu. 2. Choose the Record menu item and the Terminal... submenu item. 3. Fill in the appropriate fields and press the OK button. DTM begins the recording session by creating a task and displaying the DCL prompt. Every action during the session is then recorded until you end the recording session by typing CTRL/P twice. The Record functions record and place the input into a template file (filename.SESSION) and the output into a benchmark file (filename.BMK).
1 – rec_commands
Use the default termination character (CTRL/P) to suspend a recording session. You can then issue a Record control key sequence. The following table contains the Record control key sequences. Key Sequence Function CTRL/P B Starts an automatic screen comparison and ends a manual screen comparison for terminal- based tests. This control key sequence does not apply to DECwindows tests. CTRL/P ! Invokes a text editor so that you can enter a comment into the session file. You end the comment by pressing CTRL/Z. This control key sequence is not available for DECwindows testing. CTRL/P E Ends an automatic screen comparison and begins a manual screen comparison for terminal-based tests. This control key sequence does not apply to DECwindows tests. CTRL/P Ends the recording session and returns CTRL/P control to the previous command level. When you terminate a recording session this way, DTM saves the session and benchmark files. CTRL/P ? Displays the current screen comparison mode and lists the available recording functions. This control key sequence is not available for DECwindows testing. CTRL/P I Inserts an input file into the session file you are recording. DTM prompts you for the input file specification. Input files are available for interactive terminal tests only. CTRL/P C Marks a screen for comparison. This is the only way to mark screens for DECwindows tests. You must mark the specific screen that you want to compare for DECwindows tests. DTM automatically compares all screens for terminal-based tests. This control key sequence is used in terminal-based tests when automatic comparison is disabled. CTRL/P Terminates an interactive recording session, CTRL/Z saves the session file, creates (or modifies) the test description, but does not save the benchmark file. CTRL/P W Invokes a prompt for you to specify a wait time. You issue this control key sequence at the place in a session file that you want the wait to occur. When the session file is subsequently played or executed, the wait time is included in the session file. CTRL/P Aborts an interactive recording session CTRL/C without saving any of the generated files.
2 – cre_inp_fl
An input file is a text file that you can edit. DTM translates and writes all input, commands, and comments in a session file to an input file. You can use an input file to create a new session file from an existing session file for an interactive terminal test only. To create an input file, perform the following steps: 1. Pull down the Testing menu. 2. Choose the Extract... menu item. To use the input file to create a new session file, perform the following steps: 1. Pull down the Testing menu. 2. Choose the Record menu item and the Terminal... submenu item. The Record dialog box contains an Input file field for use with an interactive terminal test.