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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶: CompletableFuture. AllureLifecycle - Could not start step: no test case running #1044

Closed
1 task done
NewbieProger opened this issue May 8, 2024 · 2 comments
Closed
1 task done
Labels
type:bug Something isn't working

Comments

@NewbieProger
Copy link

NewbieProger commented May 8, 2024

What happened?

If I put testStep into CompletableFuture I get errors and it doesn't execute

    @SuppressWarnings("rawtypes")
    @Test
    @DisplayName("Some test")
    void case_33() {
        SetUppreconditions();

        List<CompletableFuture> futureList = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            futureList.add(
                CompletableFuture.runAsync(() -> {
                    kafkaSteps.sendRequest(msg);
                })
            );
        }
        CompletableFuture.allOf(futureList.toArray(new CompletableFuture[0])).join();

        databaseRepostitory.assertCount(1);
    }
22:48:10.095 [ForkJoinPool.commonPool-worker-4] ERROR io.qameta.allure.AllureLifecycle - Could not start step: no test case running
22:48:10.095 [ForkJoinPool.commonPool-worker-3] ERROR io.qameta.allure.AllureLifecycle - Could not start step: no test case running
22:48:10.095 [ForkJoinPool.commonPool-worker-22] ERROR io.qameta.allure.AllureLifecycle - Could not start step: no test case running
22:48:10.095 [ForkJoinPool.commonPool-worker-24] ERROR io.qameta.allure.AllureLifecycle - Could not start step: no test case running
22:48:10.321 [ForkJoinPool.commonPool-worker-29] ERROR io.qameta.allure.AllureLifecycle - Could not update step: no step running
22:48:10.321 [ForkJoinPool.commonPool-worker-22] ERROR io.qameta.allure.AllureLifecycle - Could not update step: no step running
22:48:10.321 [ForkJoinPool.commonPool-worker-19] ERROR io.qameta.allure.AllureLifecycle - Could not update step: no step running
22:48:10.321 [ForkJoinPool.commonPool-worker-6] ERROR io.qameta.allure.AllureLifecycle - Could not update step: no step running

What Allure Integration are you using?

allure-junit5

What version of Allure Integration you are using?

2.22.22

What version of Allure Report you are using?

2.22.22

Code of Conduct

  • I agree to follow this project's Code of Conduct
@NewbieProger NewbieProger added triage type:bug Something isn't working labels May 8, 2024
@HeroeBew
Copy link

Hello. We have the same issue

@baev
Copy link
Member

baev commented May 30, 2024

@baev baev closed this as completed May 30, 2024
@baev baev removed the triage label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants