How to verify the sorting of different columns using coded UI
In my application, I have to verify the sorting of the some columns(column names are used as hyperlink, for first time开发者_如何转开发( when we click the column), it sorts the records in ascending order and 2nd time in descending order). I can record the sorting but how i can verify that sorting is correct. Is there any way or code to verify that sorting is working correctly.
If you are recording and then replaying tests, the answer is no — the recorder is too stupid to do this on its own.
Solution is to write code: get data from the column to some collection, and then do all the tests you want on this data.
精彩评论