You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "akshata s.m." <ak...@yahoo.com> on 2008/09/17 13:43:39 UTC
Regular expression to pick an Id
Hello,
Kindly let me know if the regular expression is valid to pick an Id in the following case:
HTML line of code: <INPUT TYPE="hidden" NAME="elemId" VALUE="16">
Regexp tried:
<INPUT TYPE="hidden" NAME="elemId" VALUE="(\d+)">
OR
(?s)<INPUT TYPE="hidden" NAME="elemId" VALUE="(.*?)">
The samplers fail to fetch the Id for both of these regexp. Can I get a suggestion
on the same..
Regards,
Akshata
Re: Regular expression to pick an Id
Posted by "akshata s.m." <ak...@yahoo.com>.
Hello Sebb,
Thanks for your input,
I have a default value which is a message to indicate it failed to fetch the Id.
My regexp extractor is configured as below:
RefName: vid
Regexp: <INPUT TYPE="hidden" NAME="elemId" VALUE="(\d+)">
Template: $1$
Match No: 1
Default Value: FAILED TO FETCH ID (For my reference in the response)
jmeter Logs :
2008/09/17 16:58:16 ERROR - jmeter.protocol.http.sampler.HTTPSampler: Cause: java.io.IOException: Server returned HTTP response code: 505 for URL: http://192.168.72.95:8092/fp/vieweditor/modListMenu.jsp?elemId (View
Id)=FAILED TO CATCH VIEW ID
2008/09/17 16:58:16 INFO - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 505
2008/09/17
16:58:16 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
readResponse: java.io.IOException: Server returned HTTP response code:
505 for URL: http://192.168.72.95:8092/fp/servlet/ElementManager?file=%2Fvieweditor%2FmodList.jsp&FPaction=listMods&modId=null&domId=5&domType=mod&elemId
(View Id)=FAILED TO CATCH VIEW ID&VRAttrId (View defenition Attr
Id)=67&hasTree=true&fromVerify=null&fromAddMenu=null&fromChart=null&fromGantt=null&mode=add
2008/09/17 16:58:16 ERROR -
jmeter.protocol.http.sampler.HTTPSampler: Cause: java.io.IOException:
Server returned HTTP response code: 505 for URL:
http://192.168.72.95:8092/fp/servlet/ElementManager?file=%2Fvieweditor%2FmodList.jsp&FPaction=listMods&modId=null&domId=5&domType=mod&elemId
(View Id)=FAILED TO CATCH VIEW ID&VRAttrId (View defenition Attr
Id)=67&hasTree=true&fromVerify=null&fromAddMenu=null&fromChart=null&fromGantt=null&mode=add
This indicates that the HTTP version is not supported. But the funniest part is the same samplers were executed successfully for few runs.
Can i get help to find the reason for the failure with the above logs?
Regards,
Akshata
--- On Wed, 9/17/08, sebb <se...@gmail.com> wrote:
From: sebb <se...@gmail.com>
Subject: Re: Regular expression to pick an Id
To: "JMeter Users List" <jm...@jakarta.apache.org>, akshata_sm@yahoo.com
Date: Wednesday, September 17, 2008, 6:53 AM
On 17/09/2008, akshata s.m. <ak...@yahoo.com> wrote:
> Hello,
>
> Kindly let me know if the regular expression is valid to pick an Id in
the following case:
>
> HTML line of code: <INPUT TYPE="hidden"
NAME="elemId" VALUE="16">
>
> Regexp tried:
> <INPUT TYPE="hidden" NAME="elemId"
VALUE="(\d+)">
>
> OR
>
> (?s)<INPUT TYPE="hidden" NAME="elemId"
VALUE="(.*?)">
>
> The samplers fail to fetch the Id for both of these regexp. Can I get a
suggestion
> on the same..
The REs look OK, and work fine in the ORO demo:
http://jakarta.apache.org/oro/demo.html
Make sure you are using a default value so you can check if the RE
test element is actually being processed, and check jmeter.log in case
of any errors.
> Regards,
>
> Akshata
>
>
>
>
>
>
Re: Regular expression to pick an Id
Posted by "akshata s.m." <ak...@yahoo.com>.
Hello Sebb,
Thanks for your input,
I have a default value which is a message to indicate it failed to fetch the Id.
My regexp extractor is configured as below:
RefName: vid
Regexp: <INPUT TYPE="hidden" NAME="elemId" VALUE="(\d+)">
Template: $1$
Match No: 1
Default Value: FAILED TO FETCH ID (For my reference in the response)
jmeter Logs :
2008/09/17 16:58:16 ERROR - jmeter.protocol.http.sampler.HTTPSampler: Cause: java.io.IOException: Server returned HTTP response code: 505 for URL: http://192.168.72.95:8092/fp/vieweditor/modListMenu.jsp?elemId (View Id)=FAILED TO CATCH VIEW ID
2008/09/17 16:58:16 INFO - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 505
2008/09/17 16:58:16 ERROR - jmeter.protocol.http.sampler.HTTPSampler: readResponse: java.io.IOException: Server returned HTTP response code: 505 for URL: http://192.168.72.95:8092/fp/servlet/ElementManager?file=%2Fvieweditor%2FmodList.jsp&FPaction=listMods&modId=null&domId=5&domType=mod&elemId (View Id)=FAILED TO CATCH VIEW ID&VRAttrId (View defenition Attr Id)=67&hasTree=true&fromVerify=null&fromAddMenu=null&fromChart=null&fromGantt=null&mode=add
2008/09/17 16:58:16 ERROR - jmeter.protocol.http.sampler.HTTPSampler: Cause: java.io.IOException: Server returned HTTP response code: 505 for URL: http://192.168.72.95:8092/fp/servlet/ElementManager?file=%2Fvieweditor%2FmodList.jsp&FPaction=listMods&modId=null&domId=5&domType=mod&elemId (View Id)=FAILED TO CATCH VIEW ID&VRAttrId (View defenition Attr Id)=67&hasTree=true&fromVerify=null&fromAddMenu=null&fromChart=null&fromGantt=null&mode=add
Can i get help to find the reason for the failure with the above logs?
Regards,
Akshata
--- On Wed, 9/17/08, sebb <se...@gmail.com> wrote:
From: sebb <se...@gmail.com>
Subject: Re: Regular expression to pick an Id
To: "JMeter Users List" <jm...@jakarta.apache.org>, akshata_sm@yahoo.com
Date: Wednesday, September 17, 2008, 6:53 AM
On 17/09/2008, akshata s.m. <ak...@yahoo.com> wrote:
> Hello,
>
> Kindly let me know if the regular expression is valid to pick an Id in
the following case:
>
> HTML line of code: <INPUT TYPE="hidden"
NAME="elemId" VALUE="16">
>
> Regexp tried:
> <INPUT TYPE="hidden" NAME="elemId"
VALUE="(\d+)">
>
> OR
>
> (?s)<INPUT TYPE="hidden" NAME="elemId"
VALUE="(.*?)">
>
> The samplers fail to fetch the Id for both of these regexp. Can I get a
suggestion
> on the same..
The REs look OK, and work fine in the ORO demo:
http://jakarta.apache.org/oro/demo.html
Make sure you are using a default value so you can check if the RE
test element is actually being processed, and check jmeter.log in case
of any errors.
> Regards,
>
> Akshata
>
>
>
>
>
>
Re: Regular expression to pick an Id
Posted by sebb <se...@gmail.com>.
On 17/09/2008, akshata s.m. <ak...@yahoo.com> wrote:
> Hello,
>
> Kindly let me know if the regular expression is valid to pick an Id in the following case:
>
> HTML line of code: <INPUT TYPE="hidden" NAME="elemId" VALUE="16">
>
> Regexp tried:
> <INPUT TYPE="hidden" NAME="elemId" VALUE="(\d+)">
>
> OR
>
> (?s)<INPUT TYPE="hidden" NAME="elemId" VALUE="(.*?)">
>
> The samplers fail to fetch the Id for both of these regexp. Can I get a suggestion
> on the same..
The REs look OK, and work fine in the ORO demo:
http://jakarta.apache.org/oro/demo.html
Make sure you are using a default value so you can check if the RE
test element is actually being processed, and check jmeter.log in case
of any errors.
> Regards,
>
> Akshata
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org