如何将应用程序数据或任何数据添加到量角器黄瓜报告

时间:2019-08-09 12:24:01

标签: protractor cucumber report

要显示一些应用程序数据或执行后生成的量角器黄瓜报告的任何数据/字符串。

我尝试导入listener.Reporter,就像处理selenium-cucumber-report一样,并调用了  “ Reporter.addStepLog('一些数据')”;但这不适用于量角器黄瓜框架。 在生成的报告中,它应该显示数据/字符串。

更新-添加设备依赖

"devDependencies": {
"@angular-devkit/build-angular": "^0.802.0",
"@angular/cli": "~6.2.4",
"@angular/compiler-cli": "^6.1.8",
"@angular/language-service": "^6.1.8",
"@types/jasmine": "^2.8.9",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^10.11.5",
"codelyzer": "^4.5.0",
"cucumber": "^5.0.3",
"jasmine": "^3.3.0",
"jasmine-core": "^3.2.1",
"jasmine-spec-reporter": "^4.2.1",
"jasmine-xml-reporter": "^1.2.1",
"karma": "^3.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^1.0.1",
"karma-coverage-istanbul-reporter": "~1.4.2",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^1.3.1",
"karma-junit-reporter": "^1.2.0",
"nyc": "^13.1.0",
"protractor": "^5.4.1",
"protractor-cucumber-framework": "^6.1.1",
"rewire": "^4.0.1",
"ts-node": "~5.0.1",
"tslint": "^5.11.0",
"typescript": "^2.9.2"
}, 

0 个答案:

没有答案