Bug 56103 - Need ability to override "Retrieve All Embedded Resources" from non-gui mode
Summary: Need ability to override "Retrieve All Embedded Resources" from non-gui mode
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.11
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2014-02-03 15:54 UTC by RWilson
Modified: 2014-08-30 13:45 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description RWilson 2014-02-03 15:54:02 UTC
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.
Comment 1 Philippe Mouawad 2014-08-30 13:45:17 UTC
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.
Comment 2 The ASF infrastructure team 2022-09-24 20:37:56 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3313