gpt4 book ai didi

javascript - Protractor 运行后出现 uncaughtException

转载 作者:数据小太阳 更新时间:2023-10-29 04:29:45 26 4
gpt4 key购买 nike

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

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

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

如何调试此问题并了解导致它的原因?


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

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

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

最佳答案

这是 currently being fixed并且应该很快就会有一个热修复程序。快速修复(在热修复发布之前)是更改 node_modules 中的代码或恢复到 3.3.0。

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

    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);
}
});

关于javascript - Protractor 运行后出现 uncaughtException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38397965/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com