GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Using steps in testNG @Factory throw error · Issue #367 · allure-framework/allure-java

Using steps in testNG @Factory throw error #367

New issue
Copy link
New issue
Copy link
Open
Bug
Open
Using steps in testNG @Factory throw error#367
Bug
Copy link

Description

@kurilov
kurilov
opened on Jun 5, 2019
Issue body actions

I'm submitting a ...

  • bug report

What is the current behavior?

If you use the steps in the factory, the allures writes an error

18:34:28.258 ERROR io.qameta.allure.AllureLifecycle Could not start step: no test case running
18:34:28.259 ERROR io.qameta.allure.AllureLifecycle Could not start step: no test case running
18:34:28.702 ERROR io.qameta.allure.AllureLifecycle Could not add attachment: no test is running
18:34:30.011 ERROR io.qameta.allure.AllureLifecycle Could not add attachment: no test is running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not update step: no step running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not stop step: no step running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not update step: no step running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not stop step: no step running

Example:

public class CountersTestFactory {

  @Factory
  public synchronized Object[] factoryMethod() throws Exception {
    // next two lines it @Steps
    Campaign campaign = CampaignSteps.createDefault(user.get().getApiKey());
    SocketIOSteps.waitForcampaignCollected(campaignId);

    assertThat(
        "campaign",
        CampaignDataSteps.getList(user.get().getApiKey(), campaign.id).result.size(),
        greaterThan(0));

    return new Object[] {
      new CountersCurrentTest(
          user.get().getApiKey(),
          campaign.id,
          DateUtils.getTimestampMinusDays(90),
          DateUtils.getTimestamp()),
}

What is the expected behavior?

@ Step displayed annotation text

Please tell us about your environment:

Allure version 2.12.1
Test framework [email protected]
Allure integration [email protected]
Generate report using [email protected]

Other information

Reacted by tohaa, giustiziere, Sergiy Slobodyanyk, c and Samuel Dominguez

Activity

  1. baev
    added the
    Bug
    issue type on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.