エラー - ログ例外:ステップ> _sahi._takePageScreenShot()<は90秒で完了しませんでした。場合によってはJenkins(antで実行)のSahi Proスクリプトで要素が見つからない場合があります。
このエラーは論理的な理由なしで表示されます。一度ビルドを実行すると、すべて正常です。そして他の時間 - このエラーが表示され、ビルドに失敗します。
これは、実際にスクリプトが実際に実行されていたのは2回だけです。最初に固執しません。
このエラーが発生すると、ブラウザで何かを見つけようとする最初のオブジェクトに表示されます。
コンソールログ:あなたはこのエラーを
[sahi] Nov 07, 2017 2:16:10 AM in.co.sahi.distributed.DSahiRunner startNonDistributedRun
[sahi] INFO: SuiteId : sahi_dde93c7c0a6640408608e800eeba549960a0
[sahi] Nov 07, 2017 2:16:10 AM in.co.sahi.distributed.DSahiRunner startNonDistributedRun
[sahi] INFO: URL : http://localhost:9999/_s_/dyn/in.co.sahi.command.Master_runNonDistributed?1=1&baseURL=http%3A%2F%2Fnewbrick.tietolatvia.lv%3A3650%2F&browserType=chrome&emailPasswordHidden=true&emailProp=&emailProperties=%2Fhome%2Fjenkins%2Fsahi%2Fsahi_pro_runner%2Fuserdata%2Fconfig%2Femail.properties&emailTrigger=success%2Cfailure&failedSuiteName=fail_chrome.dd.csv&host=localhost&isSendEmailS=false&isSingleSessionS=true&jsCodeCoverage=%24%7BjsCodeCoverage%7D&logsInfo=html%3A%2Fhome%2Fjenkins%2Fjenkins%2Fworkspace%2FPAIS1%2Freports%2Cjunit%3A%2Fhome%2Fjenkins%2Fjenkins%2Fworkspace%2FPAIS1%2Freports&port=9999&scriptsPathMaster=%2Fhome%2Fjenkins%2Fsahi%2Fsahi_pro_runner%2Fuserdata%2Fscripts&sendEmailPeriodicallyS=false&sendEmailPeriodicallyTime=&showPeriodicSummary=true&suiteId=sahi_dde93c7c0a6640408608e800eeba549960a0&suitePath=%2Fhome%2Fjenkins%2Fjenkins%2Fworkspace%2FPAIS1%2FPAIS1.dd.csv&threads=5
[java] Nov 07, 2017 2:16:10 AM in.co.sahi.command.Master addNodes
[java] INFO: syncNodes = false
[java] Nov 07, 2017 2:16:10 AM in.co.sahi.distributed.DSuiteRunner addNode
[java] INFO: Adding localhost:9999
[java] Nov 07, 2017 2:16:10 AM in.co.sahi.datastore.SahiDB createTables
[java] INFO: Check tables version
[java] Nov 07, 2017 2:16:11 AM in.co.sahi.datastore.SahiDB createTables
[java] INFO: versionFromDB=2017-04-21 21:05:44
[java] Nov 07, 2017 2:16:11 AM in.co.sahi.datastore.SahiDB createTables
[java] INFO: version=2017-04-21 21:05:44
[java] Nov 07, 2017 2:16:11 AM in.co.sahi.datastore.SahiDB createTables
[java] INFO: At current version. No changes were done.
[java] Nov 07, 2017 2:16:11 AM in.co.sahi.datastore.SahiDB createTables
[java] INFO: {result: [["SAHIKEY","SAHIVALUE"],["dbVersion","89"],["versionNo","2017-04-21 21:05:44"]]}
[java] Nov 07, 2017 2:16:11 AM in.co.sahi.datastore.SahiDB createTables
[java] INFO: Finished preparing report tables: 445ms
[java] Nov 07, 2017 2:16:11 AM net.sf.sahi.test.ProcessHelper execute
[java] INFO: env DISPLAY=:1 google-chrome --no-default-browser-check --no-first-run --start-maximized --user-data-dir=/home/jenkins/sahi/sahi_pro_runner/userdata/browser/chrome/profiles/sahi0 --proxy-server=127.0.0.1:9999 --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --disable-translate --no-managed-user-acknowledgment-check --disable-session-crashed-bubble --incognito http://sahi.example.com/_s_/dyn/Player_auto?startUrl=http%3A%2F%2Fnewbrick.tietolatvia.lv%3A3650%2F__SahiAmpersandSahi__sahisid=sahi_dde93c7c0a6640408608e800eeba549960a0sahix6cb39e7b0cb3f0486e09b270f80b45ed9098x__SahiAmpersandSahi__isSingleSession=true
[java] Nov 07, 2017 2:16:11 AM net.sf.sahi.test.TestLauncher execute
[java] INFO: #### Running Script: /home/jenkins/jenkins/workspace/PAIS1/Scen01.sah
[java] Nov 07, 2017 2:16:11 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
[java] INFO: PIDs: [32001, 32017, 32020, 32023, 32058, 32060]; 351 ms
[sahi] Nov 07, 2017 02:16:11 AM STARTED: Scen01.sah BROWSER: chrome
[sahi] Nov 07, 2017 02:16:11 AM Testcases: 0/0, Scripts: 0/0 BROWSER: chrome
[java] Rhino lib: startMode = BROWSER
[java] Rhino lib:Setting mode: BROWSER
[java] Nov 07, 2017 2:16:21 AM net.sf.sahi.RemoteRequestProcessor processHttp
[java] WARNING: Returning CannotConnectResponse for: https://ssl.gstatic.com/safebrowsing/csd/client_model_v5_variation_0.pb
[java] Nov 07, 2017 2:16:21 AM net.sf.sahi.RemoteRequestProcessor processHttp
[java] WARNING: Returning CannotConnectResponse for: https://ssl.gstatic.com/safebrowsing/csd/client_model_v5_ext_variation_0.pb
[java] Rhino lib:/home/jenkins/jenkins/workspace/PAIS1/Page/Base.sah already included.
[java] Rhino lib:/home/jenkins/jenkins/workspace/PAIS1/Page/Base.sah already included.
[java] Rhino lib:/home/jenkins/jenkins/workspace/PAIS1/Page/Base.sah already included.
[java] Rhino lib:/home/jenkins/jenkins/workspace/PAIS1/Page/Base.sah already included.
[java] Rhino lib:/home/jenkins/jenkins/workspace/PAIS1/Page/Order.sah already included.
[java] Rhino lib:/home/jenkins/jenkins/workspace/PAIS1/Page/Base.sah already included.
[java] Rhino lib:Step >_sahi._takePageScreenShot()< did not complete in 90 seconds.
[java] message = ALREADY_LOGGED (RhinoScriptRunner.run#1660)
[java] token = ALREADY_LOGGED (RhinoScriptRunner.run#1660)
[java] Nov 07, 2017 2:19:10 AM net.sf.sahi.RemoteRequestProcessor processHttp
[java] WARNING: Returning CannotConnectResponse for: https://safebrowsing.google.com/safebrowsing/downloads?client=googlechrome&appver=58.0.3029.110&pver=3.0&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw&ext=0
[java] Nov 07, 2017 2:19:10 AM net.sf.sahi.RemoteRequestProcessor processHttp
[java] WARNING: Returning CannotConnectResponse for: https://alt2-safebrowsing.google.com/safebrowsing/downloads?client=googlechrome&appver=58.0.3029.110&pver=3.0&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw
[java] Nov 07, 2017 2:20:10 AM net.sf.sahi.RemoteRequestProcessor processHttp
[java] WARNING: Returning CannotConnectResponse for: https://safebrowsing.google.com/safebrowsing/downloads?client=googlechrome&appver=58.0.3029.110&pver=3.0&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw&ext=0
[java] Nov 07, 2017 2:20:10 AM net.sf.sahi.RemoteRequestProcessor processHttp
[java] WARNING: Returning CannotConnectResponse for: https://alt2-safebrowsing.google.com/safebrowsing/downloads?client=googlechrome&appver=58.0.3029.110&pver=3.0&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw
[java] Rhino lib:Step >_sahi._takePageScreenShot()< did not complete in 90 seconds.
[sahi] Nov 07, 2017 02:21:16 AM FAILED: Scen01.sah BROWSER: chrome
[sahi] Nov 07, 2017 02:21:16 AM Testcases: 0/1, Scripts: 0/2 BROWSER: chrome
持っていたのですか?あなたはそれをどうやって得るのですか?
新しいバージョン7.1が追加されました。これは提案された解決策の1つでした。それはうまくいかなかった。 sahi.propertiesを変更しました。最初の試みは正でした。それが将来も助けてくれることを願っています。ありがとう。 sahi.propertiesでは、script.time_between_stepsを1000から100に変更しました。その他の値はすべて同じです。 – abiab
不幸な状況は同じです。 – abiab
私が持っている他の唯一のヒント:いくつかの他の数字を増やし、一度に少ないスクリプトを実行し、短いスクリプトを実行する。 sahiプロを使用している場合は、[email protected]に解決方法を問い合わせることができます – globalworming