You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ronald Van de Kuil <ro...@nl.ibm.com> on 2008/10/20 16:51:46 UTC

pause functionality

Hello,

We were wondering wether it is possible to make jmeter stop executing a 
testplan until a tester instructs it to continue.

I imagine that there could be a component that can be added as a child to 
a sampler. When the JMeter thread reaches this component then JMeter stops 
executing the testplan and pops a dialog that allows the tester to 
continue the test when needed. The reason is that we cannot automate all 
steps: the tester needs to perform some manual actions on a uniface gui 
during the test.

Is there a way to achieve this situation or should I submit a feature 
request?

The beanshell can perhaps be a workaround ... I could try adding a modal 
JOptionPane with a beanshell postprocessor ... does anyone have any 
comments?


Met Vriendelijke Groet,
Ronald van de Kuil

Stuck in the past somewhere in the future? NO WAY!!!

Tenzij hierboven anders aangegeven: / Unless stated otherwise above:
IBM Nederland B.V.
Gevestigd te Amsterdam
Inschrijving Handelsregister Amsterdam Nr. 33054214

Re: pause functionality

Posted by sebb <se...@gmail.com>.
On 20/10/2008, Ronald Van de Kuil <ro...@nl.ibm.com> wrote:
> Hello,
>
>  We were wondering wether it is possible to make jmeter stop executing a
>  testplan until a tester instructs it to continue.
>
>  I imagine that there could be a component that can be added as a child to
>  a sampler. When the JMeter thread reaches this component then JMeter stops
>  executing the testplan and pops a dialog that allows the tester to
>  continue the test when needed. The reason is that we cannot automate all
>  steps: the tester needs to perform some manual actions on a uniface gui
>  during the test.
>
>  Is there a way to achieve this situation or should I submit a feature
>  request?
>
>  The beanshell can perhaps be a workaround ... I could try adding a modal
>  JOptionPane with a beanshell postprocessor ... does anyone have any
>  comments?
>

If the manual actions change the application output in a way that is
easy to check, then maybe you could use a While Controller to run a
sampler and look for the change.

Or use a BSF or BeanShell sampler to look for a file that you create
when the manual stage is complete (you might be able to put this in a
script that runs the Uniface app).

The advantage of such approaches is that they would also work in non-GUI mode.

The __log/__logn functions can print a message to the console window
when the manual intervention stage is reached, or you can use BSF/BSH
to do so before checking for the marker file.

If there is more than one thread, you will need to use a synchronising
timer as well.


>
>  Met Vriendelijke Groet,
>  Ronald van de Kuil
>
>  Stuck in the past somewhere in the future? NO WAY!!!
>
>  Tenzij hierboven anders aangegeven: / Unless stated otherwise above:
>  IBM Nederland B.V.
>  Gevestigd te Amsterdam
>  Inschrijving Handelsregister Amsterdam Nr. 33054214
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org