You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ori Marco <or...@praxell.com> on 2008/01/14 17:39:54 UTC

Set dynamic parameters as jmeter variables

Hi

 

I need to upload parameters names and values from DB

I.E. select will return records of param-name1 paramvalue1,...,
param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)

and I need to save each parameter name as a JMETER variable with its
value

What 's the best way of doing it?

 

Thanks

 

Ori Marko 
Quality Assurance Engineer 
Praxell Inc.
Mobile: 0524-455-177
Office:03-6126060 Ext 612
Fax: 03-6126066
http://www.praxell.com <http://www.praxell.com> 


Re: Set dynamic parameters as jmeter variables

Posted by sebb <se...@gmail.com>.
On 20/01/2008, Ori Marco <or...@praxell.com> wrote:
> Hi
>
> I don't fully understand the explanation,
> When using Regular Expression Extractor you need to give several
> parameters,
> Please fill it out in order that it'll extract as you purpose
>
> Name:
VARNAME
> Expression:
^(\S+)\s+(\S+)
> Template
Not important
> Match no:
-1
>
> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, January 16, 2008 3:15 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> > A select which returns 2 columns (name and value) with 2 (or more)
> > cases:
> >
> > Card    123
> > PIN     234
> >
> > Or
> >
> > User    User1
> > Pass    Password1
> >
>
> Assuming that neither name nor value can contain whitespace:
>
> ^(\S+)\s+(\S+)
>
> will match the name and value and assign the name to $1$ and the value
> to $2$
>
> The RE Extractor will then set the following variables:
>
> VARNAME_1_g1 = User
> VARNAME_1_g2 = User1
>
> VARNAME_2_g1 = Pass
> VARNAME_2_g2 = Password1
>
> > I want that second column value will be saved with first column value
> > (parameter name)
> > Meaning:
> > Card <-123
> > PIN <- 234
> > Or
> > User<- User1
> > Pass<-Password1
> >
> > Thanks
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > http://www.praxell.com
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Wednesday, January 16, 2008 1:53 PM
> > To: JMeter Users List
> > Subject: Re: Set dynamic parameters as jmeter variables
> >
> > On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > Hi
> > >
> > > About the first question, what suitable regex should be for getting
> > > value and parameter name (without knowing
> > > Parameter name)?
> > > For example regex ([^\t\n]*) template $1$ match no. 1 is the
> parameter
> > > name
> > > And match no. 2 is the parameter value, How can value be assign to
> > name
> > > in regex only?
> > >
> >
> > By redesiging the regex to be include more of the output.
> >
> > A concrete example of the SQL output would help.
> >
> > > Thanks
> > >
> > > Ori Marko
> > > Quality Assurance Engineer
> > > Praxell Inc.
> > > http://www.praxell.com
> > >
> > > -----Original Message-----
> > > From: sebb [mailto:sebbaz@gmail.com]
> > > Sent: Tuesday, January 15, 2008 8:47 PM
> > > To: JMeter Users List
> > > Subject: Re: Set dynamic parameters as jmeter variables
> > >
> > > On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > > The problem is that the list is dynamic concerning size - e.g
> 10-30
> > > > parameters
> > > > And parameter names (parameters names aren't expected) -
> > > > e.g. could be user-abc store-123 or card-456 pin-987
> > > > Can this be done? (saving parameters names with values straight
> from
> > > DB)
> > > >
> > >
> > > If you can create a suitable regex, then yes.
> > >
> > > > It seems that this variables should be saved to map and put into
> > vars:
> > > > ${__BeanShell(vars.putAll(dbVariables))}
> > >
> > > This does not happen at present - feel free to create a Bugzilla
> > > enhancement request.
> > >
> > > > Can this be done?
> > > >
> > > > Thanks
> > > >
> > > > Ori Marko
> > > > Quality Assurance Engineer
> > > > Praxell Inc.
> > > > http://www.praxell.com
> > > >
> > > > -----Original Message-----
> > > > From: sebb [mailto:sebbaz@gmail.com]
> > > > Sent: Monday, January 14, 2008 9:49 PM
> > > > To: JMeter Users List
> > > > Subject: Re: Set dynamic parameters as jmeter variables
> > > >
> > > > Use Regular Expression Extractor
> > > >
> > > >
> > >
> >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> > > > ular_Expression_Extractor
> > > >
> > > >
> > > >
> > > > On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > > > Hi
> > > > >
> > > > >
> > > > >
> > > > > I need to upload parameters names and values from DB
> > > > >
> > > > > I.E. select will return records of param-name1 paramvalue1,...,
> > > > > param-name10 paramvalue10 (e.g. url www.google.com port 4443
> ....)
> > > > >
> > > > > and I need to save each parameter name as a JMETER variable with
> > its
> > > > > value
> > > > >
> > > > > What 's the best way of doing it?
> > > > >
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > >
> > > > > Ori Marko
> > > > > Quality Assurance Engineer
> > > > > Praxell Inc.
> > > > > Mobile: 0524-455-177
> > > > > Office:03-6126060 Ext 612
> > > > > Fax: 03-6126066
> > > > > http://www.praxell.com <http://www.praxell.com>
> > > > >
> > > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > 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
> >
> >
> > ---------------------------------------------------------------------
> > 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: Set dynamic parameters as jmeter variables

Posted by Ori Marco <or...@praxell.com>.
Hi

I don't fully understand the explanation,
When using Regular Expression Extractor you need to give several
parameters, 
Please fill it out in order that it'll extract as you purpose

Name:
Expression:
Template:
Match no:

Thanks

Ori Marko 
Quality Assurance Engineer 
Praxell Inc.
http://www.praxell.com

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, January 16, 2008 3:15 PM
To: JMeter Users List
Subject: Re: Set dynamic parameters as jmeter variables

On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> A select which returns 2 columns (name and value) with 2 (or more)
> cases:
>
> Card    123
> PIN     234
>
> Or
>
> User    User1
> Pass    Password1
>

Assuming that neither name nor value can contain whitespace:

^(\S+)\s+(\S+)

will match the name and value and assign the name to $1$ and the value
to $2$

The RE Extractor will then set the following variables:

VARNAME_1_g1 = User
VARNAME_1_g2 = User1

VARNAME_2_g1 = Pass
VARNAME_2_g2 = Password1

> I want that second column value will be saved with first column value
> (parameter name)
> Meaning:
> Card <-123
> PIN <- 234
> Or
> User<- User1
> Pass<-Password1
>
> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, January 16, 2008 1:53 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> > Hi
> >
> > About the first question, what suitable regex should be for getting
> > value and parameter name (without knowing
> > Parameter name)?
> > For example regex ([^\t\n]*) template $1$ match no. 1 is the
parameter
> > name
> > And match no. 2 is the parameter value, How can value be assign to
> name
> > in regex only?
> >
>
> By redesiging the regex to be include more of the output.
>
> A concrete example of the SQL output would help.
>
> > Thanks
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > http://www.praxell.com
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Tuesday, January 15, 2008 8:47 PM
> > To: JMeter Users List
> > Subject: Re: Set dynamic parameters as jmeter variables
> >
> > On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > The problem is that the list is dynamic concerning size - e.g
10-30
> > > parameters
> > > And parameter names (parameters names aren't expected) -
> > > e.g. could be user-abc store-123 or card-456 pin-987
> > > Can this be done? (saving parameters names with values straight
from
> > DB)
> > >
> >
> > If you can create a suitable regex, then yes.
> >
> > > It seems that this variables should be saved to map and put into
> vars:
> > > ${__BeanShell(vars.putAll(dbVariables))}
> >
> > This does not happen at present - feel free to create a Bugzilla
> > enhancement request.
> >
> > > Can this be done?
> > >
> > > Thanks
> > >
> > > Ori Marko
> > > Quality Assurance Engineer
> > > Praxell Inc.
> > > http://www.praxell.com
> > >
> > > -----Original Message-----
> > > From: sebb [mailto:sebbaz@gmail.com]
> > > Sent: Monday, January 14, 2008 9:49 PM
> > > To: JMeter Users List
> > > Subject: Re: Set dynamic parameters as jmeter variables
> > >
> > > Use Regular Expression Extractor
> > >
> > >
> >
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> > > ular_Expression_Extractor
> > >
> > >
> > >
> > > On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > > Hi
> > > >
> > > >
> > > >
> > > > I need to upload parameters names and values from DB
> > > >
> > > > I.E. select will return records of param-name1 paramvalue1,...,
> > > > param-name10 paramvalue10 (e.g. url www.google.com port 4443
....)
> > > >
> > > > and I need to save each parameter name as a JMETER variable with
> its
> > > > value
> > > >
> > > > What 's the best way of doing it?
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > > > Ori Marko
> > > > Quality Assurance Engineer
> > > > Praxell Inc.
> > > > Mobile: 0524-455-177
> > > > Office:03-6126060 Ext 612
> > > > Fax: 03-6126066
> > > > http://www.praxell.com <http://www.praxell.com>
> > > >
> > > >
> > >
> > >
> ---------------------------------------------------------------------
> > > 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
>
>
> ---------------------------------------------------------------------
> 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: Set dynamic parameters as jmeter variables

Posted by sebb <se...@gmail.com>.
On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> A select which returns 2 columns (name and value) with 2 (or more)
> cases:
>
> Card    123
> PIN     234
>
> Or
>
> User    User1
> Pass    Password1
>

Assuming that neither name nor value can contain whitespace:

^(\S+)\s+(\S+)

will match the name and value and assign the name to $1$ and the value to $2$

The RE Extractor will then set the following variables:

VARNAME_1_g1 = User
VARNAME_1_g2 = User1

VARNAME_2_g1 = Pass
VARNAME_2_g2 = Password1

> I want that second column value will be saved with first column value
> (parameter name)
> Meaning:
> Card <-123
> PIN <- 234
> Or
> User<- User1
> Pass<-Password1
>
> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, January 16, 2008 1:53 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> > Hi
> >
> > About the first question, what suitable regex should be for getting
> > value and parameter name (without knowing
> > Parameter name)?
> > For example regex ([^\t\n]*) template $1$ match no. 1 is the parameter
> > name
> > And match no. 2 is the parameter value, How can value be assign to
> name
> > in regex only?
> >
>
> By redesiging the regex to be include more of the output.
>
> A concrete example of the SQL output would help.
>
> > Thanks
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > http://www.praxell.com
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Tuesday, January 15, 2008 8:47 PM
> > To: JMeter Users List
> > Subject: Re: Set dynamic parameters as jmeter variables
> >
> > On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > The problem is that the list is dynamic concerning size - e.g 10-30
> > > parameters
> > > And parameter names (parameters names aren't expected) -
> > > e.g. could be user-abc store-123 or card-456 pin-987
> > > Can this be done? (saving parameters names with values straight from
> > DB)
> > >
> >
> > If you can create a suitable regex, then yes.
> >
> > > It seems that this variables should be saved to map and put into
> vars:
> > > ${__BeanShell(vars.putAll(dbVariables))}
> >
> > This does not happen at present - feel free to create a Bugzilla
> > enhancement request.
> >
> > > Can this be done?
> > >
> > > Thanks
> > >
> > > Ori Marko
> > > Quality Assurance Engineer
> > > Praxell Inc.
> > > http://www.praxell.com
> > >
> > > -----Original Message-----
> > > From: sebb [mailto:sebbaz@gmail.com]
> > > Sent: Monday, January 14, 2008 9:49 PM
> > > To: JMeter Users List
> > > Subject: Re: Set dynamic parameters as jmeter variables
> > >
> > > Use Regular Expression Extractor
> > >
> > >
> >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> > > ular_Expression_Extractor
> > >
> > >
> > >
> > > On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > > Hi
> > > >
> > > >
> > > >
> > > > I need to upload parameters names and values from DB
> > > >
> > > > I.E. select will return records of param-name1 paramvalue1,...,
> > > > param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
> > > >
> > > > and I need to save each parameter name as a JMETER variable with
> its
> > > > value
> > > >
> > > > What 's the best way of doing it?
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > > > Ori Marko
> > > > Quality Assurance Engineer
> > > > Praxell Inc.
> > > > Mobile: 0524-455-177
> > > > Office:03-6126060 Ext 612
> > > > Fax: 03-6126066
> > > > http://www.praxell.com <http://www.praxell.com>
> > > >
> > > >
> > >
> > >
> ---------------------------------------------------------------------
> > > 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
>
>
> ---------------------------------------------------------------------
> 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: Set dynamic parameters as jmeter variables

Posted by Ori Marco <or...@praxell.com>.
A select which returns 2 columns (name and value) with 2 (or more)
cases:

Card	123
PIN	234

Or

User	User1
Pass	Password1

I want that second column value will be saved with first column value
(parameter name)
Meaning:
Card <-123
PIN <- 234
Or
User<- User1
Pass<-Password1

Thanks

Ori Marko 
Quality Assurance Engineer 
Praxell Inc.
http://www.praxell.com

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, January 16, 2008 1:53 PM
To: JMeter Users List
Subject: Re: Set dynamic parameters as jmeter variables

On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> Hi
>
> About the first question, what suitable regex should be for getting
> value and parameter name (without knowing
> Parameter name)?
> For example regex ([^\t\n]*) template $1$ match no. 1 is the parameter
> name
> And match no. 2 is the parameter value, How can value be assign to
name
> in regex only?
>

By redesiging the regex to be include more of the output.

A concrete example of the SQL output would help.

> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tuesday, January 15, 2008 8:47 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> > The problem is that the list is dynamic concerning size - e.g 10-30
> > parameters
> > And parameter names (parameters names aren't expected) -
> > e.g. could be user-abc store-123 or card-456 pin-987
> > Can this be done? (saving parameters names with values straight from
> DB)
> >
>
> If you can create a suitable regex, then yes.
>
> > It seems that this variables should be saved to map and put into
vars:
> > ${__BeanShell(vars.putAll(dbVariables))}
>
> This does not happen at present - feel free to create a Bugzilla
> enhancement request.
>
> > Can this be done?
> >
> > Thanks
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > http://www.praxell.com
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Monday, January 14, 2008 9:49 PM
> > To: JMeter Users List
> > Subject: Re: Set dynamic parameters as jmeter variables
> >
> > Use Regular Expression Extractor
> >
> >
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> > ular_Expression_Extractor
> >
> >
> >
> > On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > Hi
> > >
> > >
> > >
> > > I need to upload parameters names and values from DB
> > >
> > > I.E. select will return records of param-name1 paramvalue1,...,
> > > param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
> > >
> > > and I need to save each parameter name as a JMETER variable with
its
> > > value
> > >
> > > What 's the best way of doing it?
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > Ori Marko
> > > Quality Assurance Engineer
> > > Praxell Inc.
> > > Mobile: 0524-455-177
> > > Office:03-6126060 Ext 612
> > > Fax: 03-6126066
> > > http://www.praxell.com <http://www.praxell.com>
> > >
> > >
> >
> >
---------------------------------------------------------------------
> > 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


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


Re: Set dynamic parameters as jmeter variables

Posted by sebb <se...@gmail.com>.
On 16/01/2008, Ori Marco <or...@praxell.com> wrote:
> Hi
>
> About the first question, what suitable regex should be for getting
> value and parameter name (without knowing
> Parameter name)?
> For example regex ([^\t\n]*) template $1$ match no. 1 is the parameter
> name
> And match no. 2 is the parameter value, How can value be assign to name
> in regex only?
>

By redesiging the regex to be include more of the output.

A concrete example of the SQL output would help.

> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tuesday, January 15, 2008 8:47 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> > The problem is that the list is dynamic concerning size - e.g 10-30
> > parameters
> > And parameter names (parameters names aren't expected) -
> > e.g. could be user-abc store-123 or card-456 pin-987
> > Can this be done? (saving parameters names with values straight from
> DB)
> >
>
> If you can create a suitable regex, then yes.
>
> > It seems that this variables should be saved to map and put into vars:
> > ${__BeanShell(vars.putAll(dbVariables))}
>
> This does not happen at present - feel free to create a Bugzilla
> enhancement request.
>
> > Can this be done?
> >
> > Thanks
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > http://www.praxell.com
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Monday, January 14, 2008 9:49 PM
> > To: JMeter Users List
> > Subject: Re: Set dynamic parameters as jmeter variables
> >
> > Use Regular Expression Extractor
> >
> >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> > ular_Expression_Extractor
> >
> >
> >
> > On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > > Hi
> > >
> > >
> > >
> > > I need to upload parameters names and values from DB
> > >
> > > I.E. select will return records of param-name1 paramvalue1,...,
> > > param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
> > >
> > > and I need to save each parameter name as a JMETER variable with its
> > > value
> > >
> > > What 's the best way of doing it?
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > Ori Marko
> > > Quality Assurance Engineer
> > > Praxell Inc.
> > > Mobile: 0524-455-177
> > > Office:03-6126060 Ext 612
> > > Fax: 03-6126066
> > > http://www.praxell.com <http://www.praxell.com>
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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: Set dynamic parameters as jmeter variables

Posted by Ori Marco <or...@praxell.com>.
Hi

About the first question, what suitable regex should be for getting
value and parameter name (without knowing 
Parameter name)?
For example regex ([^\t\n]*) template $1$ match no. 1 is the parameter
name 
And match no. 2 is the parameter value, How can value be assign to name
in regex only?

Thanks

Ori Marko 
Quality Assurance Engineer 
Praxell Inc.
http://www.praxell.com

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, January 15, 2008 8:47 PM
To: JMeter Users List
Subject: Re: Set dynamic parameters as jmeter variables

On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> The problem is that the list is dynamic concerning size - e.g 10-30
> parameters
> And parameter names (parameters names aren't expected) -
> e.g. could be user-abc store-123 or card-456 pin-987
> Can this be done? (saving parameters names with values straight from
DB)
>

If you can create a suitable regex, then yes.

> It seems that this variables should be saved to map and put into vars:
> ${__BeanShell(vars.putAll(dbVariables))}

This does not happen at present - feel free to create a Bugzilla
enhancement request.

> Can this be done?
>
> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Monday, January 14, 2008 9:49 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> Use Regular Expression Extractor
>
>
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> ular_Expression_Extractor
>
>
>
> On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > Hi
> >
> >
> >
> > I need to upload parameters names and values from DB
> >
> > I.E. select will return records of param-name1 paramvalue1,...,
> > param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
> >
> > and I need to save each parameter name as a JMETER variable with its
> > value
> >
> > What 's the best way of doing it?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > Mobile: 0524-455-177
> > Office:03-6126060 Ext 612
> > Fax: 03-6126066
> > http://www.praxell.com <http://www.praxell.com>
> >
> >
>
> ---------------------------------------------------------------------
> 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: Set dynamic parameters as jmeter variables

Posted by sebb <se...@gmail.com>.
On 15/01/2008, Ori Marco <or...@praxell.com> wrote:
> The problem is that the list is dynamic concerning size - e.g 10-30
> parameters
> And parameter names (parameters names aren't expected) -
> e.g. could be user-abc store-123 or card-456 pin-987
> Can this be done? (saving parameters names with values straight from DB)
>

If you can create a suitable regex, then yes.

> It seems that this variables should be saved to map and put into vars:
> ${__BeanShell(vars.putAll(dbVariables))}

This does not happen at present - feel free to create a Bugzilla
enhancement request.

> Can this be done?
>
> Thanks
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Monday, January 14, 2008 9:49 PM
> To: JMeter Users List
> Subject: Re: Set dynamic parameters as jmeter variables
>
> Use Regular Expression Extractor
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
> ular_Expression_Extractor
>
>
>
> On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> > Hi
> >
> >
> >
> > I need to upload parameters names and values from DB
> >
> > I.E. select will return records of param-name1 paramvalue1,...,
> > param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
> >
> > and I need to save each parameter name as a JMETER variable with its
> > value
> >
> > What 's the best way of doing it?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > Mobile: 0524-455-177
> > Office:03-6126060 Ext 612
> > Fax: 03-6126066
> > http://www.praxell.com <http://www.praxell.com>
> >
> >
>
> ---------------------------------------------------------------------
> 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: Set dynamic parameters as jmeter variables

Posted by Ori Marco <or...@praxell.com>.
The problem is that the list is dynamic concerning size - e.g 10-30
parameters
And parameter names (parameters names aren't expected) - 
e.g. could be user-abc store-123 or card-456 pin-987
Can this be done? (saving parameters names with values straight from DB)

It seems that this variables should be saved to map and put into vars:
${__BeanShell(vars.putAll(dbVariables))}

Can this be done?

Thanks

Ori Marko 
Quality Assurance Engineer 
Praxell Inc.
http://www.praxell.com

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Monday, January 14, 2008 9:49 PM
To: JMeter Users List
Subject: Re: Set dynamic parameters as jmeter variables

Use Regular Expression Extractor

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Reg
ular_Expression_Extractor



On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> Hi
>
>
>
> I need to upload parameters names and values from DB
>
> I.E. select will return records of param-name1 paramvalue1,...,
> param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
>
> and I need to save each parameter name as a JMETER variable with its
> value
>
> What 's the best way of doing it?
>
>
>
> Thanks
>
>
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> Mobile: 0524-455-177
> Office:03-6126060 Ext 612
> Fax: 03-6126066
> http://www.praxell.com <http://www.praxell.com>
>
>

---------------------------------------------------------------------
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: Set dynamic parameters as jmeter variables

Posted by sebb <se...@gmail.com>.
Use Regular Expression Extractor

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor



On 14/01/2008, Ori Marco <or...@praxell.com> wrote:
> Hi
>
>
>
> I need to upload parameters names and values from DB
>
> I.E. select will return records of param-name1 paramvalue1,...,
> param-name10 paramvalue10 (e.g. url www.google.com port 4443 ....)
>
> and I need to save each parameter name as a JMETER variable with its
> value
>
> What 's the best way of doing it?
>
>
>
> Thanks
>
>
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> Mobile: 0524-455-177
> Office:03-6126060 Ext 612
> Fax: 03-6126066
> http://www.praxell.com <http://www.praxell.com>
>
>

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