使用 Monkey runner 进行验证
考虑这种情况:
- 您有一个文本框,您必须在其中写入一些文本“abcd”
- 接下来您必须验证输入的文本是否属于正确的字符集(如 UTF-8),或者您只需验证“abcd”已输入到文本框中
这是在采访中向我询问的。我必须编写一个 Monkeyrunner 脚本来执行上述两个操作。第一个非常简单。对2号有意见吗?
Consider this scenario:
- You have a textbox in which you have to write some text "abcd"
- Next you have to verify if the entered text belongs to the correct character set (like UTF - 8) or simply you have to verify that "abcd" has been entered into the text box
This was asked to me in an interview.I had to write a monkeyrunner script that could do the above mentioned two operations. 1st one was damn easy. Any comments on the 2nd one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 AndroidViewClient 这个 Monkeyrunner 脚本可以更简单
Using AndroidViewClient this monkeyrunner script could be as simpler as