0% found this document useful (0 votes)
159 views13 pages

Is This Answer Correct ?

This document discusses how LoadRunner calculates response times differently than QTP. LoadRunner only calculates the response time from the server to the client machine, not including browser emulation time. So the response time recorded in LoadRunner will be faster than if run manually, because the manual time includes thinking time and browser loading in addition to the server response time.

Uploaded by

dhanayaramala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
159 views13 pages

Is This Answer Correct ?

This document discusses how LoadRunner calculates response times differently than QTP. LoadRunner only calculates the response time from the server to the client machine, not including browser emulation time. So the response time recorded in LoadRunner will be faster than if run manually, because the manual time includes thinking time and browser loading in addition to the server response time.

Uploaded by

dhanayaramala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 13

iness transaction, is run in LR and QTP (the response time= same for both 2 sec , No of user = 1).

Which tool would you


Loadrunner is preferred as it
gives the server side
stastics where as QTP gives onlt
the client side statistics

business transaction, which is run in the LR tool (takes 2sec), but when run manually (takes
explain??
2 second think time is added 0
during manual execution.

Is This Answer 1 Yes 4 No


Correct ?

Re: Consider a business transaction, which is run in the LR tool (takes 2sec), but when run manually (takes 4sec). Plea
explain??
This is because LR does not
calculate the time of browser
emulation (like QTP)....So it
only calculate the response
time from server to client's
machine( IP Address)..Not from
the server all the way to
client's
browser......Browser's
time depends on the machine's
configuration and performance
during the response of the
page.
ute set of multiple SQL queries in Load Runner? Which component in LR would be used to run the SQL Queries?
Follow below mentioned steps in order to
execute query
through LR script-

(1) Establish conn with DB


lrd_open_connection(&Con1,
LRD_DBTYPE_ORACLE, "bb",
"lion", "hammer", "", 0, 0, 0);

(2) Enter query


lrd_stmt(Csr1, "select ename from
employee where
(sal>=1000)\n", -1, 1, 1, 0);

(3) lrd_bind_col(Csr1, 1, &D21_ENAME,


0);

(4) Execute query


lrd_exec(Csr1, 0, 0, 0, 0);

(5) lrd_fetch(Csr1, -3, 1, 0,


PrintRow24, 0);
(6) lrd_close_cursor(&Csr2, 0);

(7) lrd_close_connection(&Con1, 0, 0);

ulate Elapsed Time in LoadRunner?


Elapsed Time = Ramp up time + Duration

During Scheduling you define both these


values and hence
can calculate. moreover you can see on top
right pan in
controller during running scenarios.
nario. Total no. of transaction you have to done 1,00,000 in 8 Hour duration. One transaction taking time to complete 6 m
s you will run on this test.
Answer is 1250 Vu.

Calcutaion-->
100000*6x/480 = 1250x. where x is Vu, 480 is
8 hrs.

u configure and analyse Memory leaks counters for .Net application.


Download a huge collection of consultancy email ids from
here..
http://cid-
0a1d530a0672c21a.skydrive.live.com/self.aspx/Consultancy/Con
sultancy%20Email%20IDs.doc

ndezvous point? When u apply this?


rendezvous pt means v use vuser in the
loadrunner all the
vuser meetingin a certain poit

rding script, Login in Vuserinit,Body in Action and Logout in Vuserend. Case2: recording Login,Body
in Action itself. Run both the scripts. What are the difference u will find? Is there any difference?
If it is in the Vugen, no diffrence, if it is in
the
Controller, then it will behave diffrent based
on the
iterations and duration provided.

ered Bug?
A Deferred bug would be a funtionality needed in
the
application which could have been missed by the BA
and is
raised as a BUG. An undeveloped funtionality which
would
can be deferred for future releases.
e.g : Think of a search engine and as the user
enters
letters the application should suggest words
accoridngly.
Incase the tester raises a bug saying that the
words should
be shown as a hint to the user. Since this
funtionality is
not yet developed it can be deferred to future
release.
Hope the question is answered.
you do the load test in your current project?
Hi, 0 Gu
Load Test is ideally done only
once, and only after all
the Functional Testing (UAT/SIT).

Otherwise, i could depend on


your client requirement.

Is This Answer 0 Yes


Correct ? 0 No

Re: How often you do the load test in your current project?
This also depends on the Project /
application demand.

For Example if the application is


like depends on the Data
that is going to change every day
with heavy fluctuations.
Then we will keep certain time
period (say 30 days) we will
test the LOAD during these 30 days
on every day to moniter
the performance behaviour of the
application.

elate the server side data, when u r getting more than one dynamic data which keeps on suffel
ay?
Here we have two way to correlate the 0 Arbind
value

1. Run an iteration of script and


click on scan for
correlation button. It will show the
value which need to be
correlated. Then click on correlate
button.

But some time this idea does not work.


In such case you need
to identify the value, it left
boundary and its right
boundary and the you can define your
definition for
correlation.

Is This Answer
Correct ? 1 Yes 0 No

Re: How to correlate the server side data, when u r getting more than one dynamic data which keeps on suffel during r
server side data correlation we will
do manually. first we
follow the bellow algorithm of manual
correlation.

1.Find a dynamic value to capture.


2.Find server's response, containing
the dynamic value.
3.Capture the dynamic value.Special
parameter will be used
instead of dynamic value.
4.Replace every occurrence of dynamic
value in script with
the parameter.
5.Check changes.

Find each step describe in details:


1.Find a dynamic value to capture: I
recommend to record
and save two equal VuGen scripts.
After that, open menu
item "Tools / Compare with Scripts"
and you can compare
both recorded scripts in WDiff.

2.The differences are highlighted by


yellow. This
highlighting means that lines
(parameters values) change
from run to run. So, most probably,
these values should be
correlated.

3.Find server's response, containing


the dynamic value
Before script executing, please enable
extended logging
from "Vuser / Run-Time Settings...":

4.Then execute script.Open Replay


(Execution) log and find
server's response, which contains
dynamic values.
5.Capture the dynamic value
I will show two ways how to capture a
dynamic value:
o Automatic capturing from Tree-view
o Manual from Script-view
These ways are similar enough. Also,
they use the same
function - web_reg_save_param.

ation need to be done when only one value need to be passed?


Parameterization can be bypassed if only the value
passed
will same always.

Keeping in mind reusability of script it would be


advisable
to parameterize it.

Else if there are time constarints/script is not


going to be
used/reused freq then it may be bypassed

ody mail me "[email protected]" regarding "How to monitor Unix Server" for performance testing
he commands in unix.How to add counters.
In the controller you need to add the unix 0
resources graph
which is available under the system resources
graph.for
monitoring unix resources you need to enable
the rstat
service in the machine you are going to
monitor

Is This Answer Correct ? 2 Yes 0 No

Re: Pls can any body mail me "[email protected]" regarding "How to monitor Unix Server" for performance testin
are the commands in unix.How to add counters.
there are many commands that can be used on
unix boxes to
monitor the resources
top,prstat - processor info(CPU Usage)
vmstat - memory info
netstat - network connection

you can add many arguments to this command to


monitor a
particular part.

talled LR 8.0v on my system and wanted to test siebel web application. when i tried to record the application throught si
e launcher tries to connect to that URL but after some time the URL gives as Page Cannot Be Displayed, the same URL w
lly it works fine. LR is not able to connect to the Application. What could be the reason?
check once the proxy of your system and the proxy
setting in
Vugen
Can anyone help me out in load testing? I need to test a web application in which 100 users has to login at a time and ente
ta into the application and logout. All the data should be saved in the data base Please let me know testing. Thanks in adv

Hi Giri,

First select the web protocal from protocals list.


Now record the script for your application.
Parameterization for the fields wherever u required.

For Eg. Cust ID - In recording time u entered customer id


as CUST-01 then select the CUST-01 from the script and
right click on that paramterize that field.

Execute the scenario with 100 Vusers in Controller. Once


completed the scenario, check the records in your
application.

nce testing how can we say perfomance is good or medium or bad please i need urgent answer
Based on the SLA ( Service Level Agreement ) you get from
the client. If it fulfills,its good.If it doesnt,then its
bad.If it is acceptable by the client,then medium..

w to know how to explain the load runner process please explain iam having the interivew
Load testing typically consists of five phases:
1) Planning 2)Script creation 3)Scenario definition 4)
Scenario execution and 5) Results Analysis.
> Plan Load Test - Define your performance testing
requirements, for example, number of concurrent users,
typical business processes, and required response times.
> Create Vuser Scripts - Capture the end-user activities
into automated scripts.
> Define a Scenario - Use the LoadRunner Controller to set
up the load test environment.
> Run a Scenario - Drive, manage, and monitor the load test
from the LoadRunner Controller.
> Analyze the Results - Use LoadRunner Analysis to create
graphs and reports and evaluate the performance.

