Thursday, November 14, 2013

Differencebetween HTML mode and URL Mode recording in LoadRunner

There are three types of recording mode/levels in Load Runner. GUI-based, HTML based and URL based. For the uninitiated, recording levels tells you the amount of and what information is recorded during the recording process. As the title says, for this post we will keep focus on HTML based and URL based recording levels only and will touch upon GUI based mode, in a later post.

HTML based mode, records script for every user action that is performed during recording  while URL based mode records each and every browser request to the server and resources received from the server. 
 HTML based mode does recording as you perform clicks and doesn't give you inside information like what is happening behind the recording while URL based mode records each and every step and emulate Java script code.
From the point 1)HTML mode would have less correlation to do while URL mode has much more complex correlation requirements.
HTML mode is smaller and is more intuitive to read as the statements are inside the functions corresponding to the user action performed. In the case of URL based, all statements gets recorded into web_url()
HTML mode is recommended for browser applications while URL mode is recommended for non-browser applications.
Lastly, don’t get the impression that I am advocating for HTML mode.URL mode can be of real help when you want to have control over the resources that need to be or need not to be downloaded.

some other differences:

HTML based recording:
1.It will capture only HTML based resources.
2.URLs are developed based on each action performed by the
user.
3.Resource=0 for all the URLs generated under HTML based
recording
4.Functions developed under this are
i.web_url
ii.web_link
iii.web_submit_data
iv.web_submit_form

URL based recording:
1.It will capture all the Non-HTML bases resources in the
application i.e, Jpeg,bitmap etc
2.URLs are developed based on the steps performed by the
user.
3.Resource=1 for all the URLs in the developed script.
Note:Resource=0 is also some times being displayed in the
script
4.Functions developed under this are
i.web_url
ii.web_submit_data
iii.web_concurrent_start
iv.web_concurrent_end

LoadRunner Interview questions

  •  What is the difference between running Vuser as a process and as a thread? When will you use Vuser as a thread?

  • WRSP (web_reg_save_param statement) - attributes RelFrameID and IgnoreRedirect - practical usageUse of Advance Trace options
  • What is the significance of Thinktime? Does improper assignment of thinktime effect the metrics/counters?
  • Have u ever used SiteScope? Which version of it?
  •  In auto correlation option - Is there any way to assign a name to the dynamic parameter instead of renaming it
·        Usage of web_custom_request - (a brief about recording options and your preferences)

·         Difference between Web(Click and Script) and Web(HTML/HTTP)?
·       
Differentiate web_url and web_link

·        How do you decide Ramp-up time

·        What are the different Scenario types available in the controller? Which one do you prefer and why?

·        How to decide total number of Vusers to participate in the load testing? Is there a certain formula that your organisation followed to decide number of Vuser, TPS, HPS etc.,?

·         performance testing phases and your involvement?

·         How Vuser is different from real user/End user?

·         How do I handle a hypothetical scenario wherein you need to capture a dynamic value that has no right boundary (another scenario, wherein the RB is dynamic)

·         List the attributes of web_reg_save_param

·         How do you calculate the number of Vusers, time-duration, Hits per second and other metrics to reach a goal of  30 TPS (Transactions per second) without using Goal-oriented scenario? (is there any formula)
·        
What is difference between HPS (Hits per section) and TPS ?

·         Tell the entire process or life cycle of performance testing?

·         Are you comfortable working on .Net framework, IIS servers?

How much do you rate yourself in scripting (on VuGen)?


·         Tell me few enhancements done to the script?

·         How to increase timeout?

·         Have you ever drilled-down the performance metrics to find out a bottleneck?

·         Have you got an opportunity to fine tune an application.

·         Tell me about your current project and responsibilities.

what are multi-way joins, indexes and spin counts are and what affect they have on a database server

·         Your day-to-day activities as a performance test analyst?

·         What are the enhancement(s) that you have done?

Major challenges in scripting?

·         What is significance of WRSP (web_reg_save_param)?

·         Have you ever used built-in function in your scripts?

·         What is IP spoofing? What happens if I do not use IP spoofing?

List me few counters which you often monitor?

·         what is your current projects architecture, including the version numbers?

·         How do you handle dynamic Item-data/Form data?

·         what is significance of sprintf, atoi, itoa, lr_paramidx?

·         What is transaction time?

How much comfortable are you with C Language?

Which framework are you comfortable in .Net or J2EE?

·         List me few disadvantages of SiteScope 9?

·         Which version of SiteScope are you using right now?

Run-time setting that you prefer?

·         Explain few runtime settings?

What are the different types of performance testing activities that you are involved in? (perf testing types)

·         What is the difference between lrd_stmt and lrd_fetch?

How to handle downloading PDFs in VuGen?

Advance trace option (in run-time log settings)?

·         WRSP (web_reg_save_param statement)

·         How to capture an OK button within a particular frame when there are multiple frames?

·         How comfortable are you on Analysis using LoadRunner Analysis tool?

Have you ever used performance center?

·         Tell me a few basic monitoring counters that you often work?



·         What is the difference between private bytes and available bytes?

Difference between web_submit_form and web_submit_data in LoadRunner?

WEB_SUBMIT_FORM():

The web_submit_form function is an action function that submits a form. The
web_submit_form function may be executed only in the context of a previous
operation.

web_submit_form is recorded only when VuGen is in HTML-based recording mode
(see VuGen's Recording Options).

WEB_SUBMIT_DATA():

The web_submit_data function is a action function that performs an
"unconditional" or "contextless" form submission. It allows you to generate
GET and POST requests as made by the HTML forms. You don't need to have a
form context to execute this request.

web_submit_data is recorded only when VuGen is in either URL-based recording
mode, or in HTML-based recording mode with "A script containing explicit
URLs only" option checked (see VuGen's Recording Options).

When does VuGen record a web_submit_data instead of a web_submit_form? Why? (Be as specific as possible)

A web_submit_data is recorded when VuGen cannot match the action, method, data fields, and/or hidden data values with the page that is stored in the record proxy cache. Comparison failures are typically caused by something other than HTML setting the properties of the HTTP request. Because VuGen can parse only HTML, it cannot find all the properties of the HTTP request in memory. This results in the hard-coding of all the request information in a web_submit_data statement.