Tuesday, 26 March 2013

How do I measure business processes | Loadrunner Tutorial pdf


How do I measure business processes?

When preparing an application for deployment, you need to measure the duration of specific business processes how long does it take to log in, book a flight, and so on. These business processes are normally made up of one or more steps or actions within your script. In LoadRunner, you designate a series of actions you want to measure by marking them as transactions.
LoadRunner gathers information about the time it takes to perform a transaction and displays the results in color-coded graphs and reports. You use this information to see if the application meets the original
requirements.
You can manually insert a transaction anywhere in your script. The way to mark a user step as a transaction is to place a start transaction marker before the first step of the transaction and an end transaction marker after the last step.
In this section you will insert a transaction in your script to measure the amount of time it takes for the user to find and confirm a flight.
Open the script Basic_Tutorial which you created in Lesson 3. If it is still open you can select the tab displaying its name, otherwise you can open it from the File menu.
To insert a transaction:
1. Open the Transaction Creation Wizard.
Ensure that the Task pane is displayed (If not click the Task button). In the task pane under the heading Enhancements, click Transactions. The Transaction Creation wizard opens.

The Transaction Creation wizard displays thumbnails of the different steps in your script.
Click the New Transaction button. You are now able to drag the transaction markers and place them at their designated points in the script. The wizard now prompts you to insert a starting point for the transaction.
2. Insert a start transaction and an end transaction marker.
Using your mouse, place the marker before the third thumbnail entitled Search flights button and click. The wizard now prompts you to insert an end point.
Using your mouse, place the marker after the fifth thumbnail entitled reservations.pl_2 and click.
3. Specify a name for the transaction.
The wizard prompts you to enter a name for the transaction. Type find_confirm_flight and press ENTER.

You have now created a new transaction. You can adjust the starting point or end point of the transaction by dragging the markers to different points in the script. You can also rename the transaction by clicking on the existing name above the start transaction marker and typing a new one.
4. Observe the transaction in Tree View.
Go to Tree view by choosing View > Tree View or by clicking on the Tree view button in the toolbar.
Notice how the Start Transaction and End Transaction markers have now been added to the tree as new steps at the precise points where you inserted them.

No comments: