qmetry/qaf-cucumber

Scenario Outline doesn't work with #Examples but does work with @dataFile

ykhudos opened this issue · 0 comments

QAF Version

3.1.0b

Steps To Reproduce

1. Create a Junit4/Cucumber5 test with Scenario Outline that reads data from an Excel file
2. When using Examples: {"datafile":"location/of/excel/file.xls"} the scenario is not executed
3. When using @datafile:location/of/excel/file.xls the scenario is executed

Expected behavior

In a xxx.feature file Scenario Outline should work if Examples: {"datafile":"location/of/excel/file.xls"} provided

Actual behavior

The Scenario Outlline is skiped.

Is the issue reproducible on runner?

I'm using IntelliJ. The project is Maven.
pom.xml has the following dependencies

com.qmetry
qaf-cucumber
LATEST


com.qmetry
qaf
LATEST

    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi</artifactId>
        <version>5.2.2</version>
    </dependency>
    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml-lite</artifactId>
        <version>5.2.2</version>
    </dependency>
    <dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi-ooxml</artifactId>
        <version>5.2.2</version>
    </dependency>
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.11.0</version>
    </dependency>

JUnit4 TestRunner is

@RunWith(Cucumber.class)
@CucumberOptions(
features="Features",
glue={"stepDefinitions","Hooks"},
monochrome=true,
plugin = {"com.qmetry.qaf.automation.cucumber.QAFCucumberPlugin", "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:" }
)

Test case sample

Scenario Outline:
Given I enter the values for '', '', '', '', ''

Examples: {"dataFile":"src/test/resources/testdata/Book1.xls", "sheetName":"Sheet1"}