首页 > 其他 > 详细

转载:robotium typeText与enterText区别

时间:2014-11-24 11:39:02      阅读:267      评论:0      收藏:0      [点我收藏+]

solo.typeText和solo.enterText方法都可以对EditeText进行测试,达到的测试目的是一样的。存在几点不同:

1、实现上,typeText方法是robotium框架调用系统Instrumentation类里面的sendStringSync方法来实现的;enterText是调用TextView里面setText方法来实现的。

2、显示上,typeText在测试过程中能看到输入的痕迹;enterText则没有输入痕迹。

使用typeText的时候没办法输入中文。

转载:robotium typeText与enterText区别

原文:http://www.cnblogs.com/dtest/p/4118226.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!