You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Evandro Grezeli <gr...@gmail.com> on 2010/02/11 17:02:05 UTC
variable value with linebreak
hi guys,
does anyone know how to force a variable value with a linebreak char?
I have to pass as parameter a huge string, that the server only interpret
with a specific mask. like this:
-----Begin-----
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
-----End-----
The value can be fixed in the field, but jmeter it's passing it with white
spaces.
Thanks in advance!
--
Atenciosamente
Regards
Evandro Grezeli de B. Neves
Re: variable value with linebreak
Posted by Evandro Grezeli <gr...@gmail.com>.
Thanks for the help Sebb!
I never worked with those kind of functions. This is a native function of
JMeter right? So i just pass the value that i want with the function
delimiters (like "\n")?
Thanks again!
On Thu, Feb 11, 2010 at 2:30 PM, sebb <se...@gmail.com> wrote:
> On 11/02/2010, Evandro Grezeli <gr...@gmail.com> wrote:
> > Jean,
> >
> > Thanks for the answer.
> > But im not extracting the value, it's a fixed input value. It's really
> > necessary to use a BS or JS? Does not have a special char that i just
> could
> > put in the string?
>
> http://jakarta.apache.org/jmeter/usermanual/functions.html#__char
> or
> http://jakarta.apache.org/jmeter/usermanual/functions.html#__unescape
>
> > On Thu, Feb 11, 2010 at 2:14 PM, <jeanlouis.pasturel@orange-ftgroup.com
> >wrote:
> >
> >
> > > For example with BeanShell or JavaSampler
> > > You can handle \n \r in the String class
> > >
> > >
> > > Cordialement / Best regards
> > >
> > > Jean-Louis Pasturel
> > >
> > >
> > > -----Message d'origine-----
> > > De : Evandro Grezeli [mailto:grezeli.evandro@gmail.com]
> > > Envoyé : jeudi 11 février 2010 17:02
> > > À : JMeter
> > > Objet : variable value with linebreak
> > >
> > > hi guys,
> > >
> > > does anyone know how to force a variable value with a linebreak char?
> > >
> > > I have to pass as parameter a huge string, that the server only
> interpret
> > > with a specific mask. like this:
> > >
> > > -----Begin-----
> > > XXXXXXXXXXX
> > > XXXXXXXXXXX
> > > XXXXXXXXXXX
> > > -----End-----
> > >
> > > The value can be fixed in the field, but jmeter it's passing it with
> white
> > > spaces.
> > >
> > > Thanks in advance!
> > >
> > > --
> > > Atenciosamente
> > > Regards
> > > Evandro Grezeli de B. Neves
> > >
> > >
> > >
> > > *********************************
> > > This message and any attachments (the "message") are confidential and
> > > intended solely for the addressees.
> > > Any unauthorised use or dissemination is prohibited.
> > > Messages are susceptible to alteration.
> > > France Telecom Group shall not be liable for the message if altered,
> > > changed or falsified.
> > > If you are not the intended addressee of this message, please cancel
> it
> > > immediately and inform the sender.
> > > ********************************
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> > --
> >
> > Atenciosamente
> > Regards
> > Evandro Grezeli de B. Neves
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
--
Atenciosamente
Regards
Evandro Grezeli de B. Neves
Re: variable value with linebreak
Posted by sebb <se...@gmail.com>.
On 11/02/2010, Evandro Grezeli <gr...@gmail.com> wrote:
> Jean,
>
> Thanks for the answer.
> But im not extracting the value, it's a fixed input value. It's really
> necessary to use a BS or JS? Does not have a special char that i just could
> put in the string?
http://jakarta.apache.org/jmeter/usermanual/functions.html#__char
or
http://jakarta.apache.org/jmeter/usermanual/functions.html#__unescape
> On Thu, Feb 11, 2010 at 2:14 PM, <je...@orange-ftgroup.com>wrote:
>
>
> > For example with BeanShell or JavaSampler
> > You can handle \n \r in the String class
> >
> >
> > Cordialement / Best regards
> >
> > Jean-Louis Pasturel
> >
> >
> > -----Message d'origine-----
> > De : Evandro Grezeli [mailto:grezeli.evandro@gmail.com]
> > Envoyé : jeudi 11 février 2010 17:02
> > À : JMeter
> > Objet : variable value with linebreak
> >
> > hi guys,
> >
> > does anyone know how to force a variable value with a linebreak char?
> >
> > I have to pass as parameter a huge string, that the server only interpret
> > with a specific mask. like this:
> >
> > -----Begin-----
> > XXXXXXXXXXX
> > XXXXXXXXXXX
> > XXXXXXXXXXX
> > -----End-----
> >
> > The value can be fixed in the field, but jmeter it's passing it with white
> > spaces.
> >
> > Thanks in advance!
> >
> > --
> > Atenciosamente
> > Regards
> > Evandro Grezeli de B. Neves
> >
> >
> >
> > *********************************
> > This message and any attachments (the "message") are confidential and
> > intended solely for the addressees.
> > Any unauthorised use or dissemination is prohibited.
> > Messages are susceptible to alteration.
> > France Telecom Group shall not be liable for the message if altered,
> > changed or falsified.
> > If you are not the intended addressee of this message, please cancel it
> > immediately and inform the sender.
> > ********************************
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
>
> --
>
> Atenciosamente
> Regards
> Evandro Grezeli de B. Neves
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: variable value with linebreak
Posted by Evandro Grezeli <gr...@gmail.com>.
Jean,
Thanks for the answer.
But im not extracting the value, it's a fixed input value. It's really
necessary to use a BS or JS? Does not have a special char that i just could
put in the string?
On Thu, Feb 11, 2010 at 2:14 PM, <je...@orange-ftgroup.com>wrote:
> For example with BeanShell or JavaSampler
> You can handle \n \r in the String class
>
>
> Cordialement / Best regards
>
> Jean-Louis Pasturel
>
>
> -----Message d'origine-----
> De : Evandro Grezeli [mailto:grezeli.evandro@gmail.com]
> Envoyé : jeudi 11 février 2010 17:02
> À : JMeter
> Objet : variable value with linebreak
>
> hi guys,
>
> does anyone know how to force a variable value with a linebreak char?
>
> I have to pass as parameter a huge string, that the server only interpret
> with a specific mask. like this:
>
> -----Begin-----
> XXXXXXXXXXX
> XXXXXXXXXXX
> XXXXXXXXXXX
> -----End-----
>
> The value can be fixed in the field, but jmeter it's passing it with white
> spaces.
>
> Thanks in advance!
>
> --
> Atenciosamente
> Regards
> Evandro Grezeli de B. Neves
>
>
>
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered,
> changed or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender.
> ********************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
--
Atenciosamente
Regards
Evandro Grezeli de B. Neves
RE: variable value with linebreak
Posted by je...@orange-ftgroup.com.
For example with BeanShell or JavaSampler
You can handle \n \r in the String class
Cordialement / Best regards
Jean-Louis Pasturel
-----Message d'origine-----
De : Evandro Grezeli [mailto:grezeli.evandro@gmail.com]
Envoyé : jeudi 11 février 2010 17:02
À : JMeter
Objet : variable value with linebreak
hi guys,
does anyone know how to force a variable value with a linebreak char?
I have to pass as parameter a huge string, that the server only interpret
with a specific mask. like this:
-----Begin-----
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
-----End-----
The value can be fixed in the field, but jmeter it's passing it with white
spaces.
Thanks in advance!
--
Atenciosamente
Regards
Evandro Grezeli de B. Neves
*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration.
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org