Share this page

# 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.

These tasks describe how to record RTE Vuser scripts. The procedure differs from the general recording procedure in Record scripts.

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.

To record the terminal setup and connection:

1. Open an existing RTE Vuser script, or create a new one.

2. In the Sections box, select the vuser_init section to insert the recorded statements.

3. In the Vuser script, place the cursor at the location where you want to begin recording.

4. Click the Start Record button . The PowerTerm main window opens.

5. From the PowerTerm menu bar, select Terminal > Setup to display the Terminal Setup dialog box.

6. 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.

7. Select Communication > Connect to display the Connect dialog box.

8. Under Session Type, select the type of communication to use.

9. 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.

   - See this knowledge base page for troubleshooting tips: How-to and troubleshooting guide for RTE Vusers

10. 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.

To record typical user actions:

1. Select the Actions section in the Section box.

2. 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.

To record the log-off procedure:

1. Make sure that you have performed and recorded the typical user actions as described in the previous section.

2. In the VuGen main window, click vuser_end in the Section box.

3. Perform the log off procedure. VuGen records the procedure into the vuser_end section of the script.

4. Click Stop Recording on the Recording toolbar. The main VuGen window displays all the recorded statements.

5. Click the Save button to save the recorded session. After recording a script, you can manually edit it in VuGen's main window.

## See also

- RTE protocol

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1-26.3 All View Local Help Center View Online Help Center Version: