Bug 62870 - Templates : Add ability to provide parameters
Summary: Templates : Add ability to provide parameters
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.1
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk, PatchAvailable
Depends on:
Blocks: 61805
  Show dependency tree
 
Reported: 2018-10-31 08:30 UTC by Philippe Mouawad
Modified: 2018-12-03 19:45 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2018-10-31 08:30:34 UTC
This idea has previously been discussed for JMeter Root CA certificate duration.


The feature here consists of the following:

- Add to templates (Template.java) key/value parameters. As a starter, parameters would be simple String
- When such a template is selected, JMeter will automatically provide a gui for each field so that user can enter the value
- When using the JMX underlying template, JMeter will replace the parameterized values by the values entered by user
Comment 1 UbikLoadPack support 2018-11-19 21:37:52 UTC
PR:

- https://github.com/apache/jmeter/pull/432
Comment 2 Philippe Mouawad 2018-11-27 20:28:10 UTC
Author: pmouawad
Date: Tue Nov 27 20:23:44 2018
New Revision: 1847594

URL: http://svn.apache.org/viewvc?rev=1847594&view=rev
Log:
Bug 62870 - Templates : Add ability to provide parameters 

Contributed by UbikLoadPack (https://ubikloadpack.com)

This closes #432


Bugzilla Id: 62870

Added:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/template/templates.dtd   (with props)
    jmeter/trunk/src/core/org/apache/jmeter/util/TemplateUtil.java   (with props)
    jmeter/trunk/test/resources/org/apache/jmeter/gui/
    jmeter/trunk/test/resources/org/apache/jmeter/gui/action/
    jmeter/trunk/test/resources/org/apache/jmeter/gui/action/template/
    jmeter/trunk/test/resources/org/apache/jmeter/gui/action/template/invalidTemplates.xml   (with props)
    jmeter/trunk/test/resources/org/apache/jmeter/gui/action/template/validTemplates.xml   (with props)
    jmeter/trunk/test/src/org/apache/jmeter/gui/action/template/
    jmeter/trunk/test/src/org/apache/jmeter/gui/action/template/TestTemplateManager.java   (with props)
    jmeter/trunk/xdocs/creating-templates.xml   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/
    jmeter/trunk/xdocs/images/screenshots/templates/template_folder.png   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/template_parameters.png   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/template_parameters_window.png   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/template_recording_custom_filename.png   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/template_recording_filename.png   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/template_recording_retrieved_value.png   (with props)
    jmeter/trunk/xdocs/images/screenshots/templates/templates_xml_parameters.png   (with props)
Modified:
    jmeter/trunk/bin/templates/recording.jmx
    jmeter/trunk/bin/templates/templates.dtd
    jmeter/trunk/bin/templates/templates.xml
    jmeter/trunk/build.xml
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SelectTemplatesDialog.java
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/template/Template.java
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/template/TemplateManager.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/xdocs/changes.xml


Author: pmouawad
Date: Tue Nov 27 20:27:52 2018
New Revision: 1847595

URL: http://svn.apache.org/viewvc?rev=1847595&view=rev
Log:
Bug 62870 - Templates : Add ability to provide parameters 

Add missing file and take into account Felix note

Bugzilla Id: 62870

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SelectTemplatesDialog.java
    jmeter/trunk/xdocs/usermanual/get-started.xml
Comment 3 Philippe Mouawad 2018-12-03 19:45:48 UTC
pmouawad@apache.org
	
2:25 PM (6 hours ago)
	
to commits
Author: pmouawad
Date: Mon Dec  3 13:23:29 2018
New Revision: 1848039

URL: http://svn.apache.org/viewvc?rev=1848039&view=rev
Log:
Bug 62870 - Templates : Add ability to provide parameters

Avoid resetting templates when not necessary


Bugzilla Id: 62870

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SelectTemplatesDialog.java