Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issue between QAF 3.0.0 and Cucumber 6.0.0 #8

Open
phTrung opened this issue Jun 7, 2021 · 2 comments
Open

Compatibility issue between QAF 3.0.0 and Cucumber 6.0.0 #8

phTrung opened this issue Jun 7, 2021 · 2 comments

Comments

@phTrung
Copy link

phTrung commented Jun 7, 2021

Steps To Reproduce
Run Cucumber scenario with an excel data provider

Expected behavior
The test should run has many times as there are sets of data

Actual behavior
Exception in thread "main" java.lang.NoClassDefFoundError: io/cucumber/core/gherkin/Location

In Cucumber version 6, the Gherkin folder is at the same level as the core. QAF simply lacks compatibility with Cucumber.

Test case sample

Feature: Create and Delete Group
@smoke
@datafile:src/test/resources/features/UserData.xls
@sheetName:Groups
Scenario: Create New User Group
Given I click on create group button
When The create user group pop up appears
Then I enter the group name ${Group Name}
Then I enter the group description ${Description}
Then I add user to the group
Then I click on the create group button
And The group must be created with a confirmation message

@aruna3390
Copy link

@phTrung - did you hear anything from team regarding this compatibility issue.
I am using cucumber 6.8.1 , Test NG 7.1.0 and QAF 3.0.0 using Runner class in my current test framework and I am getting some Null pointer exception
Not sure where I am missing ??? need some help with initial configuration

@bansalnitin92
Copy link

Hi @cjayswal I am new to qaf - cucumber . After adding lib , I am getting this issue

java.lang.NoClassDefFoundError: io/cucumber/core/gherkin/Location

with implementation group: 'com.qmetry', name: 'qaf-cucumber', version: '3.1.0'
implementation group: 'io.cucumber', name: 'cucumber-java', version: '6.11.0'
implementation group: 'io.cucumber', name: 'cucumber-junit', version: '6.11.0'

@CucumberOptions(
    features = {"src/test/resources/testCases/"},
    glue = { "com.apple.store.service.client.cucumber" },
    plugin = {"pretty", "io.qameta.allure.cucumber6jvm.AllureCucumber6Jvm","html:target/cucumber.html","com.qmetry.qaf.automation.cucumber.QAFCucumberPlugin"},
    monochrome = false)

Am i missing anything here ?

Thank you for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants