Skip to content
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

Replace unreliable keyboard shortcut by a mouse click #3839

Closed

Conversation

nicksinger
Copy link
Member

@nicksinger nicksinger commented Oct 30, 2017

https://openqa.suse.de/tests/1124996?version=15&distri=sle&flavor=Leanos-DVD&test=gnome&arch=x86_64&machine=64bit-ipmi&limit_previous=100#step/partitioning_firstdisk/3 tries hard to press alt+e while the shortcut is alt+u in reality. It then fails in the next step because no partition is big enough (caused by pressing the wrong shortcut).

We already have a needle that checks exactly for that button so why not make use of it and just click it.

The change in run() is just to make it more pretty.

Note: Not sure if this code path is still touched somewhere. I'm pretty sure this is needed for SLE12 since it does not contain storage_ng. I'll try to run an old SLE12 job to verify this change and leave this PR as [WIP] until then.

@okurz
Copy link
Member

okurz commented Oct 30, 2017

You can also run a SLE12SP4 job for validation, e.g. clone https://openqa.suse.de/tests/1239811 and overwrite settings as needed to check.

@jknphy
Copy link
Contributor

jknphy commented Oct 31, 2017

When Release note button disappears like in this case, shortcuts are changed automatically.
You are in [WIP] but I guess you want to remove block with send_key 'alt-e';.
Let me add this verification runs in case I got the correct idea of what you are trying to do:
http://localhost/tests/272#step/partitioning_firstdisk/2
To look for important moment in the logs to check in this job above, search in autoinst-log.txt for: 13:12:25.3320 Debug: /var/lib/openqa/share/tests/opensuse/tests/installation/partitioning_firstdisk.pm:75 called testapi::assert_and_click

I didn't find a way to handle to have a previously partitioned disk for SLE12SP4 to run validation using parameters, SELECT_FIRST_DISK=1 NUMDISKS=2 was not enough, need a .qcow image with that previous partition present.

@Soulofdestiny
Copy link
Contributor

Soulofdestiny commented Nov 2, 2017

works if you use dhcp227.suse.cz instead of localhost ;)
http://dhcp227.suse.cz/tests/272#step/partitioning_firstdisk/2

@okurz
Copy link
Member

okurz commented Nov 2, 2017

@nicksinger to check where this test module is executed you can query the database directly and list jobs last executing this test module, e.g. take a look in my github repo okurz/scripts

@nicksinger nicksinger changed the title [WIP] Replace unreliable keyboard shortcut by a mouse click Replace unreliable keyboard shortcut by a mouse click Nov 2, 2017
@nicksinger
Copy link
Member Author

awesome script, will definitely remember this one in the future.
I've added the verification runs to my initial message - this PR should be ready for review/merge now.

@okurz
Copy link
Member

okurz commented Nov 5, 2017

Aren't we calling the same test module in textmode as well? Can you check/test that?

@nicksinger
Copy link
Member Author

True

@nicksinger nicksinger closed this Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants