-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mariia Azbeleva <[email protected]>
- Loading branch information
Showing
10 changed files
with
72 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,8 +89,8 @@ Connect to netvm | |
BREAK | ||
END | ||
IF ${failed_connection} FAIL Couldn't connect NetVM | ||
Set Global Variable ${netvm_ssh} ${connection} | ||
RETURN ${netvm_ssh} | ||
Set Global Variable ${NETVM_SSH} ${connection} | ||
RETURN ${NETVM_SSH} | ||
|
||
Connect to VM | ||
[Arguments] ${vm_name} ${user}=${LOGIN} ${pw}=${PASSWORD} | ||
|
@@ -159,6 +159,9 @@ Start XDG application | |
${output} Execute Command cat /run/current-system/sw/share/applications/${app_name}.desktop | ||
${path} Get App Path From Desktop ${output} | ||
Execute Command nohup sh -c '${path}' > output.log 2>&1 & | ||
Sleep 8 | ||
${output} Execute Command cat output.log | ||
Log ${output} | ||
|
||
Start Firefox | ||
[Documentation] It's needed to set display variable manually because there is no real monitor connected to DUT | ||
|
@@ -328,6 +331,7 @@ Check if ssh is ready on netvm | |
|
||
Check if ssh is ready on vm | ||
[Arguments] ${vm} ${timeout}=30 | ||
Switch Connection ${NETVM_SSH} | ||
${start_time} Get Time epoch | ||
FOR ${i} IN RANGE ${timeout} | ||
${output} ${rc} Execute Command nc -zvw3 ${vm} 22 return_rc=True | ||
|
@@ -491,6 +495,7 @@ Connect to VM if not already connected | |
|
||
Detect first boot | ||
[Documentation] Determine desktop state after boot by attempting login to gui-vm as testuser | ||
Connect | ||
Log To Console Detecting if this is first boot by trying test user credentials | ||
Verify service status range=15 [email protected] expected_status=active expected_state=running | ||
Connect to netvm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Force Tags apps | |
Resource ../../resources/ssh_keywords.resource | ||
Resource ../../config/variables.robot | ||
Resource ../../resources/common_keywords.resource | ||
Suite Teardown Close All Connections | ||
Test Setup Run Keywords Move cursor AND Switch Connection ${CONNECTION} | ||
|
||
|
||
*** Variables *** | ||
|
@@ -31,8 +31,8 @@ Start Chrome on LenovoX1 | |
[Tags] bat pre-merge SP-T92 lenovo-x1 | ||
Verify service status range=15 [email protected] expected_status=active expected_state=running | ||
Connect to netvm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Check if ssh is ready on vm ${CHROME_VM} | ||
${vm_ssh} Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Start XDG application 'Google Chrome' | ||
Connect to VM ${CHROME_VM} | ||
Check that the application was started chrome | ||
|
@@ -41,9 +41,9 @@ Start Chrome on LenovoX1 | |
Start Zathura on LenovoX1 | ||
[Documentation] Start Zathura in dedicated VM and verify process started | ||
[Tags] bat pre-merge SP-T105 lenovo-x1 | ||
[Setup] Connect to netvm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Connect to netvm | ||
Check if ssh is ready on vm ${ZATHURA_VM} | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Start XDG application 'PDF Viewer' | ||
Connect to VM ${ZATHURA_VM} | ||
Check that the application was started zathura | ||
|
@@ -54,9 +54,9 @@ Start Zathura on LenovoX1 | |
Start Gala on LenovoX1 | ||
[Documentation] Start Gala in dedicated VM and verify process started | ||
[Tags] bat pre-merge SP-T104 lenovo-x1 | ||
[Setup] Connect to netvm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Connect to netvm | ||
Check if ssh is ready on vm ${GALA_VM} | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Start XDG application GALA | ||
Connect to VM ${GALA_VM} | ||
Check that the application was started gala | ||
|
@@ -65,9 +65,9 @@ Start Gala on LenovoX1 | |
Start Element on LenovoX1 | ||
[Documentation] Start Element in dedicated VM and verify process started | ||
[Tags] bat pre-merge SP-T52 lenovo-x1 | ||
[Setup] Connect to netvm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Connect to netvm | ||
Check if ssh is ready on vm ${COMMS_VM} | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Start XDG application Element | ||
Connect to VM ${COMMS_VM} | ||
Check that the application was started element | ||
|
@@ -76,9 +76,9 @@ Start Element on LenovoX1 | |
Start Slack on LenovoX1 | ||
[Documentation] Start Slack in dedicated VM and verify process started | ||
[Tags] bat pre-merge SP-T181 lenovo-x1 | ||
[Setup] Connect to netvm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Connect to netvm | ||
Check if ssh is ready on vm ${COMMS_VM} | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Start XDG application Slack | ||
Connect to VM ${COMMS_VM} | ||
Check that the application was started slack | ||
|
@@ -87,9 +87,9 @@ Start Slack on LenovoX1 | |
Start Appflowy on LenovoX1 | ||
[Documentation] Start Appflowy in dedicated VM and verify process started | ||
[Tags] appflowy # Removed bat tag & lenovo-x1 tag until final decision of this app is made | ||
[Setup] Connect to netvm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Connect to netvm | ||
Check if ssh is ready on vm appflowy-vm | ||
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD} | ||
Start XDG application AppFlowy | ||
Connect to VM ${APPFLOWY_VM} | ||
Check that the application was started appflowy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.