【问题标题】:How to run testcafe tests from my MAC in Saucelabs?如何在 Saucelabs 中从我的 MAC 运行 testcafe 测试?
【发布时间】:2020-05-28 16:04:26
【问题描述】:

我尝试在命令行中使用以下命令运行。

export NODE_ENV=default | npx testcafe "saucelabs:Chrome@81.0:macOS 10.14" './testCafeTests/userStoryTests/createRoute.js'

使用我的凭据,它可以连接到酱汁,但浏览器没有导航到我的测试中提到的 URL。

有人可以帮忙吗?

【问题讨论】:

  • 此信息不足以确定问题的原因。您能否提供测试代码和来自 Saucelabs Dashboard 的构建页面的屏幕截图?

标签: testing automation automated-tests e2e-testing testcafe


【解决方案1】:

我找到了如何运行这些测试的解决方案。我们需要在命令行参数中提及主机名和端口,以便在 saucelabs 中运行这些测试。

导出 NODE_ENV=default | npx testcafe "saucelabs:Chrome@81.0:macOS 10.14" './testCafeTests/userStoryTests/createRoute.js --hostname=localhost --port=8000,8001

【讨论】:

    猜你喜欢
    • 2020-01-10
    • 1970-01-01
    • 2014-07-22
    • 1970-01-01
    • 1970-01-01
    • 2019-08-25
    • 2015-06-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多