Geeks Talk

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.

Loadrunner Basics

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

Go Back   Geeks Talk > Software Testing > LoadRunner
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2008
Junior Member
 
Join Date: Feb 2007
Location: chennai
Posts: 9
Thanks: 0
Thanked 2 Times in 1 Post
prajeshbe is on a distinguished road
Loadrunner Basics

Before recording a script for a scenario, what are all the things we need to concentrate from our side
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-20-2008
Junior Member
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
darluqman is on a distinguished road
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.
Reply With Quote
  #3 (permalink)  
Old 05-21-2008
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 354
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
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
Reply With Quote
  #4 (permalink)  
Old 05-28-2008
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Srinivas36 is on a distinguished road
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
Reply With Quote
  #5 (permalink)  
Old 05-29-2008
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 354
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
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
Reply With Quote
  #6 (permalink)  
Old 10-24-2008
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rayamajhid is on a distinguished road
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
Reply With Quote
  #7 (permalink)  
Old 10-29-2008
Junior Member
 
Join Date: Jan 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
maarthala is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Software Testing > LoadRunner

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 04:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved