柳絮飞,不是因为它知道未来还可以用心创造,而是它曾做过的,注定是种遗憾,也许牵绊一生……

LoadRunner基础面试50问50答zz

上一篇 / 下一篇  2009-08-06 22:03:32

Learn Basic Introduction & preliminaries of HP –LoadRunnerthrough FAQ’s:

a]4P}mze271416

Q. 1: What is the process of manual correlation in LoadRunner?51Testing软件测试网H6X Ks,o(|E#}2U0t&t

9n'R*T } z9W271416It is the method adopted for capturing the dynamic data resulting from the server responses & further reusing it in the script. It can be done in two ways like:

uq.{']#PG27141651Testing软件测试网/P!S4M%k1C]

1.Manual correlation

s"SC F] O5vxn ^C27141651Testing软件测试网(xD H1HR-`}

2. Auto Correlation51Testing软件测试网'L\#Q8N9pa8__

Eb {i7{X271416<<<<<< =================== >>>>>>51Testing软件测试网A%TL%uD)WU

Q. 2: What is the Loadtestingprocess in LoadRunner?51Testing软件测试网8b$_+XmAQ"U~

j/IV7K-oU6Mi'd271416Step 1:Planning thetest:Involves development of a clearly defined test plan to ensure that the newly developed test scenarios are able to accomplish the load-testing objectives.51Testing软件测试网J Rr.t,SV

&k8z E$@zS"]y271416Step 2:Creation of Vusers:Involves creation of Vuser scripts which contain various tasks performed by every Vuser, tasks performed by Vusers as a whole, and tasks measured as transactions.

5cDOkz3z u271416

&PKYQ`[7S[:f271416Step 3:Creation of the scenarios:A scenario describes the events that occur during a testing session. It includes a list of machines, scripts, and Vusers that run during the scenario. Scenarios are created by using LoadRunner Controller. We can create manual scenarios as well as goal-oriented scenarios. In manual scenarios, we define the number of Vusers, the load generator machines, and percentage of Vusers to be assigned to each script. Forwebtests, we may create a goal-oriented scenario where we define the goal that our test has to achieve. LoadRunner automatically builds a scenario for us.

!R[!{YW271416

hA5aQs/O7Wp w v271416Step 4:Running the scenario:The load on the server is emulated by instructing multiple Vusers to perform. the tasks simultaneously. Before the testing, we set the scenario configuration and scheduling. We can run the entire scenario, Vuser groups, or individual Vusers.51Testing软件测试网n wqe%MVni+K

km6eSAn-u2g271416Step 5: Monitoring the scenario:Scenario execution is monitored using the LoadRunner online runtime, transaction, system resource, Web resource, Web server resource, Web application server resource, database server resource, network delay, streaming media resource, firewall server resource, ERP server resource, and Java performance monitors.

%PC$b[,`)~:hG)L27141651Testing软件测试网HbO['Lp!uy K9j

Step 6:Analyzing test results:During scenario execution, LoadRunner records the performance of the application under different loads. We use LoadRunner's graphs and reports to analyze the application's performance.

8j'Qiu"Eh!M%M27141651Testing软件测试网6M v2_zL(i

<<<<<< =================== >>>>>>

n9?!q8Im#K271416

Q. 3 : When load and performance Testing are done?

t+_QD'_s271416

b x%{n2k` |R+@B271416Load testing is performed after the completion of interface (GUI) testing.

K5G#XBPj-~D27141651Testing软件测试网mA-\n.D7|

Single user testing focuses on functionality and user interface of a system component, while application testing focuses on performance and reliability of an entire system.51Testing软件测试网 d yrkv$T:hA

51Testing软件测试网8{#t6Hp:A'pe1px F.v

For example, a typical application-testing scenario might depict 1000 users logging in simultaneously to a system. This gives rise to issues such as what is the response time of the system, does it crash, will it go with different software applications and platforms, can it hold so many hundreds and thousands of users, etc.51Testing软件测试网-}x-K2d.U%X n.p[

"c/i;F o}3nc271416<<<<<< =================== >>>>>>

Sd1Ho;IR#N271416

Q. 4: What are the components of LoadRunner?

)Lt8J^ma d9wk*x27141651Testing软件测试网:R+DO"r"cB

The components of LoadRunner are The Virtual User Generator, Controller, and the Agent process, LoadRunner Analysis and Monitoring, LoadRunner Books Online.

Aj)j#{}271416

5\d%M-t$BCg271416<<<<<< =================== >>>>>>51Testing软件测试网)h3`DN }

Q. 5: What Component of LoadRunner are used for recording a Script?51Testing软件测试网d-jg l0BFz D/?

51Testing软件测试网F8~e&m9owEU

Virtual User Generator (VuGen) component is used to record a script. It enables you to develop Vuser scripts for a variety of application types and communication protocols.

ft$C)V R}4K `g*@27141651Testing软件测试网6G;m8K:|S8H9a`6[~

<<<<<< =================== >>>>>>

;MX l%a;N C s/p+~p)H271416

Q. 6: What is a rendezvous point LoadRunner?

9Q*X$rQ;k27141651Testing软件测试网9Ks+@'P_T

Rendezvous points are inserted into Vuser scripts to emulate heavy user load on the server.

9wd$XO*Sq27141651Testing软件测试网%[#rlM&KD9H0w(Mr|

Rendezvous points instruct Vusers to wait during test execution for multiple Vusers to arrive at a certain point, in order that they may simultaneously perform. a task. For example, to emulate peak load on the bank server, you can insert a rendezvous point instructing 100 Vusers to deposit cash into their accounts at the same time.

}(Ivy FZPubJ27141651Testing软件测试网Z8vB;Bl!J)Ts

<<<<<< =================== >>>>>>

0x$['eN(k a^27141651Testing软件测试网m ^rM,c

Q. 7: What Component of LoadRunner are used to play Back the script. in multi user mode?

8oJvARrP}[q271416

"Gy)Y5|3RE271416Controller component is used to playback the script. in multi-user mode. This is done during a scenario run where a vuser script. is executed by a number of vusers in a group.

W3C5`1M^?)\yE27141651Testing软件测试网-U9dy T1z}'p

<<<<<< =================== >>>>>>

P/VI0LUe271416

Q. 8: What is a scenario in LoadRunner?51Testing软件测试网itf:mQ+v\ _C,Vn

51Testing软件测试网%x8i(R,qw ~

A scenario defines the events that occur during each testing session. For example, a scenario defines and controls the number of users to emulate, the actions to be performed, and the machines on which the virtual users run their emulations.51Testing软件测试网5{xI+fT-Y3F

(M1RK/T6}$?6O p/p271416<<<<<< =================== >>>>>>

)gN%EQL u;K ~271416

Q. 9 : What is the recording mode for web Vuser script. in LoadRunner?51Testing软件测试网W5_GI A'A%g,Cnjc

51Testing软件测试网(y3j,cX Y qS

We use VuGen to develop a Vuser script. by recording a user performing typical business processes on a client application. VuGen creates the script. by recording the activity between the client and the server.51Testing软件测试网d"k:`-X~MK

q"K sX:ewG%lN-G271416For example, in web based applications, VuGen monitors the client end of the database and traces all the requests sent to, and received from, the database server. We use VuGen to: Monitor the communication between the application and the server; Generate the required function calls; and Insert the generated function calls into a Vuser script.

bnN/_4]v27141651Testing软件测试网R0YY[V+d:CO

<<<<<< =================== >>>>>>51Testing软件测试网,?'wYe6_X+[

Q. 10: Why do we create parameters in LoadRunner?

7b2T oz)I271416

Parameters are like script. variables. They are used to vary input to the server and to emulate real users. Different sets of data are sent to the server each time the script. is run. Better simulate the usage model for more accurate testing from the Controller; one script. can emulate many different users on the system.51Testing软件测试网$u_ u j;Geo{Z-MJ

Q. 11: What is a correlation in LoadRunner?51Testing软件测试网*UY#CSa"v

51Testing软件测试网 \C7{-Q0f

Correlation is used to obtain data which are unique for each run of the script. and which are generated by nested queries. Correlation provides the value to avoid errors arising out of duplicate values and also optimizing the code (to avoid nested queries).51Testing软件测试网Yx-C'V J3x'K?

z&@#e#N RZ*Q271416Corelations are of two types like :51Testing软件测试网6u;D*e `)E&at;n

51Testing软件测试网*hCBV S*O[1|\ei

1) Automatic correlation iinvolves setting of some rules for thecorrelation. It can be application server specific. Here values are replaced by data which are created by these rules.51Testing软件测试网 imWw T&F J

51Testing软件测试网ney!FX]`T(u

2) Manual correlation, the value we want to correlate is scanned and create correlation is used to correlate.

Q/d H,uc"p{.R27141651Testing软件测试网h3k'UW$]!s[H!j

<<<<<< =================== >>>>>>

$X6x+`RQ$j27141651Testing软件测试网1F.`I)lg

Q. 12: How can we find out as to where correlation is required in LoadRunner?51Testing软件测试网a`dK'VF0d

There are two ways to find out the place of use of corelation51Testing软件测试网4]-N s Vqz[

51Testing软件测试网3z,jz9]!`^

1) We can scan for correlations, and see the list of values which can be correlated. From this we can pick a value to be correlated.51Testing软件测试网/~p{9W+g

g/S,e3Xba(n2714162) We can record two scripts and compare them.

o2_ |3G b-QF.x)mG27141651Testing软件测试网9zJ%^'m7\:m

<<<<<< =================== >>>>>>51Testing软件测试网X9}/t0w Db*Pg(D

Q. 13: Where can we set automatic correlation options in LoadRunner?

{!C)KG'~8a6YS271416

L&G@qp271416We can set the automatic correlation from web point of view in recording options and correlation tab. Here we can enable correlation for the entire script. and choose either issue online messages or offline actions, where we can define rules for that correlation.

.q_S/};w271416

4tg E,S$p3eF?6S(D{271416Automatic correlation for database can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlated, we just do create correlation for the value and specify how the value to be created.

6w.s@b)YJh'J;K27141651Testing软件测试网8PC ^es L M#^`k

<<<<<< =================== >>>>>>

;v`s&CY/Jr^27141651Testing软件测试网z:FQ!X"W-y!pQ`ok+f

Q. 14: What is the function to capture dynamic values in the web Vuser script. in LoadRunner?

Y A\:{ze2uFi271416

MA+ml(k,]Lf#U G271416Web_reg_save_param function saves dynamic data information to a parameter.

Fm P~ D271416

R/yr"O)kYn `,sZ'L271416<<<<<< =================== >>>>>>51Testing软件测试网-CS#?!F*X

Q. 15: When do you disable log in Virtual User Generator in LoadRunner?

l&s'V_ o)A,K,f_)O271416

zW/[0C E4g z271416Once we debug our script. and verify that it is functional, we can enable logging for errors only. When we add a script. to a scenario, logging is automatically disabled.

a+G1[l]*_w$F27141651Testing软件测试网vVEmq{v

<<<<<< =================== >>>>>>

oJ/~/d'pE^'M9o271416

Q. 16: When do we use standard and extended logs in LoadRunner?

*uaj jW3N!e271416

f6[d/Yi271416Standard Log Option: It creates a standard log of functions and messages sent during script. execution to use for debugging.

0VE)Wz)N'@B q']9u271416

6Ysp6a:D271416It is suggested to disable this option for large load testing scenarios. When you copy a script. to a scenario, logging is automatically disabled.51Testing软件测试网yRuG?1I7\^+x&`,{

51Testing软件测试网?!Ruec7D

Extended Log Option: Is selected to create an extended log, including warnings and other messages. We can specify all additional information that needs to be added to the extended log.

RYF;V \[8\271416

B'N0mgT6@.T `%E271416<<<<<< =================== >>>>>>51Testing软件测试网1m&s]U7s

