Menu Bar Check sometimes clicks too early [message #1767843] |
Tue, 11 July 2017 14:11 |
Alexander Wieneke Messages: 3 Registered: July 2017 |
Junior Member |
|
|
Hello everyone,
i encountered the following problem.
I have a Menu Bar with 14 entries. The last two each have a submenu with 1 entrie and the other with 4 entries. I check for there existence with "ub_mbr_checkExistenceOfEntry_byTextpath". I check all entries with only one step which has multiple values. With this I get to the following problem.
Sometimes when it is done with the check of the submenu entries it returns up for the next test but it clicks on the way up so one of the other entries gets selected and opens a window. This naturally leads to an error in the testcase since he can not continue as he should.
Is this a known problem and is there a way arround this?
Best Regards
Alex
EDIT: Forgot to tell you the AUT is written with RCP
[Updated on: Wed, 12 July 2017 06:48] Report message to a moderator
|
|
|
Re: Menu Bar Check sometimes clicks too early [message #1767967 is a reply to message #1767843] |
Wed, 12 July 2017 12:45 |
Milos Hroudny Messages: 24 Registered: June 2017 |
Junior Member |
|
|
My menus work fine but my RCP application has quite flat menu. What I have found, and may be helpful for you, is the fact that if I want to reach a row in the table that has more rows that can be displayed in the window, then:
1/ if I try to select the row that is as default displayed in the window, e.g. row 5,
it is selected without problem.
2/ if I try to select the row that is out of the window space, e.g. row 15, the last
visible row, e.g. row 10, is selected.
I use a standard module <ub_tbl_selectCell>.
I found work around. If I select the first row in the table a then for example the row 20, that is out of window space, it is selected without problem.
You can try the same with menu. In the first step use Textpath with only first level, e.g. File, and then use the same module with the complete Textpath, e.g.
File/Save/Save as.
I expect that you use <ub_mbr_selectEntry_byTextpath>.
I case of table I guess that the behavior is a fault.
Best Regards
Milos
|
|
|
|
|
Re: Menu Bar Check sometimes clicks too early [message #1768054 is a reply to message #1768040] |
Thu, 13 July 2017 10:14 |
Milos Hroudny Messages: 24 Registered: June 2017 |
Junior Member |
|
|
Hi Alex,
you are right, menus are diffrerent.
I am not sure, if this helps, but if the problem is with some kind of refresh,
that means menus create big structures and their display and hide take some
time, slow down could help.
I had such problem when I used <ub_mbr_selectEntry_byTextpath>.
Action required from menu command sometimes did not executed.
When I call <ub_app_wait> after the menu action, everything started work correctly.
GUI was not able follow actions.
If I understand well and this is the problem, you can do the same I did:
create a module <SelectMenu>, put your command inside, add wait module,
all parameters that you want configure through dataset set as parameters,
and it could work.
Example of my user module is attached. Actually I use wrappers for all standard modules that I use in my tests.
Milos
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02350 seconds