You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/08/16 00:48:04 UTC

DO NOT REPLY [Bug 43138] New: - regex extractor cannot assign vars with more than one line.

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=43138>.
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=43138

           Summary: regex extractor cannot assign vars with more than one
                    line.
           Product: JMeter
           Version: 2.2.1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: scott.marlowe@gmail.com


I'm trying to grab a block of data that looks something like this:

fp"
value="d9uhXR2oF6Wf/Z0mmUZnPmweclZ1KBu/tjenGRWcOhMl7+bnEb3TVg6/AdVibF8oC+ZGLj9kjYnu
nwYdG/K1a4cYgOpztWj3c0PppxltGqPkcx82mGqE8eMT+/Lr3m6wvA4AxQLGDJqDkJtkQSC3yEOI
hL8jUr7DZbE1d/PK55ME"

and place it into a variable to pass on to the next page.

If I grab it with this regex: 

__fp" value="((.)+)  or this one __fp" value="(.+)

I get the first line, like you'd expect.  If I add \n or \s like so:

__fp" value="((.|\n)+) or __fp" value="((.|\s)+)

then the assignment fails, and jmeter doesn't run any pages that use that
variable.  I added a simple http sampler later in the .jmx file that just hits
my workstation like:

127.0.0.1:/?ver=${varigrabbed} and it never fires IF I get a match in the above
regex.

-- 
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: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 43138] - regex extractor cannot assign vars with more than one line.

Posted by bu...@apache.org.
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=43138>.
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=43138


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From sebb@apache.org  2007-08-16 16:03 -------
You need to use the appropriate modifier prefix, either (?s) or (?m)

See:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_A
ssertion

and

http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html

-- 
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: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org