Forum Discussion

MonicaTeotia's avatar
MonicaTeotia
Occasional Contributor
2 years ago

Verify if column is sorted in test complete

Hi,

There is a table grid in my web application. It has a column which can be sorted in ascending / descending order.

How do i verify whether the sorting is working using test complete?

Which check point should be used for this verification. Please suggest

 

Thanks,

Monica

1 Reply

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Use Object Spy on your table and decide which properties would be suitable to verify. For example, I'm expecting the property contentText in the table to be ordered as 1, 2, 3, 4, 5.

    aqObject.CheckProperty(Aliases.YourTable, "contentText", cmpEquals, "1 2 3 4 5");

    See About Property Checkpoints