Closed asfimport closed 19 years ago
Sebb (migrated from Bugzilla): Sorry, but the current version of CSVRead does not support multiple files - whatever file is opened first will be used for the rest of the run. See http://jakarta.apache.org/jmeter/usermanual/component_reference.html#__CSVRead
Changing to an enhancement request.
Meanwhile, you could use _StringFromFile(), which supports multiple files, but reads the entire line into the variable. If you are familiar with JavaScript, you might be able to use the __javaScript() function to split the resulting variable. Or you can divide the CSV file into separate files.
Sebb (migrated from Bugzilla): Or, of course, you can combine the CVS files into one...
Sebb (migrated from Bugzilla): CSVRead now supports multiple files
Gautam Kamat (Bug 25590): User Parameter Config Element is added to the test script and configured for say 2 users (u1 and u2). Say there are 3 user-specific parameters (say x, y and z) I need to read. For user 1 (u1) : I have x=Au1, y=Bu1, z=Cu1 For user 2 (u2) : I have x=au2, y=bu2, z=cu2 If I assign the value for the parameters in the GUI provided, I works fine ! But if I were to read these values from csv files (say User1.dat and User2.dat where User1.dat contains Au1,Bu1,Cu1 and User2.dat contains au2,bu2,cu2)using the __CSVRead built-in function, the values are not assigned as expected (as shown above)
Instead the values replaced for the users 1 and 2 are
Case:1 If User1.dat is assigned to User 1 For user 1 (u1) : x=Au1, y=Bu1, z=Cu1 For user 2 (u2) : x=Au1, y=Bu1, z=Cu1
OR Case:2 If User2.dat is assigned to User 1 For user 1 (u1) : x=au2, y=bu2, z=cu2 For user 2 (u2) : x=au2, y=bu2, z=cu2
Votes in Bugzilla: 1 OS: All Resolution: LATER