Last Updated: 06 Aug 2019 13:30 by ADMIN
Created on: 06 Aug 2019 11:02
Type: Bug Report
table rowscount fails when TableVerificationType is anything else but "equals"

When using a builtin step for checking rowscount of a table that uses "greater than" or "less than" it fails even though it should not.

"Equals" works fine.. but if I use any other TableVerificationType than "equals", then it fails.. unless if I convert it to a coded step.

So to reiterate: If I convert the step to a coded step then it works.


We have several test projects that now have failing tests because of this.


Attached test project that showcases the problem.




Attached Files:
Plamen Mitrev
Posted on: 06 Aug 2019 13:30
Hello Elo,

I am sorry to hear that you have encountered this misbehavior. I did test it extensively on my end and it seems that there is a bug in the recorded verification step. In cases, where the CompareType is LessThan or GreaterThan the actual comparison is not correct. That said, when the step is converted it code it generates the following method:
[CodedStep(@"Verify table's 'RowsCount' is greather than '3' on 'CustomersTable' CODE")]
public void rowscount__not_working_CodedStep2()
    // Verify table's 'RowsCount' is greather than '3' on 'CustomersTable' CODE
    Pages.HTMLTables.CustomersTable.AssertTable().RowCount(ArtOfTest.Common.NumberCompareType.GreaterThan, 3);           

The above code makes a successful comparison and the issue is somewhere in the recorded step. I converted this ticket to a public bug report item, which you can follow on our public feedback portal. We will look into it and try to resolve it for our upcoming official releases. In the meantime, you need to use a converted step in code, as a workaround.

Please excuse me for the caused inconvenience.

Plamen Mitrev
Progress Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Posted on: 06 Aug 2019 11:05
Please use this updated project: rowscount_v2.zip instead.
Attached Files: