代码之家  ›  专栏  ›  技术社区  ›  questionar

通过Jenkins在Firefox浏览器中使用docker容器运行TestCafe

  •  1
  • questionar  · 技术社区  · 6 年前

    我想通过Jenkins在firefox浏览器中运行TestCafe(不是headless)。 我使用的是安装了chromium和firefox的docker容器。

    当我尝试运行它时,它抛出一个错误

    ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.
    

    steps
            {
                container('testcafe') {
                    sh 'npm install'
                    sh "npm run live-docker"
                }
            }
    

    哪里 live-docker 在中提到 package.json "live-docker":"testcafe 'firefox --no-sandbox' e2e/user.spec.js -r xunit:TEST-new_user.xml”

    "live-docker":"testcafe firefox e2e/user.spec.js -r xunit:TEST-new_user.xml”

    0 回复  |  直到 6 年前