Bug 61635 - Add a menu to restart JMeter
Summary: Add a menu to restart JMeter
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2017-10-19 06:19 UTC by orimarko
Modified: 2018-09-01 21:32 UTC (History)
2 users (show)



Attachments
Add option to save file before restart (1.64 KB, patch)
2018-08-28 05:49 UTC, orimarko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description orimarko 2017-10-19 06:19:21 UTC
In JMeter GUI mode, choosing Plugin Manager, if I install/uninstall/upgrade I get a Restart JMeter button which will restart and open My current JMX with updated configuration/libraries

Is there an option without Plugin Manager or changing plugin to restart JMeter and open My current JMX with updated configuration/libraries?

Usage: add new/updated library(jar) and check if it's working correctly
Comment 1 orimarko 2017-11-09 08:51:27 UTC
Suggestion:

Add in menu File -> Restart (Ctrl + Shift +Q)
Comment 2 orimarko 2018-01-16 13:55:00 UTC
If plugin manager jar will be a part of the installation then we could restart using the plugin manager window
Comment 3 Philippe Mouawad 2018-01-16 20:28:34 UTC
A clean solution would be to have this as part of core.
Comment 4 Philippe Mouawad 2018-07-18 19:57:35 UTC
Author: pmouawad
Date: Wed Jul 18 19:54:42 2018
New Revision: 1836225

URL: http://svn.apache.org/viewvc?rev=1836225&view=rev
Log:
Bug 61635 - Add a menu to restart JMeter
Bugzilla Id: 61635

Added:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/Restart.java   (with props)
Modified:
    jmeter/trunk/xdocs/changes.xml

Author: pmouawad
Date: Wed Jul 18 19:56:48 2018
New Revision: 1836226

URL: http://svn.apache.org/viewvc?rev=1836226&view=rev
Log:
Bug 61635 - Add a menu to restart JMeter
Fix wrong class for logger
Bugzilla Id: 61635

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/Restart.java
Comment 5 Philippe Mouawad 2018-07-18 19:58:42 UTC
Hello,
Can you or volunteers test next nightly build on:
- Windows
- OpenJDK
- IBM JDK if possible

I only tested it on Mac OSX with Oracle JVM.

Thanks
Comment 6 orimarko 2018-07-19 07:10:04 UTC
I can test in windows, but I don't find a menu item for restart
Comment 7 Philippe Mouawad 2018-07-19 07:42:43 UTC
Author: pmouawad
Date: Thu Jul 19 07:42:20 2018
New Revision: 1836253

URL: http://svn.apache.org/viewvc?rev=1836253&view=rev
Log:
Bug 61635 - Add a menu to restart JMeter
Bugzilla Id: 61635

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
Comment 8 Philippe Mouawad 2018-07-19 08:20:57 UTC
(In reply to orimarko from comment #6)
> I can test in windows, but I don't find a menu item for restart

Hello,
The nightly was not generated due to an issue.

You can now download it from:

- https://builds.apache.org/job/JMeter-trunk/lastSuccessfulBuild/artifact/trunk/dist/apache-jmeter-r1836253.tgz

Regards
Comment 9 orimarko 2018-07-19 08:30:41 UTC
It's working in Windows, 

There's a small issue, there are 2 separating lines instead of 1, see image:

https://i.imgur.com/bplkRyD.png
Comment 10 Milamber 2018-07-20 11:12:30 UTC
Works on Linux (Debian) with Oracle JDK 8 & 10, OpenJDK 10.

Not work with IBM Java 8 (not really important)



One warning with Javadoc

  [javadoc] /src/core/org/apache/jmeter/gui/action/Restart.java:82: warning: no description for @throws
  [javadoc]      * @throws Exception
  [javadoc]        ^
Comment 11 Philippe Mouawad 2018-07-25 21:30:34 UTC
Author: pmouawad
Date: Wed Jul 25 21:30:10 2018
New Revision: 1836675

URL: http://svn.apache.org/viewvc?rev=1836675&view=rev
Log:
Bug 61635 - Add a menu to restart JMeter
Check we can restart
Bugzilla Id: 61635

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/Restart.java
Comment 12 Philippe Mouawad 2018-07-25 21:32:01 UTC
Author: pmouawad
Date: Wed Jul 25 21:31:19 2018
New Revision: 1836676

URL: http://svn.apache.org/viewvc?rev=1836676&view=rev
Log:
Bug 61635 - Add a menu to restart JMeter
Avoid duplication
Bugzilla Id: 61635

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/Restart.java
Comment 13 orimarko 2018-08-26 12:46:41 UTC
When restarting (nightly) there's no pop up ask to save test plan (if there's an unsaved change) and changes are deleted after restart
Comment 14 Philippe Mouawad 2018-08-26 12:55:35 UTC
Thanks for report.
Do you intend to provide a patch ? 

Thanks
Comment 15 orimarko 2018-08-26 12:56:46 UTC
Not in the near future, thanks
Comment 16 orimarko 2018-08-28 05:49:20 UTC
Created attachment 36112 [details]
Add option to save file before restart
Comment 17 Philippe Mouawad 2018-09-01 21:32:25 UTC
Author: pmouawad
Date: Sat Sep  1 21:32:06 2018
New Revision: 1839858

URL: http://svn.apache.org/viewvc?rev=1839858&view=rev
Log:
Bug 61635 - Add a menu to restart JMeter
Fix issue when restarting (nightly) there's no pop up ask to save test plan (if there's an unsaved change) and changes are deleted after restart

Contributed by orimarko
Bugzilla Id: 61635

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/Restart.java