Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleSample output
Code Block
{
  "line": 1,
  "elements": [
    {
      "start_timestamp": "2021-04-24T07:07:56.174Z",
      "line": 4,
      "name": "Trees effect on global warming",
      "description": "",
      "id": "capture-the-number-of-trees-planted-and-show-relation-to-global-warming;trees-effect-on-global-warming",
      "type": "scenario",
      "keyword": "Scenario",
      "steps": [
        {
          "result": {
            "duration": 3000000,
            "status": "passed"
          },
          "line": 5,
          "name": "There are no trees numbered in a given region",
          "match": {
            "location": "com.aiotests.samples.stepdefs.TemperatureTrackerTests.no_trees_state()"
          },
          "keyword": "Given "
        },
        {
          "result": {
            "status": "passed"
          },
          "line": 6,
          "name": "Each user plants a tree and updates",
          "match": {
            "location": "com.aiotests.samples.stepdefs.TemperatureTrackerTests.plant_tree()"
          },
          "keyword": "When "
        },
        {
          "result": {
            "status": "passed"
          },
          "line": 7,
          "name": "The temperature is updated in the temperature log",
          "match": {
            "location": "com.aiotests.samples.stepdefs.TemperatureTrackerTests.set_init_temp()"
          },
          "keyword": "Then "
        },
        {
          "result": {
            "status": "passed"
          },
          "line": 8,
          "name": "Temperature is captured over a few days",
          "match": {
            "location": "com.aiotests.samples.stepdefs.TemperatureTrackerTests.capture_temp()"
          },
          "keyword": "When "
        },
        {
          "result": {
            "status": "passed"
          },
          "line": 9,
          "name": "The graph should show the relation between the number of trees and temperature",
          "match": {
            "location": "com.aiotests.samples.stepdefs.TemperatureTrackerTests.validate_graph()"
          },
          "keyword": "Then "
        }
      ],
      "tags": [
        {
          "name": "@P0"
        }
      ]
    }
  ],
  "name": "Capture the number of trees planted and show relation to global warming",
  "description": "",
  "id": "capture-the-number-of-trees-planted-and-show-relation-to-global-warming",
  "keyword": "Feature",
  "uri": "file:src/test/resources/features/TempTracker.feature",
  "tags": []
}

Anchor
new
new
Status Mapping Cucumber → AIO Tests

Cucumber JSON

Description

AIO Tests Mapping

Run Status

Passed

Passed step

Passed

Passed, if and only if, all steps are passed

Failed

Failed step

Failed

Failed, if even a single step is failed

Skipped

Step was not executed due to failure in a previous step

Not Run

In Progress, if one step is Not Run and other steps are passed.

Failed , if any step is failed and others are Not Run

Undefined

Step does not have a corresponding implemented step definition

Not Run

In Progress, if one step is Not Run and other steps are passed.

Failed , if any step is failed and others are Not Run

...