You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Robin D. Wilson" <rw...@gmail.com> on 2013/11/07 18:18:43 UTC
Include within an module within an include?
So, in JMeter 2.9, we had the following scenario that worked fine:
1) File "Login":
2) Test Fragment
3) Controller - Login
4) Regex - Get Variables
5)
6) File "Simple Test Scenario":
7) Test Fragment
8) Include File "Login"
9) Controller "Do stuff after logging in"
10)
11)
12)
13) File "Main Test Suite":
14) Test Fragment
15) Include File "Simple Test Scenario"
16)
17) Thread Group 1
18) User Parameters - Setup vars for "Simple Test Scenario"
19) Module -> "Simple Test Scenario"
20)
21) Thread Group 2
22) User Parameters - Setup vars for "Simple Test Scenario" differently
23) Module -> "Simple Test Scenario"
So, "Simple Test Scenario" was a test fragment that includes the "Login" file first, then the Controller "Do stuff after logging in"
runs. This basically allows us to abstract the 'Login' functionality and re-use it in lots of other test cases.
File "Main Test Suite" just includes "Simple Test Scenario", then runs different thread groups that run "Simple Test Scenario" from
a Module Controller differently based on the "User Parameters" it has setup.
In JMeter 2.10 the above doesn't work. Here's what we have noticed: the "Login" functionality (line #8) runs, but we have some
'Regex' Post-Processors within that login functionality that get variables used by the subsequent requests (line #9) in the process.
The variables normally filled in by the "Login" request post-processors don't seem to be passed to the subsequent steps anymore.
We can work around this - but it means re-coding a lot of our test cases. The question is, was this an intentional change in the
JMeter 2.10 version, or is it a bug that will eventually get fixed (if I report it)?
--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
http://www.kingsisle.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Include within an module within an include?
Posted by Philippe Mouawad <ph...@gmail.com>.
Great !
Thanks for the effort and feedback .
Regards
@philmdot
On Thursday, November 7, 2013, Robin D. Wilson wrote:
> Well, after building my simplified test case, I discovered that it works
> fine - and the bug was in my (more complicated) test case.
> (Granted, the test case had worked in JM2.9, but apparently our
> application code changed between then and now - causing the
> problem.)
>
> Sorry for the red-herring.
>
> --
> Robin D. Wilson
> Sr. Director of Web Development
> KingsIsle Entertainment, Inc.
> VOICE: 512-777-1861
> http://www.kingsisle.com
>
>
> -----Original Message-----
> From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com <javascript:;>]
> Sent: Thursday, November 07, 2013 12:02 PM
> To: JMeter Users List
> Subject: Re: Include within an module within an include?
>
> Hello,
> Would it be possible to create very simple test plans with same structure
> that you describe using debug sampler or java sampler (as
> you have a regexp that is broken), it would help you debug issue and help
> us see if it's an issue with 2.10 ?
> You can open a Bugzilla and attach file.
>
> Thank you
> Regards
> Philippe
> On Thursday, November 7, 2013, Robin D. Wilson wrote:
>
> > So, in JMeter 2.9, we had the following scenario that worked fine:
> >
> > 1) File "Login":
> > 2) Test Fragment
> > 3) Controller - Login
> > 4) Regex - Get Variables
> > 5)
> > 6) File "Simple Test Scenario":
> > 7) Test Fragment
> > 8) Include File "Login"
> > 9) Controller "Do stuff after logging in"
> > 10)
> > 11)
> > 12)
> > 13) File "Main Test Suite":
> > 14) Test Fragment
> > 15) Include File "Simple Test Scenario"
> > 16)
> > 17) Thread Group 1
> > 18) User Parameters - Setup vars for "Simple Test Scenario"
> > 19) Module -> "Simple Test Scenario"
> > 20)
> > 21) Thread Group 2
> > 22) User Parameters - Setup vars for "Simple Test Scenario"
> > differently
> > 23) Module -> "Simple Test Scenario"
> >
> > So, "Simple Test Scenario" was a test fragment that includes the "Login"
> > file first, then the Controller "Do stuff after logging in"
> > runs. This basically allows us to abstract the 'Login' functionality
> > and re-use it in lots of other test cases.
> >
> > File "Main Test Suite" just includes "Simple Test Scenario", then runs
> > different thread groups that run "Simple Test Scenario" from a Module
> > Controller differently based on the "User Parameters" it has setup.
> >
> > In JMeter 2.10 the above doesn't work. Here's what we have noticed:
> > the "Login" functionality (line #8) runs, but we have some 'Regex'
> > Post-Processors within that login functionality that get variables
> > used by the subsequent requests (line #9) in the process.
> > The variables normally filled in by the "Login" request
> > post-processors don't seem to be passed to the subsequent steps anymore.
> >
> > We can work around this - but it means re-coding a lot of our test cases.
> > The question is, was this an intentional change in the JMeter 2.10
> > version, or is it a bug that will eventually get fixed (if I report
> > it)?
> >
> > --
> > Robin D. Wilson
> > Sr. Director of Web Development
> > KingsIsle Entertainment, Inc.
> > VOICE: 512-777-1861
> > http://www.kingsisle.com
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org<javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org<javascript:;>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org<javascript:;>
>
>
--
Cordialement.
Philippe Mouawad.
RE: Include within an module within an include?
Posted by "Robin D. Wilson" <rw...@gmail.com>.
Well, after building my simplified test case, I discovered that it works fine - and the bug was in my (more complicated) test case.
(Granted, the test case had worked in JM2.9, but apparently our application code changed between then and now - causing the
problem.)
Sorry for the red-herring.
--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
http://www.kingsisle.com
-----Original Message-----
From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com]
Sent: Thursday, November 07, 2013 12:02 PM
To: JMeter Users List
Subject: Re: Include within an module within an include?
Hello,
Would it be possible to create very simple test plans with same structure that you describe using debug sampler or java sampler (as
you have a regexp that is broken), it would help you debug issue and help us see if it's an issue with 2.10 ?
You can open a Bugzilla and attach file.
Thank you
Regards
Philippe
On Thursday, November 7, 2013, Robin D. Wilson wrote:
> So, in JMeter 2.9, we had the following scenario that worked fine:
>
> 1) File "Login":
> 2) Test Fragment
> 3) Controller - Login
> 4) Regex - Get Variables
> 5)
> 6) File "Simple Test Scenario":
> 7) Test Fragment
> 8) Include File "Login"
> 9) Controller "Do stuff after logging in"
> 10)
> 11)
> 12)
> 13) File "Main Test Suite":
> 14) Test Fragment
> 15) Include File "Simple Test Scenario"
> 16)
> 17) Thread Group 1
> 18) User Parameters - Setup vars for "Simple Test Scenario"
> 19) Module -> "Simple Test Scenario"
> 20)
> 21) Thread Group 2
> 22) User Parameters - Setup vars for "Simple Test Scenario"
> differently
> 23) Module -> "Simple Test Scenario"
>
> So, "Simple Test Scenario" was a test fragment that includes the "Login"
> file first, then the Controller "Do stuff after logging in"
> runs. This basically allows us to abstract the 'Login' functionality
> and re-use it in lots of other test cases.
>
> File "Main Test Suite" just includes "Simple Test Scenario", then runs
> different thread groups that run "Simple Test Scenario" from a Module
> Controller differently based on the "User Parameters" it has setup.
>
> In JMeter 2.10 the above doesn't work. Here's what we have noticed:
> the "Login" functionality (line #8) runs, but we have some 'Regex'
> Post-Processors within that login functionality that get variables
> used by the subsequent requests (line #9) in the process.
> The variables normally filled in by the "Login" request
> post-processors don't seem to be passed to the subsequent steps anymore.
>
> We can work around this - but it means re-coding a lot of our test cases.
> The question is, was this an intentional change in the JMeter 2.10
> version, or is it a bug that will eventually get fixed (if I report
> it)?
>
> --
> Robin D. Wilson
> Sr. Director of Web Development
> KingsIsle Entertainment, Inc.
> VOICE: 512-777-1861
> http://www.kingsisle.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
Re: Include within an module within an include?
Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Would it be possible to create very simple test plans with same structure
that you describe using debug sampler or java sampler (as you have a regexp
that is broken),
it would help you debug issue and help us see if it's an issue with 2.10 ?
You can open a Bugzilla and attach file.
Thank you
Regards
Philippe
On Thursday, November 7, 2013, Robin D. Wilson wrote:
> So, in JMeter 2.9, we had the following scenario that worked fine:
>
> 1) File "Login":
> 2) Test Fragment
> 3) Controller - Login
> 4) Regex - Get Variables
> 5)
> 6) File "Simple Test Scenario":
> 7) Test Fragment
> 8) Include File "Login"
> 9) Controller "Do stuff after logging in"
> 10)
> 11)
> 12)
> 13) File "Main Test Suite":
> 14) Test Fragment
> 15) Include File "Simple Test Scenario"
> 16)
> 17) Thread Group 1
> 18) User Parameters - Setup vars for "Simple Test Scenario"
> 19) Module -> "Simple Test Scenario"
> 20)
> 21) Thread Group 2
> 22) User Parameters - Setup vars for "Simple Test Scenario"
> differently
> 23) Module -> "Simple Test Scenario"
>
> So, "Simple Test Scenario" was a test fragment that includes the "Login"
> file first, then the Controller "Do stuff after logging in"
> runs. This basically allows us to abstract the 'Login' functionality and
> re-use it in lots of other test cases.
>
> File "Main Test Suite" just includes "Simple Test Scenario", then runs
> different thread groups that run "Simple Test Scenario" from
> a Module Controller differently based on the "User Parameters" it has
> setup.
>
> In JMeter 2.10 the above doesn't work. Here's what we have noticed: the
> "Login" functionality (line #8) runs, but we have some
> 'Regex' Post-Processors within that login functionality that get variables
> used by the subsequent requests (line #9) in the process.
> The variables normally filled in by the "Login" request post-processors
> don't seem to be passed to the subsequent steps anymore.
>
> We can work around this - but it means re-coding a lot of our test cases.
> The question is, was this an intentional change in the
> JMeter 2.10 version, or is it a bug that will eventually get fixed (if I
> report it)?
>
> --
> Robin D. Wilson
> Sr. Director of Web Development
> KingsIsle Entertainment, Inc.
> VOICE: 512-777-1861
> http://www.kingsisle.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>