-
Bug
-
Resolution: Won't Fix
-
Major
Error message during cucumber.json parsing:
[Cucumber Tests] Parsing results. [Cucumber Tests] parsing cucumber.json ERROR: Step: {When } name: {I search on the code "<code>"} received before previous step: {When } name: {I search on the code "<code>"} handled! Maybe caused by broken JSON, see #JENKINS-21835 Failed to parse Cucumber JSON: Step: {When } name: {I search on the code "<code>"} received before previous step: {When } name: {I search on the code "<code>"} handled! Maybe caused by broken JSON, see #JENKINS-21835 Build step 'Publish Cucumber test result report' changed build result to FAILURE
(Note the above logs the new step twice, instead of currentStep)
The unit tests in the plugin code show Scenario Outlines with format like:
{ "after": [ { "result": { "duration": 5527, "status": "passed" }, "match": { "location": "RpnCalculatorStepdefs.after(Scenario)" } } ], "id": "basic-arithmetic;many-additions;double-digits;2", "tags": [ { "name": "@foo", "line": 1 } ], "description": "", "name": "Many additions", "keyword": "Scenario Outline", "line": 34, "steps": [ { "result": { "duration": 519075, "status": "passed" }, "name": "the previous entries:", "keyword": "Given ", "line": 18, "match": { "location": "RpnCalculatorStepdefs.thePreviousEntries(RpnCalculatorStepdefs$Entry\u003e)" }, "rows": [ { "cells": [ "first", "second", "operation"
Calabash is outputting:
{ "keyword": "Scenario Outline", "name": "Vehicle with One joint owner", "line": 17, "description": "", "tags": [ { "name": "@priority2", "line": 16 } ], "id": "qv-summary-display-of-joint-owner-names;vehicle-with-one-joint-owner", "type": "scenario_outline", "steps": [ { "keyword": "Given ", "name": "I am on the Query Vehicle Summary Page for \"<reg>\"", "line": 18, "match": { "arguments": [ { "offset": 0, "val": "I am on the Query Vehicle Summary Page for" }, { "offset": 44, "val": "ABC123" } ], "location": "features/step_definitions/QV/qv_search_page_steps.rb:177" } }, { "keyword": "Then ", "name": "the Joint Owner section is displayed", "line": 19, "match": { "arguments": [ { } ], "location": "features/step_definitions/QV/Query Vehicle Results Page/query_vehicle_results_steps.rb:132" } }, { "keyword": "And ", "name": "the joint owner is listed as \"<jointOwner>\"", "line": 20, "match": { "arguments": [ { "offset": 30, "val": "OWNER, J. T." } ], "location": "features/step_definitions/QV/Query Vehicle Results Page/query_vehicle_results_steps.rb:137" } } ], "examples": [ { "keyword": "Examples", "name": "", "line": 22, "description": "", "id": "qv-summary-display-of-joint-owner-names;vehicle-with-one-joint-owner;", "rows": [ { "cells": [ "reg", "jointOwner" ], "line": 23, "id": "qv-summary-display-of-joint-owner-names;vehicle-with-one-joint-owner;;1" }, { "cells": [ "ABC123", "OWNER, J. T." ], "line": 24, "id": "qv-summary-display-of-joint-owner-names;vehicle-with-one-joint-owner;;2" },
Plugin version:
- 0.8.2
Calabash gems:
- CFPropertyList (2.3.2)
- awesome_print (1.6.1)
- builder (3.2.2)
- bundler (1.11.2)
- calabash-common (0.0.2)
- calabash-cucumber (0.17.1)
- command_runner_ng (0.1.0)
- cucumber (1.3.20)
- diff-lcs (1.2.5)
- edn (1.1.0)
- geocoder (1.2.14)
- gherkin (2.12.2)
- httpclient (2.7.1)
- json (1.8.3)
- multi_json (1.11.2)
- multi_test (0.1.2)
- rack (1.6.4)
- rack-protection (1.5.3)
- run_loop (2.0.3)
- sim_launcher (0.4.13)
- sinatra (1.4.6)
- slowhandcuke (0.0.3)
- thor (0.19.1)
- tilt (2.0.2)