如何使用编码 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在录制然后重播测试,答案是否定的 - 录音机太愚蠢,无法自行完成此操作。
解决方案是编写代码:从列中获取数据到某个集合,然后对该数据进行所有您想要的测试。
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.