Forum Discussion
I might be missing something, but looking at the if statement:
if (currentRowIndex == rows - 1) { testRunner.cancel( "Data Tag cannot be blank." ) return null }
Are you not cancelling the test runner every time you hit the last row?
currentRowIndex is set by the currentRow value where the first row has the value 1.
Thus you will always cancel on the last genuine row (as you are checking against the getRowCount() minus one).
- krabhishek_307 years agoOccasional Contributor
Radford Ideally it should be cancelled everytime last row is encountered. But that the issue i am facing, Ready API does not cancel.
It does run the case, but its not entering this if block.Since, Ready API, by default, adds 1 row to the grid, i added "rows - 1" - because i have 25 records, but row count method returns 26 (because of extra row added by Ready API). So when last row is encountered, it should cancel the execution of the test case. I tried with "currentRowIndex == rows" condition as well, in this case, ideally, the case should be cancelled when blank row (row added by ready api) is encountered. But it doesn't cancel it then as well. The case is run with value from "dataTag" column of last row (rows-1).
Related Content
- 6 years ago
Recent Discussions
- 4 days ago