O.K.

I found that the only way it worked was if I supplied a relative path to
the data file.

ie

My test script was in
c:\mytest\test1.jmx

the datafile was in
c:\mytest\data.csv

The filename I supplied in the csv dataset config was
data.csv

If you want it to be in a subdir called data then data/data.csv

-----Bhanu <[EMAIL PROTECTED]> wrote: -----

To: JMeter Users List <[email protected]>
From: Bhanu <[EMAIL PROTECTED]>
Date: 11/14/2005 11:11AM
Subject: Re: reading input from file


Hi James,



I dint include single quotes around variable names in CSV Data Set Config.


And yes,  u guessed it right , the file is not being read.

'ERROR - jmeter.config.CSVDataSet: Failed to read file:
D:\Sitestuff\test.csv '



How do i handle this?



Also, i even tried the test plan with CSV Data set Config as a sub element
to HTTP Request as per a suggestion that came in.

This doesnt work either.



Now,

- how do i make the file be read?

-should
i leave the CSV Data Set config Element as the child to HTTP Request or
take it  to the same level as HTTP Request as earlier.



thanks,

Bhanu.








James Bull <[EMAIL PROTECTED]> wrote:

Hi Bhanu,

The first thing that occurs to me is that when I used ' and ' around
the
username,password string I did this to indicate that the contents
should be
placed into the variables field. You haven't included them have you?

I could have made that clearer.

CSV Data Set Config should contain

username,password

The problem is either that the values are not being placed in the
variables
or that the file is not being read. To check if the file is being read
check the jmeter log file which can be found in

jakarta-jmeter2.1\bin\jmeter.log

If there is no error regarding csvread then the problem is elsewhere.

James

-----Bhanu <[EMAIL PROTECTED]> wrote: -----

To: JMeter Users List <[email protected]>
From: Bhanu <[EMAIL PROTECTED]>
Date: 11/14/2005 10:27AM
Subject: reading input from file

* created a 'test.csv' file  as

fred,password,
bob,pass2,
terry,pass3

* The test plan has the following elements in the order as below:

-CSV Data Set Config : used test.csv as filename,  'username,password'
as
variable names

-User Defined Variables : added two variables - username and password
in
the Name column.
-HTTP Request Defaults : with protocol and Server Name
-HTTP
request : with the path  for login web page, GET method and
parameters Name as 'username, password, login'  with Values
'${username}, ${password}, 1'
-HTTP Cookie Manager.

It doesn't work. It doesnt read data from the file. The log file shows

<sampleResult
timeStamp="1131960994017" dataType="text" threadName="test 1-1"
label="Login Request" time="20987" responseMessage="Non HTTP response
message" responseCode="Non HTTP response code"
success="false"><property xml:space="preserve"
name="samplerData">GET
https://www.sitestuff.com:443/hypertork/performLogin?username=&password=&login=1



Wherez it going wrong?

NP: The test plan works when i provide values to the user variables
rather
than asking it to read from file.

thanx,
Bhanu



---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to