"Extract from LoadRunner Tutorial - 9.5"


ou Calculate load / stress testing in manually ? Is there any Calculators are available? If yes Please send me the Formula
he tools Ex: load runner, JMetter, Silk Performer ……………………….calculating the load )
Hi Ratnakar Eda

First Take 5 systems( same configuration),

Open Browser( IE / FF) in all systems and Enter the “


google.com”, before click the “Enter / Ok / Go Button, Note
down the Time ( This Is Start Transaction Time )
Enter the “Enter / Ok / Go” Button , once the “Out put/
Google home page” is coming Note the Time ( This is End
Transaction Time)
Response time = End Transaction Time- Start Transaction
Time ( This is one system Response time)
Based on this calculation, calculate the Remain 4systems
5 systems Response time = 1 system Response time+2 system
Response time+3 system Response time+4 system Response
time+5 system Response time

Avg Response time := 5 systems Response time / 5


you Calculate load / stress testing in manually ? Is there any Calculators are available? If yes Please send me the Formula
he tools Ex: load runner, JMetter, Silk Performer ……………………….calculating the load )
100% it is Impossible
Must and should u can use Automation Tools ( like : HP Load
Runner , Silk Test )

nswers given for 90 percentile calcutaion in the analysis report. If i am running a test for 1 record how is the 90 percent
done.
Suppose you have 10 sec. for 90 percentile for
transaction "ABC". It means that 90 percent of the "ABC"
transactions have taken 10 sec. or lesser time during the
test execution.
capture the elapsed time of a scenario in a script?
There are couple of new functions added to LR9.1 version.
Please find in Vug help docs.

