You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Konstantinos Dimkas <ks...@csd.auth.gr> on 2016/02/02 14:08:02 UTC
Running test with parameters
Hi all,
I want to run a test at an ubuntu server from terminal.
I know that the command to do it is: ./jmeter -n -t TestPlan.jmx -l jmeteroutput.csv
How can i include a csv file with credentials to the TestPlan i want to run with this command?
Thanks in advance,
Konstantinos Dimkas
Re: Running test with parameters
Posted by Konstantinos Dimkas <ks...@csd.auth.gr>.
Thank you very much!
> On 02 Feb 2016, at 18:46, Deepak Shetty <sh...@gmail.com> wrote:
>
> Hi
> Assuming you are using CSV data setconfig , then whatever is specified in
> the FileName is interpreted relative to the TestPlan location (assuming you
> have specified a relative path ) - hence you dont really need to specify
> the location of your CSV file - just keep it where it needs to be relative
> to the test plan.
> If on the other hand you are trying to vary the path to the file , perhaps
> to execute the same test with a different CSV file , then you need to
> change the Test Plan itself to make the property variable
> ${__P(path, defaultValueForGUI)}
> and when you run the test you can use -J or -G (
> http://jmeter.apache.org/usermanual/get-started.html ) or specify the path
> in user.properties (there are different ways to achieve the same thing -
> for e.g. copy the file you want to the location that the Test plan reads as
> part of a pre-step , before you run the plan)
>
> regards
> deepak
>
> On Tue, Feb 2, 2016 at 7:39 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
> wrote:
>
>> Thank you for the fast response,
>>
>> I have a jmx file that simulates a log-in to a web service with specific
>> credentials. I have configured the jmx to read from a csv file. The struct
>> of the csv is (username,password).
>>
>> Now i want to run it from a machine without UI, only from the command
>> line. How can i add the csv file as a parameter to the command ./jmeter -n
>> -t TestPlan.jmx -I ?
>>
>> On 02 Feb 2016, at 15:38, SAGAR JISKAR <sa...@gmail.com> wrote:
>>
>> Hi Dimkas,
>>
>> Elaborate your issue.
>>
>> If you are parameterising then You need to put your csv in folder where you
>> kept your TestPlan.jmx.
>>
>> On Tue, Feb 2, 2016 at 9:08 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
>> wrote:
>>
>> Hi all,
>>
>> I want to run a test at an ubuntu server from terminal.
>> I know that the command to do it is: ./jmeter -n -t TestPlan.jmx -l
>> jmeteroutput.csv
>>
>> How can i include a csv file with credentials to the TestPlan i want to
>> run with this command?
>>
>>
>> Thanks in advance,
>> Konstantinos Dimkas
>>
>>
>>
>>
>>
>>
>>
>>
>> Konstantinos Dimkas
>>
>>
>>
>>
>>
Konstantinos Dimkas
Re: Running test with parameters
Posted by Deepak Shetty <sh...@gmail.com>.
Hi
Assuming you are using CSV data setconfig , then whatever is specified in
the FileName is interpreted relative to the TestPlan location (assuming you
have specified a relative path ) - hence you dont really need to specify
the location of your CSV file - just keep it where it needs to be relative
to the test plan.
If on the other hand you are trying to vary the path to the file , perhaps
to execute the same test with a different CSV file , then you need to
change the Test Plan itself to make the property variable
${__P(path, defaultValueForGUI)}
and when you run the test you can use -J or -G (
http://jmeter.apache.org/usermanual/get-started.html ) or specify the path
in user.properties (there are different ways to achieve the same thing -
for e.g. copy the file you want to the location that the Test plan reads as
part of a pre-step , before you run the plan)
regards
deepak
On Tue, Feb 2, 2016 at 7:39 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
wrote:
> Thank you for the fast response,
>
> I have a jmx file that simulates a log-in to a web service with specific
> credentials. I have configured the jmx to read from a csv file. The struct
> of the csv is (username,password).
>
> Now i want to run it from a machine without UI, only from the command
> line. How can i add the csv file as a parameter to the command ./jmeter -n
> -t TestPlan.jmx -I ?
>
> On 02 Feb 2016, at 15:38, SAGAR JISKAR <sa...@gmail.com> wrote:
>
> Hi Dimkas,
>
> Elaborate your issue.
>
> If you are parameterising then You need to put your csv in folder where you
> kept your TestPlan.jmx.
>
> On Tue, Feb 2, 2016 at 9:08 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
> wrote:
>
> Hi all,
>
> I want to run a test at an ubuntu server from terminal.
> I know that the command to do it is: ./jmeter -n -t TestPlan.jmx -l
> jmeteroutput.csv
>
> How can i include a csv file with credentials to the TestPlan i want to
> run with this command?
>
>
> Thanks in advance,
> Konstantinos Dimkas
>
>
>
>
>
>
>
>
> Konstantinos Dimkas
>
>
>
>
>
Re: Running test with parameters
Posted by Konstantinos Dimkas <ks...@csd.auth.gr>.
Thank you for the fast response,
I have a jmx file that simulates a log-in to a web service with specific credentials. I have configured the jmx to read from a csv file. The struct of the csv is (username,password).
Now i want to run it from a machine without UI, only from the command line. How can i add the csv file as a parameter to the command ./jmeter -n -t TestPlan.jmx -I ?
> On 02 Feb 2016, at 15:38, SAGAR JISKAR <sa...@gmail.com> wrote:
>
> Hi Dimkas,
>
> Elaborate your issue.
>
> If you are parameterising then You need to put your csv in folder where you
> kept your TestPlan.jmx.
>
> On Tue, Feb 2, 2016 at 9:08 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
> wrote:
>
>> Hi all,
>>
>> I want to run a test at an ubuntu server from terminal.
>> I know that the command to do it is: ./jmeter -n -t TestPlan.jmx -l
>> jmeteroutput.csv
>>
>> How can i include a csv file with credentials to the TestPlan i want to
>> run with this command?
>>
>>
>> Thanks in advance,
>> Konstantinos Dimkas
>>
>>
>>
>>
>>
Konstantinos Dimkas
Re: Running test with parameters
Posted by SAGAR JISKAR <sa...@gmail.com>.
Hi Dimkas,
Elaborate your issue.
If you are parameterising then You need to put your csv in folder where you
kept your TestPlan.jmx.
On Tue, Feb 2, 2016 at 9:08 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
wrote:
> Hi all,
>
> I want to run a test at an ubuntu server from terminal.
> I know that the command to do it is: ./jmeter -n -t TestPlan.jmx -l
> jmeteroutput.csv
>
> How can i include a csv file with credentials to the TestPlan i want to
> run with this command?
>
>
> Thanks in advance,
> Konstantinos Dimkas
>
>
>
>
>