Add include and exclude filters for content-type, to control what gets added to the test plan. Also, restructure the GUI slightly, to make it easier to understand. I propose to use some vertical panels, with title strings, to group related items.
Created attachment 19731 [details] Suggested patch This suggested patch adds content-type filtering. It also supports to get default content type filters to use from the properties file. I think that solves bug 32184, because now it is easy to specify what static content you want to avoid in the test plan. I'm not quite sure that the following lines are correct : // Default value contentTypeInclude.setText(JMeterUtils.getProperty("proxy.content_type_include")); and // Default value contentTypeExclude.setText(JMeterUtils.getProperty("proxy.content_type_exclude")); So please check if this is the correct way of picking up default values from the properties file. I have also restructured the GUI slightly from the fix for bug 41876. I have moved the "controller" and "group" settings inside the "Test plan content" group. And I have used VerticalPanel with titles, which I think makes it look nice. Have a look, and apply that GUI change if you like it. I have also added resource strings which was missed in fix for bug 41876. I am also using the resource string from the HTTPSamplerGui for the options that control the HTTPSamplerGUI, instead of having separate strings for the same thing as proxy_* in the resource files. So I have removed "proxy_usekeepalive". And I have added "URL" prefix to the value of patterns_to_exclude, patterns_to_include in all languages, because I think that makes it more clear what the filer is applied against. Feel free to ditch that change.
Created attachment 19732 [details] Suggested patch with unit test This patch contains some simple unit tests for the filtering on content-type
Thanks! The JMeterUtils.getProperty() calls seem fine. The code has been added to SVN.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1889