1 / 10

录制回放工具使用说明

录制回放工具使用说明. 鲁晓宇 2013.12.04. 跨版本回放演示. http://baiduqa.github.io/Cafe / 支持跨 Android 版本、分辨率回放 跨 Android 版本 回放 : 支持 2.3-4.2 支持低版本 to 高版本 支持 高 版本 to 低 版本 跨分辨率 回放 支持 低 分辨率 to 高分辨率 支持 高 分辨率 to 低 分辨率. 适用场景. 单机录制,多机回放 一次录制,多次回放 快速生成测试代码. 使用 tips. 每秒做一个操作可以提高回放稳定性(输入除外)

Download Presentation

录制回放工具使用说明

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 录制回放工具使用说明 鲁晓宇 2013.12.04

  2. 跨版本回放演示 • http://baiduqa.github.io/Cafe/ • 支持跨Android版本、分辨率回放 • 跨Android版本回放:支持2.3-4.2 • 支持低版本 to 高版本 • 支持高版本 to低版本 • 跨分辨率回放 • 支持低分辨率to 高分辨率 • 支持高分辨率 to低分辨率

  3. 适用场景 • 单机录制,多机回放 • 一次录制,多次回放 • 快速生成测试代码

  4. 使用tips • 每秒做一个操作可以提高回放稳定性(输入除外) • 单个case不要太长,越短越好 • 不要在录制时操作其他App • 适当修改sleep时间可以加快case运行 • Baidu_Wifi不稳定,可以rerun取最好的结果

  5. 添加断言 • 点击 • 点击需要断言的控件

  6. 修改case • MtcClient\scriptspath\baiduxinwen_264.apk.xml • 插入动作语句的xml

  7. 获得录制的测试代码 • 复制到自己的测试工程中

  8. 录制回放工具源码 • https://github.com/BaiduQA/Cafe/tree/master/testrunner/src/com/baidu/cafe/local/record • 录制回放框架API文档地址: • http://baiduqa.github.io/Cafe/cafe_doc/index.html

  9. 工具有bug? • 猛击https://github.com/BaiduQA/Cafe/issues?state=open

  10. Q&A

More Related