-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not generate html report on failed status #22
Comments
HI, Tkank you, |
I am new to cucumber and protractor ... how to do I downgrade cucumber to 1.2.2. I tried npm install cucumber@1.2.2 . It did not work |
Hi, |
it worked on version 1.2.2. Will this be fixed to support cucumber 1.3.1? |
That's the plan. But don't know yet when exactly is to be done. |
@maciejkamela : I had it working on 1.2.2. and suddenly it failed generate html report on failed status with cucumber v 1.2.2. I tried to delete node_modules and did a npm install .. but no luck package.json file. { |
hi, |
Hi, Best Regards, |
Hi, "devDependencies": { |
Thanks! looking fwd for your the new version. I see that I am using grunt": "^1.0.1", . Do you think that matters. Other than that I don't see anything wrong . Also to note that after updating my node to 4.0.9 and chrome driver to chromedriver_2.25. I had this issue of reporter not working. |
Hi, |
I am using 'protractor-cucumber-framework' and grunt. For html reports I am using 'protractor-cucumber-html-report'
I am able to generate html reports from 'protractor-cucumber-html-report' only if all my steps pass. The issue is : Failed status, in a step gets reflected in json file but its not generating html reports. I have the result.json file attached below.
Gruntfile.js
'protractor-cucumber-html-report': {
default_options: {
options: {
dest: 'reports',//Where you want to generate the HTML report.
output: 'report.html',//File Name
testJSONDirectory: 'reports'//Mention where you have generated JSON format.
}
}
},
result.json
[
{
"description": " As a user of Protractor\n I should be able to use Cucumber\n In order to run my E2E tests on UnapprovedIncidentDashboardComponent",
"elements": [
{
"id": "running-cucumber-with-protractor-on-unapprovedincidentdashboardcomponent;protractor-and-cucumber-test-on-unapprovedincidentdashboardcomponent",
"keyword": "Scenario",
"line": 7,
"name": "Protractor and Cucumber Test on UnapprovedIncidentDashboardComponent",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"name": "I go to "http://localhost/"",
"result": {
"status": "passed",
"duration": 3548859
},
"line": 8,
"match": {
"location": "Automation\LearningCucumber_Protractor\features\step_definitions\test.stepDefinition1.js:11"
}
},
{
"arguments": [],
"keyword": "When ",
"name": "The page loads "UnapprovedIncidentDashboardComponent"",
"result": {
"status": "passed",
"duration": 1031909
},
"line": 9,
"match": {
"location": "Automation\LearningCucumber_Protractor\features\step_definitions\test.stepDefinition1.js:16"
}
},
{
"arguments": [],
"keyword": "Then ",
"name": "Title should match Unapproved Incident Dashboard Component",
"result": {
"status": "failed",
"duration": 2120215837,
"error_message": "AssertionError: expected 'Unapproved Incident Dashboard Component' to equal 'Unapproved Incident Dashboard 1Component'"
},
"line": 10,
"match": {
"location": "Automation\LearningCucumber_Protractor\features\step_definitions\test.stepDefinition1.js:20"
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "running-cucumber-with-protractor-on-unapprovedincidentdashboardcomponent",
"keyword": "Feature",
"line": 2,
"name": "Running Cucumber with Protractor on UnapprovedIncidentDashboardComponent",
"tags": [],
"uri": "c:\Protractor Automation\LearningCucumber_Protractor\features\test.feature"
}
]
package.json
{
"name": "learning_cucumber_protractor",
"version": "1.0.0",
"description": "",
"main": "protractor.cucumber.conf.js",
"dependencies": {
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"cucumber": "^1.3.1",
"protractor": "^4.0.9",
"protractor-cucumber-framework": "^0.6.0"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-connect": "^1.0.2",
"grunt-contrib-jshint": "^1.0.0",
"grunt-cucumber": "^0.3.0",
"grunt-protractor-cucumber-html-report": "^0.2.8",
"grunt-protractor-runner": "^4.0.0",
"grunt-protractor-webdriver": "^0.2.5",
"load-grunt-tasks": "^3.5.2",
"load-tasks": "0.1.0-rc.0"
},
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC"
}
The text was updated successfully, but these errors were encountered: