Skip to content

report should preserve the order as of data driven table present in spec file #228

Description

@h2grover

Expected behavior

During the data-driven, parallel test run order of the rows should be preserved in the reports.

Actual behavior

Please check the s.no in the screenshot

Screenshot 2019-06-05 at 3 02 28 PM

Steps to reproduce

Run this code:

Spec file:

# Spec header

tags: test

   |S.No.|url                          |
   |-----|-----------------------------|
   |1    |https://docs.gauge.org       |
   |2    |https://www.google.com/      |
   |3    |https://www.facebook.com/    |
   |4    |https://docs.gauge.org/latest|
   |5    |https://gauge.org/plugins/   |

## scenario header


* Naviagte to <url> url

step_implementation.js:

const puppeteer = require("puppeteer");
const assert = require("assert");

step("Naviagte to <url> url", async function(url) {
  const browser = await puppeteer.launch({ headless: false });

  const page = await browser.newPage();
  await page.goto(url);

  if (url.includes("latest")) assert.fail("Failed step");

  await browser.close();
});

Gauge version

Gauge version: 1.0.5
Commit Hash: 562f036

Plugins
-------
html-report (4.0.8)
js (2.3.5)
screenshot (0.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions