ノード8.9.3とnpm 5.6.0で最新の分度器バージョン5.2.2を使用しています 私は約30のテストスイートを持っており、ケース。 これらはすべて私のローカルでは正常に動作しますが、JenkinsマシンでWindowsを実行し、Windowsとまったく同じノードと分度器のバージョンを使用しているJenkinsマシンで実行すると、以下のエラーがランダムに発生し、Jenkinsジョブを終了するまで実行が停止します。分度器:入手[DEP0018]減価償却警告と試運転はランダムに終了します
(node:3060) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TimeoutError: timeout
(Session info: chrome=63.0.3239.84)
(Driver info: chromedriver=2.34.522940
(1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),platform=Windows NT 6.3.9600 x86_64)
(node:3060) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:3060) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
A Jasmine spec timed out. Resetting the WebDriver Control Flow.
特定のテストケースの後ではなく、ランダムに発生します。時には始動時にのみ失敗することもあれば、途中で失敗することもあれば、最後のテストケースで失敗することもあります。
私はseleniumAddressとdirecConnectが、同じ問題の両方を使用して試してみました。 これは私の時間の多くを無駄にしていました。 ここにお手伝いいただければ幸いです。
私は私のconf.jsで、次のしていると私はそれがローカルで実行されているとして、それがロードするためにこれ以上の時間がかかりますと思ういけません。 ignoreUncaughtExceptions:true allScriptsTimeout:5000000 defaultTimeoutInterval:4000000 – ASB
Jasmineを使用し、上記のようにjasmineNodeOpts内にdefaultTimeoutIntervalを入れましたか? – yong
はい、私は 'jasmineNodeOpts持っている:{ isVerbose:真、 showColors:真、 includeStackTrace:真、 defaultTimeoutInterval:4000000 }、' – ASB