apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.25k stars 2.09k forks source link

Sending HTTP Request Name to Jenkins Performance Plugin even though it is under "Transaction Controller" with "Generate Parent Sample" enabled #5454

Open asfimport opened 3 years ago

asfimport commented 3 years ago

Sumit Khaitan (Bug 64994): In earlier versions of JMeter, if Transaction Controller with "Generate Parent Sample" enabled used to send only Transaction Controller related details to Jenkins Performance Plugin. However, with JMeter 5.4 it is sending HTTP requests as well (behaving like Generate Parent Sample is unchecked)

Created attachment Jmeter Issue - Transaction Controller.docx: More Details

Severity: normal OS: All

asfimport commented 3 years ago

@pmouawad (migrated from Bugzilla): If XML is used, Generate parent sampler will deliver a parent element with children. Are you sure you're not in this configuration ?

Could you check the output you're using and see if in the CSV (if it's CSV) output you have a trace of the children of this transaction controller ?

Thank you

asfimport commented 3 years ago

Sumit Khaitan (migrated from Bugzilla): Only Backend Listener is added to the script and below is the non-GUI statement

jmeter -n -f -t "<script_location.jmx>" -l <log_path.jtl>

Yes, since Jmeter 5.4 .jtl file is having child HTTP requests as well. I have checked older jtl files and they used to have only "Transaction Controller" details

Nothing has changed other than Jmeter version

asfimport commented 3 years ago

Sumit Khaitan (migrated from Bugzilla): Another behaviour, only one HTTP Request with "follow redirect" enabled and no Transaction controller:- HTTP Request name "T12_ServiceSssInfo_AllNodes_CR_10strWk" is being stored as "T12_ServiceSssInfo_AllNodes_CR_10strWk-0" for 302 HTTP Code and "T12_ServiceSssInfo_AllNodes_CR_10strWk-1" for 200 HTTP Code

Part of XML log for reference:- <httpSample t="55" it="0" lt="14" ct="4" ts="1608633726221" s="false" lb="T12_ServiceSssInfo_AllNodes_CR_10strWk" rc="200" rm="OK" tn="PiePSS 1-1" dt="text" by="2354" sby="3926" ng="50" na="50"> <assertionResult> <name>Response Assertion</name> <failure>true</failure> <error>false</error> <failureMessage>Test failed: text expected to contain /partStructureNodeList/</failureMessage> </assertionResult> <httpSample t="14" it="0" lt="14" ct="4" ts="1608633726221" s="true" lb="T12_ServiceSssInfo_AllNodes_CR_10strWk-0" rc="302" rm="Found" tn="PiePSS 1-1" dt="" by="677" sby="2395" ng="50" na="50"/> <httpSample t="38" it="0" lt="37" ct="21" ts="1608633726238" s="true" lb="T12_ServiceSssInfo_AllNodes_CR_10strWk-1" rc="200" rm="OK" tn="PiePSS 1-1" dt="text" by="1677" sby="1531" ng="50" na="50"/> </httpSample>

asfimport commented 3 years ago

Sunny Agrawal (migrated from Bugzilla): Can you try by configuring the result file creation by clicking on save as XML under the configure button before the test run.

asfimport commented 3 years ago

Sumit Khaitan (migrated from Bugzilla): Tried and it's the same behaviour. Did you tried to replicate it at your end