我在Windows 10机器上启动TestCafé时遇到问题。我一开始测试,浏览器就会弹出,然后再次关闭,并显示以下错误消息:
TypeError:无法读取null的属性(读取“测试”)文章源自玩技e族-https://www.playezu.com/204292.html
at LiveModeRunner._finishPreviousTestRuns (C:Users…test-runner.js:149:38)文章源自玩技e族-https://www.playezu.com/204292.html
at LiveModeRunner.runTests (C:Users…test-runner.js:36:21)文章源自玩技e族-https://www.playezu.com/204292.html
at C:Users…test-runner.js:111:30文章源自玩技e族-https://www.playezu.com/204292.html
在processTicksAndRejections(节点:internal/process/task_queues:96:5)文章源自玩技e族-https://www.playezu.com/204292.html
错误:无法打开浏览器“;“铬”:;由于错误。文章源自玩技e族-https://www.playezu.com/204292.html
错误:生成未知文章源自玩技e族-https://www.playezu.com/204292.html
在这个过程中。spawn(节点:内部/child_process:413:11)文章源自玩技e族-https://www.playezu.com/204292.html
在spawn(节点:child_process:700:9)文章源自玩技e族-https://www.playezu.com/204292.html
在execFile(节点:child_process:327:17)文章源自玩技e族-https://www.playezu.com/204292.html
at C:Users…index.js:29:7
at invokeResolver (C:Users…testcafenode_modulespinkieindex.js:44:3)
at new Promise (C:Users…testcafenode_modulespinkieindex.js:181:2)
at C:Users…testcafenode_modulespifyindex.js:12:10
at ret (C:Users…testcafenode_modulespifyindex.js:56:34)
at Object.execFile (C:Users…testcafenode_modulestestcafe-browser-toolssrcutilsexec.js:121:22)
at runFindWindowBinary (C:Users…testcafenode_modulestestcafe-browser-toolssrcapifind-window.js:23:22)
我在一个特殊的环境中工作。在Windows7上一切正常,但是我在Windows10上遇到了问题
版本:
TestCafé:1.9.4
Windows 10:1809
节点。js:16.15.0
铬:103.0.5060.53
Firefox:91.11.0esr(64位)
命令行:
${env:NODE_OPTIONS}='–require "c:/Program Files/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js" --max-http-header-size=640000 --inspect-publish-uid=http'; ${env:VSCODE_INSPECTOR_OPTIONS}='{"inspectorIpc":".pipenode-cdp.2508-1.sock","deferredMode":false,"waitForDebugger":"","execPath":"C:Program Filesnodejsnode.exe","onlyEntrypoint":false,"autoAttachMode":"always","fileCallback":"C:Users…AppDataLocalTempnode-debug-callback-ecd154ca5b61a763"}'; & 'C:Program Filesnodejsnode.exe' '…node_modulestestcafebintestcafe.js' '–live' 'chrome' '–skip-js-errors' 'c:Users…debugTest.ts'
软件测试app功能
评论