通过命令行触发赛普拉斯测试时,Firefox浏览器无法关闭

问题描述 投票:0回答:1

目前,我已经构建了三个简单的赛普拉斯测试,它们可以访问域x上的给定页面。

[当我使用以下命令通过终端窗口触发测试套件时:

 ./node_modules/.bin/cypress run --browser firefox

第一个窗口打开,第一个测试在Firefox浏览器中执行,但是由于以下异常,其余测试无法执行:

Error: ffmpeg exited with code 1: pipe:0: Invalid data found when processing input

    at ChildProcess.<anonymous> (C:\Users\qauni\AppData\Local\Cypress\Cache\4.5.0\Cypress\resources\app\packages\server\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
    at ChildProcess.emit (events.js:210:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

进一步研究问题似乎是录音可能导致了问题(因为赛普拉斯基于测试执行创建了mp4文件):

Warning: We failed to record the video.

       This error will not alter the exit code.

            Error: ffmpeg exited with code 1: pipe:0: Invalid data found when processing input

[注意:第一次成功执行测试,但是浏览器窗口保持打开,有什么想法吗?

Firefox版本:75.0,柏树版本:4.5.0

谢谢

automation automated-tests cypress browser-automation
1个回答
0
投票

对我来说,它工作得很好。如果您可以共享您的简单代码段,cypress.json配置以及您正在执行的任何其他操作,那将是非常不错的。...我将看一看,让您知道是否有任何问题...

© www.soinside.com 2019 - 2024. All rights reserved.