简体   繁体   English

Android黑盒UI测试

[英]Android black-box UI testing

I have following problem: I need to test app as blackbox app on different devices. 我有以下问题:我需要在不同设备上将应用程序测试为黑盒应用程序。

I've tried to use monkeyrunner for it, but it so long to change tap coordinates for each device. 我曾尝试使用monkeyrunner ,但更改每个设备的点击坐标太长时间了。

Robotium and Robolectric - useless cause I need to test app as black box, and they are Juint based. RobotiumRobolectric无用的原因,我需要将应用程序测试为黑盒,它们基于Juint

uiautomatorviewer - useless too, because i have specific android image without uiautomator on board. uiautomatorviewer没用,因为我有特定的android图像而没有uiautomator。 Probably easiest solution it's to add it on device, but for now I can't do it. 可能最简单的解决方案是将其添加到设备上,但目前我还不能做到。

Can anybody help me which tool should I use. 任何人都可以帮助我使用哪种工具。

What I need: 我需要的:
1) Parse xml structure of apk. 1)解析apk的xml结构。
2) Be able to tap by this structure. 2)可以点击此结构。
3) Be able to copy data to clipboard. 3)能够将数据复制到剪贴板。
4) Be able to take screenshots. 4)能够拍摄屏幕截图。

Any help appreciated. 任何帮助表示赞赏。

I would suggest you to go with Robotium . 我建议您选择Robotium It will allow you to even take the screenshots. 它甚至允许您截取屏幕截图。 It is even easy to write testcases Using Robotium. 使用Robotium编写测试用例甚至很容易。 It provides SOLO class with lots of functionality for blackbox testing. 它为SOLO类提供了许多用于黑盒测试的功能。

I think you should go for Robotium only as it is most suitable and also recommended for black-box testing. 我认为您应该只选择Robotium,因为它最适合并且也建议用于黑盒测试。 Go through this once - http://code.google.com/p/robotium/ 一次检查-http://code.google.com/p/robotium/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM