如何在Saucelabs中从我的MAC运行testcafe测试?

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

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

export NODE_ENV=default | npx testcafe "saucelabs:[email protected]:macOS 10.14" './testCafeTests/userStoryTests/createRoute.js'

使用我的凭据,它可以连接到sauce,但是浏览器无法导航到我的测试中提到的URL。

有人可以帮忙吗?

testing automation automated-tests e2e-testing testcafe
1个回答
0
投票

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

export NODE_ENV =默认| npx testcafe“ saucelabs:[email protected]:macOS 10.14”'./testCafeTests/userStoryTests/createRoute.js --hostname = localhost --port = 8000,8001

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