sssd_test_framework.utils.gdm
Manage GDM interface from SCAutolib.
Classes
|
Call commands from scautolib. |
- class sssd_test_framework.utils.gdm.GDM(*args, **kwargs)
Bases:
MultihostUtility[MultihostHost]Call commands from scautolib.
Find all MultihostUtility objects in the constructor.
- teardown()
Teardown object.
- init() None
Initialize GDM for testing
- assert_text(word: str) bool
Run scauto gui assert-text
- Parameters:
word (str) – Single word in string format to search for in screen capture.
- Returns:
Result of searching for string.
- Return type:
bool
- click_on(word: str) None
Run scauto gui click-on
- Parameters:
word (str) – Click on object containing word
- Returns:
Result of clicking on object
- Return type:
bool
- kb_write(word: str) bool
Run scauto gui kb-write
- Parameters:
word (str) – type word on keyboard
- Returns:
Result of typing work and pressing enter
- Return type:
bool
- kb_send(word: str) bool
Run scauto gui kb-send
- Parameters:
word (str) – key or key-combination string
- Returns:
Result of sending key press
- Return type:
bool
- wait_for_login(client: Client) None
Watch journald log for login message.
- Parameters:
client (Client role) – Client role object to read log
- check_home_screen() bool
Run scauto gui check-home-screen
- Returns:
Result of checking if current screenshot is of the home screen
- Return type:
bool
- done() bool
Run scauto gui done
- Returns:
run cleanup after gui tests
- Return type:
bool
- login_idp(client: Client, username: str, password: str) bool
Helper function to facilitate GDM login process for IdP
- Parameters:
client (Client role) – client machine role object
username (str) – Username to use for login
password (str) – Password for login to IdP
- Returns:
login URL to use to IdP login
- Return type:
str