Robotium版本更新日志翻译(不定期更新)
来源:互联网 发布:儿童故事大全软件 编辑:程序博客网 时间:2024/04/28 07:03
Android自动化测试工具Robotium当前已更新至5.5.4版本,以下整理了Robotium 5.0以后系列的更新日志,翻译可能存在错误,欢迎各位留言指出。
最新更新日期:2016.3.29
Google:https://code.google.com/p/robotium/
Github:https://github.com/RobotiumTech/robotium
Google:https://code.google.com/p/robotium/
Github:https://github.com/RobotiumTech/robotium
Robotium 5.5.4
Roboitum当前版本将完全支持Android6.0! 我们同样增加了新方法,比如scrollDownRecyclerView和pressSoftKeyboardDoneButton.
新特性:
- scrollDownRecyclerView(int index) - 向下滚动第index个RecyclerView
- scrollRecyclerViewToBottom(int index) - 向下滚动第index个RecyclerView至底部
- scrollUpRecyclerView(int index) - 向上滚动第index个RecyclerView
- scrollRecyclerViewToTop(int index) - 向上滚动第index个RecyclerView至顶部
- pressSoftKeyboardGoButton() -按下软键盘go按钮
- pressSoftKeyboardDoneButton() - 按下软键盘done按钮
Bugs/Enhancements 修复:
- getView(int id) & getView(int id, int index) - 找不到view时将包含resource name
- Issue-779: 截屏功能在android M无法工作
- Issue-552: Solo.getViews() 可能会返回空List
- WebViews改进稳定性
Robotium 5.4.1
Roboitum当前版本有了一些新特色比如illustrate, clickInRecyclerView and commandLogging. 我们同样更新了Activity handling 和多种不同的点击方法.
新特性:
- illustrate(Illustration illustration) - 在屏幕上画一个有任意数量的点的任意的路径
- clickInRecyclerView(int itemIndex) - 在第一个发现的RecyclerView上点击指定的item索引
- clickInRecyclerView(int itemIndex, int recyclerViewIndex) - 在指定索引的RecyclerView上点击指定的item索引
- clickLongInRecycleView(int itemIndex) - 在第一个发现的RecyclerView上长按指定的item索引
- clickLongInRecycleView(int itemIndex, int recyclerViewIndex) - 在指定索引的RecyclerView上长按指定的item索引
- clickLongInRecycleView(int itemIndex, int recyclerViewIndex, int time) -在指定索引的RecyclerView上指定的item索引长按指定时间
新设置 Solo.Config:
- public String webFrame - 设置 web frame被Robotium所使用. 默认值为 "document"
- public boolean commandLogging - 设置为true,如果使用command logging要为enabled.默认值为 false
- public boolean commandLoggingTag - 设置 commandLogging tag. 默认值为"Robotium"
Bugs/Enhancements 修复:
- Issue-309 - command logging
- Issue-647 - 需要方法来切换iframe内容
- Issue-661 - xpath 结果只有一个节点
- Issue-673 - 当调用finishOpenedActivities时停止ActivityMonitor
Robotium 5.3.1
我们一直专注于对Robotium各个方面的完善。比如,已经完成了对点击操作逻辑以及速率上的改善。该版本在修复Bug的同时,也加入了一些新特性,比如setWiFiData。
新特性:
setWiFiData - 设置WIFI的开关
setMoibleData - 设置手机数据的开关
getView(Object tag) - 通过特定的标记获取View对象
getView(Object tag, int index) - 通过特定的标记以及索引获取View对象
waitForView(Object tag) - 等待特定标记的View对象出现
waitForView(Object tag, int minimumNumberOfMatches, int timeout, boolean scroll) - 等待特定标记的View对象出现。可设置最小的匹配数以及是否滑屏操作
修复scroll方法不支持RecyclerViews的问题
Solo.Config可配置trackActivities参数为false,用以关闭Activity的处理
Robotium 5.2.1
我们一直专注于优化滑动方法,包括对这些方法的提速以及逻辑上的完善。该版本在修复Bug的同时,也加入了一些新特性,比如unlockScreen。
新特性:
unlockScreen() - 屏幕解锁
getCurrentViews(Class classToFilterBy, boolean includeSubclasses) - 新增参数includeSubclasses,如果设置为true,则会返回子类
scrollToSide(Side side, float scrollPosition, int stepCount) - stepCount参数控制滑动的速度
scrollViewToSide(View view, Side side, float scrollPosition, int stepCount) - stepCount参数控制滑动的速度
Robotium 5.1
对Robotium的优化仍在进行中,不过5.1版本是到目前为止最快最准确且最稳定的版本了
注意:现在的包名是: com.robotium.solo
新特性:
Solo(Instrumentation instrumentation, Config config, Activity activity) - 新构造器
pressSoftKeyboardSearchButton() - 点击软键盘上的搜索按钮
getWebElements() - 返回激活状态的WebView下的所有WebElements元素
getWebElements(By by) - 返回激活状态的WebView下匹配By对象的所有WebElements元素
setNavigationDrawer(int status) - 设置NavigationDrawer的状态.
getConfig() - 获取Robotium的配置
Robotium 5.0.1
当前版本引入了SoloConfig类,Robotium的开发者们可以在该类中修改配置,比如默认的超时时间,截图路径以及各式,滑动还有web element的点击行为。同样地,本次更新对一些内部类做了优化。
注意:现在的包名是: com.robotium.solo
新特性:
pressSoftKeyboardNextButton()
waitForEmptyActivityStack()
Solo.Config:
int timeout_large - waitFor方法的超时时长.
int timeout_small - get, is, set, assert, enter and click方法的超时时长.
String screenshotSavePath - 截图保存路径
ScreenshotFileType screenshotFileType - 截图文件格式,比如JPEG或者PNG.
boolean shouldScroll - 设置为true,如果get, is, set, enter, type and click方法需要滚屏
boolean useJavaScriptToClickWebElements - 设置为true,如果使用JavaScript 来点击WebElements.
优化:
优化所有的点击方法在不适合的场景下的行为
waitForDialogToOpen以及waitForDialogToClose
内部View的处理
当前的TakeScreenshot方法支持GLSurfaceViews
1 0
- Robotium版本更新日志翻译(不定期更新)
- linux 查看日志,不定期更新
- 不定期更新
- 不定期更新
- Maven错误日志记录(不定期更新)
- unity3d版本更新日志
- JEECG 版本更新日志
- ionic 版本更新日志
- 经典名言【不定期更新。。。】
- 渗透技巧不定期更新
- 进度记录, 不定期更新
- java学习,不定期更新~
- Excel 公式 ------- 不定期更新
- shell 编程 /****** 不定期更新 **************/
- Google快捷键(不定期更新)
- sphinx 笔记(不定期更新)
- 推荐(不定期更新)
- 博客不定期更新
- mysql_fetch_array
- 项目开发主键生成知多少
- java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "javamelody jenkins
- 点击div跳转
- 快速排序代码
- Robotium版本更新日志翻译(不定期更新)
- 关于UITableView的contentInset属性
- [UE4]Animation Techniques used in Paragon部分翻译及索引
- Cuda在Ubuntu上的安装
- HDU 4642 简单博弈
- 系统常用命令章节 2016/3/29)ls命令
- 为什么使用消息队列?
- UVa 11401 - Triangle Countin
- Android 无线adb调试之所得!