Ask a Question

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

shantlk
Contributor

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 2
baxatob
Community Hero

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

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

shantlk
Contributor

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

Hi,

 

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

cancel
Showing results for 
Search instead for 
Did you mean: