You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Suganthi <su...@gmail.com> on 2006/09/12 09:05:45 UTC

Extracting variables from Jmeter console

Hi,

I'm quite new to jmeter. Would be really helpful if s'body could assist me on
the below problem.
I have some tests that i run through JUnit in jmeter. The outputs of the tests
executed by the junit gets displayed in the jmeter console. I need to extract a
particular ID (that has come as a response to the test) and use that Id in
jmeter for further HTTP testing.
Could s'body guide me as how i can extract the response (id value) from jmeter
console? The regex extractor seem to extract response values only if it gets
displayed in teh Jmeter GUI but not the console.

Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Extracting variables from Jmeter console

Posted by sebb <se...@gmail.com>.
Sorry, I don't have any info on that; I've not worked on the JUnit sampler.

S
On 14/09/06, Suganthi <su...@gmail.com> wrote:
> sebb <sebbaz <at> gmail.com> writes:
>
> >
> > On 12/09/06, Suganthi <suganthirajesh <at> gmail.com> wrote:
> > > Hi,
> > >
> > > I'm quite new to jmeter. Would be really helpful if s'body could assist me
> on
> > > the below problem.
> > > I have some tests that i run through JUnit in jmeter. The outputs of the
> tests
> > > executed by the junit gets displayed in the jmeter console. I need to
> extract a
> > > particular ID (that has come as a response to the test) and use that Id in
> > > jmeter for further HTTP testing.
> > > Could s'body guide me as how i can extract the response (id value) from
> jmeter
> > > console? The regex extractor seem to extract response values only if it
> gets
> > > displayed in teh Jmeter GUI but not the console.
> >
> > Extractors etc work on sample results; it's not possible to extract
> > information from the console (either STDOUT or STDERR).
> >
> > I suppose it might be possible to enhance the JMeter JUnit sampler to
> > redirect some output to the sample result; I've not used the JUnit
> > sampler, so I don't know if that would be sensible or not.
> >
> > S.
> >
> Thanks for ur reply Sebb.
> Could a'one pls guide me with some material/info on extracting values from
> junit sampler and using the same in jmeter http tests?
> Any pointers would be highly appreciated.
> Thanks
>
>
>
>
> ---------------------------------------------------------------------
> 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: Extracting variables from Jmeter console

Posted by Suganthi <su...@gmail.com>.
sebb <sebbaz <at> gmail.com> writes:

> 
> On 12/09/06, Suganthi <suganthirajesh <at> gmail.com> wrote:
> > Hi,
> >
> > I'm quite new to jmeter. Would be really helpful if s'body could assist me 
on
> > the below problem.
> > I have some tests that i run through JUnit in jmeter. The outputs of the 
tests
> > executed by the junit gets displayed in the jmeter console. I need to 
extract a
> > particular ID (that has come as a response to the test) and use that Id in
> > jmeter for further HTTP testing.
> > Could s'body guide me as how i can extract the response (id value) from 
jmeter
> > console? The regex extractor seem to extract response values only if it 
gets
> > displayed in teh Jmeter GUI but not the console.
> 
> Extractors etc work on sample results; it's not possible to extract
> information from the console (either STDOUT or STDERR).
> 
> I suppose it might be possible to enhance the JMeter JUnit sampler to
> redirect some output to the sample result; I've not used the JUnit
> sampler, so I don't know if that would be sensible or not.
> 
> S.
> 
Thanks for ur reply Sebb. 
Could a'one pls guide me with some material/info on extracting values from 
junit sampler and using the same in jmeter http tests?
Any pointers would be highly appreciated.
Thanks




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Extracting variables from Jmeter console

Posted by sebb <se...@gmail.com>.
On 12/09/06, Suganthi <su...@gmail.com> wrote:
> Hi,
>
> I'm quite new to jmeter. Would be really helpful if s'body could assist me on
> the below problem.
> I have some tests that i run through JUnit in jmeter. The outputs of the tests
> executed by the junit gets displayed in the jmeter console. I need to extract a
> particular ID (that has come as a response to the test) and use that Id in
> jmeter for further HTTP testing.
> Could s'body guide me as how i can extract the response (id value) from jmeter
> console? The regex extractor seem to extract response values only if it gets
> displayed in teh Jmeter GUI but not the console.

Extractors etc work on sample results; it's not possible to extract
information from the console (either STDOUT or STDERR).

I suppose it might be possible to enhance the JMeter JUnit sampler to
redirect some output to the sample result; I've not used the JUnit
sampler, so I don't know if that would be sensible or not.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org