我试图在命令行中使用以下命令运行。
export NODE_ENV=default | npx testcafe "saucelabs:[email protected]:macOS 10.14" './testCafeTests/userStoryTests/createRoute.js'
使用我的凭据,它可以连接到sauce,但是浏览器无法导航到我的测试中提到的URL。
有人可以帮忙吗?
我找到了如何运行这些测试的解决方案。我们需要在命令行参数中提及主机名和端口,以便在ucelabs中运行这些测试。
export NODE_ENV =默认| npx testcafe“ saucelabs:[email protected]:macOS 10.14”'./testCafeTests/userStoryTests/createRoute.js --hostname = localhost --port = 8000,8001