Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Loadrunner Basics within the LoadRunner forums, part of the Software Testing category; Before recording a script for a scenario, what are all the things we need to concentrate from our side...
|
|||||||
|
|||
|
Re: Loadrunner Basics
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 Last edited by darluqman; 05-20-2008 at 09:13 PM. |
|
|||
|
Re: Loadrunner Basics
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...
__________________
Regards, V.Umesh Krishnan QA Consultant |
|
|||
|
Re: Loadrunner Basics
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 |
|
|||
|
Re: Loadrunner Basics
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....
__________________
Regards, V.Umesh Krishnan QA Consultant |
|
|||
|
Re: Loadrunner Basics
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| web_testing basics | lakshmi_bhas | Web Testing | 6 | 07-08-2008 10:05 AM |
| Basics of c | Niranj | C and C++ | 1 | 01-24-2008 02:35 AM |
| Testing basics | vanisridevi | Testing Issues | 2 | 10-01-2007 02:54 PM |
| C Basics | animitu | C and C++ | 1 | 09-18-2007 02:15 AM |
| I want to know the basics about SAP Module | bsrdhr | SAP R/3 | 3 | 03-09-2007 03:40 PM |