MonkyTalk学习-6-Verify-WaitFor & WaitForNot
2015-06-19 19:08
387 查看
因为比较看重的是Verify的功能,所以觉得深入的研究下这个功能。
这里要将的就是WaitFor和 WaitForNot功能。
WaitFor 功能
1. Component = Button , MonkeyID = “你想要找的东西”,或者* 也可以,就是单纯的等待了。
注意:Button-->Logout, Device-->*
2. 输入你想要等待的时间,默认值为10,单位秒。
WaitForNot 功能
基本跟WaitFor功能相同,不同的是等待消失。
如图:
华丽丽的失败了,为啥,Component = Device 而 MonkeyID = * 了呗。
修改之后为 Component = Button 而 MonkeyID = LOGOUT就可以了,
脚本如下:
是很简单,但是看了很多资料每人提到这个东西,才发现大家都不知道吧。呵呵呵呵呵。
这里要将的就是WaitFor和 WaitForNot功能。
WaitFor 功能
1. Component = Button , MonkeyID = “你想要找的东西”,或者* 也可以,就是单纯的等待了。
注意:Button-->Logout, Device-->*
2. 输入你想要等待的时间,默认值为10,单位秒。
WaitForNot 功能
基本跟WaitFor功能相同,不同的是等待消失。
如图:
华丽丽的失败了,为啥,Component = Device 而 MonkeyID = * 了呗。
修改之后为 Component = Button 而 MonkeyID = LOGOUT就可以了,
脚本如下:
Input username tap Input username enterText test Input password tap Input password enterText test Button LOGIN tap Button LOGIN WaitForNot Button LOGOUT tap
是很简单,但是看了很多资料每人提到这个东西,才发现大家都不知道吧。呵呵呵呵呵。
相关文章推荐
- pthread_cond_wait
- grails domain里面beforeinsert无效
- MacBook Air 安装 Ubuntu 双系统
- A Painless Q-learning Tutorial (一个 Q-learning 算法的简明教程)
- 【Training versus Testing】林轩田机器学习基石
- 短信接收Main函数
- 朴素贝叶斯分类法 Naive Bayes ---R
- poj 2305 Basic remains 高精度取余
- 地形算法(Terrain)
- 实时查看日志文件 tail -f gallerylogs.log
- LeetCode 217 Contains Duplicate
- 【codechef】Chef and Bracket-Pairs (分层dp)
- 十大经典数据挖掘算法(9) 朴素贝叶斯分类器 Naive Bayes
- You possibly will not often be capable of find the money for Obtain Diesel engine Designer watches
- 使用AIDL实现进程间的通信
- project继承domain管理权限
- ajax和grails后台的搭配
- AIX系统的日常监控维护
- LeetCode: Contains Duplicate II
- 使用 SailingEase WinForm 框架构建复合式应用程序(插件式应用程序)