e Main Difference Between Http and Https


Https is for the 128 bit Secure connection, Http is 0 Satya
not.

Is This Answer Correct ? 3 Yes 1 No

Re: What is The Main Difference Between Http and Https


http is not secured connection
https is secured connection
https--->secured hypertext transfer protocol
s---->safety,security,socket

ain Differences Between Loadrunner 8.1 and Loadrunner 9.0


The main difference B/w LR8.1 And 9.0

1)few protocols are added in 9.0 like Ajax and some of


sap
protocols

2)Naming convention is different form 8.1 to 9 in


controller
Is This Answer Correct ? 3 Yes 0 No
user guide ?
dude here is the user guide which is very useful --
read it , i strongly suggest to have loadrunner in ur
rresume as its not understood by every test engineer
so it will put extra good remarks on ur resume
so read it frnds

http://rapidshare.com/files/165506832/loadrunner-USER_GUIDE.pd
o do Load Test on web application which is having 2 logins. i.e the first login will take to the some links the
uld be one time login due to the limitations. once login need to select one of the link which will take to the
ation. i have generated the script using Vuser_Init for first login when i am executing the scripts i am getting
i did correlation and did script in HTTP and web Click in either ways my script is not working can you
me to get this.
which type of error u r getting let we know, i think the
application will be developed other applications like
java,.NET etc....., and check u r scripting on HTML Based or
URL Based No Need to go for correlation for this login and
another way do parametrization for this Login.

ng to measure page load times in a web app. How do I verify that the page I go to next is fully loaded? Do I
verification (web_reg_find)? I am measure the time it takes for a page to load and then the user goes to
e and another and so on. I need to know how long it took for page one. How long it took for page two and so
ng transactions for each page, but I want to make SURE that the page is fully resolved/loaded before the
s to the next page. So, does LoadRunner automatically do this or do I have to use content verification or do I
e other way? Thanks, Brian
You need to record each new page as a transaction and use
web_reg_find() to verify if the page is actually getting
downloaded.
test the performance of a stand alone music player. It also interacts with web, for few of the functionalities.
Load Runner or Silk Performer for the same? Kindly guide me on this.
ya we can done by streaming media counter in controller

