introduction

URL vs HTML recording mode

There are three types of recording mode/levels in LoadRunner. 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.

URL vs HTML

  1. HTML based mode, records script for every user action that is performed during recording (hmmm…sounds like QTP) while URL based mode records each and every browser request to the server and resources received from the server. Confused? ok, 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 Javascript code.
  2. From the point1) above you can guess, HTML mode would have less correlation to do while URL mode has much more complex correlation requirements.
  3. 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()
  4. HTML mode is recommended for browser applications while URL mode is recommended for non-browser applications.
  5. 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, since you have each and every statement in-front of you (point 1)

Discussion

24 Responses to “URL vs HTML recording mode”

  1. What is difference about GUI mode compared to HTML and Url.

    Posted by Megha | April 21, 2009, 5:44 pm
  2. Regarding point 4 ) Here what do you mean by non browser applications. As per my understanding usually in case of Web Applications ( that we acccess through some browser only ) , we see the server request , while you are suggesting HTML mode (in case of Web apps , through ) here.

    Please let me know , If i am not correct…..

    Posted by Shail | May 5, 2009, 1:18 pm
  3. u can also add one more pt.

    using HTML mode , it takes more memory and CPU as it cache the contents of web pages. Using URL mode, no need of cache as it records each and every request.

    Posted by Kranthi | August 7, 2009, 11:46 am
  4. Hi

    Can you please let me know what is the difference between the LR reports generated from URL recording mode and HTML recording mode?

    Thanks
    Mukesh

    Posted by Mukesh | September 15, 2009, 1:55 pm
  5. Hi all,
    As per my experience i just wanted to share that in URL mode of recording each and every action is recorded freshly and for HTML the current action is dependent on the previous action..that is actually said to be context sensitive recording.context sensitive recording is also called as situation based recording.

    HTML records only Parent calls where ads the URL records both parent and child calls..

    Correct me if i am wrong…

    Thanks All
    RadhaKrishna

    Posted by RadhaKrishna | December 23, 2009, 2:51 pm
  6. How to decide which mode to use for recording an application?
    What points do we need to take into account to decide that this application should be recorded using URL not HTML …?

    Posted by Newuser | January 5, 2010, 4:19 pm
  7. Hi All,

    could you please explain what is the difference between Recording log and Generation log?

    Thanks
    Ramkumar

    Posted by Ramkumar.M | June 15, 2010, 4:49 pm
  8. Thanks really helpful info explained clearly :)

    Posted by digvijay | June 23, 2010, 6:17 pm
  9. Can u plz explain difference between USR,LRS, LRR…??

    Posted by Hitesh | July 22, 2010, 3:45 pm
  10. Hi,
    I’m in really need of some informations about configuration of LR.
    -How can i define the number of Vusers by Load generator
    -how can i configure the machines on whiche the LR is launched.
    -If some one have some documents about configuration because i ‘ve contacted HP but nothing.
    - can I do the tests with out the HTTP licence(for the protocol HTTP) ,i’ll test a citrix architecture.
    SOS SOS SOS

    Posted by sempac | October 7, 2010, 12:09 pm
  11. lrr – result
    lra – analysis
    lrs – senario
    usr – script extension

    Posted by ara | November 1, 2010, 2:35 pm
  12. brief idea about monitors

    Posted by saidireddy | November 11, 2010, 10:15 am
  13. I have just started learning about the Load Runner..
    Can anyone provide me more details regarding LR report..?
    What is it used for?

    Posted by swathi | November 29, 2010, 11:35 am
  14. what is the difference between web_submit_form and web_submit_data in html recording?

    Posted by Chandan Kumar Jethi | December 1, 2010, 4:45 pm
  15. LRR- Load Runner Result (*.LRR)
    LRA – Load Runner Analysis (*.LRA)
    LRS – Load Runner Scenario (*.LRS)
    USR – Script that is generated in VuGen is saved in (*.USR) format

    Posted by Mohammed Ashfaq | December 10, 2010, 11:31 am
  16. can we record the script both in HTML and the URL recording modes

    Posted by ramesh gurikani | February 2, 2011, 2:10 am
  17. yes we can record a script in both modes of course only one mode at a time. I think you understand why ??

    Posted by ara | February 12, 2011, 6:44 am
  18. Web page diagonostic graph-HTML mode is better to get this graphs which gives us the break down of the response time

    Posted by Anaz | April 18, 2011, 2:21 pm
  19. Can anyone explain me little more about LRR- Load Runner Result (*.LRR)
    LRA – Load Runner Analysis (*.LRA)?

    Posted by Amit Raghav | April 26, 2011, 1:41 pm
  20. If I record in URL mode and playback in VuGen, it seems to be playing back slower than HTML mode recording…. Is this usually the case ? There are more context free accesses with “web_url()” so this might be the case… Please let me know….

    Posted by Dev | May 10, 2011, 7:20 pm
  21. Hello,

    I have Recorded following using HTML.

    But while doing the playback. it displays me the error

    web_link(“Manage Dashboard”,
    “Text=Manage Dashboard”,
    “Snapshot=t2.inf”,
    EXTRARES,
    “Url=../images/calendar.gif”, “Referer=http://10.237.93.23/fb4/index.cfm?alc_act=cManualPricing.managedashboard&CFID=18665&CFTOKEN=84604884″, ENDITEM,
    “Url=../styles/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png”, “Referer=http://10.237.93.23/fb4/index.cfm?alc_act=cManualPricing.managedashboard&CFID=18665&CFTOKEN=84604884″, ENDITEM,
    LAST);

    The error message is

    Action.c(42): Error -27995: Requested link (“Text=Manage Dashboard”) not found [MsgId: MERR-27995]
    Action.c(42): web_link(“Manage Dashboard”) highest severity level was “ERROR”, 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
    Ending action Action.

    What could be the problem?

    Posted by Tariq Ahmed | May 11, 2011, 12:51 pm
  22. can anyone tell me that is it possible to record an application with java record replay protocol ,,,when the application is acessed through a sos link.

    Posted by Remya | July 28, 2011, 9:30 am
  23. I have a question on HTML based. Why it is also called as context sensitive?

    2. When a script is recorded in HTML Mode, and did a replay, it fails. what are the possible reasons for this

    3. when a script is recoreded in URL Mode and replayed for the first time. It fails. what are the possible reasons for this.

    Posted by vinod | August 1, 2011, 2:06 pm

Trackbacks/Pingbacks

  1. [...] web_url is not a context sensitive function while web_link is a context sensitive function. Context sensitive functions describe your actions in terms of GUI objects (such as windows, lists, and buttons). Check HTML vs URL recording mode. [...]

Post a comment


Archives

Grab My Banner

Learn LoadRunner