recording a script : we record the script using virtual user generator (vugen). start > programs > loadrunner > virtual user generator click the new button (alt f n). the virtual user generator window appears as follows.
select legacy > terminal emulation(rte). click ok. the following screen appears.
1
vugen generates a skeleton vuser script. the script is in 3 sections. vuser_init, action1 and vuser_end. now we record the script. before that we do some settings. go to tools > recording options. the recording options window appears. mark the prompt check box also.
2
click ok. now we can start recording as follows. select vuser > start recording. the following screen appears.
3
select communications > connect. set host name (172.20.80.252) and terminal type (3270 display) and click connect. see the following screen.
4
connect to ambattur machine tsoz. the following screen appears.
5
logon by giving user id and password. these parts will be recorded in vuser_init section of the vuser script. when the following screen comes. we recommend you to switch over to action1 section.
6
this can be done by clicking the down arrow beside vuser_init and selecting action1 as shown in the following screen.
7
you can record the following series of actions. ispf sdsf pre aa** =x after this we suggest you to record the rest of the commands in vuser-end section.
8
now we logoff. logoff when the following screen comes, stop recording, either by clicking the stop recording button (yellow button before vuser_init) or by going to vugen screen and selecting vuser > stop recording.
9
each vuser script contains atleast 3 sections : vuser_init ,one or more actions and vuser_end. you can create more actions by selecting actions > create from the vugen menu bar. the following table shows when each section is executed. vuser_init actions vuser_end
executed when the vuser is initialized executed when the virtual user is in running state executed when the vuser is finished or is stopped
*** end of the document ***
10