【问题标题】:Cypress TestRunner via "cypress.open" works locally but does not work on Windows Server 2008Cypress TestRunner 通过“cypress.open”在本地工作,但在 Windows Server 2008 上不工作
【发布时间】:2019-03-18 17:55:38
【问题描述】:

我正在使用 Cypress 测试框架 JS API 并尝试将其托管在 Windows Server 2008 上。当我在 Windows 10 笔记本电脑上本地执行 Javascript 命令“cypress.open”时,TestRunner 窗口打开,我可以手动运行测试.

但同样的方法在 Windows Server 2008 上不起作用。没有报告错误。这是否与任何与 Windows Server 2008 相关的安全方面有关?任何人都可以阐明这里可能发生的事情。

我已经在服务器上使用 npm 安装了 cypress。

npm install cypress

安装在 C:\Users\xyz\AppData\Local

这是打开 cypress 测试运行器的 Javascript 代码。

Var cypress = require(‘cypress’);
module.exports = function(callback)
{
cypress.open({
project:  ‘./node_modules/.bin’
});
callback(null,”Opening cypress”);
};

我正在使用 ASP.NET Core 来运行节点模块。 C#代码在这里:

public asynchronous Task<IActionResult> OpenTests()
{
  Var data = await  _nodeservices.InvokeAsync<string>(“Scripts/OpenTests.js”);
return ok(data);
}

感谢任何帮助。谢谢。

【问题讨论】:

    标签: javascript asp.net-core windows-server-2008-r2 cypress


    【解决方案1】:

    我会确认你遇到System requirements

    【讨论】:

      猜你喜欢
      • 2015-12-27
      • 2011-09-11
      • 1970-01-01
      • 1970-01-01
      • 2021-12-28
      • 2012-10-31
      • 2014-01-02
      • 1970-01-01
      • 2013-11-14
      相关资源
      最近更新 更多