---
name: "Test::BDD::Cucumber::Harness::Data"
section: "3pm"
platform: "linux"
package: "libtest-bdd-cucumber-perl"
version: "0.87-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Test::BDD::Cucumber::Harness::Data"
---

# Test::BDD::Cucumber::Harness::Data(3pm)

Builds up an internal data representation of test passes / failures

## NAME

Test::BDD::Cucumber::Harness::Data - Builds up an internal data representation of test passes / failures

## VERSION

version 0.87

## DESCRIPTION

A Test::BDD::Cucumber::Harness subclass which collates test data

## ATTRIBUTES

### features

An array-ref in which we store all the features executed, and completed. Until `"feature_done"` is called, it won't be in here.

### current\_feature

### current\_scenario

### current\_step

The current feature/step/scenario for which we've had the starting method, but not the `"_done"` method.

### feature

### feature\_done

Feature hashref looks like:

```
 {
        object    => Test::BDD::Cucumber::Model::Feature object
        scenarios => []
 }
```

### scenario

### scenario\_done

Scenario hashref looks like:

```
 {
        object  => Test::BDD::Cucumber::Model::Scenario object
        dataset => Data hash the scenario was invoked with
        steps   => [],
 }
```

### step

### step\_done

Step hashref looks like:

```
 {
        context => Test::BDD::Cucumber::StepContext object
        result  => Test::BDD::Cucumber::Model::Result object (after step_done)
 }
```

### feature\_status

### scenario\_status

### step\_status

Accepting one of the data-hashes above, returns a Test::BDD::Cucumber::Model::Result object representing it. If it's a Feature or a Scenario, then it returns one representing all the child objects.

### find\_scenario\_step\_by\_name

Given a Scenario and a string, searches through the steps for it and returns the data-hash where the Step Object's `"<-"`text\>\> matches the string.

## AUTHOR

Peter Sergeant `"pete@clueball.com"`

## LICENSE

```
  Copyright 2019-2023, Erik Huelsmann
  Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
```
