serenity-bdd/serenity-core

Serenity incorrect percentage calculation while running with tags in cucumber examples #2702

ck-chandru posted onGitHub

Hi,

I have integrated serenity with cucumber and I tagged my Examples in feature file based on TestType, Region & TransferType. Attached the sample feature file.

I am using serenity 3.1.20 version.

I am running the test using below command which execute only the examples from Asia region. mvn clean verify -Dtags="Region:Asia"

Issue: As per the feature file attached, I have totally 5 rows in example table, but the serenity report shows only 3. @TestType=Regression @Region=Asia @TransferType=Manual Examples: |Column1|Column2|Column3| |Value |Value |Value | |Value |Value |Value |

@TestType=Regression @Region=Asia @TransferType=Auto
Examples:
  |Column1|Column2|Column3|
  |Value  |Value  |Value  |
  |Value  |Value  |Value  |
  |Value  |Value  |Value  |

image

Number of test passed is 5 image

But the total number of test is showing only 3, because of which the pass % age is showing more than 100. image

Sample.txt


Use the Cucumber options, e.g.

mvn clean verify -Dcucumber.filter.tags="@Region:Asia"
posted by wakaleo almost 3 years ago

Closing presumed answered.

posted by wakaleo almost 3 years ago

Fund this Issue

$0.00
Funded

Pull requests