You use VuGen to record Windows-based RTE Vuser scripts. VuGen uses the
PowerTerm terminal emulator to emulate a wide variety of terminal types.
This task describes how to record RTE scripts. This procedure differs from
the general recording procedure
1 Record the terminal setup and connection
a Open an existing RTE Vuser script, or create a new one.
b In the Sections box, select the vuser_init section to insert the recorded
statements.
c In the Vuser script, place the cursor at the location where you want to
begin recording.
d Click the Start Record button. The PowerTerm main window opens.
e From the PowerTerm menu bar, select Terminal > Setup to display the
Terminal Setup dialog box.
f 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 UNIX
workstation.
g Select Communication > Connect to display the Connect dialog box.
h Under Session Type, select the type of communication to use.
i 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.
j 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.
2 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.
a Select the Actions section in the Section box.
b 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.
3 Record the log-off procedure
a Make sure that you have performed and recorded the typical user
actions as described in the previous section.
b In the VuGen main window, click vuser_end in the Section box.
c Perform the log off procedure. VuGen records the procedure into the
vuser_end section of the script.
d Click Stop Recording on the Recording toolbar. The main VuGen
window displays all the recorded statements.
e Click Save to save the recorded session. After recording a script, you
can manually edit it in VuGen’s main window.
PowerTerm terminal emulator to emulate a wide variety of terminal types.
This task describes how to record RTE scripts. This procedure differs from
the general recording procedure
1 Record the terminal setup and connection
a Open an existing RTE Vuser script, or create a new one.
b In the Sections box, select the vuser_init section to insert the recorded
statements.
c In the Vuser script, place the cursor at the location where you want to
begin recording.
d Click the Start Record button. The PowerTerm main window opens.
e From the PowerTerm menu bar, select Terminal > Setup to display the
Terminal Setup dialog box.
f 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 UNIX
workstation.
g Select Communication > Connect to display the Connect dialog box.
h Under Session Type, select the type of communication to use.
i 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.
j 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.
2 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.
a Select the Actions section in the Section box.
b 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.
3 Record the log-off procedure
a Make sure that you have performed and recorded the typical user
actions as described in the previous section.
b In the VuGen main window, click vuser_end in the Section box.
c Perform the log off procedure. VuGen records the procedure into the
vuser_end section of the script.
d Click Stop Recording on the Recording toolbar. The main VuGen
window displays all the recorded statements.
e Click Save to save the recorded session. After recording a script, you
can manually edit it in VuGen’s main window.
No comments:
Post a Comment