Q. 17: How do we debug a script. in LoadRunner?

q4E;]PCQ `27141651Testing软件测试网5qzQ5Q6r_ zJ(w

VuGen contains two options to help debug Vuser scripts-the Run Step by Step command and breakpoints.51Testing软件测试网 X#N*r-TCN9FC

51Testing软件测试网^ dEu9sQ)l

The Debug settings in the Options dialog box allow us to determine the extent of the trace to be performed during scenario execution.

&h M BP5ukC271416

2cW UD5pd n|/GMd271416The debug information is written to the Output window. We can manually set the message class within our script. using the lr_set_debug_message function. This is useful if we want to receive debug information about a small section of the script. only.

r ifVG m.R7i[/G27141651Testing软件测试网;I+y u.Jn(?

<<<<<< =================== >>>>>>

}u'R&Xi"}+]a271416

Q. 18:How do we write user defined functions in LoadRunner?51Testing软件测试网}fASNj*] m

!V?Yg!eI271416Before we create the User Defined functions we need to create the external library (DLL) with the function. We add this library to VuGen bin directory. Once the library is added then we assign user defined function as a parameter.

4h)z{0Qf0XC%K271416

L.o|$E1r{271416The function should have the following format: __declspec (dllexport) char* (char*, char). Few examples of user defined functions are GetVersion, GetCurrentTime, GetPltform. etc.

Hl)e$^/w;b2b271416

"I{/\$m%eiW:H oj271416<<<<<< =================== >>>>>>51Testing软件测试网y uD`;].kR

51Testing软件测试网 M"e(g-b-l1T-b

Q. 19: What are the changes possible to be made in run-time settings in LoadRunner?51Testing软件测试网m9Y#W|3Fg

51Testing软件测试网&}a0`r#j2hzD

The Run Time Settings are:

%m,S%\+U7N e271416

cw#hQ$kaQlv271416a) Pacing - Has iteration count.

8t%s.vdh J0XL27141651Testing软件测试网8n9[XV |

b) Log - Needs to Disable the Logging Standard Log51Testing软件测试网t'M$D6`0Dl;gv

K[4Dq]2T"D271416c) Extended Think Time - In think time there are two options like Ignore think time and Replay think time.

OZ%iX g271416

\ sV$i6zg271416d) General - Under general tab we can set the vusers as process or as multithreading and each step as a transaction.51Testing软件测试网 Lv+I!?8Y[*K;d6HO!w V

51Testing软件测试网)`i"C4Kd5Ei

<<<<<< =================== >>>>>>

3_C8z)i;e271416

Q. 20: Where do we set Iterations for Vuser testing in LoadRunner?51Testing软件测试网AM6i!I&o:a&s`t

51Testing软件测试网[+]Ws)Szj

Iterations are set in the Run Time Settings of the VuGen. The navigation for this is Run time settings, Pacing tab, set number of iterations.51Testing软件测试网&s)N_B4y4L.[-\

Q. 21: How do we perform. functional testing under load?

"tk!x)u/r7Z27141651Testing软件测试网N.K cE8AH [

Functionality under load can be tested by running several Vusers concurrently. By increasing the amount of Vusers, we can determine how much load the server can sustain.

x }5~` h([271416

*eO4si8U0`C271416<<<<<< =================== >>>>>>51Testing软件测试网"qs(_i$aS

Q. 22: What is Ramp up in LoadRunner?51Testing软件测试网;v%N0oO|%F

