Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Using steps in testNG @Factory throw error

Đang mở
#367 0 bình luận 5 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
testing

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi trong phương thức @Factory của TestNG được hiển thị, sử dụng các phiên bản Allure và TestNG được liệt kê cùng các lệnh gọi @Steps. Theo dõi vòng đời xung quanh factoryMethod và xác minh rằng văn bản bước dự kiến được hiển thị mà không có các lỗi no-test hoặc no-step đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
390
Fork
242
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của allure-framework/allure-java

Tất cả issue của allure-framework/allure-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.