Results 1 to 7 of 7

Thread: Loadrunner Basics

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    9

    Loadrunner Basics

    Before recording a script for a scenario, what are all the things we need to concentrate from our side


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    1

    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 08:13 PM.

  3. #3
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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...


  4. #4
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Re: Loadrunner Basics

    Quote Originally Posted by bizzzzzare View Post
    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...

    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


  5. #5
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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....


  6. #6
    Junior Member
    Join Date
    Sep 2008
    Answers
    1

    Re: Loadrunner Basics

    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


  7. #7
    Junior Member
    Join Date
    Jan 2006
    Answers
    24

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact