On 14/07/2008, nam.truong <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I would like to assign the value of a line feed character (ASCII 10) to a
> user defined variable.
>
> So far my attempt to paste the character into JMeter is only producing a
> whitespace character. The usual ALT-010 hotkey isn't working for me either
> (this produces nothing).
>
> Does anyone have a clue how this character may be set as a value?
>
I don't think this is possible using the GUI.
You may be able to do this by editting the JMX file - create a
variable and edit its value.
Otherwise, the only ways I can think of are:
Define a JMeter or system property as:
LF=\u000a
and use it as ${__P(LF)}
Use Beanshell or Jexl to define the variable: vars.put("LF","\n");
Use Regular Expression Post-Processor to extract a LineFeed from a response.
Maybe the property "line.separator" would be suitable: ${__P(line.separator)}
> Cheers,
> Nam
>
> --
> View this message in context:
> http://www.nabble.com/Defining-a-variable-value-of-%27line-feed%27-%28ASCII-character%29-tp18439414p18439414.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]