jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej van der Zee <andrejvander...@gmail.com>
Subject Re: search-and-replace in binary AMF3 POST data
Date Mon, 25 Apr 2011 05:20:00 GMT
Hi,

> I need to extract the session ID from the first HTTP
> response's binary POST data and somehow store it (for example by
> looking for a specific pattern).

This was easily done by a post-processor controller of type Regular
Expression Extractor:

Reference Name: DSId
Regular Expression:
.*([[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}).*
Template: $1$
Match No.: 1
Default Value: 0000000-0000-0000-0000-000000000000

> Then, for every recorded HTTP request
> I need to replace the recorded session-ID in the binary POST-data by
> the stored session-ID.

But I cannot find any obvious pre-processor controller to modify POST
data with a regular expression that refers to "DSId". How should I do
this?

Thank you,
Andrej

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message