You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Manjula Priyantha <ma...@ebuilder.lk> on 2007/09/28 13:52:12 UTC

Relative Path Issue

Hi,

 

I have a requirement of referring files relative to the JMX file. 

 

Example:

 

"D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring to
"D:\projects\mecp-test\inputs\invoice_tc044.xml" file.

Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.

 

The solution should be regardless of $JMETER_HOME/bin directory.

Pls. help me to find a solution.

 

Thx & BR,

Manjula

 


Re: Relative Path Issue

Posted by sebb <se...@gmail.com>.
On 02/10/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> Hi,
>
> Scenario is i'm creating a file(database_response.txt) using BeanShell
> Listener where the same place JMX file exists and acessing it with
> CSVDataSet Config.

> This is working fine with GUI mode (i have noticed
> jmeter.log is create in the same place where JMX file exists). But with

How are you running GUI mode?
If you use jmeter-t.cmd, this changes to the directory containing the jmx file.

> NON-GUI mode both jmeter.log and database_response.txt created in the
> $JMETER_HOME/bin directory.

That means that JMeter is being started in the bin directory.

> My observation is CSVDataSet is looking for the
> correct path but file is creating in the wrong place.

That is probably due to the way you are starting JMeter.

jmeter-n.cmd will change to the jmx file directory before starting JMeter.

jmeter.bat does not change directory.

Are you setting user.dir manually? If so, is it being set as a JMeter
property or a System property?

