Can you post the piece of the JMX file that contains the RegEx node? Just
looking at what you wrote below, the following:
> Template $1
should read:
> Template $1$
(note the trailing $). Also, shouldn't your regex have parens around it
somewhere?
> Regular Expression S[0]{1,6}1..
should be:
> Regular Expression (S[0]{1,6}1..)
Both of these could be just simple transcription errors, of course. But if
you post the actual JMX node, we could tell for sure. Also, you may want to
try a different regex:
> Regular Expression value="(S\d+)"
Once the simpler expression is working, then you can tweak it....
Just a few suggestions.
--
Regards,
joe
Joe Casadonte
[EMAIL PROTECTED]
1016 West Ninth Avenue
King of Prussia, PA 19406
610-491-9881
> -----Original Message-----
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 4:46 AM
> To: [EMAIL PROTECTED]
> Subject: problem with Regular Expression
>
>
>
>
> Hi all,
> I am getting crazy trying to figure out what's wrong in my
> test plan coz it does not
> Pick a regexp from a response.
> Background:
> I have created a testplan with a thread group and http default.
> This testplan has 5 requests, and on request number 4 I have to fetch
> one value
> From the response number 3.
> The value is S000000173, and I have tried to match it with following
> regexp
>
> S[0]{1,6}1..
>
> So, I have added to my threadgroup a regular expression extractor with
> following values:
> Name Regular exp extractor
> Reference Name container
> Regular Expression S[0]{1,6}1..
> Template $1
> Match 0
>
> And, as input parameter of request number 5 (the one that should fetch
> the value
> From previous response)
> I have entered
> containerID=${container}
>
> when I go to see the input in the result tree, I have
> containerID=null,
> but If I enter the response 4 in a regexp engine (such as one at
> Jakarta's ORO) the
> string is matched..
>
> here is a piece of response 4
>
> <body class="workscreen" >
> <h1 class="workscreen">Storage Area Maintenance</h1>
>
>
> <form name="containerMaintenanceForm" method="POST"
> action="/ngenWeb/containerMaintenance.do">
> <input type="hidden" name="buttonSelected" value="edit">
> <input type="hidden" name="lastError" value="false">
> <p class="message">
>
> </p>
>
> <table class="workscreen" border="0" width="100%">
> <tbody class="workscreen">
> <tr class="workscreen">
>
>
>
>
> <td
> class="workscreen">
>
>
> Reference</td>
>
>
> <td class="workscreen"><input
> type="text" name="containerRef" maxlength="10" size="10"
> value="JMCTEST"
> onchange="doFind()"></td>
>
>
>
>
> <td class="workscreen">ID</td>
>
>
>
>
> <td class="workscreen"><input type="text"
> name="containerID" maxlength="10" size="10" value="S000000178"
> onchange="doFind()" disabled="disabled"></td>
>
>
> <td class="workscreen"><input type="hidden"
> name="insertMode" value="false"></td>
>
> </tr>
> <tr class="workscreen">
>
>
> <td
> class="workscreen">
>
> Name</td>
>
> <td class="workscreen"><input type="text"
> name="containerDesc" maxlength="30" size="30" value="JMeter
> Test"></td>
>
>
> <td width="200"
> colspan="2"><BR></td>
> </tr>
> <tr class="workscreen">
>
>
>
> <td
> class="workscreen">
>
> ContainerType</td>
> <td class="workscreen">
>
>
> <select
> name="containerType" onchange="doAdd()" disabled="disabled"><option
> value="180" >Holding Container</option>
> <option value="190" >Rack</option>
> <option value="210" >Stage</option>
> <option value="10" SELECTED="selected" >Warehouse</option>
> <option value="1100" >Store</option>
> <option value="1000" >Zone</option>
> <option value="40" >Despatching Bay</option>
> <option value="30" >Receiving Bay</option>
> <option value="50" >Receiving/Despatching Bay</option>
> <option value="20" >Location</option>
> <option value="60" >Inspection Zone</option>
> <option value="70" >Quarantine Zone</option>
> <option value="80" >Crossdock Zone</option>
> <option value="1200" >Bag</option>
> <option value="1300" >Box</option>
> <option value="1400" >Barrel</option>
> <option value="1500" >Pallet</option>
> <option value="90" >Invisible</option>
> <option value="1600" >Airbus Organisation</option>
> <option value="200" >Region</option>
> <option value="120" >Business Sector</option>
> <option value="250" >Site</option>
> <option value="110" >Logged Out Operators</option>
> <option value="100" >Operator</option></select>
>
>
> if u enter it in some regexp demos (such as the one at
> http://jakarta.apache.org/oro/demo.html)
> you got a match..
>
> so where is the problem? Incorrect configuration? Missing
> configuration?
> Is it a bug?
>
> Thanx in advance and regards
> marco
>
>
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]