Android UiAutomatorTestCase扩展InstrumentationTestCase?
我在JB上尝试了uiautomator工具。。 在Eclipse中用android源代码配置uiautomator(android sdk/sources/android-18)的附件源代码后,我遇到了这个问题:我声明Android UiAutomatorTestCase扩展InstrumentationTestCase?,android,android-uiautomator,Android,Android Uiautomator,我在JB上尝试了uiautomator工具。。 在Eclipse中用android源代码配置uiautomator(android sdk/sources/android-18)的附件源代码后,我遇到了这个问题:我声明 public class UiAutomatorTestCase extends InstrumentationTestCase {...}. 但是,参考SDK文档,它应该继承TestCase: public class UiAutomatorTestCase extends
public class UiAutomatorTestCase extends InstrumentationTestCase {...}.
但是,参考SDK文档,它应该继承TestCase:
public class UiAutomatorTestCase extends TestCase {...}.
我的问题是:
- 哪种继承关系是正确的
- 如何将Eclipse中的源代码附加到uiautomator库
- 如何在uiautomator中使用普通的android api,例如startService()、广播、内容提供等
- 公共类UiAutomatorTestCase扩展了TestCase
- 编译UiAutomator源代码并使用jar实用程序创建jar文件
- 只需导入android即可。(记得您在创建UiAutomator项目时添加了android.jar作为外部jar)
- 以相同的顺序回答