-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
鲁工,请问是否有有一些命令行参数,可以脱离MTC的客户端,进行单独的录制和回放,在Ubuntu系统上使用,谢谢您! #32
Comments
可以脱离MTC客户端单独使用录制回放,客户端只是方便初级用户使用。 前提:需要安装Cafe.apk和先运行cafe_setup.sh 录制部分 回放部分 |
谢谢鲁工,我按照您的建议进行下尝试,真心感谢您的回复! |
你说得对,因为基于坐标的录制回放虽然实现简单方便,但是无法适应分辨率的变化、不同版本安卓操作系统的变化,所以就选择了基于控件的录制回放,国外的一些录制回放工具也都是基于控件的 |
是呀,确实需要再MTC的控件中,添加上wifi连接adb的设置选项,这样,对于智能电视的产品也可以连接使用了 |
当初写Cafe的初衷就是为了实现系统级交互测试。。 |
对了,还有就是比如开关wifi这种操纵系统service的也支持,详见https://github.com/BaiduQA/Cafe/blob/master/testrunner/src/com/baidu/cafe/remote/IRemoteArms.aidl |
@luxiaoyu:鲁工,请问想a应用通过startActivityForResult启动b应用再返回到a应用,或者a应用启动b应用这2类场景,cafe需要怎么设计?可以通过录制回放解决吗,谢谢! |
这个a2b2a的case不适合用录制回放解决,需要手写,跨进程相关操作参见remote.clickxxx,要返回a的话remote.sendkey(back)返回就好 |
@luxiaoyu :鲁工,请问想直接修改xml文件,有没xml的说明文档规范,谢谢 |
@zhyx 照着Cafe的api改即可,xml编译时会生成java文件 |
No description provided.
The text was updated successfully, but these errors were encountered: