Professional Documents
Culture Documents
Purpose
RTE Vuser operate terminal emulators in order to load test client/server systems.
You record a terminal emulator session with VuGen to represent a true user's actions. You
can then enhance your recorded script with transaction and synchronization functions.
The RTE protocol works like when you are sending data to server it would send one
character by character to DB. So when you are increasing the Load the Database can take at
one time one character for each user. So give more te wait time and increase the load
gradually instead of simultaneous users. If you are working on RTE means u are working on
Mainframe or oracle forms application
Introduction
An RTE Vuser types character input into a terminal emulator, submits the data to a server, and
then waits for the server to respond. For instance, suppose that you have a server that maintains
customer information for a maintenance company. Every time a field service representative
makes a repair, he accesses the server database by modem using a terminal emulator. The service
representative accesses information about the customer and then records the details of the repair
that he performs.
You use VuGen to create RTE Vuser scripts. The script generator records the actions of a human
user in a terminal emulator. It records the keyboard input from the terminal window, generates
the appropriate statements, and inserts them into the Vuser script. While you record, the script
generator
Automatically inserts synchronization functions into the script.
An RTE Vuser emulates the actions of a real user. Human users use terminals or terminal
emulators to operate application programs.
In the RTE Vuser environment, a Vuser replaces the human. The Vuser operates PowerTerm, a
Terminal emulator.
PowerTerm works like a standard terminal emulator, supporting common protocols such as IBM
3270 & 5250, VT100, VT220, and VT420-7.
Scripting Approach
Vugen can be used to record windows based Vuser scripts. VuGen uses the PowerTerm terminal
emulator to emulate a wide variety of terminal types
This task includes the following:
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
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 UNIX workstation.
7) Select Communication > Connect to display the Connect dialog box.
8) Under Session Type, select the type of communication to use.
9) For Terminal type 3270 Display, choose Terminal Type: 3270 Display, it will automatically set
the default settings like session type, Terminal ID, and Port number according to your terminal
type value, also you can change them according to your need.
10) Enter Host Name, which is given in Test Plan.
11) Click on Connect, it will connect to the server then follow the business flow given in test plan.
17) 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.
18) The terminal setup and connection procedure is complete. You are now ready to begin recording
typical user actions into the Vuser script, as described below
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.
When you record a script, the VuGen records all keyboard input and generates appropriate
TE_type functions. During execution, TE_type functions send formatted strings to the terminal
emulator.
For example, the following function depicts the input of the Return key followed by the Control
and y keys:
TE_type("<kReturn><kControl-y>");
Some other examples include: <kF1>, <kUp>, <kF10>, <kHelp>, <kTab>.
To determine a key name, record an operation on the key, and then check the recorded statement
for its name.
Note: When navigating through application flow and have to input F13 or F14 function keys
which are not available on your keyboard then use following key combinations
SHIFT+F1 for F13
SHIFT+F2 for F14
SHIFT+F3 for F15
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 VuGens main window.
Recording Options
You can set the recording options to match the character set used during terminal emulation. The
default character set is ANSI. For Kanji and other multi-byte platforms, you can specify DBCS
(Double-byte Character Set).
By setting the recording options, you can customize the code that VuGen generates for RTE
functions. You use the Recording Options dialog box to set the recording options
1.
2.
3.
4.
5.
6.
7.
8.
9.
Correlation
Best simple way of correlation in RTE scripts to use TE_get_text_linefunction. Insert this
statement at the location in script where the page having the required value will appear, Insert
this function just after that to capture the value/Text at the specified location.
This value then can be passed in subsequent request wherever its needed
The following statement reads five characters of text from the 12th row and 20th column of the
screen.
Char buf[50];
TE_get_text_line( 20, 12, 5, buf);
RTE Synchronization
Depending on the system you are testing, you may need to synchronize the input that a Vuser
sends to a terminal emulator with the subsequent responses from the server. When you
synchronize input, you instruct the Vuser to suspend script execution and wait for a cue from the
system, before the Vuser performs its next action. For instance, suppose that a human user wants
to submit the following sequence of key strokes to a bank application:
Synchronizing Block-Mode (IBM) Terminals
Synchronizing Character-Mode (VT) Terminals
system is in Input Inhibited mode. When a system is in the Input Inhibited mode no typing can
take place because the terminal emulator is waiting for a transfer of data from the server.
When you record a script on a block-mode terminal, by default, VuGen generates and inserts a
TE_wait_sync function into the script each time the "X SYSTEM" message appears. You use
VuGen's recording options to specify whether or not VuGen should automatically insert
TE_wait_sync functions.
When you run a Vuser script, the TE_wait_sync function checks if the system is in the X
SYSTEM mode. If the system is in the X SYSTEM mode, the TE_wait_sync function suspends
script execution. When the "X SYSTEM" message is removed from the screen, script execution
continues.
Synchronizing Character-Mode (VT) Terminals
There are three types of synchronization that you can use for character-mode (VT) terminals
1.
Run-Time Settings
Run time settings of RTE protocol can be set through RTE node in the Run-Time settings
Challenges
The following challenges are to be noted during RTE recording
As RTE protocol scripts records only key strokes so it demands knowledge of C language
and good scripting skills to correlation and do error handling in script.
Details of Terminal and Host.
Knowledge of how to correlate and parameterize in RTE scripts.
Must have error handling in script by capturing data and text by RTE functions to avoid
the script to go in failed state during the test.