LoadCSV Command

From GXtest Wiki
Revision as of 16:18, 16 April 2015 by Sebagra (Talk | contribs)

Jump to: navigation, search
Spanish.gif
English.gif
Japan.gif

LoadCSV

LoadCSV command is used to dinamycally load data from a CSV file to a datapool, during the execution of a testcase, so we can use the data contained inside the file as inputs of the testcase.

Command parameters

  • Target Datapool: the datapool where the data will be saved.
  • Value: Path to the csv file that will be loaded.


Considerations

  • It is assumed that the first row of the CSV file will contain the column names, so it will be omitted when the data is loaded. So, the first loaded row will be row 2.
  • The datapool must have enough columns to hold all columns contained in the CSV file. For example, if the CSV file has 3 columns of data, the datapool must have at least 3 columns defined before loading the data.
  • There is no need to match the column names between the CSV file and the datapool, no check is done regarding column names.