Bug 65068

Summary: Toggle button issue
Product: JMeter - Now in Github Reporter: eR@SeR <nalexic>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: p.mouawad
Priority: P2    
Version: Nightly (Please specify date)   
Target Milestone: JMETER 5.4.1   
Hardware: PC   
OS: All   
Attachments: toggle element example
toggleIssueVideo

Description eR@SeR 2021-01-10 00:44:50 UTC
Created attachment 37695 [details]
toggle element example

Hello,

The toggle element is not working as expected when the Toggle button from the menu and Ctrl + T shortcut are used in combination with Ctrl button.

Steps:

1. Click on HTTP Request 1
2. Press and hold Shift and click on HTTP Request 4 (all four samplers are selected)
3. Release Shift, press Ctrl and Click on HTTP Request 3 to ignore toggle action on it
4. Click Toggle button in menu or press Ctrl + T
5. Click on any other non HTTP sampler in test plan

Actual:

HTTP Request from 1 to 4 are disabled including 3rd one.

Expected:

HTTP Request from 1 to 4 are disabled but 3rd one should remain enabled.

Reproduced on Samplers, Controllers, Config elements, PreProcessors, PostProcessors, Timers, Assertions...but works fine on listeners. Enable/Disable and Toggle in the right-click context menu work as expected.

Jmeter 5.4.1 7acd031
Microsoft Windows 10 Enterprise 64-bit
java version "14.0.1" 2020-04-14
Comment 1 Philippe Mouawad 2021-01-10 16:01:16 UTC
Hello
I cannot reproduce this issue on Mac OSX.
Anybody able to reproduce ? 

Thanks
Comment 2 eR@SeR 2021-01-11 23:25:22 UTC
Created attachment 37698 [details]
toggleIssueVideo

(In reply to Philippe Mouawad from comment #1)
> Hello
> I cannot reproduce this issue on Mac OSX.
> Anybody able to reproduce ? 
> 
> Thanks
Hi,

Please check the video and try to reproduce it on a Windows machine if available.
Comment 3 Felix Schumacher 2021-05-31 19:09:02 UTC
I can reproduce it with Ubuntu and Java 8 and build from trunk.
Comment 4 Felix Schumacher 2021-06-03 08:49:22 UTC
Funny thing is, that if you change the LAF without restarting JMeter the issue can't be reproduced anymore (until restart).

It doesn't show, when the selection is made with strg-click to select, only.
Comment 5 eR@SeR 2021-06-03 08:57:43 UTC
(In reply to Felix Schumacher from comment #4)
> Funny thing is, that if you change the LAF without restarting JMeter the
> issue can't be reproduced anymore (until restart).
Yes, I can confirm.
Comment 6 The ASF infrastructure team 2022-09-24 20:38:21 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5485