Forum Discussion

Intermountain_H_3's avatar
15 years ago

Runtime selection of DataSource file

Using the 3/19/10 build of soapUI-Pro

In the first step of my script, using Groovy, I allow the user to select the 'File' type DataSource file & place that file path as the filename in my DataSource step.

However, when the DataSource step is executed, it still reads data from the file path it contained when the script was started (before my re-assignment), ignoring the file I dynamically entered, and executing the remainder of the script with the wrong data.

3 Replies

  • Hi!

    thanks for noticing, this should be fixed in upcoming nightly build!

    Have a nice weekend!

    regards,

    /Ole
    eviware.com
  • Appears to handle the file name change.

    However, I now need to set the Data Source start row to 2 rather than 1, to bypass the heading row in my source file.  This is now inconsistent with the Test DataSource function. It now skips the first data row in addition to the heading row.

    Is this something that should be changed?
  • Hello,

    The row numbering is 0-indexed, meaning that the first row is 0, the second is 1, etc. So if you want to skip the very first row you should set the start row to 1. Does this work?

    Regards,
    Dain
    eviware.com