You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/10/01 11:56:57 UTC

DO NOT REPLY [Bug 50034] New: Provide API for running JMeter

https://issues.apache.org/bugzilla/show_bug.cgi?id=50034

           Summary: Provide API for running JMeter
           Product: JMeter
           Version: 2.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: bto@sabre-holdings.com


To enable effective test automation with Jmeter we would like to use Jmeter in
non-gui mode calling it directly in Java app. This is very similar scenario as
in case maven-jmeter-plugin...

Currently we have to:
1. create new JMeter() 
2. invoke start with command line args.
3. parse JMeter log to find the results.
4. change security manager to capture System.exit calls
5. wait for all of the threads that it spawned to exit

We would like to:
1. create new JMeterNonGUI()
2. invoke runTest with all arguments passed as appropriate objects (no need to
wrap and parse them)
3. wait for runTest to end (it should execute all tests)
4. read test results returned by runTest

Example:

JMeterNonGUI jmeter = new JMeterNonGUI();
TestResults results = jmeter.runTests(jmxTestFile);

I propose to:
- extract from JMeter class JMeterGUI class responsible for starting GUI
version of JMeter
- extract from JMeter class JMeterNonGUI class responsible for starting non-GUI
version of JMeter
- refactor the code so that JMeter class will be responsible only for parsing
command line arguments and delegating JMeter start to appropriate class
JMeterGUI or JMeterNonGUI
- create public JMeterNonGUI.runTests method that will block execution until
test end and will gather test results to some TestResults list (the hardest
part?)
- replace all System.exit calls with call to some SystemExitHandlerInterface
that in case of non-GUI method can be implemented without using System.exit

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50034] Provide API for running JMeter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50034

--- Comment #2 from palgemeen@gmail.com 2011-07-25 11:43:04 UTC ---
Thanks to the BTO Team @ Sabre-Holdings for logging this feature request. I
would also benefit from such API, as I think anyone wanting to run JMeter
scripts as part of a larger automated test effort. Especially when being used
to automated dependency management like with Maven it is a bit of a set-back to
have the administrative overhead of installing JMeter at a fixed path on the
machines of all developers and build servers.
Also if you want to use e.g. FitNesse for maintaining test and reporting on
results, then you find that it is a pain to write reliable fixtures for this.

Dear developers, please consider working in this. It would be much appreciated.

For reference: before I found this issue I started a thread on the mailing
list:
http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/201107.mbox/%3C38FD45F8B3DE904BBF437A2E16B81EC806CF47A00B@DEEXVS51.wincor-nixdorf.com%3E

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50034] Provide API for running JMeter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50034

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
            Version|2.4                         |2.5
           Severity|major                       |enhancement

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50034] Provide API for running JMeter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50034

--- Comment #3 from Sebb <se...@apache.org> 2011-07-25 12:37:07 UTC ---
Returning the TestResults at the end of the run could require a lot of memory.

A better solution might be to provide a call-back mechanism which returns each
sample as it occurs.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 50034] Provide API for running JMeter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50034

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ron.Alleva@gmail.com

--- Comment #1 from Sebb <se...@apache.org> 2011-01-03 07:37:58 EST ---
*** Bug 50537 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org