Date post: | 01-Jan-2016 |
Category: | Documents |
View: | 214 times |
Download: | 0 times |
Building Scripts
For HP LoadRunner >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Building Scripts
Introducing the Virtual User Generator (VuGen)The VuGen Window at a GlanceDeveloping a Vuser ScriptExample- HP WebTours WebsiteTree View and Script View>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Recording OptionsHTML based: Records script for every user action that is performed during recording
URL based: Records each and every browser request to the server and resources received from the server.
HTML mode is recommended for browser applications while URL mode is recommended for non-browser applications. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Start RecordingApplication Type: Internet Application type for web based applications e.g. Web/Oracle NCA.Win32 Application type for non-Internet Applications e.g. Windows Socket.
Program to record: Select the browser or Internet application to record.
URL Address: Specify the application URL address.>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Start RecordingScript consists of 3 sections
Vuser_init( ): Login to server
Actions: Clients activities
Vuser_end( ): Logoff>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Recording ScriptProvide the URL of the application and navigate through the scenario that is to be tested.
The script is automatically recorded in VuGen.>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Example- HP Web Tours WebsiteOpen the Start Recording dialog box. In the URL address box, type http://localhost:1080/WebTours. In the Record into Action box, select Action. Click OK.
>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Example- HP Web Tours WebsiteEnter payment information and book flight:Enter 12345678 in the Credit Card box and type 06/10 in the Exp Date box. Click Continue.
>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
Example- HP Web Tours WebsiteThe Itinerary page opens.Click Sign Off in the left pane.Click Stop on the floating toolbar to stop the recording process.
>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com
of 21