Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [maxq-dev] MaxQ - SLAMD integration

maxq
Discussion topic

Back to topic list

[maxq-dev] MaxQ - SLAMD integration

Author Dylan van Iersel <d dot van dot iersel at portinfolink dot com>
Full name Dylan van Iersel <d dot van dot iersel at portinfolink dot com>
Date 2005-02-08 08:58:23 PST
Message Hi all,

This mail is a partial repost of a mail that I sent earlier to the maxq
maintainers. I am reposting it so that everyone can participate in the
discussion:

> A while ago, we have checked out the MaxQ sources to see whether the
> script recording was usable for creating scripts that can be used in
> loadgeneration.
>
> At this point we have succesfully "integrated" MaxQ with the (now open
> source) SLAMD load generation engine (http://www.slamd.com).
> Integrated means that we adapted the Java code generator so that it
> creates Java scripts that can be executed by SLAMD using an adapter
> (by the way, the generated scripts can also be executed using a Junit
> test harnass). We have also started work on an IntelliJ plugin so that

> scripts can simply be recorded from within IntelliJ. This is not
> finished yet, the proxy server has been integrated, the tool windows
> are in place, the only thing missing is the actual starting and
> stopping of the recorder.

One minor correction: "adapted the Java code generator" in the text
above really means "copied and adapted". The original JavaCodeGenerator
was not touched.

The major adaptations/extensions have been in the following places:
* A script adapter has been created (HTTPScriptJobClass) that can be
used to execute your recorded scripts from SLAMD. In terms of
dependencies: this adapter really has nothing to do with maxq and has no
dependencies on maxq other that the generated scripts and the base class
that these scripts extend from.
* A code generator (SlamdScriptGenerator) has been created that follows
the design pattern of the other script generators. The generated scripts
extend from BaseSlamdHttpScript that implements most of the required
interface (TestScript) that is needed by the HTTPScriptJobClass. By
using the TestScript interface simple scripts (login, logout, edit,
save, ...) can be combined into a more complex scenario.
* Since I needed not only the HTTP request parameters to be captured but
also the headers, I created a class HeaderValue as a wrapper to capture
this data and made changes to the SlamdScriptGenerator and the
AbstractCodeGenerator to record these values.
* The Config class has been converted to the Singleton pattern in order
to integrate the proxy server into IntelliJ. This is the change that had
by far the most impact since it forces a lot of minor modifications in
the other sources.

Issues:
* At this point I don't know where to put the script adapter since it
has dependencies on the SLAMD libraries.
* The IntelliJ plugin is really not finished. The skeleton is there,
toolwindows are created, proxy server is started and runs. Things that
need to be done is a) to allow configuration of the maxq plugin through
the IntelliJ interface and b) to finalize the toolwindow so that script
recording can be started and the resulting script is placed into a new
editor window.

My local import of the maxq sources has been on 7-1-2005 and I noticed
that no commits have been done since then. I have created a patch
against the 7-1-2005 checkout. This patch is attached as
'maxq-slamd-patch-20​050208.txt'.

I can send the IntelliJ plugin sources as well, but this is a bit larger
since it needs the IntelliJ open API and the library needed to compile
the IntelliJ GUI forms. Let me know how and where to send it.

Regards,
Dylan
Attachments

« Previous message in topic | 1 of 7 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] MaxQ - SLAMD integration Dylan van Iersel <d dot van dot iersel at portinfolink dot com> Dylan van Iersel <d dot van dot iersel at portinfolink dot com> 2005-02-08 08:58:23 PST
     Re: [maxq-dev] MaxQ - SLAMD integration James Cooper <pixel at bitmechanic dot com> James Cooper <pixel at bitmechanic dot com> 2005-02-08 10:18:28 PST
         RE: [maxq-dev] MaxQ - SLAMD integration hdara at primavera dot com hdara at primavera dot com 2005-02-09 10:49:35 PST
             RE: [maxq-dev] MaxQ - SLAMD integration Dylan van Iersel <d dot van dot iersel at portinfolink dot com> Dylan van Iersel <d dot van dot iersel at portinfolink dot com> 2005-02-10 07:22:42 PST
                 RE: [maxq-dev] MaxQ - SLAMD integration hdara at primavera dot com hdara at primavera dot com 2005-02-10 10:21:01 PST
                 Re: [maxq-dev] MaxQ - SLAMD integration oliverbock Oliver Bock 2005-02-10 14:17:41 PST
                     RE: [maxq-dev] MaxQ - SLAMD integration Dylan van Iersel <d dot van dot iersel at portinfolink dot com> Dylan van Iersel <d dot van dot iersel at portinfolink dot com> 2005-02-11 00:53:50 PST
Messages per page: