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.09k stars 2.05k forks source link

Need ability to override "Retrieve All Embedded Resources" from non-gui mode #3313

Open asfimport opened 10 years ago

asfimport commented 10 years ago

RWilson (Bug 56103): In the "HTTP Request Defaults" configuration, you have the option to set the default value for "Retrieve All Embedded Resources" for your test case. This works great from the GUI mode, since all you have to do to alter the way your testcase works is to check or uncheck the box next to the setting.

But, if you want to override a default value of "false" when running in non-gui mode, there doesn't appear to be any way to accomplish this. It would be easy enough to write a script to look for the XML value, and switch it from 'false' to 'true' - but the line is omitted from the saved 'jmx' file if the saved value is 'false', so you can't even easily alter it that way.

Ideally, this would be a jmeter property value that would be overridden with a "-Jjmeter.httpsampler.parse_images=false" command line switch.

OS: All

asfimport commented 9 years ago

@pmouawad (migrated from Bugzilla): Maybe this should be tackled by a concept similar to Profiles in Maven/Gradle.

I think it would be great to be able to have a Profile component that references a set of Properties of 1 environment.

And also be able to associate Config elements to a named profile.

Example but it would be a solution for all checkbox, radio box or select box config elements:

Profile (TEST_WITHOUT_IMAGES) : enabled Profile (TEST_WITH_IMAGES) : Disabled

HttpRequestDefault associated to profile TEST_WITHOUT_IMAGES HttpRequestDefault associated to profile TEST_WITH_IMAGES The rest of the test plan

Depending on the enabled profile(s) the config elements would be enabled or disabled.

Opinions ?

Anyway changing this to enhancement as it is not a bug.