Use in android studio

オープン
#175 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, java
領域
mobile, testing

調査の方向性

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時間
マージ済み PR(30日)
8

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appium/java-client のほかの issue

appium/java-client の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。