Points to note with web_url and web_link:
- 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.
- If web_url statement occurs before a context sensitive statement like web_link, it should hit the server, otherwise your script will get error’ed out.
- While recording, if you switch between the actions, the first statement recorded in a given action will never be a context sensitive statement.
- The first argument of a web_link, web_url, web_image or in general web_* does not affect the script replay. For example: if your web_link statements were recorded as
123web_link("Hi There","Text=Hello, ABC",LAST);Now, when you parameterize/correlate the first argument to
123web_link("{Welcome to LearnLoadRunner}","Text=Hello, ABC",LAST);On executing the above script you won’t find the actual text of the parameter {Welcome to Learn LoadRunner} instead you will find {Welcome to Learn LoadRunner} itself in the execution log. However to show the correlated/parameterized data you can use lr_eval_string to evaluate the parameter.







initiative
hi, this is isnt about you blogs but i wanted to ask you some doubts. I was recently creating analysis reports in analysis. i was checking for the components which took very long to download. i had to filter each component manually and then write it down manually. is there any way to get a dump of all the component download time?
there are many other graphs which have same probs. can you help me on that plz?
thanks,
Abhishek
Posted by abhishek | June 18, 2009, 9:58 amHi Abishek
You can do the Export to Excel and give a filter and the select the Transactions with higher response time.
I believe this answers you question.
Thirumurugan R
Posted by Thirumurugan | August 17, 2009, 6:57 pmHi,
Please let me know how to do the Error handling and debugging the scripts in the load runner
Posted by jogendra challa | September 2, 2009, 5:44 pmThats really a practical exp but am new to load runner,
But i recording i saw only Web_url and not web_link which is the best to use
Thanks in advance
Posted by poobathy | July 4, 2010, 10:10 pmHi,
I have a list of web links in my page, i need to select 4th link from the page. Can you please suggest with the possible solution.
Thanks in advance
Regards,
Suresh
Posted by Suresh | October 11, 2010, 2:54 pmHi Suresh,
To click on the 4th link, you can use ordinal number in your coreelation statement.
In this case ord no= 4
Posted by Spurthi | October 20, 2010, 5:10 pmHi Suresh,
To click on the 4th link, you can use ordinal number in correlation statement.
In this case ord no= 4
Posted by spurthi | October 20, 2010, 5:12 pmHi Spurthi,
Thanks for the reply
I am able to capture that value but i am not able to click on that link. Can you please provide me the syntax to click the same
Thanks in advance
Regards,
Suresh
Posted by Suresh | October 20, 2010, 9:31 pmHi Suresh,
PFB the syntax ( ord= 4 as u wan to click on 4th link)
web_reg_save_param(“Searchlink”,”LB/ic=<a href=\"","RB/ic=\"","ord=4",LAST);
Posted by spurthi | October 21, 2010, 8:33 amPlease note ur LB and RB values will be different
Posted by spurthi | October 21, 2010, 8:34 amHi Spurthi,
Thanks for the reply
By implementing the provided funciton iam able to save the 4th ordinal value but not able to hit that link
Can you please give me your email id or send test mail to my id soori.p@gmail.com, so that i can share my code with you and rectify the issue.
Thanks in advance
Regards,
Suresh
Posted by Suresh | October 21, 2010, 10:01 amHi,
I’m new to Loadrunner. I tried to record few simple steps in VuGen. But the script generated didn’t contain the web_url() and web_link() funtions at all. And instead of web_reg_find() function, web_find() function is generated. When I tried to Run the code, I got the below error message
Error -27985: There is no context for HTML-based functions. A previous function may not have used “Mode=HTML” or downloaded only non-HTML page(s), or the context has been reset (e.g., due to a GUI-based function) [MsgId: MERR-27985].
I don’t understand why it is happening.
Could you please help me out to solve this issue….
Thanks in advance,
Ashok
Posted by Ashok | April 30, 2011, 7:44 amAshok,
web_reg_find() function, web_find() functions have appeared because you checked Generate web reg functions for page titles during recording.
Uncheck the enable image and text check option from run-time setting. This error will not appear
Regards
Arnab
Posted by ARNAB DAS | May 26, 2011, 9:05 pmHi
I have not checked the option for enable image and text check in run time settings. I have web_url and web_link functions displayed in the script. But still i am getting this error when I am running it over a controller.
Any other settings leading to this error?
Posted by Vinodh | July 27, 2011, 5:29 pmHi,
Any bodya help in on manul correlation part with any example in Load Runner 11 or 9.5.
Posted by sandeep reddy | October 18, 2011, 2:51 pmHi suresh,
This was my late reply but hope it helps u.. Inorder to hit the link u have captured,u need to pass the captured value in the itendata
Posted by P.Shirisha | November 4, 2011, 2:36 pm