Record RTE Vuser scripts
You use VuGen to record RTE Vuser scripts. VuGen uses the PowerTerm terminal emulator to emulate a wide variety of terminal types.
This task describes how to record RTE Vuser scripts. This procedure differs from the general recording procedure in Record scripts.
-
Record the terminal setup and connection
-
Open an existing RTE Vuser script, or create a new one.
-
In the Sections box, select the vuser_init section to insert the recorded statements.
-
In the Vuser script, place the cursor at the location where you want to begin recording.
-
Click the Start Record button
. The PowerTerm main window opens.
-
From the PowerTerm menu bar, select Terminal > Setup to display the Terminal Setup dialog box.
-
Select the type of emulation from the VT Terminal and IBM Terminal types, and then click OK.
Note: Select an IBM terminal type to connect to an AS/400 machine or an IBM mainframe; select a VT terminal type to connect to a Linux workstation.
-
Select Communication > Connect to display the Connect dialog box.
-
Under Session Type, select the type of communication to use.
-
Under Parameters, specify the required options. The available parameters vary depending on the type of session that you select. For details on the parameters, click Help.
Tip: Click Save As to save the parameter-sets for re-use in the future. The parameter-sets that you save are displayed in the Sessions List box.
-
Click Connect. PowerTerm connects to the specified system, and VuGen inserts a TE_connect function into the script, at the insertion point. The TE_connect statement has the following form:
/* *** The terminal type is VT 100. */ TE_connect( "comm-type = telnet;" "host-name = alfa;" "telnet-port = 992;" "terminal-id = ;" "set-window-size = true;" "security-type = ssl;" "ssl-type = tls1;" "terminal-type = vt100;" "terminal-model = vt100;" "login-command-file = ;" "terminal-setup-file = ;" , 60000); if (TE_errno != TE_SUCCESS) return -1;
The inserted TE_connect statement is followed by an if statement that checks whether or not the TE_connect function succeeds during replay.
Note: Do not record more than one connection to a server (TE_connect) in a Vuser script.
Back to top
-
-
Record typical user actions
After recording the setup procedure, you perform typical user actions or business processes. You record these processes into the Actions section of the Vuser script. Only the Actions section of a Vuser script is repeated when you run multiple iterations of the script.
When recording a session, VuGen records the text strokes and not the text. Therefore, it is not recommended that you copy and paste commands into the PowerTerm window—instead, type them in directly.
-
Select the Actions section in the Section box.
-
Proceed to perform typical user actions in the terminal emulator. VuGen generates the appropriate statements, and inserts them into the Vuser script while you type. If necessary, you can edit the recorded statements while you record the script.
Back to top
-
-
Record the log-off procedure
-
Make sure that you have performed and recorded the typical user actions as described in the previous section.
-
In the VuGen main window, click vuser_end in the Section box.
-
Perform the log off procedure. VuGen records the procedure into the vuser_end section of the script.
-
Click Stop Recording
on the Recording toolbar. The main VuGen window displays all the recorded statements.
-
Click
Save to save the recorded session. After recording a script, you can manually edit it in VuGen's main window.
Back to top
-