DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41571>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41571 Summary: RegexExtractor can't extract data in case of http 302 code Product: JMeter Version: 2.2 Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P2 Component: HTTP AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] We created project with "HTTP Request" sampler and attached "Regular Expression Extractor" under it. Response to this sampler is always "302 Moved Temporarily". "Regular Expression Extractor" was set up to extract value from a header and place it to some UDV. As the result, during execution of the sampler/extractor, UDV is NOT defined. The problem is in org.apache.jmeter.extractor.RegexExtractor class (process() method). It always check previousResult.getResponseData() to be not empty, even if extractor is setup to use headers or url string. The solution is to check correct field (based on user selection): previousResult.getResponseHeaders() in case if (useHeaders() == true) previousResult.getUrl() in case if (useUrl() == true) previousResult.getResponseData() in case if (useBody() == true) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
