RIDE icon indicating copy to clipboard operation
RIDE copied to clipboard

Focus jumps to the test case being run

Open povar81 opened this issue 1 year ago • 3 comments

RIDE v2.0.8.1 running on Python 3.7.4. (the same behaviour was on RIDE 1.7.4.2 running on Python 3.7.0)

I have a long list of cases,keywords in a suite. I run 1 (or several cases) and start editing another keyword or case, located way lower/upper than the case being run. When I start moving around other cases/keywords - the focus always jumps back to the current case being run.

And if there are several test cases being run in order- whenever 1 cases is finished and the next one is starting - the focus jumps back to the current run case.

For example: I'm editing keyword "parse json data" and I want focus to stay on it (to able to see keywords/cases next to it) image

but when I click to a neighbouring keyword "find match" and want to go back to editing "parse json data" - it jumps back to the current run case image

and now in order to get back to editing "parse json data" I have to scroll all the way down again.

This behaviour was different on older versions (RIDE 1.2.2 running on Python 2.7.0.) - focus stayed at the same place and didn't jump

povar81 avatar Mar 11 '24 09:03 povar81

(the same behaviour was on RIDE 1.7.4.2 running on Python 3.7.0)

Good, then it is not a new bug (or missing functionality) ;)

This behavior was different on older versions (RIDE 1.2.2 running on Python 2.7.0.) - focus stayed at the same place and didn't jump

Well, many things changed since then, especially the ability to run in Python 3.

Current RIDE, selects the actual running test to show that it is running, with an animated GIF. Maybe in the past, it only selected the test when it completed.

As a workaround, you should try to see if the Navigation actions (Back) move to the previous selected item. It is linked to the items in the Project Explorer (Tree), not to the editing history.

Anyway, this would be a new feature, and with low priority, because there are things more urgent to fix in RIDE.

HelioGuilherme66 avatar Mar 11 '24 14:03 HelioGuilherme66

Navigation actions work but with the same problem: when I click green back/forward buttons they move to the previous/next keyword as expected, but focus still jumps all the way up to the currently run case.

povar81 avatar Mar 12 '24 09:03 povar81

@povar81 I cannot reproduce this (in current development version). When tests are running, the Editor remains in the same file. Please add a recording of this behavior.

HelioGuilherme66 avatar Apr 02 '24 12:04 HelioGuilherme66

Closing because we have now a new release v2.1, and users should try it. Use the command: pip install -U robotframework-ride Or from RIDE, Help->Check for Upgrade.

HelioGuilherme66 avatar Oct 13 '24 19:10 HelioGuilherme66