Whenever a team of performance testers grows larger than three people, then it is time to assemble the team and create some LoadRunner scripting standards (or guidelines if you prefer to be less strict).
Documenting your team’s scripting standards helps junior performance testers avoid common mistakes and follow best practices. Experienced performance testers benefit from having consistency between scripts, so there is less confusion when work is transferred between team members.
I have developed a short quiz so you can test your knowledge of some of the VuGen scripting best practices.
Before you attempt the quiz, you should read the following articles:
I have worked at some big companies that had clear LoadRunner scripting standards but still had teams of performance testers writing really bad VuGen scripts. Defining a scripting standard is a futile task unless there is a way to measure and encourage compliance with the standard. The only practical way to do this is with an automated checking tool.
I have developed the VuGen Validator, which checks scripts as they are uploaded to Performance Center and helps testers write better scripts. The quiz contains a small number of the guidelines that are checked by the Validator.
If you have your own best practice suggestions for VuGen scripting, please leave a comment.
6 Comments
Comments are closed.
It is common for VuGen scripting standards to require that each script has a standard header with the performance testers name and email address, a description of the business process steps, and any useful notes or caveats.
VuGen Script Templates are an easy way to ensure that all scripts start with a comment block containing placeholders to remind the performance tester to include this information.
so what is the correct code for the last question?
Generally, I would prefer that people wrote their LoadRunner string manipulation functions like this:
The code example can’t overflow the buffer (as long as you malloc the correct number of bytes), and the output is saved to a parameter instead of being returned as a pointer (to an area of memory that will go out of scope).
HI,
Thank you for your information.I am interested in loadrunner and have searched so many websites no where it is mentioned clearly that how to write scripting using c language.
If you have any materials to learn loadrunner easily please forward me.
my email id is rajeshchevronne@gmail.com
Dear Stuart Moncrieff,
I am sharath from India I have started learning loadrunner.
Can you please guide by sharing use full videos or scripts for beginner towards performance testing.
Thanks
Hi Stuart,
Could you explain briefly about client side rendering and page level response times?
why do we use Running vuser as a process and Running vuser as a Thread?is it for only memory consumption or something else?
Regards,
Veera.