Skip to content

Add KeyStroke for start_no_timers (Start no pauses: CRTL+SHIFT+n) #5792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Add KeyStroke for start_no_timers (Start no pauses: CRTL+SHIFT+n) #5792

merged 1 commit into from
Apr 24, 2023

Conversation

dgetzlaf
Copy link
Contributor

Description

Add an additional KeyStroke to Start a local test, skipping the Timers.

Motivation and Context

In our daily doing we setup load tests, using Timers.
For faster test preparation, we want to skip timers.

How Has This Been Tested?

./gradlew createDist
./bin/jmeter -t Testplan-with-pauses.jmx

Execute Testplan with Crtl-R
Execute Testplan with Ctrl-Shift-N

Testplan will be executed, skipping the timers

Types of changes

  • New feature (non-breaking change which adds functionality)

@dgetzlaf
Copy link
Contributor Author

Also this page needs to be updated afterwards:
https://cwiki.apache.org/confluence/display/JMETER/JMeterShortcuts

@@ -72,6 +72,7 @@ private static int getMenuShortcutKeyMask() {
public static final KeyStroke OPEN = KeyStroke.getKeyStroke(KeyEvent.VK_O, CONTROL_MASK);
public static final KeyStroke EXIT = KeyStroke.getKeyStroke(KeyEvent.VK_Q, CONTROL_MASK);
public static final KeyStroke ACTION_START = KeyStroke.getKeyStroke(KeyEvent.VK_R, CONTROL_MASK);
public static final KeyStroke ACTION_START_NO_PAUSE = KeyStroke.getKeyStroke(KeyEvent.VK_N, CONTROL_MASK | InputEvent.SHIFT_DOWN_MASK);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ctrl+Shift+N feels a bit like a command to create something new. But as the menu shortcut uses n already, this seems to be a natural choice here.

Copy link
Contributor

@FSchumacher FSchumacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@dgetzlaf dgetzlaf closed this Apr 24, 2023
@milamberspace
Copy link
Contributor

Why close the PR? they aren't merge into main source?

@dgetzlaf dgetzlaf reopened this Apr 24, 2023
@dgetzlaf
Copy link
Contributor Author

@milamberspace yes, you are absolutely right!
I do not know what my head was thinking at that moment @.@
I've re-opened this PR..

@milamberspace milamberspace self-requested a review April 24, 2023 13:56
@milamberspace milamberspace self-assigned this Apr 24, 2023
Copy link
Contributor

@milamberspace milamberspace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milamberspace milamberspace merged commit f7ff28e into apache:master Apr 24, 2023
@milamberspace milamberspace changed the title Add KeyStroke for start_no_timers (Start no pauses) Add KeyStroke for start_no_timers (Start no pauses: CRTL+SHIFT+n) Apr 24, 2023
asfgit pushed a commit that referenced this pull request Apr 24, 2023
@milamberspace
Copy link
Contributor

Also this page needs to be updated afterwards: https://cwiki.apache.org/confluence/display/JMETER/JMeterShortcuts

Done

@vlsi vlsi added this to the 5.6 milestone May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants