![](/img/trans.png)
[英]run cypress tests from command line getting => CypressError: Cypress test was stopped while running this command
[英]Why does Cypress test in GUI(cypress open) pass but fails in command line(cypress run) even though I using chrome browser?
我正在為 4 個端點編寫測試,並且在嘗試使用 cypress open 命令時可以看到它已成功完成。 但是,如果我嘗試運行 cypress run 命令,我會看到超時問題。 這兩個命令有什么區別嗎?
嘗試運行以下命令:
cypress run -C <path to your config file>
和
cypress open -C <path to your config file>
在配置中提及瀏覽器,否則它將在 electron 瀏覽器中運行
如果測試在同一個瀏覽器中運行,請在報告中查看,否則為這兩個命令顯式傳遞 --browser
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.