Guest D0353075 Report post Posted February 9, 2011 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! Quote Share this post Link to post Share on other sites
Guest D0353075 Report post Posted February 9, 2011 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! Quote Share this post Link to post Share on other sites
sergei 0 Report post Posted February 9, 2011 $UrlParam function works with parameters from tag only. You can use a function $Search. Quote Share this post Link to post Share on other sites
Guest D0353075 Report post Posted February 9, 2011 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! Quote Share this post Link to post Share on other sites
Guest D0353075 Report post Posted February 9, 2011 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. Quote Share this post Link to post Share on other sites
sergei 0 Report post Posted February 10, 2011 Use only "Token=" as a left boundary and "&" as a right boundary. It's enough for your case. Quote Share this post Link to post Share on other sites