You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Mark Stephen S. Florencio" <st...@asti.dost.gov.ph> on 2009/09/22 10:30:53 UTC
Question on Jmeter RegEx PostProcessor
Good day,
I have a question on how the RegEx Post Processor work.
I have a JSF application under test. I followed the article in the Wiki about how to setup tests for JSF applications. I am having problems with the viewState variable discussed in the article.
I looked at the Debug Sampler and it was able to get it(viewState variable) but something was weird because the sampler that uses that viewState variable keeps on failing. When I look at the request data for the sampler that will use the viewState variable, the viewState variable looks like this.:
javax.faces.ViewState=%24%7BjsfViewState%7D+
Which is totally wrong. But I did look at the Debug Sampler placed directly above it and it got what I would expect.
Could ayone knowledgeable explain what or why this is happening?
I exactly followed the regex given in the Wiki.
Thanks and best regards,
Mark Stephen Florencio.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Question on Jmeter RegEx PostProcessor
Posted by "Mark Stephen S. Florencio" <st...@asti.dost.gov.ph>.
Thanks Sebb!
It was a trailing space afterall!
Thanks... Sorry.. Should have been more careful.
Best regards,
Stephen Florencio.
----- Original Message -----
From: "sebb" <se...@gmail.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Wednesday, September 23, 2009 9:52:23 AM
Subject: Re: Question on Jmeter RegEx PostProcessor
On 23/09/2009, Mark Stephen S. Florencio
<st...@asti.dost.gov.ph> wrote:
> Good day.
>
> Hello sebb, I will now answer your inquiries.
>
> 1. I expect to see a very long string of random numbers and letters. As I said, I put a debug sampler on top of the sampler where the viewState variable is used. I inspected it and it was stored as a parameter I will be using. However when I looked at what the sampler passed as a parameter for its POST, the viewstate variable became "%24%7BjsfViewState%7D+".
Which is
"${jsfViewState} "
looks like the variable name is incorrect. Probably should not have a
trailing space in the value column either.
> I have not tried to uncheck encode and will do it now. Will keep you posted for the results.
>
> 2. As for the reqex it is this
>
> <input type="hidden" name="javax\.faces\.ViewState" id="javax\.faces\.ViewState" value="(.+?)" />
>
> Thank you and best regards,
>
>
> Stephen Florencio
>
>
> ----- Original Message -----
> From: "sebb" <se...@gmail.com>
> To: "JMeter Users List" <jm...@jakarta.apache.org>
> Sent: Tuesday, September 22, 2009 7:21:15 PM
> Subject: Re: Question on Jmeter RegEx PostProcessor
>
> On 22/09/2009, Mark Stephen S. Florencio
> <st...@asti.dost.gov.ph> wrote:
> > Good day,
> >
> > I have a question on how the RegEx Post Processor work.
> >
> > I have a JSF application under test. I followed the article in the Wiki about how to setup tests for JSF applications. I am having problems with the viewState variable discussed in the article.
> >
> > I looked at the Debug Sampler and it was able to get it(viewState variable) but something was weird because the sampler that uses that viewState variable keeps on failing. When I look at the request data for the sampler that will use the viewState variable, the viewState variable looks like this.:
> >
> > javax.faces.ViewState=%24%7BjsfViewState%7D+
> >
> > Which is totally wrong. But I did look at the Debug Sampler placed directly above it and it got what I would expect.
>
> What do you expect to see?
>
> > Could ayone knowledgeable explain what or why this is happening?
>
> How are you adding the variable to the sampler?
> If it is a parameter, have you selected "Encode?" - if so, try deselecting it.
>
> > I exactly followed the regex given in the Wiki.
>
> Which regex?
>
> > Thanks and best regards,
> >
> > Mark Stephen Florencio.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Question on Jmeter RegEx PostProcessor
Posted by sebb <se...@gmail.com>.
On 23/09/2009, Mark Stephen S. Florencio
<st...@asti.dost.gov.ph> wrote:
> Good day.
>
> Hello sebb, I will now answer your inquiries.
>
> 1. I expect to see a very long string of random numbers and letters. As I said, I put a debug sampler on top of the sampler where the viewState variable is used. I inspected it and it was stored as a parameter I will be using. However when I looked at what the sampler passed as a parameter for its POST, the viewstate variable became "%24%7BjsfViewState%7D+".
Which is
"${jsfViewState} "
looks like the variable name is incorrect. Probably should not have a
trailing space in the value column either.
> I have not tried to uncheck encode and will do it now. Will keep you posted for the results.
>
> 2. As for the reqex it is this
>
> <input type="hidden" name="javax\.faces\.ViewState" id="javax\.faces\.ViewState" value="(.+?)" />
>
> Thank you and best regards,
>
>
> Stephen Florencio
>
>
> ----- Original Message -----
> From: "sebb" <se...@gmail.com>
> To: "JMeter Users List" <jm...@jakarta.apache.org>
> Sent: Tuesday, September 22, 2009 7:21:15 PM
> Subject: Re: Question on Jmeter RegEx PostProcessor
>
> On 22/09/2009, Mark Stephen S. Florencio
> <st...@asti.dost.gov.ph> wrote:
> > Good day,
> >
> > I have a question on how the RegEx Post Processor work.
> >
> > I have a JSF application under test. I followed the article in the Wiki about how to setup tests for JSF applications. I am having problems with the viewState variable discussed in the article.
> >
> > I looked at the Debug Sampler and it was able to get it(viewState variable) but something was weird because the sampler that uses that viewState variable keeps on failing. When I look at the request data for the sampler that will use the viewState variable, the viewState variable looks like this.:
> >
> > javax.faces.ViewState=%24%7BjsfViewState%7D+
> >
> > Which is totally wrong. But I did look at the Debug Sampler placed directly above it and it got what I would expect.
>
> What do you expect to see?
>
> > Could ayone knowledgeable explain what or why this is happening?
>
> How are you adding the variable to the sampler?
> If it is a parameter, have you selected "Encode?" - if so, try deselecting it.
>
> > I exactly followed the regex given in the Wiki.
>
> Which regex?
>
> > Thanks and best regards,
> >
> > Mark Stephen Florencio.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Question on Jmeter RegEx PostProcessor
Posted by "Mark Stephen S. Florencio" <st...@asti.dost.gov.ph>.
Good day.
Hello sebb, I will now answer your inquiries.
1. I expect to see a very long string of random numbers and letters. As I said, I put a debug sampler on top of the sampler where the viewState variable is used. I inspected it and it was stored as a parameter I will be using. However when I looked at what the sampler passed as a parameter for its POST, the viewstate variable became "%24%7BjsfViewState%7D+".
I have not tried to uncheck encode and will do it now. Will keep you posted for the results.
2. As for the reqex it is this
<input type="hidden" name="javax\.faces\.ViewState" id="javax\.faces\.ViewState" value="(.+?)" />
Thank you and best regards,
Stephen Florencio
----- Original Message -----
From: "sebb" <se...@gmail.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Tuesday, September 22, 2009 7:21:15 PM
Subject: Re: Question on Jmeter RegEx PostProcessor
On 22/09/2009, Mark Stephen S. Florencio
<st...@asti.dost.gov.ph> wrote:
> Good day,
>
> I have a question on how the RegEx Post Processor work.
>
> I have a JSF application under test. I followed the article in the Wiki about how to setup tests for JSF applications. I am having problems with the viewState variable discussed in the article.
>
> I looked at the Debug Sampler and it was able to get it(viewState variable) but something was weird because the sampler that uses that viewState variable keeps on failing. When I look at the request data for the sampler that will use the viewState variable, the viewState variable looks like this.:
>
> javax.faces.ViewState=%24%7BjsfViewState%7D+
>
> Which is totally wrong. But I did look at the Debug Sampler placed directly above it and it got what I would expect.
What do you expect to see?
> Could ayone knowledgeable explain what or why this is happening?
How are you adding the variable to the sampler?
If it is a parameter, have you selected "Encode?" - if so, try deselecting it.
> I exactly followed the regex given in the Wiki.
Which regex?
> Thanks and best regards,
>
> Mark Stephen Florencio.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Question on Jmeter RegEx PostProcessor
Posted by sebb <se...@gmail.com>.
On 22/09/2009, Mark Stephen S. Florencio
<st...@asti.dost.gov.ph> wrote:
> Good day,
>
> I have a question on how the RegEx Post Processor work.
>
> I have a JSF application under test. I followed the article in the Wiki about how to setup tests for JSF applications. I am having problems with the viewState variable discussed in the article.
>
> I looked at the Debug Sampler and it was able to get it(viewState variable) but something was weird because the sampler that uses that viewState variable keeps on failing. When I look at the request data for the sampler that will use the viewState variable, the viewState variable looks like this.:
>
> javax.faces.ViewState=%24%7BjsfViewState%7D+
>
> Which is totally wrong. But I did look at the Debug Sampler placed directly above it and it got what I would expect.
What do you expect to see?
> Could ayone knowledgeable explain what or why this is happening?
How are you adding the variable to the sampler?
If it is a parameter, have you selected "Encode?" - if so, try deselecting it.
> I exactly followed the regex given in the Wiki.
Which regex?
> Thanks and best regards,
>
> Mark Stephen Florencio.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org