I think it is better to use the CSV Data Set Config element.  There you
specify the filename, variable names, etc.  Then you just use the variables
in your test plan and the CSV Data Set Config takes care of reading the next
line for you.

Regards,

Matt C.

-----Original Message-----
From: rajendra_sakpal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 2:49 AM
To: [email protected]
Cc: 'rajendra_sakpal'
Subject: Problem reading value of a test parameter from a data file.

Hi,

 

I am trying to create a data driven test in JMETER using the instructions on
http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-87f846dad28fd6b2ad5eb0d
44d527d572f810653 under the question "How do I use external data files to in
my Test scripts?".

 

1-       I am not clear with the format for specifying value of the
parameter when using the "User Parameters" preprocessor.  I have given value
the parameter "fName" as "${_StringFromFile(user.dat)}".  Is the format for
specifying value of the parameter correct? However, JMETER doesn't attempt
to read from the data file user.dat. As a result, data posted for my
subsequent request is evaluated as firstName=${fName}.  The ${fName} is not
getting substituted by the value in the data file. Is _StringFromFile a
JMETER function that is invoked to read the data from the mentioned file?

 

2-       I have specified the data in "user.dat" with the first line reading
as FNAME & subsequent lines have values in it.  Is the data file format
correct?

 

What could be the problem?

 

Thanks in advance,

Rajendra

 

 

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Pvt. Ltd. It is intended only for the use of
the individual or entity to which it is addressed. If you are not the
intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in
error, please notify the sender and delete all copies of this message.
Persistent Systems Pvt. Ltd. does not accept any liability for virus
infected mails.



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

Reply via email to