我有一个UiAutomatorTestCase
:
public class MyUiTest extends UiAutomatorTestCase {
public void testMe() throws UiObjectNotFoundException {
getUiDevice().pressHome();
//How can I start/bind a service in the test case?
//Seems I am not able to get a context in UiAutomatorTestCase
}
}
我想知道,是否可以通过使用startService(...)
或bindService(...)
在此类中启动/绑定服务?