allure-junit with java stream api - parallelStream() #2195
Unanswered
SiarheiKavalchuk
asked this question in
Questions & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to force allure to understand parent step (and steps in all) while running step into java parallel stream?
example:
1. success story:
result:
![image](https://private-user-images.githubusercontent.com/51118946/282241026-2f72bcd8-49dd-4091-9d65-181562f91638.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDU3NDIsIm5iZiI6MTczOTE0NTQ0MiwicGF0aCI6Ii81MTExODk0Ni8yODIyNDEwMjYtMmY3MmJjZDgtNDlkZC00MDkxLTlkNjUtMTgxNTYyZjkxNjM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIzNTcyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3ZmE3ZWExN2E0YjZkOWNiM2Y3MDYwMjk3NWNmYTk2ODQzNTZmY2IxYjkzYzAyMjBmNTQ4N2YzNjgyOWU5MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CKLn8wAS5Yzk3i8Q5_QQKH845LpnVPyxBgxWwpS19TE)
2. failed story:
logs:
result;
![image](https://private-user-images.githubusercontent.com/51118946/282241213-8defa9ed-8bbf-4112-b636-8a61c349ce7a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDU3NDIsIm5iZiI6MTczOTE0NTQ0MiwicGF0aCI6Ii81MTExODk0Ni8yODIyNDEyMTMtOGRlZmE5ZWQtOGJiZi00MTEyLWI2MzYtOGE2MWMzNDljZTdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIzNTcyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0OGQ1MTdjZWI3ZWJkMmMxN2E3OTY5ZTIwNDE4YjRmZmIxNjUzYmE5YmFlZjVmMjUzMDFkNjNmMDY0YzYzZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.K2YKqTwOf0Amn2ZLHlvZ4xbK2vioSqmboQSURThivsg)
note1: It doesn't work fine if there are no failures too.
note2: I can't run in parallel this step within ParameterizedTest because it is integration test with several checks before this step. In addition, imagine situation when a consumer gets an event that should be parsed to several entities in differrent db tables. And If I try to run steps one by one while testing it will take too big amount of time.
Beta Was this translation helpful? Give feedback.
All reactions