k tSv[%p271416It is an option is used to gradually increase the amount of Vusers/load on the server. An initial value is set and a value to wait between intervals can be specified. To set Ramp Up, go to 'Scenario Scheduling Options'51Testing软件测试网 Z2r{$liSQyP

51Testing软件测试网GR6Wa;]'dZ6q$W]]

<<<<<< =================== >>>>>>

7n0|1ag\ PW.p271416

5^9Bt_]J5h,V1[271416Q. 23: What are the advantages of running the Vuser as thread in LoadRunner?

/CFN u~/x5N#d }W271416

$QR.T0C*g%@Q R r271416VuGen provides the facility to use multithreading. This enables more Vusers to be run per generator. If the Vuser is run as a process, the same driver program is loaded into memory for each Vuser, thus taking up a large amount of memory.

'}(qg;wf'|;^"y27141651Testing软件测试网_ O @O`i

This limits the number of Vusers that can be run on a single generator. If the Vuser is run as a thread, only one instance of the driver program is loaded into memory for the given number of Vusers (say 100).

E*r!E |(W*Kbqp271416

6w1gf}4w(\&DWIp,Y271416Each thread shares the memory of the parent driver program, thus enabling more Vusers to be run per generator.

2`4X x3V*cB*m0d271416

oR2f-[ hM8C-K271416<<<<<< =================== >>>>>>51Testing软件测试网Q ~]rWy0G9g|

Q. 24: How can we stop the execution of script. when an error occurs?

K/A(\&fT_M27141651Testing软件测试网1DR2NX!h]&_:DY

The lr_abort function aborts the execution of a Vuser script. It instructs the Vuser to stop executing the Actions section, executes the vuser_end section and terminates the execution.

u1E8c|9H_'o"B271416

w?*sl,q1dN271416This function is useful when you need to manually abort a script. execution as a result of a specific error condition. When you terminate a script. using this function, the Vuser is assigned the status "Stopped". For this to take effect, we have to first uncheck the "Continue on error" option in Run-Time Settings.

4u7U}+^2Z&H27141651Testing软件测试网!x%N VuT:t

<<<<<< =================== >>>>>>51Testing软件测试网6lc U3D;m0Sf;L

Q. 25: What is the relation between Response Time and Throughput?

E9n8e+o3s'KwH27141651Testing软件测试网~RvPU!K/bcni

The Throughput graph shows the amount of data in bytes that the Vusers received from the server in a second.

?;A1|0f&D/M27141651Testing软件测试网$i`Kp7vO0B)y

When we compare this with the transaction response time, we will notice that as throughput decreased, the response time also decreased. Similarly, the peak throughput and highest response time would occur approximately at the same time.

AV w8M ~3jI~'LL27141651Testing软件测试网9n Dk&`)GC4y

<<<<<< =================== >>>>>>51Testing软件测试网#Z}|T U1~

Q. 26: What is the Configuration of systems in relation to the LoadRunner?51Testing软件测试网M_5f:zC#Z

51Testing软件测试网Y0zZ t w V{3m A({

The configuration of our systems refers to that of the client machines on which we run the Vusers.

Z2SMt;V/v)~ BC B z"r271416

Pt_9`"jx(a\ q X271416The configuration of any client machine includes its hardware settings, memory, operating system, software applications, development tools, etc.

.w|z5q J7J271416

9}-W d$yzG1M/? D271416This system component configuration should match with the overall system configuration that would include the network infrastructure, the web server, the database server, and any other components that go with this larger system so as to achieve the load testing objectives.51Testing软件测试网|6x JX?p

hW7T%u H"R X5T271416<<<<<< =================== >>>>>>

;]Hw2f0wiD271416

Q. 27: How do we identify the performance bottlenecks in LoadRunner?

$[G*H)\;pL5}27141651Testing软件测试网!cM|@@:q

Performance Bottlenecks can be detected by using monitors. These monitors might be application server monitors, web server monitors, database server monitors and network monitors. They help in finding out the troubled area in our scenario which causes increased response time.51Testing软件测试网k7V%rY&u2IM8t

51Testing软件测试网!Z}5Ah}8__+t7u

The measurements made are usually performance response time, throughput, hits/sec, network delay graphs, etc.

/LF/c3W{K)K27141651Testing软件测试网6`~O\d*yPb s4w

<<<<<< =================== >>>>>>51Testing软件测试网 rIMcz

Q. 28: How can we find out the web server related issues?51Testing软件测试网*gf]$l8d8H pt

51Testing软件测试网j|xWXqU e`

Using Web resource monitors we can find the performance of web servers. Using these monitors we can analyze throughput on the web server, number of hits per second that occurred during scenario, the number of http responses per second, the number of downloaded pages per second.51Testing软件测试网ae?6JO _

? lS~S dtd*F271416<<<<<< =================== >>>>>>51Testing软件测试网9? cK-Z`c2K%a t-h

Q. 29: How can we find out the database related issues?51Testing软件测试网h'|yYi$l

8gA/T S3Kw? hB{W.z271416By running "Database" monitor and help of "Data Resource Graph" we can find database related issues.51Testing软件测试网Y!~%PJHD9y{8y5_

&K9P$km'hh&Gf271416<<<<<< =================== >>>>>>51Testing软件测试网 VkD;H {

Q. 30: How do we plan the Load in LoadRunner?51Testing软件测试网%`p_;iK'T l\

0p-op(` c^271416Load test is planned to decide the number of users, what kind of machines we are going to use and from where they are run. It is based on 2 important documents, Task Distribution Diagram and Transaction profile.51Testing软件测试网9yZ3KE6]3?0K;K

51Testing软件测试网O+`{6\Y Y-dKoE

Task Distribution Diagram gives us the information on number of users for a particular transaction and the time of the load. The peak usage and off-usage are decided from this Diagram. Transaction profile gives us the information about the transactions name and their priority levels with regard to the scenario we are deciding.51Testing软件测试网!v w:k\rz

Q. 31: What is the purpose of vuser_init action in LoadRunner?

QmC4?7_1@3_271416

]]:ks3l3L*f271416Vuser_init action contains details of procedures to login to a server.51Testing软件测试网G2v~_^8O-T

51Testing软件测试网vma G.[6L'h D

<<<<<< =================== >>>>>>

/fW"OrVz7OtC271416

Q. 32: What is the purpose of vuser_end action in LoadRunner?

J:pvNk[;Gci L271416

Q'T-l)yR6_`E271416Vuser_end section contains details of log off procedures.51Testing软件测试网;I+t;^I5`5JZ

YB)iUSg271416<<<<<< =================== >>>>>>

z ryb-EuQ1G271416

Q. 33: What is think time in LoadRunner?51Testing软件测试网c/n/}'\s

51Testing软件测试网T)_V hb;Q*pJrd.~

It is the time that a real user waits between two actions.

2x3k[H }271416

Jl.u,X%_AVD271416For example: When a user receives data from a server, he may need to wait for some time may be several seconds to review the data before responding. This time delay is known as the think time.51Testing软件测试网)o"LrNqth8H.H

51Testing软件测试网*`'slK/^)MQ2w

<<<<<< =================== >>>>>>51Testing软件测试网QU%\zpY

Q. 34: What is think time threshold in LoadRunner51Testing软件测试网 Zg L{ |F$]%h.NVcoXN

JT^-Z;A(s271416Threshold level is the level below which the recorded think time will be ignored. The default value is five (5) seconds. We can change the think time threshold in the Recording options of the Vugen.

Q'mES9W(Hh271416

~n7Y'N0l/E r0h3s271416<<<<<< =================== >>>>>>51Testing软件测试网 `Uun%]uc f

| L[JG8pr+\271416Q. 35: What is the difference between standard log and extended log in LoadRunner?51Testing软件测试网MLAK?w5H

v_ t7z0}B(w Jl/u271416The standard log sends a subset of functions and messages sent during script. execution to a log. The subset depends on the Vuser type.

p'CR Wn)[2Y271416

0N/wNI\w@}271416Extended log sends a detailed script. execution messages to the output log. This is mainly used during debugging when we want information about parameter substitution, data returned by the server & advanced trace.

"S(U6Ot^;|27141651Testing软件测试网|J!A.mUf

<<<<<< =================== >>>>>>

.E}b:pwdEE7A271416

Q. 36: What is the purpose of lr_debug_message in LoadRunner?51Testing软件测试网s||XT(jE

0x'za#J.UL$i7p271416The lr_debug_message function sends a debug message to the output log when the specified message class is set.51Testing软件测试网1f f-G(t_-S c f$Rp

N8m c2{%G p&`N:x3k/x271416<<<<<< =================== >>>>>>51Testing软件测试网 P+W/Z8x`?9{-@M

Q. 37: What is the purpose of lr_output_message in LoadRunner?

"Ho+f3c.ku@h\Y271416

c |IY&\S%C0oY1`271416The lr_output_message function sends notifications to the Controller Output window and the Vuser log file.
I-tz"k:L7^*E271416
!taJIg9kO6k271416
<<<<<< =================== >>>>>>51Testing软件测试网.eSwn/F[3Z2{7AU

Q. 38: What is the purpose of lr_error_message in LoadRunner?51Testing软件测试网"r zDP Wk2Zh]s

51Testing软件测试网9Ue|"o,\U

The lr_error_message function sends an error message to the LoadRunner Output window.51Testing软件测试网*t,l}/wi

S pc-FBap7E?J271416<<<<<< =================== >>>>>>51Testing软件测试网 y Dv&^.R}QN

Q. 39: What is the purpose of lrd_stmt in LoadRunner?51Testing软件测试网2H:qh(^7w2i

.Q UEa&A wX4P;i271416The lrd_stmt function associates a character string (usually aSQLstatement) with a cursor. This function sets a SQL statement to be processed.

!sp8a&l:zZ }v271416

2M @N&eMcp271416<<<<<< =================== >>>>>>

4n$XW$fhP|271416

Q. 40: What is the purpose of lrd_fetch in LoadRunner?

K!D7q \7|A9e!W-i27141651Testing软件测试网x1z&y lH6l

The lrd_fetch function fetches the next row from the result set.51Testing软件测试网^n1^@s

51Testing软件测试网&F5J#^{+e/{p

Q. 41: Waht are the various types of goals in a goal oriented scenario in LoadRunner?51Testing软件测试网b h] i J^5M?mht/?R

51Testing软件测试网(B d0J'~*TfXT {h

Load Runner provides five different types of goals in a goal oriented scenario:51Testing软件测试网8S mmAIb5qu3s(h

3PJ6y\7A2714161) The number of concurrent Vusers

/E$cP3Q/FE{Mh27141651Testing软件测试网*U,A#a@H$rB6yw

2) The number of hits per second

U8l4?#a{VR27141651Testing软件测试网b5JF;Oh/wj ~{

3) The number of transactions per second

FV2i4y;t)Wr4H27141651Testing软件测试网1Us9I&j#F,[P.JYL5E

4) The number of pages per minute51Testing软件测试网d4iZD?;t'[

51Testing软件测试网5h3{.bB'hO-n!bB7H

5) The transaction response time that you want your scenario

?,XD|'hh~ u ts271416

;F+m Vg(h.z*B271416<<<<<< =================== >>>>>>

Ht6P6DF271416

Q. 42: Where do we set automatic correlation options in LoadRunner?51Testing软件测试网#f+|QPOV5ni dSt`

51Testing软件测试网Bz;P|c*U

Automatic correlation from web point of view, can be set in recording options and correlation tab. Here we can enable correlation for the entire script. and choose either issue online messages or offline actions, where we can define rules for that correlation.51Testing软件测试网o:J5Vh$^2xT1O/Lk2z

51Testing软件测试网 te r9mHG+uShb\W

Automatic correlation for database, can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlated, we just do create correlation for the value and specify how the value to be created.

.A(?#gj\I271416

v#H5} [-N271416<<<<<< =================== >>>>>>51Testing软件测试网)m!X ilL&}`

/Oqe%b9wt;Co271416Q. 43: How can we capture dynamic values in the web vuser script. in LoadRunner?

qv6k*y!J271416

9Sbp s)X1rzX271416Web_reg_save_param function saves dynamic data information to a parameter.

WJ4VWo2O/x271416

W"Z?-E+S~ th*O7^(^%\271416<<<<<< =================== >>>>>>

*W OlX3P271416

'`S jqJ(S9Z271416Q. 44: How do we use the recording mode for web Vuser script. in LoadRunner?51Testing软件测试网h1|h-Gm lJx0a2z'j

51Testing软件测试网ep/q9[1s:\3H

We use VuGen to develop a Vuser script. by recording a user performing typical business processes on a client application. VuGen creates the script. by recording the activity between the client and the server.

] a|,H+T d.j-U{27141651Testing软件测试网 Wg]p6Ma8?H

For example, in web based applications, VuGen monitors the client end of the database and traces all the requests sent to, and received from, the database server. We use VuGen to: Monitor the communication between the application and the server; Generate the required function calls; and Insert the generated function calls into a Vuser script.

-t9^?0M'q:qI3Yn271416

w J*f3eK,s271416<<<<<< =================== >>>>>>51Testing软件测试网mGHz!Ob

Q. 45: What is the use of parameters in LoadRunner?51Testing软件测试网[*E*M7J?gqT

:bF:qP"ClL#k271416Parameters are like script. variables. These are used to vary input to the server and to emulate real users.

F*k+_!|l,E271416

LaNdKF w271416Different sets of data are sent to the server each time the script. is run. It is better to simulate the usage model for more accurate testing from the Controller where one script. can emulate many different users on the system.51Testing软件测试网3vOBv6@

F S5H+@9KG r271416
<<<<<< =================== >>>>>>

X ? vLd2E271416

9X}+cOz wLxx271416Q. 46: For load testing, what you should know in addition to the knowldege of LoadRunner tool?51Testing软件测试网;Oby"m a@~

51Testing软件测试网c`Lh'kpj

1) Management aspects of Load Testing especially the Planning.

4l.b r%{]&_271416

5eMQ-v.|2714162) Requirements gathering, Profile/Mix,SLA, Acceptance Criteria....

t^3^_-Q b)X(l_27141651Testing软件测试网O,]L'U v

3) Broad understanding of the protocol we need to work with.

~|6N:t h%zR5G2l(D271416

(T$AI4[:y;l%]2714164) Basic knowledge of C programming.

;CP%Lt+TQ#[Xa v271416

EoA:fx3Vf5f2l271416<<<<<< =================== >>>>>>

1lO'R,s x b3Be,q271416

Q. 47: How many users can we emulate with Load-Runner on a PC?

1a m|Un9`nf271416

:qU8P8?A(q:[+c271416There is no limit. However it depends on system response. That too inturn depends on various factors like entire system configuration etc.51Testing软件测试网/w\4QI9INJ

51Testing软件测试网8?P:]*{2v No

If system comes across bottle necks during the begining or with minimum no of Vusers, no further addition of vusers should be considered unless & until the previously observed bottleneck are adequately resolved.51Testing软件测试网Vp)Nh,[zF/?W

51Testing软件测试网#jFy5iv@F"B"f

<<<<<< =================== >>>>>>

.G$qBzP)gg]271416

Q. 48: How can we find out memory leak using Load Runner?51Testing软件测试网PS2AB-P WO^C_

TAG: 面试 面视 LoadRunner loadRunner

kekebaobao的个人空间 引用 删除 kekebaobao   /   2009-11-24 13:55:49
瑜伽流武者的个人空间 引用 删除 瑜伽流武者   /   2009-10-06 23:37:23
来个中文版的更是锦上添花了!
引用 删除 lwy8507   /   2009-08-24 17:40:17
 

评分:0

我来说两句

Open Toolbar