> #### Code #####
> .
> .
> try {
>      FileWriter responseFile = new FileWriter( "database_response.txt");

This will create the file relative to the current directory.

This is usually the same as the property user.dir  - however there
were (are ?) some problems with user.dir and current directory in Sun
Java on Windows; it did/does not behave the same as on other OSes.

>      String response = sampleResult.getResponseDataAsString();
>      String act_response="";
> .
> .
>
> #### Log #####
> .
> .
> .
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: os.name=Windows 2000
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: os.arch=x86
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: os.version=5.0
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: Default Locale=English (United
> States)
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: JMeter  Locale=English (United
> States)
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: JMeterHome=C:\Documents and
> Settings\manjulap\.maven\cache\maven-mecp-test-plugin-2.0.5\jakarta-jmeter-2
> .2

Best not to install JMeter in a path with spaces in its name, but
probably not relevant to this case.

> 2007/10/02 18:02:49 INFO  - jmeter.JMeter:
> user.dir=D:/projects/mecp-test/target/tmp/testcases
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: PWD
> =D:\projects\mecp-test\target\tmp\testcases
> 2007/10/02 18:02:49 INFO  - jmeter.JMeter: Loading file:
> D:\projects\mecp-test\target\tmp\testcases\invoice_tc044.jmx

CSV DataSet will read files relative to the jmx file.

> .
> .
> 2007/10/02 18:02:54 ERROR - jmeter.config.CSVDataSet:
> java.io.FileNotFoundException:
> D:\projects\mecp-test\target\tmp\testcases\database_response.txt (The system
> cannot find the file specified)
> 2007/10/02 18:02:54 ERROR - jmeter.threads.JMeterThread:
> java.lang.IllegalArgumentException: protocol = http host = null
> .
> .
> .
>
>
> Thx & BR,
> Manjula
>
>
>
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Tuesday, October 02, 2007 4:30 PM
> > To: JMeter Users List
> > Subject: Re: Relative Path Issue
> >
> > What file reference is failing?
> > Is it a CSV data set?
> > Or some other reference e.g. CSVRead or StringFromFile?
> > Or your own code?
> >
> > What error do you get in the log file?
> >
> > CSV Dataset uses the path of the running JMX file as the base for any
> > relative file references; other test elements may use a different
> > base.
> >
> > On 02/10/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> > > Hi,
> > >
> > > After doing few tests I realized that changing "user.dir" is worked fine
> > > with GUI mode and not working with NON-GUI mode.
> > >
> > > Since I'm working with NON-GUI mode, can anyone help me to solve this
> > > problem?
> > >
> > > Thx & BR,
> > > Manjula
> > >
> > > -----Original Message-----
> > > From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> > > Sent: Monday, October 01, 2007 6:52 PM
> > > To: 'JMeter Users List'
> > > Subject: RE: Relative Path Issue
> > >
> > > Hi Sebb,
> > >
> > > Thx for the reply. I was successful with your instructions. But I need
> > > further help.
> > >
> > > Log (The way I have used earlier)
> > >
> > > 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> > > JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> > > 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> > > user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> > > 2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
> > > =D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> > >
> > > Log (The way you have instructed)
> > >
> > > 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> > > JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> > > 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> > > user.dir=D:\projects\mecp-test\target\tmp\testcases
> > > 2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
> > > =D:\projects\mecp-test\target\tmp\testcases
> > >
> > > I feel "user.dir" done the trick here(pls correct if I'm wrong), since i
> > am
> > > trying to integrate maven & jmeter pls help me to sort this out.
> > >
> > > I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to
> > send
> > > parameter. Now log shows everything like the way u instructed, but the
> > > result is same as previous. I'm using WIN2K machine.
> > >
> > > Your help is greatly appreciated.
> > >
> > > BR,
> > > Manjula
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: sebb [mailto:sebbaz@gmail.com]
> > > Sent: Friday, September 28, 2007 5:51 PM
> > > To: JMeter Users List
> > > Subject: Re: Relative Path Issue
> > >
> > > JMeter looks up relative files based on the current working directory.
> > >
> > > So just start JMeter in the appropriate directory.
> > >
> > > Also, it's best to use / rather than \ in path names.
> > >
> > > On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> > > > Hi,
> > > >
> > > >
> > > >
> > > > I have a requirement of referring files relative to the JMX file.
> > > >
> > > >
> > > >
> > > > Example:
> > > >
> > > >
> > > >
> > > > "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring
> > to
> > > > "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
> > > >
> > > > Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
> > > >
> > > >
> > > >
> > > > The solution should be regardless of $JMETER_HOME/bin directory.
> > > >
> > > > Pls. help me to find a solution.
> > > >
> > > >
> > > >
> > > > Thx & BR,
> > > >
> > > > Manjula
> > > >
> > > >
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
>
> ---------------------------------------------------------------------
> 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: Relative Path Issue

Posted by Manjula Priyantha <ma...@ebuilder.lk>.
Hi,

Scenario is i'm creating a file(database_response.txt) using BeanShell
Listener where the same place JMX file exists and acessing it with
CSVDataSet Config. This is working fine with GUI mode (i have noticed
jmeter.log is create in the same place where JMX file exists). But with
NON-GUI mode both jmeter.log and database_response.txt created in the
$JMETER_HOME/bin directory. My observation is CSVDataSet is looking for the
correct path but file is creating in the wrong place.

#### Code #####
.
.
try {
      FileWriter responseFile = new FileWriter( "database_response.txt");
      
      String response = sampleResult.getResponseDataAsString();
      String act_response="";
.
.

#### Log #####
.
.
.
2007/10/02 18:02:49 INFO  - jmeter.JMeter: os.name=Windows 2000 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: os.arch=x86 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: os.version=5.0 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: Default Locale=English (United
States) 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: JMeter  Locale=English (United
States) 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: JMeterHome=C:\Documents and
Settings\manjulap\.maven\cache\maven-mecp-test-plugin-2.0.5\jakarta-jmeter-2
.2 
2007/10/02 18:02:49 INFO  - jmeter.JMeter:
user.dir=D:/projects/mecp-test/target/tmp/testcases 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: PWD
=D:\projects\mecp-test\target\tmp\testcases 
2007/10/02 18:02:49 INFO  - jmeter.JMeter: Loading file:
D:\projects\mecp-test\target\tmp\testcases\invoice_tc044.jmx 
.
.
.
2007/10/02 18:02:54 ERROR - jmeter.config.CSVDataSet:
java.io.FileNotFoundException:
D:\projects\mecp-test\target\tmp\testcases\database_response.txt (The system
cannot find the file specified) 
2007/10/02 18:02:54 ERROR - jmeter.threads.JMeterThread:
java.lang.IllegalArgumentException: protocol = http host = null
.
.
.


Thx & BR,
Manjula



> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tuesday, October 02, 2007 4:30 PM
> To: JMeter Users List
> Subject: Re: Relative Path Issue
> 
> What file reference is failing?
> Is it a CSV data set?
> Or some other reference e.g. CSVRead or StringFromFile?
> Or your own code?
> 
> What error do you get in the log file?
> 
> CSV Dataset uses the path of the running JMX file as the base for any
> relative file references; other test elements may use a different
> base.
> 
> On 02/10/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> > Hi,
> >
> > After doing few tests I realized that changing "user.dir" is worked fine
> > with GUI mode and not working with NON-GUI mode.
> >
> > Since I'm working with NON-GUI mode, can anyone help me to solve this
> > problem?
> >
> > Thx & BR,
> > Manjula
> >
> > -----Original Message-----
> > From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> > Sent: Monday, October 01, 2007 6:52 PM
> > To: 'JMeter Users List'
> > Subject: RE: Relative Path Issue
> >
> > Hi Sebb,
> >
> > Thx for the reply. I was successful with your instructions. But I need
> > further help.
> >
> > Log (The way I have used earlier)
> >
> > 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> > JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> > 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> > user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> > 2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
> > =D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> >
> > Log (The way you have instructed)
> >
> > 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> > JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> > 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> > user.dir=D:\projects\mecp-test\target\tmp\testcases
> > 2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
> > =D:\projects\mecp-test\target\tmp\testcases
> >
> > I feel "user.dir" done the trick here(pls correct if I'm wrong), since i
> am
> > trying to integrate maven & jmeter pls help me to sort this out.
> >
> > I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to
> send
> > parameter. Now log shows everything like the way u instructed, but the
> > result is same as previous. I'm using WIN2K machine.
> >
> > Your help is greatly appreciated.
> >
> > BR,
> > Manjula
> >
> >
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Friday, September 28, 2007 5:51 PM
> > To: JMeter Users List
> > Subject: Re: Relative Path Issue
> >
> > JMeter looks up relative files based on the current working directory.
> >
> > So just start JMeter in the appropriate directory.
> >
> > Also, it's best to use / rather than \ in path names.
> >
> > On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> > > Hi,
> > >
> > >
> > >
> > > I have a requirement of referring files relative to the JMX file.
> > >
> > >
> > >
> > > Example:
> > >
> > >
> > >
> > > "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring
> to
> > > "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
> > >
> > > Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
> > >
> > >
> > >
> > > The solution should be regardless of $JMETER_HOME/bin directory.
> > >
> > > Pls. help me to find a solution.
> > >
> > >
> > >
> > > Thx & BR,
> > >
> > > Manjula
> > >
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
> > ---------------------------------------------------------------------
> > 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


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


Re: Relative Path Issue

Posted by sebb <se...@gmail.com>.
What file reference is failing?
Is it a CSV data set?
Or some other reference e.g. CSVRead or StringFromFile?
Or your own code?

What error do you get in the log file?

CSV Dataset uses the path of the running JMX file as the base for any
relative file references; other test elements may use a different
base.

On 02/10/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> Hi,
>
> After doing few tests I realized that changing "user.dir" is worked fine
> with GUI mode and not working with NON-GUI mode.
>
> Since I'm working with NON-GUI mode, can anyone help me to solve this
> problem?
>
> Thx & BR,
> Manjula
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> Sent: Monday, October 01, 2007 6:52 PM
> To: 'JMeter Users List'
> Subject: RE: Relative Path Issue
>
> Hi Sebb,
>
> Thx for the reply. I was successful with your instructions. But I need
> further help.
>
> Log (The way I have used earlier)
>
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
> =D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
>
> Log (The way you have instructed)
>
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> user.dir=D:\projects\mecp-test\target\tmp\testcases
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
> =D:\projects\mecp-test\target\tmp\testcases
>
> I feel "user.dir" done the trick here(pls correct if I'm wrong), since i am
> trying to integrate maven & jmeter pls help me to sort this out.
>
> I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to send
> parameter. Now log shows everything like the way u instructed, but the
> result is same as previous. I'm using WIN2K machine.
>
> Your help is greatly appreciated.
>
> BR,
> Manjula
>
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, September 28, 2007 5:51 PM
> To: JMeter Users List
> Subject: Re: Relative Path Issue
>
> JMeter looks up relative files based on the current working directory.
>
> So just start JMeter in the appropriate directory.
>
> Also, it's best to use / rather than \ in path names.
>
> On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> > Hi,
> >
> >
> >
> > I have a requirement of referring files relative to the JMX file.
> >
> >
> >
> > Example:
> >
> >
> >
> > "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring to
> > "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
> >
> > Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
> >
> >
> >
> > The solution should be regardless of $JMETER_HOME/bin directory.
> >
> > Pls. help me to find a solution.
> >
> >
> >
> > Thx & BR,
> >
> > Manjula
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> 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: Relative Path Issue

Posted by Shaik Riyaz <sh...@hexaware.com>.
Apology for the inconvenience of my previous message. Being new I don't
know even on which url the old thread is available which is relevant
beginners.

Regards,
Riyaz

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, October 02, 2007 4:26 PM
To: JMeter Users List
Subject: Re: Relative Path Issue

Please don't ask new questions in an old thread.

If you want to ask a new question, please post a new message with an
appropriate subject..


On 02/10/2007, Shaik Riyaz <sh...@hexaware.com> wrote:
> Hi Guys,
> I am a beginner to JMeter, working on Java application as a Test
> engineer. Can any body tell me how to start with JMeter.
>
> 1.Where I get JMeter software(links of this open source, I have
referred
> http://jakarta.apache.org/site/ link but unable to get it)
>
> 2.How do I Install it and start coding in it
> 3. Which language we use to script the tests
>
>
> Thanks in advance.
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> Sent: Tuesday, October 02, 2007 3:24 PM
> To: 'JMeter Users List'
> Subject: RE: Relative Path Issue
>
> Hi,
>
> After doing few tests I realized that changing "user.dir" is worked
fine
> with GUI mode and not working with NON-GUI mode.
>
> Since I'm working with NON-GUI mode, can anyone help me to solve this
> problem?
>
> Thx & BR,
> Manjula
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> Sent: Monday, October 01, 2007 6:52 PM
> To: 'JMeter Users List'
> Subject: RE: Relative Path Issue
>
> Hi Sebb,
>
> Thx for the reply. I was successful with your instructions. But I need
> further help.
>
> Log (The way I have used earlier)
>
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
> =D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
>
> Log (The way you have instructed)
>
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> user.dir=D:\projects\mecp-test\target\tmp\testcases
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
> =D:\projects\mecp-test\target\tmp\testcases
>
> I feel "user.dir" done the trick here(pls correct if I'm wrong), since
i
> am
> trying to integrate maven & jmeter pls help me to sort this out.
>
> I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/>
to
> send
> parameter. Now log shows everything like the way u instructed, but the
> result is same as previous. I'm using WIN2K machine.
>
> Your help is greatly appreciated.
>
> BR,
> Manjula
>
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, September 28, 2007 5:51 PM
> To: JMeter Users List
> Subject: Re: Relative Path Issue
>
> JMeter looks up relative files based on the current working directory.
>
> So just start JMeter in the appropriate directory.
>
> Also, it's best to use / rather than \ in path names.
>
> On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk>
wrote:
> > Hi,
> >
> >
> >
> > I have a requirement of referring files relative to the JMX file.
> >
> >
> >
> > Example:
> >
> >
> >
> > "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is
referring
> to
> > "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
> >
> > Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
> >
> >
> >
> > The solution should be regardless of $JMETER_HOME/bin directory.
> >
> > Pls. help me to find a solution.
> >
> >
> >
> > Thx & BR,
> >
> > Manjula
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
************************************************************************
***************************************************
> This e-mail communication and any attachments may be privileged and
confidential to Hexaware and are intended only for the
> use of the recipients named above. If you are not the intended
recipient, please do not review, disclose, disseminate,
> distribute or copy this e-mail and attachments. If you have received
this email in error, please delete the same alongwith
> all attachments thereto and notify us immediately at
mailadmin@hexaware.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



***************************************************************************************************************************
This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the 
use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, 
distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith 
all attachments thereto and notify us immediately at mailadmin@hexaware.com .
***************************************************************************************************************************


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


Re: Relative Path Issue

Posted by sebb <se...@gmail.com>.
Please don't ask new questions in an old thread.

If you want to ask a new question, please post a new message with an
appropriate subject..


On 02/10/2007, Shaik Riyaz <sh...@hexaware.com> wrote:
> Hi Guys,
> I am a beginner to JMeter, working on Java application as a Test
> engineer. Can any body tell me how to start with JMeter.
>
> 1.Where I get JMeter software(links of this open source, I have referred
> http://jakarta.apache.org/site/ link but unable to get it)
>
> 2.How do I Install it and start coding in it
> 3. Which language we use to script the tests
>
>
> Thanks in advance.
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> Sent: Tuesday, October 02, 2007 3:24 PM
> To: 'JMeter Users List'
> Subject: RE: Relative Path Issue
>
> Hi,
>
> After doing few tests I realized that changing "user.dir" is worked fine
> with GUI mode and not working with NON-GUI mode.
>
> Since I'm working with NON-GUI mode, can anyone help me to solve this
> problem?
>
> Thx & BR,
> Manjula
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk]
> Sent: Monday, October 01, 2007 6:52 PM
> To: 'JMeter Users List'
> Subject: RE: Relative Path Issue
>
> Hi Sebb,
>
> Thx for the reply. I was successful with your instructions. But I need
> further help.
>
> Log (The way I have used earlier)
>
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter:
> user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
> 2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
> =D:\INSTALLATIONS\jakarta-jmeter-2.2\bin
>
> Log (The way you have instructed)
>
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter:
> user.dir=D:\projects\mecp-test\target\tmp\testcases
> 2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
> =D:\projects\mecp-test\target\tmp\testcases
>
> I feel "user.dir" done the trick here(pls correct if I'm wrong), since i
> am
> trying to integrate maven & jmeter pls help me to sort this out.
>
> I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to
> send
> parameter. Now log shows everything like the way u instructed, but the
> result is same as previous. I'm using WIN2K machine.
>
> Your help is greatly appreciated.
>
> BR,
> Manjula
>
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, September 28, 2007 5:51 PM
> To: JMeter Users List
> Subject: Re: Relative Path Issue
>
> JMeter looks up relative files based on the current working directory.
>
> So just start JMeter in the appropriate directory.
>
> Also, it's best to use / rather than \ in path names.
>
> On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> > Hi,
> >
> >
> >
> > I have a requirement of referring files relative to the JMX file.
> >
> >
> >
> > Example:
> >
> >
> >
> > "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring
> to
> > "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
> >
> > Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
> >
> >
> >
> > The solution should be regardless of $JMETER_HOME/bin directory.
> >
> > Pls. help me to find a solution.
> >
> >
> >
> > Thx & BR,
> >
> > Manjula
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> ***************************************************************************************************************************
> This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the
> use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate,
> distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith
> all attachments thereto and notify us immediately at mailadmin@hexaware.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: Relative Path Issue

Posted by Shaik Riyaz <sh...@hexaware.com>.
Hi Guys,
I am a beginner to JMeter, working on Java application as a Test
engineer. Can any body tell me how to start with JMeter.

1.Where I get JMeter software(links of this open source, I have referred
http://jakarta.apache.org/site/ link but unable to get it)

2.How do I Install it and start coding in it
3. Which language we use to script the tests


Thanks in advance.

-----Original Message-----
From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk] 
Sent: Tuesday, October 02, 2007 3:24 PM
To: 'JMeter Users List'
Subject: RE: Relative Path Issue

Hi,

After doing few tests I realized that changing "user.dir" is worked fine
with GUI mode and not working with NON-GUI mode. 

Since I'm working with NON-GUI mode, can anyone help me to solve this
problem?

Thx & BR,
Manjula

-----Original Message-----
From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk] 
Sent: Monday, October 01, 2007 6:52 PM
To: 'JMeter Users List'
Subject: RE: Relative Path Issue

Hi Sebb,

Thx for the reply. I was successful with your instructions. But I need
further help.

Log (The way I have used earlier)

2007/10/01 16:08:07 INFO  - jmeter.JMeter:
JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2 
2007/10/01 16:08:07 INFO  - jmeter.JMeter:
user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin 
2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin

Log (The way you have instructed)

2007/10/01 16:01:46 INFO  - jmeter.JMeter:
JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2 
2007/10/01 16:01:46 INFO  - jmeter.JMeter:
user.dir=D:\projects\mecp-test\target\tmp\testcases 
2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
=D:\projects\mecp-test\target\tmp\testcases

I feel "user.dir" done the trick here(pls correct if I'm wrong), since i
am
trying to integrate maven & jmeter pls help me to sort this out.

I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to
send
parameter. Now log shows everything like the way u instructed, but the
result is same as previous. I'm using WIN2K machine.

Your help is greatly appreciated.

BR,
Manjula



-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, September 28, 2007 5:51 PM
To: JMeter Users List
Subject: Re: Relative Path Issue

JMeter looks up relative files based on the current working directory.

So just start JMeter in the appropriate directory.

Also, it's best to use / rather than \ in path names.

On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> Hi,
>
>
>
> I have a requirement of referring files relative to the JMX file.
>
>
>
> Example:
>
>
>
> "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring
to
> "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
>
> Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
>
>
>
> The solution should be regardless of $JMETER_HOME/bin directory.
>
> Pls. help me to find a solution.
>
>
>
> Thx & BR,
>
> Manjula
>
>
>
>

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


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



***************************************************************************************************************************
This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the 
use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, 
distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith 
all attachments thereto and notify us immediately at mailadmin@hexaware.com .
***************************************************************************************************************************


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


RE: Relative Path Issue

Posted by Manjula Priyantha <ma...@ebuilder.lk>.
Hi,

After doing few tests I realized that changing "user.dir" is worked fine
with GUI mode and not working with NON-GUI mode. 

Since I'm working with NON-GUI mode, can anyone help me to solve this
problem?

Thx & BR,
Manjula

-----Original Message-----
From: Manjula Priyantha [mailto:manjula.priyantha@ebuilder.lk] 
Sent: Monday, October 01, 2007 6:52 PM
To: 'JMeter Users List'
Subject: RE: Relative Path Issue

Hi Sebb,

Thx for the reply. I was successful with your instructions. But I need
further help.

Log (The way I have used earlier)

2007/10/01 16:08:07 INFO  - jmeter.JMeter:
JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2 
2007/10/01 16:08:07 INFO  - jmeter.JMeter:
user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin 
2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin

Log (The way you have instructed)

2007/10/01 16:01:46 INFO  - jmeter.JMeter:
JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2 
2007/10/01 16:01:46 INFO  - jmeter.JMeter:
user.dir=D:\projects\mecp-test\target\tmp\testcases 
2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
=D:\projects\mecp-test\target\tmp\testcases

I feel "user.dir" done the trick here(pls correct if I'm wrong), since i am
trying to integrate maven & jmeter pls help me to sort this out.

I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to send
parameter. Now log shows everything like the way u instructed, but the
result is same as previous. I'm using WIN2K machine.

Your help is greatly appreciated.

BR,
Manjula



-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, September 28, 2007 5:51 PM
To: JMeter Users List
Subject: Re: Relative Path Issue

JMeter looks up relative files based on the current working directory.

So just start JMeter in the appropriate directory.

Also, it's best to use / rather than \ in path names.

On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> Hi,
>
>
>
> I have a requirement of referring files relative to the JMX file.
>
>
>
> Example:
>
>
>
> "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring to
> "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
>
> Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
>
>
>
> The solution should be regardless of $JMETER_HOME/bin directory.
>
> Pls. help me to find a solution.
>
>
>
> Thx & BR,
>
> Manjula
>
>
>
>

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


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


RE: Relative Path Issue

Posted by Manjula Priyantha <ma...@ebuilder.lk>.
Hi Sebb,

Thx for the reply. I was successful with your instructions. But I need
further help.

Log (The way I have used earlier)

2007/10/01 16:08:07 INFO  - jmeter.JMeter:
JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2 
2007/10/01 16:08:07 INFO  - jmeter.JMeter:
user.dir=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin 
2007/10/01 16:08:07 INFO  - jmeter.JMeter: PWD
=D:\INSTALLATIONS\jakarta-jmeter-2.2\bin

Log (The way you have instructed)

2007/10/01 16:01:46 INFO  - jmeter.JMeter:
JMeterHome=D:\INSTALLATIONS\jakarta-jmeter-2.2 
2007/10/01 16:01:46 INFO  - jmeter.JMeter:
user.dir=D:\projects\mecp-test\target\tmp\testcases 
2007/10/01 16:01:46 INFO  - jmeter.JMeter: PWD
=D:\projects\mecp-test\target\tmp\testcases

I feel "user.dir" done the trick here(pls correct if I'm wrong), since i am
trying to integrate maven & jmeter pls help me to sort this out.

I have used <jvmarg value="-Duser.dir=${jmeter.tempdir}/testcases"/> to send
parameter. Now log shows everything like the way u instructed, but the
result is same as previous. I'm using WIN2K machine.

Your help is greatly appreciated.

BR,
Manjula



-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, September 28, 2007 5:51 PM
To: JMeter Users List
Subject: Re: Relative Path Issue

JMeter looks up relative files based on the current working directory.

So just start JMeter in the appropriate directory.

Also, it's best to use / rather than \ in path names.

On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> Hi,
>
>
>
> I have a requirement of referring files relative to the JMX file.
>
>
>
> Example:
>
>
>
> "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring to
> "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
>
> Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
>
>
>
> The solution should be regardless of $JMETER_HOME/bin directory.
>
> Pls. help me to find a solution.
>
>
>
> Thx & BR,
>
> Manjula
>
>
>
>

---------------------------------------------------------------------
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: Relative Path Issue

Posted by sebb <se...@gmail.com>.
JMeter looks up relative files based on the current working directory.

So just start JMeter in the appropriate directory.

Also, it's best to use / rather than \ in path names.

On 28/09/2007, Manjula Priyantha <ma...@ebuilder.lk> wrote:
> Hi,
>
>
>
> I have a requirement of referring files relative to the JMX file.
>
>
>
> Example:
>
>
>
> "D:\projects\mecp-test\testcases\invoice_tc044.jmx"  file is referring to
> "D:\projects\mecp-test\inputs\invoice_tc044.xml" file.
>
> Need is to use "..\inputs\ invoice_tc044.xml" in the JMX file.
>
>
>
> The solution should be regardless of $JMETER_HOME/bin directory.
>
> Pls. help me to find a solution.
>
>
>
> Thx & BR,
>
> Manjula
>
>
>
>

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