Use in android studio
还没有人认领这个 Issue。
评估
调研方向
从 issue 中描述的 Android Studio/Robolectric 设置开始,包括新的 AndroidDriver URL 和 Gradle 依赖项。调查不完整的 Apache HTTP client 类和提议的 Jarjar 方案,然后将其与单独的 APK 测试项目进行比较。确定一种可复现的方案或记录一项限制,即视为完成。
由索引模型根据 Issue 内容生成。
描述
What I am trying to do is to use it directly as Robolectric unit tests in Android Studio. The problem comes when I create a new AndroidDriver():
new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
The selenium driver uses the apache-http client which in Android is not complete so there are missing classes from the preloaded one. My next step is to use Jarjar to stitch together a new version of http client in the Android SDK jar.
Not sure if it worths the pain, but I would like to discuss if this sounds like a good idea (fake the UI tests as unit tests)?
A different option is of course to create a different project only to test the apk.
Fyi piece from my .gradle:
testApt 'com.squareup.dagger:dagger-compiler:1.2.2'
testCompile 'com.squareup.dagger:dagger:1.2.2'
testCompile ('io.appium:java-client:2.2.0'){
exclude module: 'guava'
exclude module: 'httpmime'
exclude module: 'gson'
}
- 主要语言
- Java
- 星标
- 1.3k
- 派生
- 752
- 平均合并
- 6 天 21 小时
- 30 天内合并 PR
- 8
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
appium/java-client 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
appium/java-client#2448 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
appium/java-client#2426 ·
-
bug
难度 4/5 3-5 天 新手友好度 50/100
appium/java-client#2372 ·
-
难度 5/5 一周以上 新手友好度 30/100
appium/java-client#2368 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
appium/java-client#2341 · 1 条评论 ·
查看 appium/java-client 的全部 Issue
相似的 Issue
-
Bug Java Platform: Java
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-java#6138 · 1 条评论 ·
-
bug needs triage p2
难度 2/5 1-3 小时 新手友好度 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 条评论 ·
-
[Studio][Bug] Bulk-deleting a full page of alert rules steps the page back while more rules remain 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
apache/rocketmq-dashboard#4654 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 76/100