2016-08-08 10 views
0

どのようにしてSelendroidにテストする特定のアプリを添付しますか? 私は事実上どこにでも表示されているテストアプリの例を見てきましたが、うまくいけば、そのAPKをどこに置く必要がありますか? 特定のアプリケーションをSelendroidテストスイートにどのように添付すればよいですか?

SelendroidConfiguration config = new SelendroidConfiguration(); 
    config.addSupportedApp("io.selendroid.testapp:0.17.0"); 

    SelendroidLauncher selendroidServer = new SelendroidLauncher(config); 
    selendroidServer.launchSelendroid(); 


    DesiredCapabilities caps = io.selendroid.common.SelendroidCapabilities.android(); 
    SelendroidCapabilities cap = new SelendroidCapabilities("io.selendroid.testapp:0.17.0"); 

しかし、私はエラーを受信し続ける: は、私はこのようなアプリのIDを使用しようとしました SessionNotCreatedExceptionを。これを引き起こしているのは何ですか? テストで Javaプロジェクトに特定のアプリを追加するにはどうすればよいですか?

答えて

0

問題は、apkに正しいパスを指定しないことが原因であるようです。

ここでは、APKへのパスを与える必要がありますが、修正が続い

config.addSupportedApp("C:/Users/Madis/Documents/selendroid.apk"); 
だろう、それをアプリ

config.addSupportedApp("io.selendroid.testapp:0.17.0"); 

のパッケージ名を与えています

関連する問題