I'm attempting to choose a link on a web page where all links are identical. Each link has a unique comment associated to it that's located on the same line. When I record the web page, the click on the link action is recorded as a URL step. The URL includes dynamic data that is determined after the link is clicked, therefore, I cannot use this as an identifier to the link.
This is how the page appears:
link, link 123456 unique comment
The link, link above is actually the hyperlink, the numbers and unique comment are just text on the page.
How do I tell loadrunner to pick a certain link based on it's unique comment?
I've included a while statement in the script that checks for the parameterized unique comment by means of a text check, but not sure what to do once I find it.
I can't find any documentation in my LoadRunner manual or the online help that discusses recording in url mode. In reading posts that contain reference to url mode, I gather that this is synonymous with analog mode which is synonymous with http mode. Is that correct? If it is, I can't find much documentation on http mode recording.
I attempted to record my application in http mode, but I run into the same problem as I did when I recorded in html mode.
Since the dynamic data that's contained in my link doesn't get created until after the link is clicked, I'm not sure how to direct the playback to pick a certain link in a list of links.
Sounds like you are stuck. Well do not fret I have run into a similiar situation and here is what I did.
First of all, let us hope that the link and associated comment together are unique and all share the same characteristics.
What you need to do is use web_reg_save_param and capture the link along with the comment. Each link and comment will be an element in an array and you will then have to parse the link and comment array element into corresponding strings and go from there. I hope your deleveopers have at least used standard comments to identify the links.
Anyway I hope this helps. If you have any questions let me know.
Simple minds, Simple thoughts!
I figure if you have the courage to get out of bed in the morning, then how bad can the day be.