Total Pageviews

Tuesday, August 21, 2012

Quick Start and Check- Script Recording in HP LoadRunner

Few useful pointers/Smoke Start - Script Recording in HP LoadRunner.

1) For a typical business scenario with login-action-logout,try recording Login part in Vuser_init, action part contains the actual functionality / navigation to be performance tested and Vuser_end contains the logout part. This enirely depends on the business scenario.It is also possible that you may record something else in vuser_init() as per your business requirement. As per good practice ensure proper transactions, comments are included in the script.

2) Once script recording is complete, replay the script with extended logging and data returned by Server enabled. This will help you identify any dynamic values which are returned by Server. Accordingly you would have to correlate the dynamic values.

3) Correlation - You can enable Auto-correlation if you are not comfortable with LoadRunner. But Autocorrelation may fail at times, hence Manual correlation is always preferrable.

4) Incase correlation is also complete, parameterize values like UserId, Passwrod and fields which would change for every iteration.Make sure you proper commnets in your scripts defininf what all changes you have made.

5) Once script enhancement is complete, execute the script for minimum 2 iterations in VuGen. Check whether all transactions pass.Check all the logs for any missing or broken links.

The above points will ensure that your first step is correct.Later in the script you can add more complex enhancements.

No comments:

Post a Comment