Tuesday 30 July 2013

Best practices for creating scripts in VuGen using LoadRunner

In order to have a vugen script properly created, is necessary to ensure no errors or warnings are present, there are few other steps to complete to be able to consider that the script is properly developed.
This is a recommended checklist of the steps that should be complete for a script creation.
Note that this checklist has some items that only apply to web-based scripts and is optional to follow,
  1.  All values that should be correlated have been correlated.
  2.  Text checks (using web_reg_find) have been added before each web_url and web_submit_data function.
  3.  ContentCheck Rules have been added for all known error messages.
  4. All server requests (web_url, web_submit_data) are being measured with a transaction (lr_start_transaction, lr_end_transaction, lr_set_transaction).
  5.  Script runs without causing errors, and any warnings are due to legitimate reasons (e.g. download filters).
  6. File-based parameters have the correct “select next row” and “update value on” settings.
  7.  Correct runtime settings have been set. 
This means:
  • Action blocks have been weighted with correct percentages in Run Logic.
  •  Pacing intervals have been set to the correct value that will achieve target throughput with the given number of vusers.
  •  Full logging has been disabled, and size of “send messages only when an error occurs” lgo cache has been increased.
  • Think time set to replay as a random percentage, and think time values in script are not ridiculously large. No think time inside transactions.
  •  Any needed download filters have been set.
  •  All other runtime settings have been set as per internal standards.

No comments: