GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Next Question 
 QTP  |  Question 1 of 674    Print  
Hi
I am new to load testing .Currently i am using Load runner 8.2.
i have recorded a script for login screen with some UID/PWD.In load runner Controller i have selected 100 Vusers,and i the run script.

My question is :
1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording.
2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.
3.)If i have selected 100 Vusers,is it necessary to enter 100 UID/PWD.
Regards,
vivek

  
Total Answers and Comments: 8 Last Update: November 06, 2007     Asked by: vivek 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vinsingh_2002
 

Hi Vivek,

1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording

Ans - Yes the same script is running.

2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.

Ans - Yes it is a valid case because it id not going to your DB to fetch records as it is only generating the load.

If you want to login as 100 different users then you have to paramterize the script and then pass 100 users in an excel.

3.)If i have selected 100 Vusers,is it necessary to enter 100 UID/PWD.
Ans - No it is not necessary.

Vivek it is a better practice that for any specific role(User Type) you may put the data in an XLS and then call that XLS in the program. This will imitate a real life condition.



Above answer was rated as good by the following members:
kaddalkumar, sheetal567, ajaysingh295
March 29, 2006 01:47:47   #1  
sheela        

RE: Hi I am new to load testing .Currently i am ...
1.Use For loop for executing same script for 100 times.2.It is not valid case.3. Not necessary.
 
Is this answer useful? Yes | No
May 08, 2006 04:56:26   #2  
vinsingh_2002 Member Since: May 2006   Contribution: 14    

RE: Hi I am new to load testing .Currently i am ...

Hi Vivek

1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording

Ans - Yes the same script is running.

2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.

Ans - Yes it is a valid case because it id not going to your DB to fetch records as it is only generating the load.

If you want to login as 100 different users then you have to paramterize the script and then pass 100 users in an excel.

3.)If i have selected 100 Vusers is it necessary to enter 100 UID/PWD.
Ans - No it is not necessary.

Vivek it is a better practice that for any specific role(User Type) you may put the data in an XLS and then call that XLS in the program. This will imitate a real life condition.


 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
June 20, 2006 03:59:28   #3  
Vimalkanth        

RE: Hi I am new to load testing .Currently i am ...

1) it depends on your script settings. As best practice you may want to have unique type selected for your parameterization.

2) Again this depends on your requirement. If you have 50 users in DB you can use the script in cyclic manner.

3) This is related to 1. if you have selected unique yes.


 
Is this answer useful? Yes | No
May 08, 2007 02:33:20   #4  
Shaik        

RE: Hi I am new to load testing .Currently i am ...
Question is :
1) Is the same script runs 100 times for same UID/PWD What I have entered during Recording.
Script doesn't run 100 times 100 Vusers run the same script Concurrently .

2) If my data base contains only 50 users. Selecting 100 Vusers is a valid case?
If your controller supports 100 vusers
you can run with 100 vusers.
Database doesn't play any role here.

3) If i have selected 100 Vusers is it necessary to enter 100 UID/PWD.
Not required that the work of the load runner to look after

Regards
Shaik


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 20, 2007 01:29:21   #5  
b.sainarayanarao Member Since: October 2007   Contribution: 6    

RE: Hi I am new to load testing .Currently i am ...
To my knowledge no. of vusers did not mean no. of times and it implies that the selected no. of vusers access the application at a time i.e. is called as Load. During the recording time what ever the inputs you used the load runner also uses same set of inputs for all the vusers.
 
Is this answer useful? Yes | No
October 25, 2007 01:38:30   #6  
kranthikiran        

RE: Hi I am new to load testing .Currently i am ...
1) Is the same script runs 100 times for same UID/PWD What I have entered during Recording.
Script doesn't run 100 times 100 Vusers run the same script Concurrently

 
Is this answer useful? Yes | No
October 30, 2007 02:03:37   #7  
Anshoo_Arora Member Since: October 2007   Contribution: 384    

RE: Hi I am new to load testing .Currently i am ...
There are different ways to look at this but I will try my best to narrow it down.

Answer 1. If your script is running for 100 iterations with the same Username and Password that means there is either no Parameterization or you have parameterized the script with the same Username/Password 100 times (but here I will ask Why??) and set the script to run 100 times (100 iterations). I cannot go into depth as your question isn't particularly clear.

Answer 2. Yes but again it depends on what you are trying to achieve. You can use those 50 users can have the script run sequentially for 2 iterations. You can also create 50 different Vusers which will be production-like.

Answer 3. No it is not necessary. Set your script to run 100 iterations.

 
Is this answer useful? Yes | No
November 05, 2007 21:50:10   #8  
Joe        

RE: Hi I am new to load testing .Currently i am ...

You are just practising LR as I see here.
To test the load on the system you must have a requirement first.
You have selected 100 VUsers. But you haven't mentioned how long you want to run and record the system performance. Basically if you just want to stress the system you don't need any parametrization just run the script and increase the VUsers as you like.
However if you are testing specific business scenarios and wants to get the performance readings you need to use values from a parameter file. If you give 100 user IDs and start LR with 100 VUsers LR will divide 100 values for 100 users and each user will get only 1 value. If your run setting says Stop Vuser after the available values are finished then your scenario will just run for a split of a second only.
So please read the parametrization and related topics before venturing anything further.
Joe


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape