我有我的 uiautomator 测试用例:
public class clickTest extends UiAutomatorTestCase {
public void myTest() throws UiObjectNotFoundException {
...
//Is it possible to get Context or Activity here?
}
}
我想知道,是否有可能获取Context
或Activity
实例UiAutomatorTestCase
?
或者怎么PackageManager
进去UiAutomatorTestCase
?