robotframework / RIDE

Test data editor for Robot Framework
Apache License 2.0
954 stars 376 forks source link

Focus jumps to the test case being run #2729

Open povar81 opened 4 months ago

povar81 commented 4 months ago

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

HelioGuilherme66 commented 4 months ago

(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.

povar81 commented 4 months ago

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.

HelioGuilherme66 commented 3 months ago

@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.