You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by ZK <st...@gmail.com> on 2012/02/22 13:38:39 UTC

CSV issue?

Hi,
I am having an issue reading txt files using the CSV Data Set Config in
jmeter 2.6

Test plan:
+User Defined Variables [Name = configPath    Value = ./Config/]
+CSV [Filename = ${configPath}test.txt]
+Debug Sampler

In jmeter 2.4 this worked for me to get CSV data from a folder relative to
the .jmx
In 2.6 this doesnt work, I get a file not found error

However; if I create this in 2.4 and merge with 2.6 it works as expected, is
this a bug?



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5504973.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: CSV issue?

Posted by ZK <st...@gmail.com>.
@Phillipe:
>Also, where is you Config folder located ?
>in jmeter bin folder ? or where the JMX plan is located ?
where the jmx plan is located:
+Test Dir
++Test.jmx
++Config Dir\csv file


ZK

 


--
View this message in context: http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5505563.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: CSV issue?

Posted by Philippe Mouawad <ph...@gmail.com>.
Also, where is you Config folder located ?
in jmeter bin folder ? or where the JMX plan is located ?

Regards
Philippe

On Wed, Feb 22, 2012 at 4:42 PM, Shaba K <sh...@gmail.com> wrote:

> Sounds like a bug am on 2.5.1 it works perfectly fine
>
> -Shabana
>
> On Wed, Feb 22, 2012 at 12:38 PM, ZK <st...@gmail.com> wrote:
>
> > Hi,
> > I am having an issue reading txt files using the CSV Data Set Config in
> > jmeter 2.6
> >
> > Test plan:
> > +User Defined Variables [Name = configPath    Value = ./Config/]
> > +CSV [Filename = ${configPath}test.txt]
> > +Debug Sampler
> >
> > In jmeter 2.4 this worked for me to get CSV data from a folder relative
> to
> > the .jmx
> > In 2.6 this doesnt work, I get a file not found error
> >
> > However; if I create this in 2.4 and merge with 2.6 it works as expected,
> > is
> > this a bug?
> >
> >
> >
> > ZK
> >
> > --
> > View this message in context:
> > http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5504973.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>



-- 
Cordialement.
Philippe Mouawad.

Re: CSV issue?

Posted by Shaba K <sh...@gmail.com>.
Sounds like a bug am on 2.5.1 it works perfectly fine

-Shabana

On Wed, Feb 22, 2012 at 12:38 PM, ZK <st...@gmail.com> wrote:

> Hi,
> I am having an issue reading txt files using the CSV Data Set Config in
> jmeter 2.6
>
> Test plan:
> +User Defined Variables [Name = configPath    Value = ./Config/]
> +CSV [Filename = ${configPath}test.txt]
> +Debug Sampler
>
> In jmeter 2.4 this worked for me to get CSV data from a folder relative to
> the .jmx
> In 2.6 this doesnt work, I get a file not found error
>
> However; if I create this in 2.4 and merge with 2.6 it works as expected,
> is
> this a bug?
>
>
>
> ZK
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5504973.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: CSV issue?

Posted by ZK <st...@gmail.com>.
@Sebb:
thanks Sebb, one more point though:
The CSV Data Set Config is at the root of my Test Plan and not within the
Thread Group (not sure if this helps you)


I read the defect and I will try to use the Beanshell Sampler instead!!



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5505588.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: CSV issue?

Posted by sebb <se...@gmail.com>.
On 22 February 2012 16:27, ZK <st...@gmail.com> wrote:
> @Sebb:
>>What is the exact error?
> WARN  - jmeter.protocol.java.sampler.BSFSampler: Problem evaluating the
> script java.io.FileNotFoundException: \Config\test.txt (The system cannot
> find the path specified)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(Unknown Source)
>        at java.io.FileInputStream.<init>(Unknown Source)
>        at
> org.apache.jmeter.protocol.java.sampler.BSFSampler.sample(BSFSampler.java:97)
>        at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
>        at java.lang.Thread.run(Unknown Source)
>
>>Is it only relative paths that fail for you?
> Yes and no... I only get the error if I use a BSF Sampler later in my test
> (the BSF Sampler does NOT reference any CSV variables)

In that case, it might be due to

https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

>
> It only seems to affect jmeter 2.6
>
>
> ZK
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5505557.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Re: CSV issue?

Posted by ZK <st...@gmail.com>.
@Sebb:
>What is the exact error? 
WARN  - jmeter.protocol.java.sampler.BSFSampler: Problem evaluating the
script java.io.FileNotFoundException: \Config\test.txt (The system cannot
find the path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at
org.apache.jmeter.protocol.java.sampler.BSFSampler.sample(BSFSampler.java:97)
	at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
	at java.lang.Thread.run(Unknown Source)

>Is it only relative paths that fail for you? 
Yes and no... I only get the error if I use a BSF Sampler later in my test
(the BSF Sampler does NOT reference any CSV variables)


It only seems to affect jmeter 2.6


ZK


--
View this message in context: http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5505557.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: CSV issue?

Posted by sebb <se...@gmail.com>.
On 22 February 2012 12:38, ZK <st...@gmail.com> wrote:
> Hi,
> I am having an issue reading txt files using the CSV Data Set Config in
> jmeter 2.6
>
> Test plan:
> +User Defined Variables [Name = configPath    Value = ./Config/]
> +CSV [Filename = ${configPath}test.txt]
> +Debug Sampler
>
> In jmeter 2.4 this worked for me to get CSV data from a folder relative to
> the .jmx
> In 2.6 this doesnt work, I get a file not found error

What is the exact error?
Is it only relative paths that fail for you?

> However; if I create this in 2.4 and merge with 2.6 it works as expected, is
> this a bug?

What do you mean by "merge with 2.6" ?

>
>
>
> ZK
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/CSV-issue-tp5504973p5504973.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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