Bug 61834 - Function Helper Dialog : Improve tests by showing variables and keeping them available between evaluations
Summary: Function Helper Dialog : Improve tests by showing variables and keeping them ...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.3
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2017-11-29 18:29 UTC by Philippe Mouawad
Modified: 2018-09-08 16:28 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 2017-11-29 18:29:32 UTC
Today when your function requires some context or access to JMeterVariables , the test will fails.

There is room for improvement:

- Have a JMeterVariables in JMeterContext
- Propose 2 text areas (setup/teardown) where some groovy code could be added to setup the context / variables with mock data

The FHD would run the groovy code before the execute and after it.
Comment 1 Philippe Mouawad 2018-09-08 16:19:06 UTC
Implemented in a bit different way:
- We show a new zone to display JMeterVariables that stays available between function calls
- User can reset it on demand
- User can use any function to set additional variables or properties using __groovy or __BeanShell
Comment 2 Philippe Mouawad 2018-09-08 16:28:21 UTC
Author: pmouawad
Date: Sat Sep  8 16:27:24 2018
New Revision: 1840368

URL: http://svn.apache.org/viewvc?rev=1840368&view=rev
Log:
Bug 61834 - Function Helper Dialog : Improve tests by showing variables and keeping them available between evaluations
Bugzilla Id: 61834

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/functions/gui/FunctionHelper.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