On 20/06/07, aidy lewis <[EMAIL PROTECTED]> wrote:
Data driven testing
Sander's sent me some ideas off-line, but I am enountering a few problems.
This is my spike set up:
Test Plan
User Defined Variables
name=datafile value=C:\all_data.csv
User Parameters
name=execute user1=${_CSVRead(${datafile},0)}
name=testcase user1=${_CSVRead(${datafile},1)}
name=testdescription user1=${_CSVRead(${datafile},2)}
You need to add ${_CSVRead(${datafile},next)} to the last variable
(or use a dummy variable)
Better would be to use CSV DataSet.
If controller
condition=${execute} == 'Y'
That's not valid Javascript; try
condition: ${execute}' == 'Y'
BeanShell PreProcessor
print(${testcase});
print(${testdescription});
The data file contents are these
Execute, testcase, testdescription
Y, a_test, a_description
Spaces are not removed...
The problems I am encountering are that:
1) The BeanShell PreProcessor is not printing out the testcase and the
testdescription.
These will appear in the console window.
2) The test execution seems to hang
Check jmeter.log
Thanks
Aidy
---------------------------------------------------------------------
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]