A duplicate main sampler is under the main sampler in View Results Tree
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Wicky Tam** ([Bug 64229](https://bz.apache.org/bugzilla//show_bug.cgi?id=64229&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.put a View Results Tree into the Thread Group.
4.run the script.
Let's look into the View Results Tree,you will find there are some sub_sampler and a main sampler under the main sampler.Yes, A duplicate main sampler is under the main sampler.it does wrong sometimes! For example, the Attribute "Apply to:" of Response Assertion is set to be "sub-samples only". Fill a string "(?i)/body" which is Contained in all responses of sub-request(but not the main_sampler) into the Attribute “Patterns to Test”. the real result is failure because the string is not found in the duplicate main sampler. is it right? I don't think so.
Created attachment [A duplicate main sampler is under the main sampler in View Results Tree.zip](https://apache.github.io/jmeter-bugzilla-attachments/29/64229/37101/A%20duplicate%20main%20sampler%20is%20under%20the%20main%20sampler%20in%20View%20Results%20Tree.zip): script & screenshot & the date captured by wireshark
Severity: normal
OS: Linux
Contributor guide
Assessment
This issue has not been assessed yet.