在 Android 项目中:- 在我的应用程序中有很多图像,我必须验证它们,我如何使用断言
在 Robotium 中:- 我正在使用 Solo 类编写自动化脚本。现在我必须验证我的应用程序中的图像。
对于文本,我们可以使用Assert.assertTrue(solo.searchText("rtf"));
对于图像,Robotium Solo中有什么命令吗?班级?
In Robotium :- I am writing automation scripts using Solo class. Now i have to verify the images in my application.
For texts we can use Assert.assertTrue(solo.searchText("rtf"));
For images, is there any command in Robotium Solo Class?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
并不真地。大多数建议的测试 ImageViews 的方法(其含义可能有所不同)如下:
另外,您可能还想查看此讨论 使用其他方法来目视检查图像。
Not really. Most suggested way to test (its meaning may vary) ImageViews is given by:
Also, you may want to have a look at this discussion on some other method to visually check the image.
您可以尝试以下操作:
了解更多:https://stackoverflow.com/a/26114862
You can try this:
For more: https://stackoverflow.com/a/26114862