Please note that this functionality has been added to the base functionality of the engine (from version 4.1.7 and higher). See VSI_TypeFromCSV
TypeFromCSV is used to get information from a CSV file during a workload. This can be useful when you need specific information from an action in the workload.
VSI_ShellExecuteWait can be found in our documentation. But it basically comes down to starting the executable in parameter 2 and pass the text in parameter 3 as command line parameters.
TypeFromCSV types data from a CSV file based on the username. It will extract the number at the end of the username and uses that as the starting point. So a username of LoginVSI001 will use the first (data) line in the CSV file. Testuser2 will use the second (data) line in the CSV file etc. That is with the parameters you have.
Sometimes you need to use multiple unique numbers in a workload though. In that case the parameters change. The parameters are as follows
- The size of the pool. This is how many items a user has access to
- The CSV file
- The column to read from in the CSV file
- Which item from the pool to use
- See the attached file
Please note that the text is typed to the application that is currently active. You have to make sure that the text field you want to type to is currently active.
vsi_shellexecutewait('TypeFromCSV','%tmp%\VSI\RunTime\TypeFromCSV.exe','1 %tmp%\VSI\Runtime\csv.csv kolom1 1')
Article is closed for comments.