It should be more friendly to create think times than how it can be done today. Also newbies and many experienced testers still make the error of thinking timer applies after the Sample. Maybe a config element would be a solution.
It's not clear what you are proposing here.
ihmo, there are 2 pbs: - timers are executed before the sample -> when writing a functional test plan people set the timer after an action (diplay a page, wait n seconds then go to another page) - two many non constant timers -> the timers (constant, gaussian, poisson and uniform ) should be merge into a single gui, today you need a phd to choose a timer.
Maybe another option is to code a particular Sampler that returns no SampleResult. This would allow this New Timer to be placer at the same level a Samplers, leading to clear positionned pauses. I think Timer scoping is a concept highly misunderstood and not very usable whenever Think Times is very different between samplers.
(In reply to Philippe Mouawad from comment #3) > Maybe another option is to code a particular Sampler that returns no > SampleResult. The Test Sampler is exactly that.
(In reply to benoit.wiart from comment #2) > ihmo, there are 2 pbs: > - timers are executed before the sample -> when writing a functional test > plan people set the timer after an action (diplay a page, wait n seconds > then go to another page) Changing that would break too many test plans. Also what about the last sample in a test - you don't want a pause after that. > - two many non constant timers -> the timers (constant, gaussian, poisson > and uniform ) should be merge into a single gui, today you need a phd to > choose a timer. Not sure that merging the GUIs would help; however better documentation of what to choose would be good.
Hello, We've implemented a solution that might be interesting for you. Find attached screenshots showing how it works. Think Time in screenshots are a Test Action (pause =0) containing a Uniform Random Timer (configurable) with configurable through properties Pause and Range. Regards
Created attachment 34627 [details] Step 1
Created attachment 34628 [details] Step 2
Created attachment 34629 [details] Step 3
Screenshots show how you proceed to add Think Times easily on Thread Groups and Controllers. This highly increases productivity on this painful steps where you currently have to make repetitive clicks, copy/pastes and insertions.
Created attachment 34630 [details] Patch implementing the feature
Author: pmouawad Date: Mon Jan 16 20:07:01 2017 New Revision: 1779097 URL: http://svn.apache.org/viewvc?rev=1779097&view=rev Log: Bug 58943 - Create a Better Think Time experience Contributed by UbikLoadPack Bugzilla Id: 58943 Added: jmeter/trunk/src/components/org/apache/jmeter/thinktime/ jmeter/trunk/src/components/org/apache/jmeter/thinktime/DefaultThinkTimeCreator.java (with props) jmeter/trunk/src/core/org/apache/jmeter/gui/action/AddThinkTimeBetweenEachStep.java (with props) jmeter/trunk/src/core/org/apache/jmeter/gui/action/thinktime/ jmeter/trunk/src/core/org/apache/jmeter/gui/action/thinktime/ThinkTimeCreator.java (with props) Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.java jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java jmeter/trunk/xdocs/changes.xml jmeter/trunk/xdocs/usermanual/properties_reference.xml
Author: pmouawad Date: Mon Jan 16 20:09:47 2017 New Revision: 1779098 URL: http://svn.apache.org/viewvc?rev=1779098&view=rev Log: Bug 58943 - Create a Better Think Time experience Contributed by UbikLoadPack Bugzilla Id: 58943 Modified: jmeter/trunk/bin/jmeter.properties
URL: http://svn.apache.org/viewvc?rev=1781410&view=rev Log: Add French translation Bugzilla Id: 58943 Modified: jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties