我已经检查了 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) fatal error昨天突然收到来自Docker的消息。我真的不明白为什么我正确关闭了我的机器。所以我决定卸载docker并重新安装它。我进入了 Mac 中的 Applications 文件夹,但无法卸载,因为它认为 docker 已打开。所以我需要以下方面的帮助:
尝试解决:
刚刚在我的终端中尝试了以下命令:
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)
我该怎么办?
查看屏幕截图
用我的应用程序创建了我的项目
这是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)
然而。当我进行测试时,结果是这样的:
问题: …
刚刚下载了最新版本的 VSC 和 Specflow (2022)。对于我的培训课程。
我创建了简单的客户注册 BDD 脚本
我安装了正确的 Nugget 软件包,但右键单击时无法看到“生成步骤定义”。
我正在尝试创建步骤定义,但不断收到以下错误
运行示例回归测试时出现以下错误:
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 并且我在数组中的对象上度过了一段可怕的时光。
我正在努力寻找他们。它不会找到。
我正在尝试显示它们,它们显示不正确。
我一直在努力解决这个问题大约 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 ×3
arrays ×1
automation ×1
c# ×1
cypress ×1
detox ×1
docker ×1
npm ×1
protractor ×1
reactjs ×1
specflow ×1
testing ×1