jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <mark.o.mil...@gmail.com>
Subject Re: Reusable JMeter Modules
Date Thu, 20 Jun 2013 22:21:08 GMT
As mentioned, read up on Test Fragments and Module Controllers.

Also explore the use of properties files to seed your test variables. I
make functional tests that I use to assert the consistency of disparate
environments. I put all the environmentally unique variables (hosts, ports,
passwords...) into a single property file like so:
DEV.WEB.HOST=devserver.com
DEV.WEB.PORT=8080
PROD.WEB.HOST=myserver.com
PROD.WEB.PORT=443

I run my tests with something like: java -jar ApacheJMeter.jar
-JTARGETENVIRONMENT=PROD

Then I run a little script in the setup thread to use the right set of
properties based on the TARGETENVIRONMENT value

It's a little bit of setup work, but then serves me well in the long run.

Mark




On Thu, Jun 20, 2013 at 3:15 PM, Wanjun Wang <wangwan@us.ibm.com> wrote:

>
> Is it possible to design reusable modules within JMeter?  For example,
> there are 3 pages with same design.  Each has main response and an
> additional AJAX request.  I'd like to have one module that takes a
> parameter to navigate to the specified page.  This way, if there's any
> change, I just need to change one place instead of 3.  Can JMeter test be
> written just through Java API's without using the GUI, as the GUI doesn't
> seem to support any modularization?  Thanks.
>
> Regards, Wanjun

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message