bjohnson_1
13 years agoOccasional Contributor
Session ID Extraction
I am scripting a load test within Test Complete. I recorded the test successfully, but there is a form of sessionID in the URL's. I need to extract the SessionID from the first response and use it in subsequent request transactions. From what I have gathered so far, I would do this via Data Selectors.
Here is the line I get in the response:
/test.com/(S(if5w4bzl15fhmzs3mxr0gp4p))/test.aspx
The session id used is everything between (S( and )). What would the expression look like for me to extract that value?
Then the subsequent request I will need to replace that values looks something like this:
GET /test.com/(S(if5w4bzl15fhmzs3mxr0gp4p))/test.aspx HTTP/1.1
How do I now specify what is to be replaced in the next request?
Thanks
Here is the line I get in the response:
/test.com/(S(if5w4bzl15fhmzs3mxr0gp4p))/test.aspx
The session id used is everything between (S( and )). What would the expression look like for me to extract that value?
Then the subsequent request I will need to replace that values looks something like this:
GET /test.com/(S(if5w4bzl15fhmzs3mxr0gp4p))/test.aspx HTTP/1.1
How do I now specify what is to be replaced in the next request?
Thanks