Jump to content


Token Parameterization


  • Please log in to reply
5 replies to this topic

#1 Guest_D0353075_*

Guest_D0353075_*
  • Guests

Posted 09 February 2011 - 09:30 AM

Hi,

I have started exploring WAPT for performing load testing. Well, I'm trying to parameterize the Token which is automatically generated.
I tried using $UrlParam function but with no success. Actually this token gets generated for each user once the user logs in. I am getting Invalid Security Token Error in the logs.
The parameter looks like:

<Form method="Post" action="acb.asp?Userid=100104&Formid=10&gate=22&Token=EEEEEEEEBBBBNMHJKNUKLAPOIN&GroupId=33&Dash=True">

Here I'd like to do the parameterization of "UserId" and "Token". Please help me out.

Thanks a lot in advance!

#2 Guest_D0353075_*

Guest_D0353075_*
  • Guests

Posted 09 February 2011 - 09:39 AM

Hi,

I have started exploring WAPT for performing load testing. Well, I'm trying to parameterize the Token which is automatically generated.
I tried using $UrlParam function but with no success. Actually this token gets generated for each user once the user logs in. I am getting Invalid Security Token Error in the logs.
The parameter looks like:

<Form method="Post" action="acb.asp?Userid=100104&Formid=10&gate=22&Token=EEEEEEEEBBBBNMHJKNUKLAPOIN&GroupId=33&Dash=True">

Here I'd like to do the parameterization of "UserId" and "Token". Please help me out.

Thanks a lot in advance!

#3 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 663 posts

Posted 09 February 2011 - 10:55 AM

$UrlParam function works with parameters from tag <HREF> only. You can use a function $Search.
Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com

#4 Guest_D0353075_*

Guest_D0353075_*
  • Guests

Posted 09 February 2011 - 11:36 AM

Hi Sergei,

Thanks for the quick reply. Well, I tried that but it's not working. Let me give you more details.

The string actually is :

<FORM method="POST" action="abc.asp?Action=PG&SID=3380&UserID=100140&Token=EKAHADHAAAHDBFHAACBFHEBKAIHNBNADABHDACBI&FID=0101&GID=111">

Now when I use $Search function for "Token"

Left Boundary:- <FORM method="POST" action="abc.asp?Action=PG&SID=3380&UserID=100140&Token=

Right Boundary:&FID=0101&GID=111">

Now the problem is the UserId is dynamic in the Left boundary. So If i hard code it, it wont work as the value will always change.

Can i use wildcard characters in Search function? Please help me out!



#5 Guest_D0353075_*

Guest_D0353075_*
  • Guests

Posted 09 February 2011 - 02:56 PM

Hi Sergie,

Thanks a lot for the quick response! Well, I tried your solution but its not working. I used the $Search function in the following way:

<Form method="Post" action="acb.asp?Userid=100104&Formid=10&gate=22&Token=EEEEEEEEBBBBNMHJKNUKLAPOIN&GroupId=33&Dash=True">

To extract UserID:

Left Boundary:<Form method="Post" action="acb.asp?Userid=

Right Boundary:&Formid=10&gate=22&Token=EEEEEEEEBBBBNMHJKNUKLAPOIN&GroupId=33&Dash=True">

To extract Token:

Left Boundary:<Form method="Post" action="acb.asp?Userid=100104&Formid=10&gate=22&Token=

Right Boundary:&GroupId=33&Dash=True">

Now the problem is the USERID is dynamic so I can not have the value hard coded doing so will result in search function failure.

Can i use wildcard characters in the Search Function? Please help me out.

#6 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 663 posts

Posted 10 February 2011 - 11:59 AM

Use only "Token=" as a left boundary and "&" as a right boundary. It's enough for your case.
Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users