Jump to content
WAPT Forum
Sign in to follow this  
Guest D0353075

Token Parameterization

Recommended Posts

Guest D0353075

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!

Share this post


Link to post
Share on other sites
Guest D0353075

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!

Share this post


Link to post
Share on other sites
Guest D0353075

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!

 

 

Share this post


Link to post
Share on other sites
Guest D0353075

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×