Yes, I agree about the part of relative paths. 
I try to solve this by making the path a variable in the User defined
variables. That will make it maintainable in my situation.

Indeed, I could copy the csv file to the .jmx dir.

-Sander 

-----Original Message-----
From: Michael Stover [mailto:[EMAIL PROTECTED] 
Sent: woensdag 17 augustus 2005 14:54
To: jmeter-user@jakarta.apache.org
Subject: RE: CSV Data Set Config

I'm not opposed to this - I can probably make the file server look for
an absolute path if the relative is not found.  But, the point of the
relative paths is that the days of a jmeter test being just a .jmx file
are pretty much gone.  Nowadays, any non-trivial test will likely have
one or more supporting files.  As a result, I want to move JMeter in a
direction where a "test script" is the whole deal - the .jmx plus all
supporting files.  

I want this so that A) remote testing can be simple and not require
setting up the target servers with all the supporting files before
running and B) so that test scripts can be packaged and transported
around without hassle.  This includes full support for the module
controller.  

If you make a test with an absolute pathname, that won't work on any
computer, thus the relative paths based on the location of the .jmx.  

For your situation, I'm not sure why it's "not possible".  If you like,
you can create a "testdata" directory under the dir where the .jmx is,
and if you are running jmeter via an automated script, I can't see why
it would be hard to copy the testdata to this directory.

-Mike

On Wed, 2005-08-17 at 13:59 +0200, Sander Stevens wrote:
> Thanks Mike.
> 
> Maybe a request to enhance the CSV Data Set Config so you can also use
a
> path? I store my scripts (jmx) and testdata separately (to create some
> order in the chaos...), but in this case it is not possible. If others
> have the same setup, it is maybe something to consider.
> 
> -Sander
> 
> -----Original Message-----
> From: Michael Stover [mailto:[EMAIL PROTECTED] 
> Sent: woensdag 17 augustus 2005 13:50
> To: jmeter-user@jakarta.apache.org
> Subject: RE: CSV Data Set Config
> 
> The component expects the file to be found relative to the directory
> where the .jmx is stored.
> 
> Skipping over empty columns sounds like a bug, I'll look at it today.
> 
> -Mike
> 
> On Wed, 2005-08-17 at 10:53 +0200, Sander Stevens wrote:
> > I encoutered the following:
> > 
> > The csv file should be in the folder where the jmx is located. A
path
> > (pointing the location of the file) is obviously (in my situation)
not
> > possible. Further more there is a problem with reading the csv file.
> If
> > some fields are empty, the CSV Data Set Config gets confused. When I
> > fill the empty fields with e.g. an 'x' (just to have something in
the
> > fields), it is working fine. 
> > 
> > Looks like the CSV Data Set Config is not working as expected. I
would
> > assume that empty fields ar eno problem and that I can use a path
for
> > the location of my csv file.
> > 
> > Am I right? Or am I missing something?
> > 
> > Sander 
> > 
> > -----Original Message-----
> > From: Sander Stevens 
> > Sent: woensdag 17 augustus 2005 9:50
> > To: jmeter-user@jakarta.apache.org
> > Subject: CSV Data Set Config
> > 
> > Hi,
> > 
> > I have some trouble with CSV Data Set Config and hoping that someone
> can
> > help me.
> > 
> > I added the CSV Data Set Config to my testplan. 
> > Entered the parameters as follows:
> > 
> > Filename: v:\testen\automation\testdata\tapis-history.csv
> > Variable names:
> > execute,testcase,description,errorcode,errordescription,ipaddress
> > Delimiter: ;
> > 
> > The variable are used later on in my testplan to execute test.
> > 
> > Nothing happens if I run the testplan and the message in the log
file
> > is:
> > 2005/08/17 09:30:26 ERROR - jmeter.config.CSVDataSet: Failed to read
> > file: v:\testen\automation\testdata\tapis-history.csv 
> > 
> > Strange, because the file is available.
> > 
> > I got the same configuration built up with User Parameters and that
is
> > working fine. Can open the file, fill the variables and run the
> > testplan.
> > 
> > Any ideas? Something I forgot to add maybe?
> > 
> > Thanks,
> > Sander Stevens
> > http://www.techtest.nl
> > 
> > 
> > 
> >
---------------------------------------------------------------------
> > 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]
> 


---------------------------------------------------------------------
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]

Reply via email to