alisson_cruz
11 years agoNew Contributor
Excel Data-Driven doubt
Hi,
I'm trying to use a .xls file to get values for a test, but there's a point where it doesn't go well.
The tests are working fine, they are using values in 2 columns of a excel table. The problem is: TestComplete can't identify where it should stop reading rows.
TestComplete are correctly getting value after value, row after row.. however when it gets in a empty row, it tries to get the value and thows a exception (because this value doesn't exist, it's a blank cell).
At "Data-Driven Loop", I already defined "Start record > From the beginning" and "End record > To the end", and it doesn't work.
The test only works perfectly when I define a "End record > To record <number max of filled rows>"
At "Open Data Generator" I left the default parameter: "Integer - Sequence from 1 to 2147483647, the increment value is 1 | x1"
Thanks.
I'm trying to use a .xls file to get values for a test, but there's a point where it doesn't go well.
The tests are working fine, they are using values in 2 columns of a excel table. The problem is: TestComplete can't identify where it should stop reading rows.
TestComplete are correctly getting value after value, row after row.. however when it gets in a empty row, it tries to get the value and thows a exception (because this value doesn't exist, it's a blank cell).
At "Data-Driven Loop", I already defined "Start record > From the beginning" and "End record > To the end", and it doesn't work.
The test only works perfectly when I define a "End record > To record <number max of filled rows>"
At "Open Data Generator" I left the default parameter: "Integer - Sequence from 1 to 2147483647, the increment value is 1 | x1"
Thanks.
- It's not the most elegant solution, but when I had this happen, I copied the specific cells out of my Excel sheet into a new sheet and the new one worked.
I never could fix the old sheet. Best I could figure out was that there was some hidden Excel junk in the extra rows that TC was picking up.