Using steps in testNG @Factory throw error
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
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của allure-framework/allure-java
-
AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementationCó thể đã có người làm @USSQA đã nhận 24 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
allure-framework/allure-java#1439 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
AllureSelenide attaches Screenshot and Page source once per nesting level of SelenideLogger.stepĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
allure-framework/allure-java#1453 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
allure-framework/allure-java#1452 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
allure-framework/allure-java#1451 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
allure-framework/allure-java#1446 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của allure-framework/allure-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
utopia-rise/godot-jvm#1004 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
spring-projects/spring-grpc#442 ·
-
Expose numberOfPermits in RateLimiterEvent.toString() and the ratelimiterevents actuator DTOĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
resilience4j/resilience4j#2547 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Clock.MakeDate continues execution and returns a rolled-over instant after dispatching error on invalid dateCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
mit-cml/appinventor-sources#4155 ·
Maintainer thường phản hồi trong vòng 1 ngày