Forum Discussion
DaveD
16 years agoOccasional Contributor
Geez I *hate* when this happens. Yesterday I spend a fair amount of time trying to get this to work. This morning, after Ole's response I went in to run the test one more time so I could include the console output with the project, AND IT WORKED! I did first check each step and found that the Loop did not have the correct target step, but I know that it did yesterday.
There is just one minor issue remaining. My understanding is that the Datasource Loop will continue to loop back to the Datasource step until there is no more data. This is working, but at that point, when there is no more data to be read, an error is generated, which causes the test to fail, skipping the final 'Close Files' step.
When I read data in the Datasource step I then populate the result Map. I assume that I should be doing something when there is no data to read to signal that fact, rather than letting an exception be thrown. What should I be doing do handle this more gracefully?
Thanks again,
Dave
There is just one minor issue remaining. My understanding is that the Datasource Loop will continue to loop back to the Datasource step until there is no more data. This is working, but at that point, when there is no more data to be read, an error is generated, which causes the test to fail, skipping the final 'Close Files' step.
When I read data in the Datasource step I then populate the result Map. I assume that I should be doing something when there is no data to read to signal that fact, rather than letting an exception be thrown. What should I be doing do handle this more gracefully?
Thanks again,
Dave