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

Playwright cucumber allure report issue #982

Closed
siva90144 opened this issue May 29, 2024 · 4 comments · Fixed by #1153
Closed

Playwright cucumber allure report issue #982

siva90144 opened this issue May 29, 2024 · 4 comments · Fixed by #1153
Labels
theme:cucumberjs CucumberJS related issue

Comments

@siva90144
Copy link

siva90144 commented May 29, 2024

I am running my project with Playwright, Cucumber, and Allure Report. I have a feature file as shown below and I am running tests with specific tags, but it is printing all the examples, including those which are not executed.

To Reproduce
Steps to reproduce the behavior:

  1. create a feature file like below
    '@Search @regression
    Feature: Search - Verify end to end flow
    I want to verify Search flow

    @Actual @validate-e2e @search
    Scenario Outline: Search - I am able to search in the web ""
    Given I login the application for ""
    When I get the page title
    Then I verify details ""
    @google
    Examples:
    | client | pagetitle |
    | google | Google |
    @amazon
    Examples:
    | client | pagetitle |
    | amazon | Amazon |
    @facebook
    Examples:
    | client | pagetitle |
    | facebook | Facebok |
    '

image
  1. I executed the tags with '@search and @amazon' and here is the run command: npm test run --tags="@search and @amazon"
  2. it picked the right scenario and executed only amazon scenario.
  3. but in the reprot its showing all the clinets related to google and facebook along with the amazon

Expected behavior
It should display only content related to amazon in example section

Screenshots
please see the attached screenshot and highlighted in red color should not be displayed
image

Desktop (please complete the following information):

  • OS: [iOS]
  • Browser [chrome]
  • Version [latest]

Additional context
please see the attached sample project

@baev baev added the theme:cucumberjs CucumberJS related issue label Jun 27, 2024
@Zychkov
Copy link

Zychkov commented Sep 23, 2024

This issue was reported in the task #625, but closed with the resolution Fixed in 3.0.0-beta.11.
I have updated to version 3.0.1. The bug is still relevant.

@baev
Copy link
Member

baev commented Sep 23, 2024

@Zychkov, are you sure? #625 was about missed parameters for Scenario Outline for cucumbers integration. It was fixed. There is a test: https://github.com/allure-framework/allure-js/blob/main/packages/allure-cucumberjs/test/spec/examples.test.ts (The feature file)

@Zychkov
Copy link

Zychkov commented Sep 23, 2024

@baev, yeah, I'm sure.
Feature

Feature: allure-test
  Feature's description

  @example @tms=ABC-222 @issue=ABC-333
  Scenario Outline: Allure Tests
    Given The sum of the numbers <a> and <b> must be equal to <c>

    Examples:
      | a | b | c |
      | 1 | 2 | 3 |
      | 2 | 2 | 4 |

    Examples:
      | a | b | c |
      | 3 | 2 | 5 |
      | 4 | 2 | 7 |

Dependencies:

   "@cucumber/cucumber": "^10.8.0",
    "@cucumber/messages": "^24.1.0",
    "allure-commandline": "^2.30.0",
    "allure-cucumberjs": "^3.0.1",
    "allure-js-commons": "^3.0.1"

How the report looks:
image

What I expect it should look like (same scenario, but in Java):
image

@baev
Copy link
Member

baev commented Sep 23, 2024

@Zychkov thanks! It wasn't working correctly. I provided a pull request with the fixes #1153

@baev baev closed this as completed in 504da73 Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:cucumberjs CucumberJS related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants