Sat Nov 19 2016 20:45:45 GMT-0500 (EST)

#### Metadata

App Version: 0.3.2
Test Environment: STAGING
Browser: Chrome 54.0.2840.98
Platform: Windows 10
Parallel: Scenarios
Executed: Remote

####
@happy @reporting
Feature:Happy HTML reporting 6

In order to review cucumber reports
Fred, a cucumber user
Wants to have cucumber reports in HTML

####
@testPassing
Scenario:Fred wants to see passing scenarios in the HTML report 7

Before 0s + Show Info

    Tests INFO will print here.
    To attach INFO to Any steps, use scenario.attach function in your step definitions as shown below.

    If you pass HTML's to scenario.attach then reporter will format accordingly

    Simple String  : scenario.attach('sample data')
    Pretty JSON    : scenario.attach(JSON.stringify(json, null, 2))
    HTML Link      : scenario.attach('format the link with html-a tag'

When this feature runs with background 0s

Given Fred runs a passing cucumber step with 2 seconds timeout 2s

When he provides cucumber JSON file to reporter 0s

Then cucumber-html-reporter should create HTML report 0s

####
@testScenarioOutline
Scenario:Fred runs scenario outline for John and print on HTML report 5

John & Bob wants to run cucumber scenarios
- expects to have HTML reports

When this feature runs with background 0s

Given Fred runs a passing cucumber scenario on behalf of "John" 1s

When he provides cucumber JSON file to reporter 0s

Then cucumber-html-reporter should create HTML report 0s

####
@testScenarioOutline
Scenario:Fred runs scenario outline for Bob and print on HTML report 5

John & Bob wants to run cucumber scenarios
- expects to have HTML reports

When this feature runs with background 0s

Given Fred runs a passing cucumber scenario on behalf of "Bob" 1s

When he provides cucumber JSON file to reporter 0s

Then cucumber-html-reporter should create HTML report 0s

####
@testAttachDebugData
Scenario:Fred wants to print test data in the HTML reports for debugging purpose 5

When this feature runs with background 0s

Given Fred attaches the "test data to be printed" to the Given step of passing cucumber scenario 0s + Show Info

    test data to be printed
    {
      "name": "cucumber-html-reporter",
      "format": "html"
    }

When he provides cucumber JSON file to reporter 0s

Then cucumber-html-reporter should create HTML report with test-data 0s

####
@testDocString
Scenario:Fred wants see the long doc string attached in the HTML report 5

When this feature runs with background 0s

Given Fred runs a passing cucumber scenario with the below content 0s

    In order to see Doc String in the HTML report
    As a Cucumber User,
    I want to print below Doc String

      Hey, I am a Doc string

When he provides cucumber JSON file to reporter 0s

Then cucumber-html-reporter should create HTML report 0s

####
@testDataTable
Scenario:Fred wants to use data table and print on HTML report 5

When this feature runs with background 0s

Given Fred runs a passing scenario for the following data set 0s

id | name | id | name | id | name | id | name | id | name | id | name | id | name
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A
2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B
1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A
2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B
1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A
2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B
1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A
2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B
1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A | 1 | data-A
2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B | 2 | data-B

When he provides cucumber JSON file to reporter 0s

Then cucumber-html-reporter should create HTML report with data-table 0s

####
@unhappy @reporting
Feature:Unhappy HTML reporting 1 2 1

####
@attachScreenshot
Scenario:Fred wants to see a Screenshot attached to the HTML report 5

Given Fred runs a failing cucumber scenario 0s

When he provides cucumber JSON file to reporter 0s

And a failing scenario captures a screenshot 0s Screenshot -

Then cucumber-html-reporter should create HTML report with Screenshot 0s

####
@pendingStep
Scenario:Fred wants to see if steps are pending in the HTML report 2 1 1

Given Fred runs a cucumber scenario 0s

When he left this step as a pending

    this.Then(/^he left this step as a pending$/, function(callback) {
      // Write code here that turns the phrase above into concrete actions
      callback(null, 'pending');
    });

Then cucumber-html-reporter should report pending step with code-snippets in HTML report

####
@undefinedStep
Scenario:Fred wants to see if steps are undefined on the HTML report 2 2

Given Fred runs a cucumber scenario 0s

When he left this step as a undefined

    this.Then(/^he left this step as a undefined$/, function(callback) {
      // Write code here that turns the phrase above into concrete actions
      callback(null, 'pending');
    });

Then cucumber-html-reporter should create undefined step in HTML report

    this.Then(/^cucumber-html-reporter should create undefined step in HTML report$/, function(callback) {
      // Write code here that turns the phrase above into concrete actions
      callback(null, 'pending');
    });

####
@skippedStep
Scenario:Fred wants to see if steps are skipped on the HTML report 2 1 1

Given Fred runs a cucumber scenario 0s

When he throws the pending exception from this step

Then cucumber-html-reporter should create HTML report with skipped and pending steps