Forum Discussion

shantlk's avatar
shantlk
Contributor
7 years ago

Test fails with Type Mismatch exception in data driven test selecting data from start to end

Hi, I have created a simple data driven test.  For the data selection, I have selected the from start to end record option (instead of giving the number of records).

However when the test reaches the end of the file, instead of exciting hte data loop, it still goes to the first field of the data record, and then since there are no more data, test failed with 'Type Mismatch' exception.

Note screenshot attached.

 

Please let me know how to correct this error.

 

Thank you!

2 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Please show the piece of code, from where you got exception.

    • shantlk's avatar
      shantlk
      Contributor

      Hi,

       

      Please find the attached screenshot of the keyword test code where exception is thrown.