jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "akshata s.m." <akshata...@yahoo.com>
Subject Re: Regular expression to pick an Id
Date Wed, 17 Sep 2008 13:00:32 GMT
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 17/09/2008, akshata s.m. <akshata_sm@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


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message