Before recording a script for a scenario, what are all the things we need to concentrate from our side
Printable View
Before recording a script for a scenario, what are all the things we need to concentrate from our side
Following things need to be kept in mind before recording a script
1. Have you created the new vuser script for the same protocol which the real users will use For eg if real users are using HTTP/HTML or java Rmi then the vuser script also needs to be created with the same relavant protocol.
2. Newly created script should be saved in the hard disk
3. Have you given the correct URL of the web application and other basic settings like Record into action
Aside from these basic things the important things to conceterate are as following
We should record a scenario in such a way that it should emulate our real world business process for eg if our website deals in selling books then we should create a scenario for e.g
a vuser logs in, searches for his/her desired book, adds this book into shopping cart, enters his credit card information, purchases his book and logs off
so this is a complete real world scenario, so we need to create a script which should reflect exactly to our real world scenario in order to fullfil load test objectives
Hi Prajeshm
Just to add few points to those suggested by darluqman, during script creation we need to ensure -
1) While recording ensure Login part is recorded into Vuser_init, action part contains the actual functionality / navigation to be performance tested and Vuser_end contains the logout part. 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.
Correlation - You can enable Auto-correlation if you are not comfortable with LoadRunner. But Autocorrelation would not always work, hence Manual correlation is always preferrable.
3) Incase correlation is also complete, parameterize values like UserId, Passwrod and fields which would change for every iteration.
4) Once script enhancement is complete, execute the script for minimum 2 iterations in VuGen. Check whether all transactions pass.
Hope this info helps.....
Cheers...
[QUOTE=bizzzzzare;30291]Hi Prajeshm
Just to add few points to those suggested by darluqman, during script creation we need to ensure -
1) While recording ensure Login part is recorded into Vuser_init, action part contains the actual functionality / navigation to be performance tested and Vuser_end contains the logout part. 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.
Correlation - You can enable Auto-correlation if you are not comfortable with LoadRunner. But Autocorrelation would not always work, hence Manual correlation is always preferrable.
3) Incase correlation is also complete, parameterize values like UserId, Passwrod and fields which would change for every iteration.
4) Once script enhancement is complete, execute the script for minimum 2 iterations in VuGen. Check whether all transactions pass.
Hope this info helps.....
Cheers...[/QUOTE]
Hi Umesh,
Thank you very much for your input's.
Here i am trying to record one VUScript which is containing the activities like user will login in the site and then will select the particular department number,once the results were displayed he will logout from the site.
I am able to genarate the script successfully but when trying to replay it again it is failing with the Session Id problem and how i can use correlation in this instance.I already selected the correlation option but still didn't work
Please advise.
Thanks
Srinivas
Hi Srinivas,
It is absolutely true that the script is failing due to Co-relation issues. I would suggest you replay back the script with extended logging - Parameter Substitution as well as Data Returned by Server options enabled.
Go through the Execution Log to find out the Session ID or Dynamic value occurence.
Use the Web_reg_save_param function to specify the -
1) Name of Correlation Parameter
2) Left Boundary. (Capture the text which occurs prior to session id. It would mostly be a " or an <)
3) Right Boundary.
Once you have done that, replace the dynamic value with name of Correlation parameter.
Let me know if this helps or I shall send out an example to you.
Cheers....
I'm recording the email page to login and log out. How do I correlate this and how do I capture the seesionid for this procedure? I'm looking for help. Thanks
Hi Umesh,
I am not convienced with your points.Please find inline comments on it.
) While recording ensure Login part is recorded into Vuser_init, action part contains the actual functionality / navigation to be performance tested and Vuser_end contains the logout part. Ensure proper transactions, comments are included in the script.
Why Logiin Part should be in VUser_int. It is depend on the what kind of script he is planning and it is totaly business functionality. If my business action required to login everytime, then i dont need to put that in vuser_int.
Regards,
Surendra