Testing 无法从OSX上的Testcafe IDE连接到站点

Testing 无法从OSX上的Testcafe IDE连接到站点,testing,automated-tests,e2e-testing,web-testing,testcafe,Testing,Automated Tests,E2e Testing,Web Testing,Testcafe,我的固定装置是这样布置的 { "fixtures": [ { "name": "login", "pageUrl": "http:\/\/localhost:3000\/", "tests": [ { "name": "type name", "commands": [ { "type": "type-text",

我的固定装置是这样布置的

{
  "fixtures": [
    {
      "name": "login",
      "pageUrl": "http:\/\/localhost:3000\/",
      "tests": [
        {
          "name": "type name",
          "commands": [
            {
              "type": "type-text",
              "studio": {

              },
              "callsite": "0",
              "selector": {
                "type": "js-expr",
                "value": "input[type=email]"
              },
              "options": {

              },
              "text": "example@email.com"
            }
          ]
        }
      ]
    }
  ]
}
通过一个简单的测试来查找输入并键入一些文本,但是当运行命令时,我得到

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

Type "testcafe -h" for help.
我在他们的问题板上看到过几次这个问题,一次是关于Linux服务器上的CI集成,另一次似乎是试图连接到localhost的类似问题


新到testcafe的任何帮助将不胜感激

我找到了解决方案。在我的示例中,一些网络策略不允许在某些端口上访问您的计算机,它是57501

testcafe chrome login.testcafe --hostname localhost
添加--hostname解决了这个问题

文件


我仍然不知道如何从IDE启动,但这解决了我的主要问题。

我找到了解决方案。在我的示例中,一些网络策略不允许在某些端口上访问您的计算机,它是57501

testcafe chrome login.testcafe --hostname localhost
添加--hostname解决了这个问题

文件


我仍然不知道如何从IDE启动,但这解决了我的主要问题。

TestCafe Studio Preview不支持设置命令行选项(您的主机名)。TestCafe团队将在正式版本中实现此功能

因此,目前,只能通过命令行运行测试

更新:

您可以在中设置主机名选项:


TestCafe Studio预览版不支持设置命令行选项(在您的情况下为主机名)。TestCafe团队将在正式版本中实现此功能

因此,目前,只能通过命令行运行测试

更新:

您可以在中设置主机名选项:


在没有这些设置的情况下,您如何使用录制功能?我想这是不可能的。谢谢你的回答。如果没有这些设置,你会如何使用录音功能?我想这是不可能的。谢谢你的回答,澄清了很多