jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Nested Scripting Issue
Date Tue, 22 Jan 2013 15:44:38 GMT
On 22 January 2013 14:10, Thomas Tuohy <tmtuohy@gmail.com> wrote:
> Hi Philippe,
>
> Running things directly from Script2 functions as expected as you
> mentioned.  As for the second comment, I'm not sure exactly what is meant
> by "Test Fragment".  Script2 is included by Script1 and the HTTP Sampler
> defined within Script 2 is indeed executed correctly but the Module
> Controller in Script2 (which runs an HTTP Sampler defined in a disabled
> Thread Group in the same script) does not do anything.  So it seems to me
> to be a problem with including an external JMX and then trying to use a
> Module Controller within that included JMX.

Can you create a minimal script that shows the problem - you can use
Java sampler instead of HTTP, so no external access needed - and then
upload the file(s) somewhere public?

Please don't send to list as attachment, just send the link.

> Thanks,
>
> Tom
>
> On Mon, Jan 21, 2013 at 3:19 PM, Philippe Mouawad <
> p.mouawad@ubik-ingenierie.com> wrote:
>
>> Hello,
>> I have just tried what you are describing in Script 2 and it works for me
>> as of Script 2 only.(using JMeter 2.8).
>>
>> But regarding Script 1, when using IncludeController you must use Test
>> Fragment
>> Read:
>> -
>>
>> http://jmeter.apache.org/usermanual/component_reference.html#Include_Controller
>>
>> *The include controller is designed to use an external jmx file. To use it,
>> create a Test Fragment underneath the Test Plan and add any desired
>> samplers, controllers etc. below it. Then save the Test Plan. The file is
>> now ready to be included as part of other Test Plans.
>> *
>> Regards
>> Philippe
>>
>> UBIK-INGENIERIE on TWITTER <https://twitter.com/ubikingenierie>
>>
>> UBIK LOAD PACK BLOG <http://www.ubik-ingenierie.com/blog/>
>>
>> On Mon, Jan 21, 2013 at 5:46 PM, Tom Tuohy <tmtuohy@gmail.com> wrote:
>>
>> > Hello,
>> >
>> > I am trying to do the following but running into an issue . . .
>> >
>> > Script1:
>> >   Test Plan1:
>> >      Thread Group1: (disabled)
>> >        Include Controller1 --> Include Script2.jmx
>> >      Thread Group2:
>> >        Module Controller1 --> Test Plan1>Thread Group1>Include
>> Controller1:
>> >       Include Script2
>> >
>> > Script2:
>> >   Test Plan2:
>> >      Thread Group3:
>> >        Simple Controller1:
>> >           HTTP Request Sampler1
>> >           Module Controller2: --> Test Plan2>Thread
>> > Group4>SimpleController2
>> >
>> >    Thread Group4: (Disabled)
>> >      Simple Controller2:
>> >         HTTP Request Sampler2
>> >
>> > The issue I'm facing with the above structure is that HTTP Request
>> Sampler2
>> > never gets executed because it is never invoked through Module
>> Controller2.
>> > I can see that HTTP Request Sampler1 gets executed via the ViewResults
>> > tree.
>> > If I enable Thread Group4, then HTTP Request Sampler2 will get executed
>> but
>> > only because the thread is being processed by JMeter an not because it
>> was
>> > invoked via Module Controller2.   I can't seem to find a way to get this
>> to
>> > work as structured and I believe JMeter should be able to invoke HTTP
>> > Request Sampler2.   Is this a bug or limitation of JMeter?
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> > http://jmeter.512774.n5.nabble.com/Nested-Scripting-Issue-tp5715867.html
>> > Sent from the JMeter - User mailing list archive at Nabble.com.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> > For additional commands, e-mail: user-help@jmeter.apache.org
>> >
>> >
>>
>>
>> --
>>

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


Mime
View raw message