GeezerVison is showing github.com — Support for behave which is running on parallel mode - now allure-results directory is creating empty. · Issue #321 · allure-framework/allure-python
Support for behave which is running on parallel mode - now allure-results directory is creating empty. #321DescriptionI'm submitting a ...
- 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?
When I'm using behave from this branch behave/behave#710 (where is possible to use behave in the parallel mode) directory allure-results is creating empty.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
I used this command
behave --processes 3 --parallel-element feature -f allure_behave.formatter:AllureFormatter -o allure_test_results ./features
and after run this folder is creating but empty when I'm using behave without --processes 3 --parallel-element feature that allure-results directory is creating correctly.
What is the expected behavior?
That Allure works in other forks when there is parallel support so it will be very helpful to have this possibility also for behave.
What is the motivation / use case for changing the behavior?
Parallel run of tests is one of the most important thing in my opinion because always we want to decrease execution time.
Please tell us about your environment:
- Allure version: 2.8.0
- Test framework: behave 1.2.7.dev0
- Allure adaptor: [email protected]
Reacted by Adam and GowriShankariSurendran Activityyuriandreyev commented on Jan 24, 2019 testingplusme commented on Jan 24, 2019 @yuriandreyev thank you. Is it also possible to have access to allure.attach() method? Or maybe you have any wrapper method for it? added a commit that references this issue on Jan 24, 2019This issue will close once commit 5e9128b is merged into the 'master' branch.5e9128b DauletMavlonazarov commented on Jan 28, 2019 sseliverstov commented on Jan 28, 2019 testingplusme commented on Jan 28, 2019 @DaulGitHub thanks for your reply.
@sseliverstov Thank you. I tried it. Unfortunately, still it's creating empty folder :( Ofc, I used the new version of allure-behave and allure-python-commons and behave from branch behave/behave#616 . sseliverstov commented on Jan 28, 2019 testingplusme commented on Jan 28, 2019 testingplusme commented on Feb 5, 2019 Ljancek commented on Feb 5, 2019 I have some issue with
python: 2.7.15,
allure-behave: 2.5.5,
allure-python-commons: 2.5.5
behave: 1.2.7.dev0 from behave/behave#616
added a commit that references this issue on Nov 18, 2020This issue will close once commit 0c1ee01 is merged into the 'master' branch.0c1ee01 Khouloud-moalla commented on May 24, 2022 DauletMavlonazarov commented on May 25, 2022 Khouloud-moalla commented on May 26, 2022
Daul I want this
Generate reports with allure behave: My Test will be executed on several browsers in parallel so when I generated the report i will have two reports but whithout the name of browser in file.json . What I want doing to know which report belongs to which browser !! heelp me please DauletMavlonazarov commented on May 26, 2022
Daul I want this Generate reports with allure behave: My Test will be executed on several browsers in parallel so when I generated the report i will have two reports but whithout the name of browser in file.json . What I want doing to know which report belongs to which browser !! heelp me please
You should change output report directory name https://github.com/DaulGitHub/allure-behave/blob/master/example/features/environment.py#L10 for every test run.
for example: report_dir_name = "allure-report-firefox"
report_dir_name = "allure-report-chrome" etc
I hope it will help you. Khouloud-moalla commented on May 26, 2022
I want that the name of browser to be written automaticcaly in report.json file generated right after every test and for every test the browser is not always the same !! DauletMavlonazarov commented on May 26, 2022 Just change variable report_dir_name for every test run. I do not see problem.
May be I didn`t fully understand the task. Khouloud-moalla commented on May 26, 2022 ok i will try to explain more: i'm generating my reports with this command
sh('SET CONFIG_FILE=config/%s.json & SET TASK_ID=%s & behave -f allure_behave.formatter:AllureFormatter -o reports features/project.feature ' % (config, task_id, feature3))
it executes tests in 2 different browsers in paralell and for every browser it generates a .json report file .
My problem is i want to know each .json file belongs to which browser and i want to add the name of the browser in the .json file DauletMavlonazarov commented on May 27, 2022 Khouloud-moalla commented on May 27, 2022
2. you misled me with a quote in this question
I'made my issue in the repository which say to me but without any response :( 3 days without any help and any response DauletMavlonazarov commented on May 27, 2022 Reacted by khouloud moalla Khouloud-moalla commented on May 27, 2022 added a commit that references this issue on Apr 10, 2023This issue will close once commit f9ee1e3 is merged into the 'master' branch.f9ee1e3 added 2 commits that reference this issue on Mar 19, 2024This issue will close once commit 9c2c42a is merged into the 'master' branch.9c2c42a This issue will close once commit f1533b3 is merged into the 'master' branch.f1533b3
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|