Skip to content

Commit

Permalink
Still strying to adjust test issue damies13#70 for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekKuczynski committed Apr 17, 2024
1 parent 1c9912c commit 71f5be4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
1 change: 1 addition & 0 deletions Tests/Regression/Agent/CommandLine_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Run Manager CLI
# ${process}= Start Process python3 ${pyfile_manager} @{options} alias=Manager stdout=${OUTPUT DIR}${/}stdout_manager.txt stderr=${OUTPUT DIR}${/}stderr_manager.txt
${process}= Start Process ${cmd_manager} @{options} alias=Manager stdout=${OUTPUT DIR}${/}stdout_manager.txt stderr=${OUTPUT DIR}${/}stderr_manager.txt
Set Test Variable $process_manager ${process}
Sleep 5

Wait For Manager
[Arguments] ${timeout}=10min
Expand Down
22 changes: 7 additions & 15 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -104,31 +104,25 @@ Stop Agent

Stop Test Scenario Run Gradually
[Arguments] ${rumup_time} ${robot_test_time}
[Setup] Set Confidence 0.99
Sleep ${rumup_time}
Wait For manager_${platform}_robots_10.png timeout=${rumup_time + 120}
Wait For manager_${platform}_robots_10.png timeout=${rumup_time + 90}
Click Button stoprun
${START_TIME}= Get Current Date
Wait For manager_${platform}_robots_0.png timeout=${robot_test_time + 120}
Wait For manager_${platform}_robots_0.png timeout=${robot_test_time + 90}
Take A Screenshot
${END_TIME}= Get Current Date
${ELAPSED_TIME}= Subtract Date From Date ${END_TIME} ${START_TIME}
Should Be True ${ELAPSED_TIME} >= ${robot_test_time / 2} and ${ELAPSED_TIME} <= ${robot_test_time + 120}
Should Be True ${ELAPSED_TIME} >= ${robot_test_time / 2} and ${ELAPSED_TIME} <= ${robot_test_time + 90}

Press Key.tab 2 Times
Move To 10 10
Take A Screenshot
${status}= Run Keyword And Return Status
... Wait For manager_${platform}_button_finished_run.png timeout=${robot_test_time + 120}
... Wait For manager_${platform}_button_finished_run.png timeout=${robot_test_time + 90}
Run Keyword If not ${status} Fail msg=Test didn't finish as fast as expected. Check screenshots for more informations.

[Teardown] Set Confidence 0.9

Stop Test Scenario Run Quickly
[Arguments] ${rumup_time} ${robot_test_time}
[Setup] Set Confidence 0.99
Sleep ${rumup_time}
Wait For manager_${platform}_robots_10.png timeout=${rumup_time + 120}
Wait For manager_${platform}_robots_10.png timeout=${rumup_time + 90}
Click Button stoprun
Sleep 2
Click
Expand All @@ -144,11 +138,9 @@ Stop Test Scenario Run Quickly
Move To 10 10
Take A Screenshot
${status}= Run Keyword And Return Status
... Wait For manager_${platform}_button_finished_run.png timeout=${robot_test_time + 120}
... Wait For manager_${platform}_button_finished_run.png timeout=${robot_test_time + 90}
Run Keyword If not ${status} Fail msg=Test didn't finish as fast as expected. Check screenshots for more informations.

[Teardown] Set Confidence 0.9

Check If The Agent Has Connected To The Manager
Sleep 1
Click Tab Agents
Expand Down Expand Up @@ -398,7 +390,7 @@ Select Robot File
Log ${robot_file_name}
Take A Screenshot
Click Dialog Button ${robot_file_name}_robot
Sleep 1
Sleep 2
Take A Screenshot
Click Dialog Button open
Sleep 1
Expand Down
8 changes: 4 additions & 4 deletions Tests/Regression/Manager/GUI_Features.robot
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ Check If Test Scenario Run Will Stop Gradually
[Setup] Run Keywords
... Set INI Window Size 1200 600 AND
... CommandLine_Common.Run Agent AND
... Open Manager GUI AND
... CommandLine_Common.Run Manager CLI AND
... Set Global Filename And Default Save Path example.robot AND
... Set Confidence 0.96 AND
... Create Robot File file_content=***Test Case***\nExample Test Case\n\tSleep\t60
... Create Robot File file_content=***Test Case***\nExample Test Case\n\tTest\n***Keywords***\nTest\n\t[Documentation]\t60s\n\tSleep\t60\n

Press Key.tab 4 Times
Type 15
Expand All @@ -332,11 +332,11 @@ Check If Test Scenario Run Will Stop Fast (Agent sends terminate singal to the r
[Setup] Run Keywords
... Set INI Window Size 1200 600 AND
... CommandLine_Common.Run Agent AND
... Open Manager GUI AND
... CommandLine_Common.Run Manager CLI AND
... Set Global Filename And Default Save Path example.robot AND
... Set Confidence 0.96 AND
... Create Robot File
... file_content=***Test Case***\nExample Test Case\n\tSleep\t15\n\tSleep\t15\n\tSleep\t15\n\tSleep\t15
... file_content=***Test Case***\nExample Test Case\n\tTest\n***Keywords***\nTest\n\t[Documentation]\t60s\n\tSleep\t15\n\tSleep\t15\n\tSleep\t15\n\tSleep\t15\n

Press Key.tab 4 Times
Type 15
Expand Down

0 comments on commit 71f5be4

Please sign in to comment.