This would be complicated to do. I can think of a way, but's kind of ugly. First of
all, you can get access to JMeter's gui via org.apache.jmeter.gui.GuiPackage - a
singleton class. From there you could find controllers under the workbench. The
problem is, how to get them into the test tree? You could make yourself a new
action that gets triggered when a test run is started, and at that time, you could
replace the controller in the test tree with the controller in the workbench.
Making a new action (in org.apache.jmeter.gui.action) is not tough, but you would
have to modify the Start.java action to trigger it before it processes the test tree.
So, it's not so simple. However, I can now see the value of what you are talking
about. It's essentially a way to reuse test cases without duplication.
On 28 Jan 2003 at 4:59, Thad Smith wrote:
> You pretty much got it. Here's a test scenario that I
> would use this in: I have recorded the http for
> creating an account, which has an account type that I
> set to a variable ${acnt_type}. All of this sits in a
> simple controller in my workbench. In my thread group
> I have several of these "pointer" controllers pointing
> to this create account controller, each of which has
> its own config element that sets the value of
> ${acnt_type} for each pointer to create account. The
> advantage is, is that if I need to change create
> account, I change it in just one place, not have to
> rerecord and copy/paste it all over the place (if
> copy/paste was working).
>
> So, what I would need for this is a callback function
> to get a list of all of the controllers in the
> workbench to generate a drop-down list for the user to
> choose where to point control to. Any suggestions?
>
> Thanks,
>
> Thad Smith
> Software Engineer
> IBM Tivoli Software
>
> --- Mike Stover <[EMAIL PROTECTED]> wrote:
> > I'm not sure I understand what exactly you want to
> > do. It sounds like you want a controller that
> > can pass control to another controller that is in
> > the WorkBench? If so, yeah, I think you could
> > do that, but I'm not sure what the advantage would
> > be to doing it? If you just want a
> > copy/paste workaround, then you can save tree
> > elements to file and re-open them in multiple
> > places, thus giving you a somewhat inconvenient
> > copy/paste method.
> >
> > -Mike
> >
> > On 27 Jan 2003 at 14:06, Thad Smith wrote:
> >
> > > Hi,
> > >
> > > I'm new to extending JMeter, and new to the
> > product in
> > > general, but very impressed to what it can do and
> > how
> > > simple it is. We're looking at it to use as our
> > load
> > > tester for the latest version of a Tivoli product,
> > but
> > > I'm finding a few holes in the functionality that
> > > might stop us.
> > >
> > > What I'm trying to find out is if there are api's
> > to
> > > do call backs into the product. I'm trying to
> > write a
> > > controller/sampler that will act as a pointer to
> > any
> > > simple controller that sits directly under the
> > > WorkBench node and be able to run it. This will
> > fix
> > > (kind of) copy/paste not being present, but also
> > give
> > > us the ability to modularize a simple controller
> > as a
> > > test in order to be able to have multiple pointers
> > to
> > > it, and only have to make changes in one place.
> > >
> > > Is this possible? If so, any suggestions for the
> > > classes to look at so I don't have to dig through
> > the
> > > source code?
> > >
> > > Thanks and Regards,
> > >
> > > Thad Smith
> > > Software Engineer
> > > IBM Tivoli Software
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> >
> > --
> > Michael Stover
> > [EMAIL PROTECTED]
> > Yahoo IM: mstover_ya
> > ICQ: 152975688
> > AIM: mstover777
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>