jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Cysne <flaviocy...@gmail.com>
Subject Re: CSV DataSet Config
Date Thu, 02 Feb 2012 15:15:15 GMT
I made this way: declared a test plan variable that retrieved a parameter
value with the folder containing data files.
At distributed testing, pass that parameter using -G directive and it's
done.

Test Plan Variables
csv.path | ${__P(csv.path,
/default/path/to/folder/including/trailling/path/separator/)}

CSV Data Config
filename = ${csv.path}filename.csv

jmeter.sh
-Jcsv.path=/my/local/folder/
or
-Jcsv.path=C:\my\local\folder\

Distributed test
-Gcsv.path=/root/csvs/
or
-Gcsv.path=D:\jmeter\csvs\
or
define the distributed test folder as default value in ${__P()} expression
and no need to use -G directive

Regards.
Flavio Cysne

2012/2/2 sergio <sergio@bosoconsulting.it>

> Il 02/02/2012 06:10, Deepak Shetty ha scritto:
>
>  I believe relative paths are relative to the script location
>>
> No.
> In my experience, the path is relative to the directory from where you
> launch Jmeter.
>
> I usually keep all project data (.kmx, .csv and so on) in a single
> directory. I go there and I launch with a command like:
> c:\Program_files\jakarta-**jmeter-2.5\bin\jmeter.bat
>
> This can be useful if you need to launch more than one instance on a
> single machine...
>
> regards
> Sergio
>
>
>
>
>  regards
>> deepak
>>
>> On Wed, Feb 1, 2012 at 9:05 PM, rajan gupta<rajangupta084@gmail.com>
>>  wrote:
>>
>>  Hi
>>>
>>> This is just for any googler facing issue with CSV Data Set element.
>>> Per documentation it says if csv file is in bin folder it is enough to
>>> give
>>> filename. It did not work for me, even if it is jmeter bin directory I
>>> had
>>> to give full path to the csv file.
>>>
>>> Not sure if this is a known issue or just happened to me.
>>>
>>> Thanks
>>> Rajan
>>>
>>>
>
> --
>
> Ing. Sergio Boso
>
> Mail:
> Web:
> PEC:
> Cell:
> Linkedin:
> Skype:
>
>
>
> sergio@bosoconsulting.it <mailto:sergioboso@yahoo.it>
> www.bosoconsulting.it
> sergio.boso@ingpec.eu <mailto:sergio.boso@ingpec.eu>
> +39 335 7243 445
> http://it.linkedin.com/in/**sergioboso<http://it.linkedin.com/in/sergioboso><
> http://www.linkedin.com/pub/**sergio-boso/1/29b/255<http://www.linkedin.com/pub/sergio-boso/1/29b/255>
> >
> sbos61
>
> In caso di erronea ricezione da parte di persona diversa, siete pregati di
> eliminare il messaggio e i suoi allegati in modo definitivo dai vostri
> archivi e di volercelo comunicare immediatamente restituendoci il messaggio
> via e-mail al seguente indirizzosergio@**bosoconsulting.it<indirizzosergio@bosoconsulting.it><mailto:
> sergioboso@yahoo.it>
> L’interessato può, inoltre, esercitare tutti i diritti di accesso sui
> propri dati previsti dal decreto 196/2003, tra i quali i diritti di
> rettifica, aggiornamento e cancellazione, inviando un messaggio all’
> indirizzo:sergio@**bosoconsulting.it<indirizzo%3Asergio@bosoconsulting.it><mailto:
> sergioboso@yahoo.it>
>
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<user-unsubscribe@jmeter.apache.org>
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message