Navigation: goto controller Then run tab add counter


streaming media counter to mentors.

the active Screen Problem in loadrunner.While runnning the script active screen pop up is dispalying, always
sername and password.This popup having OK,Cancel and HELP buttons.After clicking any OK or CANCEL
n only it is moving to next step.What can i do? Please give any suggestion...
Hi Iam Veera, 09767694449

Ur script is not really having any problem, it is just


asking authonticated ID & PWD, I have ur app is having
windows NT authontication..

The solution is put web_set_user function at top section in


init scetion and provide the details in the function.

read help docs about web_set_user.


u call a different vuser script from another vuser script? Note: Former vuser script is already created and needs to be
first thing before other code in second vuser script is executed.
Your question will be more easy answer if get back with the
exact work flow

Try this

By inserting multiple actions in Vugen you can do that

After action 1 completes execution action 2 will starts


getting executing

V init()- Generally used for Login screen


action()1
.
. - Used record actual bussiness process
.
action()n

V.end() Ex. Logout or the last step

y need a substantial answer for one Q on Vusers - Performance Center. Hope you could help me. Q : My
s intended to undergo soon the load testing with performance center. The Vusers we planned are 100. But the
ys that we should use 100 different UserID/Password's & each Virtual user should login into a different account
g. Firstly, is this required ? my application can handle multiple logins for the same userid/password, hence is it
o use 100 different account when we can do the same test with one account. If so, for 1000 Vusers we cannot use
right ? I need substantial info to prove my point. Secondly, is this possible to assign a different userid/pwd to
user ? Thanks in advance & awating your reply Harsha
It depends on what kind of scenario you wanted to verify.
If each of Vuser is required to perform some transaction
like add/edit/delete then you need 100 diff user id and
password for simplicity.

Yes, it is possible to parameterize your script to assign


different userid/pwd

ll me what r the functions available in load runner and how to write userdefined functions and what are they?
hi
the functions start with lr_ r called load runner functions.
ex:lr_message()
lr_debug_messag()
lr_error_message()
lr_find_string()
lr_eval_string()
with in brackets there r some comments.for those ucan ake
the help of load runner.
user defined functions we have to write in vb.and stored in
load runner DLL directory.then we can use them in script
directly.

ems 1-windows,1-unix,1-linux,1-solaris. 100 vusers to 25 vusers each system. script was created in windows
i want to know how can i do this, do i need to install LR in all the systems ? please explain whole the scenario up
p by step---plz give answer only realtime...?
No need to in install LR on all the systems.
On window machine divide the 100 users to run on different
other machines...it will ask you to mention the name of
those machines. u have to take care that other machines
should be in same network.

0 iterations and 20 user, we have to execute 1 iteration by 2 users ... what are the steps for above ?
first of all we have to calculate iteration time in
vugenbased on thatwe have to set the scenario ramp up
,duration, rampdown.
in scenario creation we have to define
for ex in vugen for 1 iteration the time is 10 sec (login
2sec,action part of script6sec,lout of script2sec)
based on this we have to intialialise the vusers on to the
server like this
first 2 vusers starts when scenario begins then rest 18
users enter in following manner i.e
1)intialise 2 usersforevery 4 sec& runfor12 sce &rampdown
from the server after duration.this is scenario setting.
tle Neck u r forward to Developer or Network Team or Database Team Wat ever may be They r fixing that bottleneck
y r fix that Wat they Fix? Tell me if any Experience person I would be thankful to u
Thats good question lah ! So you are trying learn more keep
it up....

I just give a example from my project

1.Through put was high identified from the Load Runner (


data from server sent was high)

Fix given

So a compression filter is added in the Server side (


Servlet compression filter from Servlet2.3)

so that the data was compressed.Through put, Network delay


was reduced.

Appling the fixes, digging deeper for bottlenecks comes


under Performance Engineering

Here you need to know From front end to backend from


