UNPKG

cucumber-html-reporter

Version:

Generates Cucumber HTML reports in three different themes

710 lines (709 loc) 22.6 kB
[ { "description": " In order to review cucumber reports\n Fred, a cucumber user\n Wants to have cucumber reports in HTML", "elements": [ { "id": "happy-html-reporting;fred-wants-to-see-passing-scenarios-in-the-html-report", "keyword": "Scenario", "line": 11, "name": "Fred wants to see passing scenarios in the HTML report", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 2348284 }, "hidden": true, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/hooks.js:10" } }, { "arguments": [], "keyword": "When ", "name": "this feature runs with background", "result": { "status": "passed", "duration": 324680 }, "line": 8, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:5" } }, { "arguments": [], "keyword": "Given ", "name": "Fred runs a passing cucumber scenario", "result": { "status": "passed", "duration": 134358 }, "line": 12, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:9" } }, { "arguments": [], "keyword": "When ", "name": "he has the JSON cucumber formatted file at the end of run", "result": { "status": "passed", "duration": 135086 }, "line": 13, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:21" } }, { "arguments": [], "keyword": "Then ", "name": "cucumber-html-reporter should create HTML report", "result": { "status": "passed", "duration": 122498 }, "line": 14, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:55" } } ], "tags": [ { "name": "@testPassing", "line": 10 } ], "type": "scenario" }, { "id": "happy-html-reporting;fred-runs-scenario-outline-for-john-and-print-on-html-report", "keyword": "Scenario", "line": 24, "name": "Fred runs scenario outline for John and print on HTML report", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 136372 }, "hidden": true, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/hooks.js:10" } }, { "arguments": [], "keyword": "When ", "name": "this feature runs with background", "result": { "status": "passed", "duration": 88168 }, "line": 8, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:5" } }, { "arguments": [], "keyword": "Given ", "name": "Fred runs a passing cucumber scenario on behalf of \"John\"", "result": { "status": "passed", "duration": 139204 }, "line": 18, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:17" } }, { "arguments": [], "keyword": "When ", "name": "he has the JSON cucumber formatted file at the end of run", "result": { "status": "passed", "duration": 164788 }, "line": 19, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:21" } }, { "arguments": [], "keyword": "Then ", "name": "cucumber-html-reporter should create HTML report", "result": { "status": "passed", "duration": 309847 }, "line": 20, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:55" } } ], "tags": [ { "name": "@testScenarioOutline", "line": 16 } ], "type": "scenario" }, { "id": "happy-html-reporting;fred-runs-scenario-outline-for-bob-and-print-on-html-report", "keyword": "Scenario", "line": 25, "name": "Fred runs scenario outline for Bob and print on HTML report", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 123041 }, "hidden": true, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/hooks.js:10" } }, { "arguments": [], "keyword": "When ", "name": "this feature runs with background", "result": { "status": "passed", "duration": 91815 }, "line": 8, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:5" } }, { "arguments": [], "keyword": "Given ", "name": "Fred runs a passing cucumber scenario on behalf of \"Bob\"", "result": { "status": "passed", "duration": 93605 }, "line": 18, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:17" } }, { "arguments": [], "keyword": "When ", "name": "he has the JSON cucumber formatted file at the end of run", "result": { "status": "passed", "duration": 88299 }, "line": 19, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:21" } }, { "arguments": [], "keyword": "Then ", "name": "cucumber-html-reporter should create HTML report", "result": { "status": "passed", "duration": 176732 }, "line": 20, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:55" } } ], "tags": [ { "name": "@testScenarioOutline", "line": 16 } ], "type": "scenario" }, { "id": "happy-html-reporting;fred-wants-to-print-test-data-in-the-html-reports-for-debugging-purpose", "keyword": "Scenario", "line": 28, "name": "Fred wants to print test data in the HTML reports for debugging purpose", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 102145 }, "hidden": true, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/hooks.js:10" } }, { "arguments": [], "keyword": "When ", "name": "this feature runs with background", "result": { "status": "passed", "duration": 85245 }, "line": 8, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:5" } }, { "arguments": [], "keyword": "Given ", "name": "Fred attaches the \"test data to be printed\" to the Given step of passing cucumber scenario", "result": { "status": "passed", "duration": 745574 }, "line": 29, "embeddings": [ { "data": "dGVzdCBkYXRhIHRvIGJlIHByaW50ZWQ=", "media": { "type": "text/plain" } }, { "data": "ewogICJuYW1lIjogImN1Y3VtYmVyLWh0bWwtcmVwb3J0ZXIiLAogICJmb3JtYXQiOiAiaHRtbCIKfQ==", "media": { "type": "text/plain" } } ], "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:42" } }, { "arguments": [], "keyword": "When ", "name": "he has the JSON cucumber formatted file at the end of run", "result": { "status": "passed", "duration": 102042 }, "line": 30, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:21" } }, { "arguments": [], "keyword": "Then ", "name": "cucumber-html-reporter should create HTML report with test-data", "result": { "status": "passed", "duration": 99994 }, "line": 31, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:55" } } ], "tags": [ { "name": "@testAttachDebugData", "line": 27 } ], "type": "scenario" }, { "id": "happy-html-reporting;fred-wants-see-the-long-doc-string-attached-in-the-html-report", "keyword": "Scenario", "line": 34, "name": "Fred wants see the long doc string attached in the HTML report", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 181219 }, "hidden": true, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/hooks.js:10" } }, { "arguments": [], "keyword": "When ", "name": "this feature runs with background", "result": { "status": "passed", "duration": 93311 }, "line": 8, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:5" } }, { "arguments": [ { "line": 37, "content": "In order to see Doc String in the HTML report\nAs a Cucumber User,\nI want to print below Doc String\n Hey, I'm a doc string\n" } ], "keyword": "Given ", "name": "Fred runs a passing cucumber scenario with the below content", "result": { "status": "passed", "duration": 205564 }, "line": 35, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:13" } }, { "arguments": [], "keyword": "When ", "name": "he has the JSON cucumber formatted file at the end of run", "result": { "status": "passed", "duration": 89675 }, "line": 46, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:21" } }, { "arguments": [], "keyword": "Then ", "name": "cucumber-html-reporter should create HTML report", "result": { "status": "passed", "duration": 102534 }, "line": 47, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:55" } } ], "tags": [ { "name": "@testDocString", "line": 33 } ], "type": "scenario" }, { "id": "happy-html-reporting;fred-wants-to-use-data-table-and-print-on-html-report", "keyword": "Scenario", "line": 51, "name": "Fred wants to use data table and print on HTML report", "steps": [ { "arguments": [], "keyword": "Before ", "result": { "status": "passed", "duration": 160922 }, "hidden": true, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/hooks.js:10" } }, { "arguments": [], "keyword": "When ", "name": "this feature runs with background", "result": { "status": "passed", "duration": 145452 }, "line": 8, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:5" } }, { "arguments": [ { "rows": [ { "cells": [ "id", "name", "id", "name", "id", "name", "id", "name", "id", "name", "id", "name", "id", "name" ] }, { "cells": [ "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A" ] }, { "cells": [ "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B" ] }, { "cells": [ "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A" ] }, { "cells": [ "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B" ] }, { "cells": [ "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A" ] }, { "cells": [ "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B" ] }, { "cells": [ "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A" ] }, { "cells": [ "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B" ] }, { "cells": [ "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A", "1", "data-A" ] }, { "cells": [ "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B", "2", "data-B" ] } ] } ], "keyword": "Given ", "name": "Fred runs a passing scenario for the following data set", "result": { "status": "passed", "duration": 182652 }, "line": 52, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:59" } }, { "arguments": [], "keyword": "When ", "name": "he has the JSON cucumber formatted file at the end of run", "result": { "status": "passed", "duration": 1707164 }, "line": 65, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:21" } }, { "arguments": [], "keyword": "Then ", "name": "cucumber-html-reporter should create HTML report with data-table", "result": { "status": "passed", "duration": 90584 }, "line": 66, "match": { "location": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/step_definitions/stepDefs.js:55" } } ], "tags": [ { "name": "@testDataTable", "line": 50 } ], "type": "scenario" } ], "id": "happy-html-reporting", "keyword": "Feature", "line": 1, "name": "Happy HTML reporting", "tags": [], "uri": "/Users/kugajjar/Documents/workspace/cucumber-html-reporter/test/features/happy.feature" } ]