Forum Discussion

michelleunique's avatar
michelleunique
New Contributor
3 years ago

Accommodating Dynamic Row Counts in TestComplete

I'm trying to bring in some formerly manual regression tests that include checking row counts in a table. Depending on the number of entries at any given time, the count could be different each time ...
  • Marsha_R's avatar
    3 years ago

    To count the rows, you would write a loop that increments a counter for each row and stops at end of file condition on the table rather than stopping on a row number.

     

    Saving that total in a variable would allow you to compare it to the expected value.

     

    You can make that variable be a project variable or a project suite variable to share the value with other tests. 

    https://support.smartbear.com/testcomplete/docs/testing-with/variables/index.html