Appserver( Weblogic, WAS etc)...etc etc ,
Webserver ,Webservice.... to MQ server..... etc etc
cope where we can use this?wat is the purpose of this
The SiteScope graph displays statistics about the resource
usage on the SiteScope machine during the load test
scenario run.

The graph displays the percentage of memory resources used,


the number of pages read per second, and the CPU utilization
apture the database counters?
Using SQL profiler if u r using SQL server as a database

nner how to get the particular server response time?


Separate Monitors are available for server in applications
in Load Runner.

Simple you need to configure them properely

Examples for Monitors DB Monitor -Use DB resource graph


Web resource Monitors, Java performance monitors etc
Description: My current Project is a .net application & has Active X components also implements AJAX
or report generation. Flow : A report has to be generated as soon as the preferences have been selected. Issue
ttp/html) protocol in LR 8.1.4 and LR 9.1: Replay snap shot doesn't show any screens except the login
data is displayed instead of Reports)..And the last snap shot has "session expired" messsage. Issue with
nd Script) Able to record and replay sometimes...but no consistentency. Couldn't execute the script in the
ue to this incosistency. Any suggestions would be really helpfull.E-mail me for any further
s/information.
Sry i forgot add couple of thinks

1. Session expired ( Does ur application provide session


ID, if so correlate the session ID)

2. Reports ?
Are these reports are in PDF format. Then u need take
please attn to .pdf files in load runner
e know how to over come the problem of "monitoring the load generators over firewall". We are able to use
nes for load generation, but are not able to monitor the measurements of these machines. When tried to add these
the windows resources, we were getting the error "Monitor name :Windows Resources. Cannot connect to
esstestxp6:62043. Reason: The network path was not found." Also note that, we are able to ping/telnet the LG
ntroller, but not the vice versa Is there any router settings to be made or any other configuration has to be done?
Please check with your network team and ask them to open
connectivity between LR Box and Genrator boxes.This should
resolve your issue.
procedure to create test case in web performance load testing and how to download loadrunner and QTP
1. Identify the business transaction.
2. Script generation, debugging and enhancement.
3. Load test execution using controller
4. Result analysis.
5. Report generation.

You can download both of the software from HP site.

ch mark specifications in requirements?


It is a part of the requirments which defined minimum
accetpable performance numbers.
The numbers mentioned in the document for the KPIs define
the goal of a performance testing iteration for any
application.
nfigurations of both servers? Here what r two different servers.
according to industry standards

they two different server in any orginazation they are


1)application server
2)database server

u need to say the os(linux,solaries,Unix dont ever say


windows),ram ,memory,processer details of both server it
better to say we have a separate load generator
side authentications in loadreunner?
AS Per new HP Loadrunner it's Host ID for which michine is
controller installed.

arguments in lr_set_debug function


we are looking for some details reports of an error then
need to use lr_set_debug syntax. what happens is when we
this is that it gets the certain portion of the log
eration when an error comes up. Here when we are
cifying the syntax we need to specify which portion of
to be generated like FULL TRACE,Parametarization,
ended log,RESULTDATA.

_set_debug_Message(LR_MSG_EXTENDEDLOG|LR_MSG_CLASS_PARAM|LR_MSG_FULLTRACE|
MSG_CLASS_RESULT_DATA,LR_SWITCH_ON);

S IS AN IMPORTANT FUNCTION

tings while recording a script?


there two things you need to consider 0
1.Recording options
2. General options
these settings are depends upon your application
accordingly you have to select the settings

Is This Answer Correct ? 2 Yes 0 No

Re: )What r pre settings while recording a script?


proxy settings

Performer& Loadrunner?
h are for performance testing perpose
y, but silk
former can be used for
ctional(regression) testing
o.

web_submit_form is the regestration form which u have to fill


ng a mail_Id Example of web_submit_data is the login page
fields like user name & PWD. Is this correct answer for diff btn
_form&web_submit_data and their examples.
_submit_form(); is example for the HTML
ed Scripting
its post method function.

_submit_data(); is example for the url


ed Scripting
its post method function.

h fuctions(post method) are used to send


e privacy
a such as Username and password.

You might also like