2017-07-26 4 views
0

TeamCityは、テスト実行時にcalabash-androidを認識しません。TeamCityがcalabash-androidを認識しない

私は、カスタムスクリプト

calabash-android run myorg.myapp.android.dev-Signed.apk --format html --out test_report.html --format pretty 

を実行しているビルド手順でコマンドラインランナータイプを以下でもテストを実行すると、エラーが明確に述べている1がログに

[14:17:37]Step 1/1: Run UI Tests (Command Line) 
[14:17:38][Step 1/1] Starting: C:\BuildAgent\temp\agentTmp\custom_script2560166106056025753.cmd 
[14:17:38][Step 1/1] in directory: C:\BuildAgent\work\8cb09469a30da521 
[14:17:38][Step 1/1] 'calabash-android' is not recognized as an internal or external command, 
[14:17:38][Step 1/1] operable program or batch file. 
[14:17:38][Step 1/1] Process exited with code 1 
[14:17:38][Step 1/1] Step Run UI Tests (Command Line) failed 

答えて

1

これを示す終了コードで失敗してきました何が起こったの:'calabash-android' is not recognized as an internal or external command, operable program or batch file.、つまり、このプログラムはPATH変数ではありません。

あなたべきcreate問わず、この値を使用してビルド構成でenv.PATH変数:%calabash_android_path%calabash-android実行ファイルとフォルダへのフルパスを持つ変数でなければなりません

%calabash_android_path%%teamcity.agent.jvm.file.separator%bin%teamcity.agent.jvm.path.separator%%env.PATH% 

+0

私はそれをシステムパスの代わりにユーザーパスに入れました。それをシステムのパスに移動することでその問題が解決されました。ありがとう – pixel

+0

btw、あなたが提供したパスは奇妙に見えます、それはどうか説明できますか?ありがとう – pixel

関連する問題