You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by emmandi <ad...@gmail.com> on 2009/05/04 08:40:52 UTC
Jmeter Junit Test passing parameters in GUI Mode
Hi,
I am using Jmeter 2.3.2 to do the JMS queue load testing. I wrote a Junit
testcase which I placed in the extension classpath of Jmeter lib. I need to
pass the property file into the test script in GUI mode of Jmeter. I tried
to use the user defined variables in thread ,but it does not seem to pick
those values. Is there a way i can pass the values in the test script(like
using csv file). Also, I want to know how to use the string constructor
label in JUnit. Any help would be greatly appreciated.Thank you.
Aditya Emmandi
--
View this message in context: http://www.nabble.com/Jmeter-Junit-Test-passing-parameters-in-GUI-Mode-tp23363830p23363830.html
Sent from the JMeter - User mailing list archive 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: Jmeter Junit Test passing parameters in GUI Mode
Posted by emmandi <ad...@gmail.com>.
Thank you very much for the reply. I am trying to use GUI mode ,but it feels
like non-gui mode is easier to use than GUI.
viet nguyen wrote:
>
>
> you can use -q switch to pass values in a properties file to your test
> plan. Properties can then be accessed via ${__P(prop_name)}
>
> jmeter.bat -t <your jmx file> -q <properties file>
>
>
>
>
>
> emmandi wrote:
>>
>> Hi,
>> I am using Jmeter 2.3.2 to do the JMS queue load testing. I wrote a
>> Junit testcase which I placed in the extension classpath of Jmeter lib. I
>> need to pass the property file into the test script in GUI mode of
>> Jmeter. I tried to use the user defined variables in thread ,but it does
>> not seem to pick those values. Is there a way i can pass the values in
>> the test script(like using csv file). Also, I want to know how to use the
>> string constructor label in JUnit. Any help would be greatly
>> appreciated.Thank you.
>>
>> Aditya Emmandi
>>
>
>
--
View this message in context: http://www.nabble.com/Jmeter-Junit-Test-passing-parameters-in-GUI-Mode-tp23363830p23389407.html
Sent from the JMeter - User mailing list archive 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: Jmeter Junit Test passing parameters in GUI Mode
Posted by viet nguyen <vi...@gmail.com>.
you can use -q switch to pass values in a properties file to your test plan.
Properties can then be accessed via ${__P(prop_name)}
jmeter.bat -t <your jmx file> -q <properties file>
emmandi wrote:
>
> Hi,
> I am using Jmeter 2.3.2 to do the JMS queue load testing. I wrote a
> Junit testcase which I placed in the extension classpath of Jmeter lib. I
> need to pass the property file into the test script in GUI mode of Jmeter.
> I tried to use the user defined variables in thread ,but it does not seem
> to pick those values. Is there a way i can pass the values in the test
> script(like using csv file). Also, I want to know how to use the string
> constructor label in JUnit. Any help would be greatly appreciated.Thank
> you.
>
> Aditya Emmandi
>
--
View this message in context: http://www.nabble.com/Jmeter-Junit-Test-passing-parameters-in-GUI-Mode-tp23363830p23388337.html
Sent from the JMeter - User mailing list archive 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: Jmeter Junit Test passing parameters in GUI Mode
Posted by emmandi <ad...@gmail.com>.
Thank you very much for the suggestions. This helped.
sebb-2-2 wrote:
>
> On 04/05/2009, emmandi <ad...@gmail.com> wrote:
>>
>> Hi,
>> I am using Jmeter 2.3.2 to do the JMS queue load testing. I wrote a
>> Junit
>> testcase which I placed in the extension classpath of Jmeter lib. I need
>> to
>> pass the property file into the test script in GUI mode of Jmeter.
>
> Why not just open the file in the JUnit test case?
>
>> I tried
>> to use the user defined variables in thread ,but it does not seem to
>> pick
>> those values. Is there a way i can pass the values in the test
>> script(like
>> using csv file).
>
> Sorry, no.
>
>> Also, I want to know how to use the string constructor
>> label in JUnit. Any help would be greatly appreciated.Thank you.
>
> "Constructor string String pass to the string constructor. If a
> string is set, the sampler will use the string constructor instead of
> the empty constructor. "
>
> This is taken from:
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#JUnit_Request
>
>> Aditya Emmandi
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Jmeter-Junit-Test-passing-parameters-in-GUI-Mode-tp23363830p23363830.html
>> Sent from the JMeter - User mailing list archive 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
>
>
>
--
View this message in context: http://www.nabble.com/Jmeter-Junit-Test-passing-parameters-in-GUI-Mode-tp23363830p23389231.html
Sent from the JMeter - User mailing list archive 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: Jmeter Junit Test passing parameters in GUI Mode
Posted by sebb <se...@gmail.com>.
On 04/05/2009, emmandi <ad...@gmail.com> wrote:
>
> Hi,
> I am using Jmeter 2.3.2 to do the JMS queue load testing. I wrote a Junit
> testcase which I placed in the extension classpath of Jmeter lib. I need to
> pass the property file into the test script in GUI mode of Jmeter.
Why not just open the file in the JUnit test case?
> I tried
> to use the user defined variables in thread ,but it does not seem to pick
> those values. Is there a way i can pass the values in the test script(like
> using csv file).
Sorry, no.
> Also, I want to know how to use the string constructor
> label in JUnit. Any help would be greatly appreciated.Thank you.
"Constructor string String pass to the string constructor. If a
string is set, the sampler will use the string constructor instead of
the empty constructor. "
This is taken from:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#JUnit_Request
> Aditya Emmandi
>
> --
> View this message in context: http://www.nabble.com/Jmeter-Junit-Test-passing-parameters-in-GUI-Mode-tp23363830p23363830.html
> Sent from the JMeter - User mailing list archive 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