<bdo id='DwOZx'></bdo><ul id='DwOZx'></ul>
<i id='DwOZx'><tr id='DwOZx'><dt id='DwOZx'><q id='DwOZx'><span id='DwOZx'><b id='DwOZx'><form id='DwOZx'><ins id='DwOZx'></ins><ul id='DwOZx'></ul><sub id='DwOZx'></sub></form><legend id='DwOZx'></legend><bdo id='DwOZx'><pre id='DwOZx'><center id='DwOZx'></center></pre></bdo></b><th id='DwOZx'></th></span></q></dt></tr></i><div id='DwOZx'><tfoot id='DwOZx'></tfoot><dl id='DwOZx'><fieldset id='DwOZx'></fieldset></dl></div>

    1. <legend id='DwOZx'><style id='DwOZx'><dir id='DwOZx'><q id='DwOZx'></q></dir></style></legend>

      <tfoot id='DwOZx'></tfoot>

    2. <small id='DwOZx'></small><noframes id='DwOZx'>

      1. 量角器运行后出现 uncaughtException

        时间:2023-10-12
          <tbody id='5HIt1'></tbody>

            <i id='5HIt1'><tr id='5HIt1'><dt id='5HIt1'><q id='5HIt1'><span id='5HIt1'><b id='5HIt1'><form id='5HIt1'><ins id='5HIt1'></ins><ul id='5HIt1'></ul><sub id='5HIt1'></sub></form><legend id='5HIt1'></legend><bdo id='5HIt1'><pre id='5HIt1'><center id='5HIt1'></center></pre></bdo></b><th id='5HIt1'></th></span></q></dt></tr></i><div id='5HIt1'><tfoot id='5HIt1'></tfoot><dl id='5HIt1'><fieldset id='5HIt1'></fieldset></dl></div>
            <tfoot id='5HIt1'></tfoot>
              <bdo id='5HIt1'></bdo><ul id='5HIt1'></ul>
              • <small id='5HIt1'></small><noframes id='5HIt1'>

                <legend id='5HIt1'><style id='5HIt1'><dir id='5HIt1'><q id='5HIt1'></q></dir></style></legend>

                  本文介绍了量角器运行后出现 uncaughtException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  在升级到 Protractor 4.0.0 并因重大更改调整配置后,我们终于启动了测试.

                  After upgrading to Protractor 4.0.0 and adjusting the config because of the breaking changes, we finally have our tests launching.

                  现在,问题是在测试运行后它失败了:

                  Now, the problem is that after a test run it fails with:

                  [09:52:22] E/launcher - "process.on('uncaughtException'" error, see launcher
                  [09:52:22] E/launcher - Process exited with error code 199
                  

                  如何调试此问题并了解其原因?

                  How to debug this problem and understand what is causing it?

                  尝试在疑难解答"模式下运行 Protractor:

                  Tried to run Protractor in "troubleshoot" mode:

                  $ protractor config/local.conf.js --troubleshoot
                  

                  但得到完全相同的输出,但没有关于错误的详细信息.

                  but got exactly the same output with no details about the error.

                  推荐答案

                  这是目前正在修复应该是一个热修复很快.快速修复(在热修复发布之前)是更改 node_modules 中的代码或恢复到 3.3.0.

                  This is currently being fixed and there should be a hot fix out soon. The quick fix (before the hot fix is released) is to change the code in your node_modules or revert to 3.3.0.

                  编辑 node_modules/protractor/built/launcher.js 将第 168 行的 uncaughtException 替换为:

                  Edit node_modules/protractor/built/launcher.js replace the uncaughtException at line 168 with:

                      process.on('uncaughtException', function (e) {
                      var errorCode = exitCodes_1.ErrorHandler.parseError(e);
                      if (errorCode) {
                          var protractorError = e;
                          exitCodes_1.ProtractorError.log(logger, errorCode, protractorError.message, protractorError.stack);
                          process.exit(errorCode);
                      }
                      else {
                          logger.error(e.message);
                          logger.error(e.stack);
                          process.exit(exitCodes_1.ProtractorError.CODE);
                      }
                  });
                  

                  这篇关于量角器运行后出现 uncaughtException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:量角器给出“无法启动 WebDriver 会话";错误 下一篇:在 Protractor 中模拟慢速打字

                  相关文章

                  最新文章

                    <legend id='SHTn1'><style id='SHTn1'><dir id='SHTn1'><q id='SHTn1'></q></dir></style></legend>

                    • <bdo id='SHTn1'></bdo><ul id='SHTn1'></ul>

                      <small id='SHTn1'></small><noframes id='SHTn1'>

                    1. <i id='SHTn1'><tr id='SHTn1'><dt id='SHTn1'><q id='SHTn1'><span id='SHTn1'><b id='SHTn1'><form id='SHTn1'><ins id='SHTn1'></ins><ul id='SHTn1'></ul><sub id='SHTn1'></sub></form><legend id='SHTn1'></legend><bdo id='SHTn1'><pre id='SHTn1'><center id='SHTn1'></center></pre></bdo></b><th id='SHTn1'></th></span></q></dt></tr></i><div id='SHTn1'><tfoot id='SHTn1'></tfoot><dl id='SHTn1'><fieldset id='SHTn1'></fieldset></dl></div>
                      <tfoot id='SHTn1'></tfoot>