LoadRunner and Performance Center
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: New HP Best Practices Document: "Load Testing Scenarios Best Practices"

Anonymous_User1

Hi foragger,

 

Keeping the original think time values as they were recorded allows LoadRunner to accurately reproduce the user's session. If you need to vary the think times at playback, you can use the Run Time Settings options for think time, and have the change applied uniformly to all think times in the session.  The options allow you to:

  • Ignore the think time
  • Replay the think time as specified in the call to lr_think_time;
  • Increase or decrease the replay time uniformly by defining a multiple of the recorded think time;
  • Increase or decrease the replay time randomly by defining a random factor to be applied to the recorded think time.
  • Limit the think time to a maximum value

So the recommendation is to use the Run Time Settings to manage variations in think time, rather than applying logic in the script to manipulate the think times.

About the Author

Anonymous_User1

Comments
NaveenKumar N

Useful resource. Thanks to HP!

foragerr

From the document:

 

Use hard-coded think time values.

 

 

Why is this recommended?

Anonymous_User1

Hi foragger,

 

Keeping the original think time values as they were recorded allows LoadRunner to accurately reproduce the user's session. If you need to vary the think times at playback, you can use the Run Time Settings options for think time, and have the change applied uniformly to all think times in the session.  The options allow you to:

  • Ignore the think time
  • Replay the think time as specified in the call to lr_think_time;
  • Increase or decrease the replay time uniformly by defining a multiple of the recorded think time;
  • Increase or decrease the replay time randomly by defining a random factor to be applied to the recorded think time.
  • Limit the think time to a maximum value

So the recommendation is to use the Run Time Settings to manage variations in think time, rather than applying logic in the script to manipulate the think times.

Events
June 6 - 8, 2017
Las Vegas, Nevada
Discover 2017 Las Vegas
Join us for HPE Discover 2017 in Las Vegas. The event will be held at the Venetian | Palazzo from June 6-8, 2017.
Read more
Each Month in 2017
Online
Software Expert Days - 2017
Join us online to talk directly with our Software experts during online Expert Days. Find information here about past, current, and upcoming Expert Da...
Read more
View all