Forum Discussion

n911681's avatar
n911681
Occasional Contributor
11 years ago

Data Driven Testing

I'm using multiple XML files within the same directory. I want to read the files and put those into the database. If you look at my attachment you'll see how i have my Test Case setup.

My desired result would be to read the files, loop through the test case and write the files to the database. For this test I'm only using 2 files and only one is being loaded. Yet it runs through the test case twice.

Any direction appreciated.
Thanks

5 Replies

  • abhishek813's avatar
    abhishek813
    Frequent Contributor
    The DataSource Loop 1, where does it point to? Directory or XML?
  • n911681's avatar
    n911681
    Occasional Contributor
    DataSourceStep = Directory
    Target Step = PersistFees - Request 1
  • n911681's avatar
    n911681
    Occasional Contributor
    I've tried changing both to XML and Directory as well as putting in another datasource loop...
  • n911681's avatar
    n911681
    Occasional Contributor
    I changed my datasource loop to the following and it's working

    DataSource Step: Directory
    Target Step: XML
    THanks
  • abhishek813's avatar
    abhishek813
    Frequent Contributor
    Good Stuff

    I had similar problem with Data Driver where i was pointing it to the wrong step, that's why i asked you the question.