我创建了自定义的“运行配置”并在他身上使用了“外部工具”,
我的问题是“外部工具”位于本地,项目的其他开发人员不会收到它,我该如何将其添加到项目中?
一种解决方案是导出工作室设置,获取一个 jar 文件,但是每个开发人员都必须手动导入这个 jar 文件,我想避免这种情况。
我设置了Espresso工具框架来运行我的Android Functional Automation测试。对于每个测试,我都想登录到该应用程序并在完成测试后删除该应用程序。
因此,我设置如下所示:
公共类FirstSampleTest扩展了BaseTest {
private final BaseTest baseTest;
Run Code Online (Sandbox Code Playgroud)
//私有最终ElementUtils elementUtils;
public FirstSampleTest() throws InterruptedException {
this.baseTest = new BaseTest();
}
@Before
public void initiate() throws InterruptedException {
//I have setup login method here to login to the app after it installs
}
@Rule
public ActivityTestRule<SplashScreenActivity> splashScreenActivityActivityTestRule = new ActivityTestRule(SplashScreenActivity.class);
@Test
public void testTheHomeScreen() throws InterruptedException {
//Some tests go here.
}
@After
public void teardown() throws InterruptedException {
//I want to uninstall the app or delete it from …Run Code Online (Sandbox Code Playgroud)