apache / apache/jmeter

Response Assertion do wrong when enabling the Retrieve All Embedded Resources from HTML Files in sampler

オープン
#5,259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
os: Linux P2
主要言語
Java
スター
9.5k
フォーク
2.3k
平均マージ
1日 22時間
マージ済み PR(30日)
5

説明

**Wicky Tam** ([Bug 64228](https://bz.apache.org/bugzilla//show_bug.cgi?id=64228&redirect=false)):
I use a web server program "webtours" which is a part of loadrunner11.
the Home page of "webtours" contain some embedded resources(*.html & *.pl & *.png),so the http samplers to this page can generate sub-samples.

1.I make a HTTP main sampler to visit this web page
2.set the Attribute "Retrieve All Embedded Resources from HTML Files" in this sampler to be "Yes".
3.I select a Response Assertion into this sampler.
4.set the Attribute "Apply to:" of Response Assertion to be "Main sample and sub-samples"
5.fill a string "absmiddle" which is Contained in the response of only one sub-request into the Attribute “Patterns to Test” of Response Assertion.

I think the sampler will be successful.But the real result is failure because the string is not found in the responses of main sampler and other sub-samplers. it won't be successful even if the string is found in the response of one sub-sampler.
I think it is wrong! the result should be successful when the string is found in the response of any sampler when enabling the Retrieve All Embedded Resources from HTML Files in main sampler.

Created attachment [Response Assertion do wrong when enabling the Retrieve All Embedded Resources from HTML Files in sampler.zip](https://apache.github.io/jmeter-bugzilla-attachments/28/64228/37100/Response%20Assertion%20do%20wrong%20when%20enabling%20the%20Retrieve%20All%20Embedded%20Resources%20from%20HTML%20Files%20in%20sampler.zip): script & screenshot & the date captured by wireshark

Severity: normal
OS: Linux

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

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

調査の方向性

添付されたスクリプト、スクリーンショット、取得したデータから始め、Retrieve All Embedded Resources from HTML Files を有効にした HTTP sampler のケースを再現します。パターンが 1 つの sub-sample にのみ現れる場合に、Response Assertion が Apply to: Main sample and sub-samples をどのように処理するかを調査します。埋め込みリソースのレスポンスについて、assertion の結果が報告された期待動作と一致すれば完了です。

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

評価

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

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

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