allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Missing list of executed suites

Open Ljancek opened this issue 6 years ago • 14 comments

I'm submitting a ...

  • [x] bug report
  • [ ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Missing of executed tests in SIUTES on Overview page. Suites subtitles show correctly number of items, but missing list of executed suites. Screenshot 2019-06-04 at 15 17 42

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. Run tests
  2. Generate report

What is the expected behavior?

list of executed suites are displayed

Please tell us about your environment:

Allure version 2.12.1
Test framework [email protected]
Allure adaptor [email protected]
[email protected]

Other information

Ljancek avatar Jun 04 '19 13:06 Ljancek

Hi, any update?

Ljancek avatar Jun 23 '19 07:06 Ljancek

@Ljancek what is test-suites in behave?

sseliverstov avatar Jun 25 '19 12:06 sseliverstov

@sseliverstov test-suit in behave is Scenario or Scenario outline

Ljancek avatar Jun 26 '19 04:06 Ljancek

@Ljancek in my opinion

parent suite = path to feature file suite = feature file sub suite = scenario/scenario outline

is better.

my motivation is

  1. suites are representation of code layer
  2. avoid duplicating behavior with bdd labels

@Ljancek ?

sseliverstov avatar Jun 26 '19 11:06 sseliverstov

@sseliverstov sounds good

Ljancek avatar Jun 27 '19 21:06 Ljancek

Any update?

Ljancek avatar Jul 13 '19 06:07 Ljancek

@sseliverstov Something news?

Ljancek avatar Aug 30 '19 12:08 Ljancek

Any update? @sseliverstov

Ljancek avatar Feb 11 '20 07:02 Ljancek

Hi guys i have the exactly same issue, in my case i work with lot of different test teams and every team work with your own language and generate report with allure and then put it all together on the same allure server. For ruby and java the output of allure-results are the same, but in python dont have some keys like "package" and "suites".

In the listener file i change the labels array to add this keys :

test_case.labels.append(Label(name=LabelType.SUITE, value=scenario.feature.name)) test_case.labels.append(Label(name=LabelType.PACKAGE, value=scenario.feature.name))

And in the LabelTypes i add PACKAGE to the constants

This changes reproduces these results :

image

image

I running allure-behave tests locally and everything still working.

Make sense open this pull request ?

leomenezessz avatar Feb 15 '20 13:02 leomenezessz

Any updates??

Ljancek avatar May 18 '20 04:05 Ljancek

I will open this pull request.

leomenezessz avatar May 20 '20 03:05 leomenezessz

Hello ! Someone can unblock this issue ? :)

jmfiaschi avatar May 13 '21 09:05 jmfiaschi

@jmfiaschi and @Ljancek I reopened the pull request because previously I deleted the old fix branch.

leomenezessz avatar May 15 '21 05:05 leomenezessz

Can this please be merged already?

Testing locally by applying the (literally) minor update as shown in the PR and I can confirm:

The scenarios (aka tests) are grouped under the feature (aka test suite).

TurboCoder13 avatar Dec 22 '22 13:12 TurboCoder13