2013-09-29 26 views
0

我试图uiautomator工具上JB .. 后我配置用于uiautomator附接的源代码(机器人SDK /来源/机器人-18)与在Eclipse Android的源,我有这个问题:我声明UiAutomatorTestCase扩展了InstrumentationTestCase?

public class UiAutomatorTestCase extends InstrumentationTestCase {...}. 

然而,指的是SDK文档,它应该从TestCase的继承:

public class UiAutomatorTestCase extends TestCase {...}. 

我的问题是:

  • 它继承编辑关系是正确的?
  • 如何使用uiautomator库将Eclipse中的源代码附加到Eclipse中。
  • 我怎样才能正常的Android API中uiautomator,比如startService(),广播,内容提供等...

回答

0

答案相同的顺序

  1. 公共类UiAutomatorTestCase扩展的TestCase
  2. 编译UiAutomator源代码并使用jar工具创建jar文件
  3. 刚刚导入android。(记住你在创建UiAutomator项目时添加了android.jar作为外部jar)