You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by vetalok <ve...@gmail.com> on 2006/07/20 13:09:07 UTC

User parameters

hi!
When I pushed pre-processors->add user parameters->"Add Variable Button" new
variable "mydata"  has been created.  How can I input big data into this
variable? Because it seems there is only String data( 256 symbols)
variables, I need to input 4KB of data? Is there some posibility to do it?
-- 
View this message in context: http://www.nabble.com/User-parameters-tf1971673.html#a5412666
Sent from the JMeter - User forum at Nabble.com.


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


Re: User parameters

Posted by vetalok <ve...@gmail.com>.
it is good idea to use ${_StringFromFile(E:\jmeter\paramFileName.txt)}!
But String contains only 256 chars :(
So I  read only 256 chars...
I need to read much more :-)
-- 
View this message in context: http://www.nabble.com/User-parameters-tf1971673.html#a5414764
Sent from the JMeter - User forum at Nabble.com.


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


Re: User parameters

Posted by avishek <av...@coreobjects.com>.
vetalok <vetalok <at> gmail.com> writes:

> 
> 
> hi!
> When I pushed pre-processors-≥add user parameters->"Add Variable Button" new
> variable "mydata"  has been created.  How can I input big data into this
> variable? Because it seems there is only String data( 256 symbols)
> variables, I need to input 4KB of data? Is there some posibility to do it?

hi !!

u can maybe use the String from file funcion in the user parameter node, i.e., u
can create a variable as follows

name              value
param             ${_StringFromFile(E:\jmeter\paramFileName.txt)}

then u can use the value of this variable as ${param} in your jmx script

P.S : Remember, the string from file function reads one line at a time. 




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


Re: User parameters

Posted by vetalok <ve...@gmail.com>.
"data" - this is object that contain binary data placed in file. I think the
better way is using "vars.putObject("name",object)". 
Thank u for reply!!!
-- 
View this message in context: http://www.nabble.com/User-parameters-tf1971673.html#a5432739
Sent from the JMeter - User forum at Nabble.com.


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


Re: User parameters

Posted by sebb <se...@gmail.com>.
You still have not explained what "data" is going to be used for -
perhaps there is another way to provide the data other than creating a
variable.

BTW, you can save / retrieve objects in variables using

vars.putObject("name",object);
vars.getObject("name");

The normal get() and put() only work with string values.

S.
On 21/07/06, vetalok <ve...@gmail.com> wrote:
>
> I'm developing test plan that simulates the following code:
> ....
> apache.commons.chain.Context ctx;
> ctx.put("currentNode", "/test");(== user parameters->add
> var->"currentNode","/test")
> ctx.put("name", "testProperty");
> ctx.put("data", big data);
> ....
> So, ctx.put("data", big data) == user parameters->add var->"data","???");
> It seems using BeanShell and JMeterContext is the better way, now I'm trying
> to use JMeterContext, ideas?
> Is there another correct  way?
> --
> View this message in context: http://www.nabble.com/User-parameters-tf1971673.html#a5429492
> Sent from the JMeter - User forum at Nabble.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: User parameters

Posted by vetalok <ve...@gmail.com>.
I'm developing test plan that simulates the following code:
....
apache.commons.chain.Context ctx;
ctx.put("currentNode", "/test");(== user parameters->add
var->"currentNode","/test")
ctx.put("name", "testProperty");
ctx.put("data", big data);
....
So, ctx.put("data", big data) == user parameters->add var->"data","???");
It seems using BeanShell and JMeterContext is the better way, now I'm trying
to use JMeterContext, ideas?
Is there another correct  way?
-- 
View this message in context: http://www.nabble.com/User-parameters-tf1971673.html#a5429492
Sent from the JMeter - User forum at Nabble.com.


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


Re: User parameters

Posted by sebb <se...@gmail.com>.
What are you trying to do? i.e. why do you need to store so much data
in a variable?

On 20/07/06, vetalok <ve...@gmail.com> wrote:
>
> hi!
> When I pushed pre-processors->add user parameters->"Add Variable Button" new
> variable "mydata"  has been created.  How can I input big data into this
> variable? Because it seems there is only String data( 256 symbols)
> variables, I need to input 4KB of data? Is there some posibility to do it?
> --
> View this message in context: http://www.nabble.com/User-parameters-tf1971673.html#a5412666
> Sent from the JMeter - User forum at Nabble.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