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/12/16 22:02:45 UTC
DO NOT REPLY [Bug 50490] New: Setup and Post Thread Group
enhancements for better test flow.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50490
Summary: Setup and Post Thread Group enhancements for better
test flow.
Product: JMeter
Version: Nightly (Please specify date)
Platform: Macintosh
Status: NEW
Severity: enhancement
Priority: P2
Component: Main
AssignedTo: notifications@jakarta.apache.org
ReportedBy: ansoni@gmail.com
Patch generated against revision 1050154(current as of a few minutes ago).
A common problem that my team has had and one that I recently saw on the
User-list is the need to execute pre and post test actions. The traditional
way to do this is by using 3 threads with "Run Thread Groups consecutively".
Unfortunately, this highly constrains the flow of the test.
A simple fix to this is to have 2 special Thread Group elements that will
behave like normal Thread Groups except that they are executed before or after
a test. The idea here is that a "Setup Thread Group" can be used for
activities like creating accounts, setup of test monitoring, ... etc. The
"Post Thread Group" would be for cleanup activities or even the posting of Test
Results via a BSH Sampler or custom Java class.
Overall, the idea behind this patch is to simplify the more advanced test plans
with better organization and easier to follow flows.
I will be Attaching a zip file and a patch. The zip contains all the new
additions to the source tree.
The patch includes the updates to the JMeter Engine and documentation.
--
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 50490] Setup and Post Thread Group enhancements
for better test flow.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50490
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #26416|application/octet-stream |text/plain
mime type| |
Attachment #26416|0 |1
is patch| |
--
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 50490] Setup and Post Thread Group enhancements
for better test flow.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50490
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version| |All
--- Comment #3 from Sebb <se...@apache.org> 2010-12-17 11:57:34 EST ---
Thanks very much - a very useful enhancement.
Code committed to SVN:
URL: http://svn.apache.org/viewvc?rev=1050447&view=rev
Log:
Bug 50490 - Setup and Post Thread Group enhancements for better test flow.
Added:
jakarta/jmeter/trunk/docs/images/screenshots/post_thread_group.png (with
props)
jakarta/jmeter/trunk/docs/images/screenshots/setup_thread_group.png (with
props)
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/PostThreadGroup.java
(with props)
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/SetupThreadGroup.java
(with props)
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/gui/PostThreadGroupGui.java
(with props)
jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/gui/SetupThreadGroupGui.java
(with props)
jakarta/jmeter/trunk/xdocs/images/screenshots/post_thread_group.png (with
props)
jakarta/jmeter/trunk/xdocs/images/screenshots/setup_thread_group.png (with
props)
Modified:
jakarta/jmeter/trunk/bin/saveservice.properties
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
jakarta/jmeter/trunk/xdocs/changes.xml
jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
I had to make some changes to the StandardJMeterEngine code, as it was
detecting end of test after the setup and post groups as well as after normal
thread groups. Also the code now checks for the presence of setup/post groups
before processing them and logging messages for them.
Also the messages.properties update was missing from the patch.
--
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 50490] Setup and Post Thread Group enhancements
for better test flow.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50490
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
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 50490] Setup and Post Thread Group enhancements
for better test flow.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50490
--- Comment #2 from ansoni@gmail.com 2010-12-16 16:04:34 EST ---
Created an attachment (id=26417)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26417)
New Files include classes and document images
--
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 50490] Setup and Post Thread Group enhancements
for better test flow.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50490
--- Comment #1 from ansoni@gmail.com 2010-12-16 16:03:42 EST ---
Created an attachment (id=26416)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26416)
Patch of JMeter Engine and documentation for fix
--
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