Random Link

279 views
Skip to first unread message

Neha

unread,
Feb 25, 2009, 7:24:16 AM2/25/09
to LoadRunner
Hi,

Can someone help me in scripting. I need to pick up the link randomly
from the application so how can i do this??iam using HTTP protpcol.

i give an example....n the below link

http://mail.google.com/mail/help/intl/en/about_whatsnew.html

At the right side u will get few links na like gmail
stories gmail blogs, we need to select tht link randomly.so evy time
we run it needs to be picked up randomly, actually i have done this by
parameterisation as it has ony 8 links but they want DYNAMIC
SCRIPT...

Can any one help Please


Best Wishes
Neha

papayamilkshake

unread,
Feb 25, 2009, 7:34:56 AM2/25/09
to LoadRunner
use manual correlation
detect the start and end tags of the URL

regards
papayamilkshake
http://loadrunnertnt.com

Neha

unread,
Feb 25, 2009, 7:53:37 AM2/25/09
to LoadRunner
I have tried it but LB and RB are not constant..


On Feb 25, 5:34 pm, papayamilkshake <papayamilksh...@gmail.com> wrote:
> use manual correlation
> detect the start and end tags of the URL
>
> regards
> papayamilkshakehttp://loadrunnertnt.com
>
> On Feb 25, 8:24 pm, Neha <neha8...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > Can someone help me in scripting. I need to pick up the link randomly
> > from the application so how can i do this??iam using HTTP protpcol.
>
> > i give an example....n  the below link
>
> >http://mail.google.com/mail/help/intl/en/about_whatsnew.html
>
> >            At the right side u will get few links na like gmail
> > stories gmail blogs, we need to select tht link randomly.so evy time
> > we run it needs to be picked up randomly, actually i have done this by
> > parameterisation as it has ony 8 links but they want DYNAMIC
> > SCRIPT...
>
> > Can any one help Please
>
> > Best Wishes
> > Neha- Hide quoted text -
>
> - Show quoted text -

Krishnakanth PPS

unread,
Feb 26, 2009, 1:35:31 PM2/26/09
to LR-Loa...@googlegroups.com
Action.c(25): Notify: Saving Parameter "Links_1 = ="about.html">Gmail Overview"
Action.c(25): Notify: Saving Parameter "Links_2 = ="" class="sel">What's New"
Action.c(25): Notify: Saving Parameter "Links_3 = ="http://mail.google.com/support?ctx=about&hl=en"><nobr>Gmail Help Center</nobr>"
Action.c(25): Notify: Saving Parameter "Links_4 = ="http://gmailblog.blogspot.com/?utm_source=us-en-gmnav&utm_medium=et&utm_content=gmnav"><nobr>Gmail Blog</nobr>"
Action.c(25): Notify: Saving Parameter "Links_5 = ="yourstory.html">Gmail Stories"
Action.c(25): Notify: Saving Parameter "Links_7 = ="join_the_team.html">Join the Gmail Team"
Action.c(25): Notify: Saving Parameter "Links_8 = ="http://mail.google.com/mail/signup?pc=leftnav&co=us">Create an Account"
Action.c(25): Notify: Saving Parameter "Links_count = 8"

Now these are the parameters using a left boundary and a right boundary.

what you can do is since want the links to be random, 

one way this can be done is by using a switch case statement 

select a random number between 1 and 8, and then in switch case statement write a code to go that link.
Reply all
Reply to author
Forward
0 new messages