Bug 31479 - regex post processor doesn't save response field
Summary: regex post processor doesn't save response field
Status: RESOLVED DUPLICATE of bug 29853
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.0.1
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-30 06:16 UTC by Andrew Bredhauer
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
Simple Test plan to demonstrate problem (9.93 KB, text/plain)
2004-09-30 22:42 UTC, Andrew Bredhauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bredhauer 2004-09-30 06:16:23 UTC
I've created a Test plan that uses a regex post processor to extract the 
session id from the response headers of the first request so it can be sent in 
subsequent posts. The regex post processor gives the option to search the 
response body or headers but doesn't appear to save this setting as on every 
load of the test plan I have to reselect the headers option. 
This behaviour is annoying to say the least and I'm wondering how it will 
behave under remote testing. We're using JDK1.4.1_02

Andrew
Comment 1 Sebb 2004-09-30 11:04:01 UTC
1) the post-processor should be a child of the sampler to which it applies,
otherwise it will be applied to all the samplers at the same level

2) regexes only return what you tell them to - make sure you enclose some or all
of the regex in parentheses. e.g. 

.*

will match everything, but return nothing

(.*)

will match and return everything.

Please try this and if it still does not work, add a sample test plan to this
issue as an attachment
Comment 2 Andrew Bredhauer 2004-09-30 22:42:38 UTC
Created attachment 12916 [details]
Simple Test plan to demonstrate problem
Comment 3 Andrew Bredhauer 2004-09-30 22:43:09 UTC
Sebb,

The problem is not in the pattern matching but in the gui behaviour of the 
post processor. On screen I'm given the option to select eith body of header 
for the post processor to search. I need to select header but when I move off 
the post processor and move back to it my selection is lost and it defaults to 
search body. Even if I select header and save the test plan next time I re 
open it body will be selected.
I've attached a very simple test plan that you can hopefully use to see the 
problem. The test plan probably doesn't even run but this isn't required to 
show the error.

Andrew
Comment 4 Sebb 2004-09-30 22:58:51 UTC
Sorry, my previous reply was not relevant - I posted the reply in the wrong
place ...

==

The loss of the header/body setting is a known bug, fixed in CVS after 2.0.1 was
released.

If you don't want to wait for the next release, you could perhaps try one of the
nightly builds (linked from JMeter home page).

BTW, remote testing is not very performant compared with non-GUI mode. There
have been several discussions of this on the User list.

*** This bug has been marked as a duplicate of 29853 ***
Comment 5 The ASF infrastructure team 2022-09-24 20:37:34 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1454