WAPT Forum: URL rewriting - WAPT Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

URL rewriting

#1 User is offline   mstern 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 06-March 09

Posted 06 March 2009 - 12:59 AM

I am trying out WAPT on an ASP.NET application. The session that I recorded has a long random string embedded in all the HTTP URLs. I need to replace that string with another string that is dynamically created when the user logs on. How do I do that?

Example: https://hostname:por...ue4x2v10kflx...))/Default.aspx was recorded but the session generated by WAPT needs to replace /(S(xwue4x2v10kflxvcm0s3rhfh)) with something like /(S( other random looking stuff)) and the new string was passed back in the previous response.

Thanks for any help!
0

#2 User is offline   angela 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 373
  • Joined: 12-February 08
  • Gender:Female
  • Location:Novosibirsk

Posted 06 March 2009 - 11:37 AM

QUOTE (mstern @ Mar 6 2009, 06:59 AM) <{POST_SNAPBACK}>
I am trying out WAPT on an ASP.NET application. The session that I recorded has a long random string embedded in all the HTTP URLs. I need to replace that string with another string that is dynamically created when the user logs on. How do I do that?

Example: https://hostname:por...ue4x2v10kflx...))/Default.aspx was recorded but the session generated by WAPT needs to replace /(S(xwue4x2v10kflxvcm0s3rhfh)) with something like /(S( other random looking stuff)) and the new string was passed back in the previous response.

Thanks for any help!


Hi,

You need to create a variable (let's call it SessionID) with the help of the function Search
(LeftBoundary, RightBoundary), where LeftBoundary = "https://hostname:portname/(S(", and RightBoundary = "))/Default.aspx".

Then in the URI of requests containing session variable you need to replace https://hostname:por...ue4x2v10kflx...))/Default.aspx with https://hostname:por...($Var(SessionID)))/Default.aspx.

You can automate this process by specifying parameters for function Search in Settings\Parameterization and then re-recording. In this case the variables should be created automatically.

Angela Samsonova
Customer Support 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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users