allure-framework / allure-framework/allure-java

[allure-httpclient] Add request/response attachment from the DataProvider method

オープン
#458 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
376
フォーク
240
平均マージ
1日 7時間
マージ済み PR(30日)
45

説明

#### I'm submitting a ...
- [x] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behaviour?
When sending an HTTP request in a Data Provider method, the request/response attachment is not created.
In https://github.com/allure-framework/allure-java/blob/master/allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java#L609 line the error is thrown, the error message is printed in the logs.

#### What is the expected behavior?
An attachment is created from the Data Provider method.

#### What is the motivation/use case for changing the behaviour?
In the case of the data provider request failure, it's hard to find the root cause.
Some significant part of the test case execution log is lost.

#### Please tell us about your environment:

| Allure version | 2.13.2 |
| --- | --- |
| Test framework | testng@7.1 |

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java の609行目付近から開始し、TestNG DataProvider メソッドの実行中に HTTP リクエストとレスポンスの添付ファイルがどのように処理されるかを追跡します。失敗する DataProvider リクエストを再現し、request/response attachment が作成され、関連する実行ログが保持されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。