Presentation is loading. Please wait.

Presentation is loading. Please wait.

Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Similar presentations


Presentation on theme: "Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<"— Presentation transcript:

1 Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

2 Playing Back Scripts Configuring Replay options Configuring Display options Running Vuser Scripts in Stand-Alone Mode Output Window: Execution Log Run-Time Data Tab Viewing Test Results Debugging Script >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

3 Configuring Replay Options  You can run a Vuser script in animated mode or non-animated mode.  Animated Mode:  VuGen highlights the line of the Vuser script being executed at the current time.  You can set a delay for this mode, allowing you to better view the effects of each step.  Non-Animated mode: VuGen executes the Vuser script, but does not indicate the line being executed. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

4 Configuring Display Options  Show browser during replay:  Enables the run-time viewer.  The Auto arrange window:  Instructs VuGen to minimize the run-time viewer when script execution is complete.  Generate report during script execution:  Instructs a Vuser to generate a Results Summary report. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

5 Running Vuser Scripts in Stand-Alone Mode  Click Verify Replay > Start Replay button at the bottom of the instruction pane.  Alternatively you can press F5 or click the Run button in the toolbar.  After a few moments, VuGen opens a run-time viewer and begins running the script in either script view or tree view, depending on what you last had open. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

6 Running Vuser Scripts in Stand-Alone Mode  In the run-time viewer, you visually observe the Vuser’s actions.  When the script stops running, you can view a summary of the replay in the wizard. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

7 Output Window: Execution Log  VuGen displays successful steps in green and errors in red. For example, if your connection broke in the middle of the test, VuGen indicates the line number of the error and displays the whole line in red text.  Double-click a line in the Replay Log. VuGen takes you to the corresponding step in the script and highlights the step in script view. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

8 Run-Time Data Tab  You can track the script information that becomes updates during replay, using the Run Time Data tab. During replay, click the rightmost tab, RunTime Data. The tab contains two expandable/collapsible sections:  General: The general section shows the current iteration number, the Action name of the currently replayed step, and the line number within the script (Script view).  Parameters: The parameters section shows all parameters defined with the script and their substitution values based on the selected update method (sequential, unique, etc.). >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

9 Viewing Test results To view test results:  To return to the wizard click Verify Replay in the Task Pane. In the instruction pane under the heading Verification, click the visual test results hyperlink.  Alternatively, select View > Test Results. A new results window opens. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

10 Viewing Test results  Expand the branch Iteration 1 and then expand the Action Summary branch in the left pane by clicking the plus sign. The expanded branch shows a list of the steps performed in that iteration.  The top right pane of the Test Results window shows the step summary information: the object or step name, the details about whether the page loaded successfully, the result (Passed, Failed, Done, or Warning), and the time that the step was performed. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

11 Debugging Script  VuGen contains two options to help debug Vuser scripts  Run Step by Step command  Breakpoints  To view the Debug toolbar:  Right-click the toolbar area and select Debug. The Debug toolbar appears in the toolbar area. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

12 Debugging  The Run Step by Step Command:  The Run Step by Step Command runs the script one line at a time. This enables you to follow the script execution.  To run the script step by step:  Select Vuser > Run Step by Step, or click the Step button on the Debug toolbar.  VuGen executes the first line of the script.  Continue script execution by clicking the Step button until the script run completes. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

13 Debugging- Breakpoints  Breakpoints pause execution at specific points in the script. This enables you to examine the effects of the script on your application at pre-determined points during execution.  To set breakpoints:  Place the cursor on the line in the script at which you want execution to stop.  Select Insert > Toggle Breakpoint, or click the Breakpoint button in the Debug toolbar. Alternatively, press F9 on the keyboard. The Breakpoint symbol appears in the left margin of the script.  To disable a breakpoint, place the cursor on the line with the breakpoint symbol, and click the Enable / Disable Breakpoint button on the Debug toolbar. A white dot inside the Breakpoint symbol indicates a disabled breakpoint. When one breakpoint is disabled, script execution is paused at the following breakpoint. Click the button again to enable the breakpoint. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

14 Debugging- Breakpoints  To remove the breakpoint, place the cursor on the line with the breakpoint symbol, and click the Breakpoint button or press F9.  To run the script with breakpoints:  Begin running the script as you normally would.  VuGen pauses script execution when it reaches a breakpoint. You can examine the effects of the script run up to the breakpoint, make any necessary changes, and then restart the script from the breakpoint.  To resume execution, select Vuser > Run.  Once restarted, the script continues until the next breakpoint is encountered or until the script is completed. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

15 Debugging- Bookmarks  To create a bookmark:  Place the cursor at the desired location and press Ctrl + F2. VuGen places an icon in the left margin of the script.  To remove a bookmark, click on the desired bookmark and press Ctrl + F2. VuGen removes the bookmark icon from the left margin.  To move to the next bookmark, click F2.  To navigate to the previous bookmark, click Shift + F2. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

16  Execute the script with 3 sec Animated Run delay.  Execute the script and notice the Execution Log, Recording Log and Generation Log.  Expand the tree view in Test Results and notice the Passed and Failed transactions.  Execute the script step by step.  Insert Breakpoints in the script and observe how they works. Manage them using Breakpoint manager.  Insert Bookmarks in the script. Questions - To Review Your Skills >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

17 Thank You >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<


Download ppt "Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<"

Similar presentations


Ads by Google