小编fyp*_*nlp的帖子

我无法在 Mac 上打开 Cypress:未找到 Cypress

我已经检查了 SO 上的答案,到目前为止没有一个对我有用。

我把我的问题放在视频里了。 在这里观看

什么地方出了错?昨天还好好的吗?

到目前为止我所做的:

重新安装柏树

尝试打开:.node_modules\.bin\cypress open

然后尝试: npx cypress open

收到以下消息

No version of Cypress is installed in: /Users/jacquelinegeorge/Library/Caches/Cypress/3.4.0/Cypress.app

Please reinstall Cypress by running: cypress install

----------

Cypress executable not found at: /Users/my_name/Library/Caches/Cypress/3.4.0/Cypress.app/Contents/MacOS/Cypress

----------

Platform: darwin (18.7.0)
Cypress Version: 3.4.0
Run Code Online (Sandbox Code Playgroud)

javascript automated-tests npm cypress

15
推荐指数
3
解决办法
3万
查看次数

无法在 Mac 中的应用程序中重新启动和删除 Docker:致命错误无法 ping 后端 api

fatal error昨天突然收到来自Docker的消息。我真的不明白为什么我正确关闭了我的机器。所以我决定卸载docker并重新安装它。我进入了 Mac 中的 Applications 文件夹,但无法卸载,因为它认为 docker 已打开。所以我需要以下方面的帮助:

  1. 我如何卸载docker?
  2. 如何安装它以便它可以重新开始工作?

尝试解决:

刚刚在我的终端中尝试了以下命令:

docker kill $(docker ps -q)
Run Code Online (Sandbox Code Playgroud)

我得到以下回复:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
"docker kill" requires at least 1 argument.
See 'docker kill --help'.
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

查看屏幕截图

在此处输入图片说明

docker docker-desktop

14
推荐指数
4
解决办法
6973
查看次数

构建失败:退出代码 127

用我的应用程序创建了我的项目

这是project.json 文件。我所创造的

{
  "name": "detox",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "ios": "react-native run-ios",
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "test:e2e":"navicotrackapp test",
    "test:e2e:build":"navicotrackapp build"

  },
  "dependencies": {
    "react": "16.6.1",
    "react-native": "0.57.7"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.49.2",
    "react-test-renderer": "16.6.1"
  },
  "jest": {
    "preset": "react-native"
  },
  "detox": {
    "configurations": {
      "ios.sim.debug": {
        "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/navicotrackapp.app",
        "build": "xcodebuild -project ios/navicotrackapp.xcodeproj -scheme navicotrackapp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
        "type": "ios.simulator",
        "name": "iPhone XR"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

然而。当我进行测试时,结果是这样的:

在此输入图像描述

问题: …

reactjs detox

6
推荐指数
2
解决办法
8万
查看次数

Specflow 2022 生成步骤定义文件 - VSC BDD:所有步骤均已在此文件中定义

刚刚下载了最新版本的 VSC 和 Specflow (2022)。对于我的培训课程。

我创建了简单的客户注册 BDD 脚本

我安装了正确的 Nugget 软件包,但右键单击时无法看到“生成步骤定义”。

我正在尝试创建步骤定义,但不断收到以下错误

在此输入图像描述

在此输入图像描述

在此输入图像描述

c# testing automation specflow

2
推荐指数
1
解决办法
2561
查看次数

不断收到 TypeError: config.suite.split is not a function 在运行回归测试时

运行示例回归测试时出现以下错误:

    TypeError: config.suite.split is not a function
Run Code Online (Sandbox Code Playgroud)

这是配置文件。看起来不错,但我一定错过了一些东西,但我无法诚实地找到它可能是什么。

Configuration.js 文件(这是几天前工作)

var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');

exports.config = {
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: ['PageObjectLocator2.js'],
  capabilities: {
    browserName: 'chrome'
  },
  
  onPrepare: function() {
      browser.driver.manage().window().maximize(); 
     
      jasmine.getEnv().addReporter(
                new Jasmine2HtmlReporter({
                  savePath: 'target/screenshots'
                })
              );
          
     
     
      
  },// end of onPrepare
  
  suite:
      {
      Smoke  : ['ChainLocator.js','dropDowns.js'],
      Regression : 'nonAnuglarSpec.js'
  
      },
  
  

//Options to be passed to Jasmine-node.
  jasmineNodeOpts: {
    showColors: true, // Use colors in the command line report.
  }
  
}
Run Code Online (Sandbox Code Playgroud)

这是 package.json 文件。可能是这里的问题,但老实说不知道

{
  "name": "LocatorTraining",

  "dependencies": { …
Run Code Online (Sandbox Code Playgroud)

javascript automated-tests protractor

0
推荐指数
1
解决办法
596
查看次数

无法在 Javascript 数组中找到对象属性

我目前正在学习 JavaScript 并且我在数组中的对象上度过了一段可怕的时光。

我正在努力寻找他们。它不会找到。

我正在尝试显示它们,它们显示不正确。

我一直在努力解决这个问题大约 2 天,但我迷路了

这是代码

const notes = [{
    title: 'The big trip',
    body: ' The next big trip will be back to thailand'
  },
  {
    title: 'Fitness goals',
    body: 'really enjoying the ab programme '
  },
  {
    title: 'life decisions',
    body: 'the move overseas '
  }
]

console.log(notes.length)

const findNote = function(notes, noteTitle) {
  const index = notes.findIndex(function(note, index) {
    return note.title === noteTitle
  })

  return notes[index]
}

const note = findNote(notes, 'Fitness Goals')
console.log(notes)
Run Code Online (Sandbox Code Playgroud)

javascript arrays

0
推荐指数
1
解决办法
49
查看次数