Skip to content

Commit

Permalink
More correction to test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekKuczynski committed Apr 15, 2024
1 parent 3c730e3 commit 3e29dff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
4 changes: 1 addition & 3 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Stop Agent Robots Gradually
Click Button stoprun
Press Key.tab 1 Times
Move To 10 10
Wait For manager_${platform}_button_finished_run.png timeout=${expected_robot_test_time + 30}
Wait For manager_${platform}_button_finished_run.png timeout=${expected_robot_test_time + 60}
${status}= Run Keyword And Return Status Wait For manager_${platform}_robots_0.png timeout=20
Take A Screenshot
Run Keyword If not ${status} Fail msg=Robots are not zero. Check screenshots for more informations.
Expand Down Expand Up @@ -427,10 +427,8 @@ Find Absolute Paths And Names For Files In Directory
@{absolute_paths} Create List
@{file_names} Create List

${dir_number}= Count Directories In Directory ${example_dir}
${new_dir} List Directories In Directory ${example_dir} absolute=${True}
#=== Collecting data section
${dir_files_number}= Count Files In Directory ${example_dir}

@{dir_files_path}= List Files In Directory ${example_dir} absolute=${True}
@{dir_file_names}= List Files In Directory ${example_dir}
Expand Down
33 changes: 16 additions & 17 deletions Tests/Regression/Manager/GUI_Features.robot
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ ${scenario_content}
${scenario_content_list}

*** Test Cases ***

Check If Run Will Stop Gradually
[Tags] windows-latest ubuntu-latest macos-latest Issue #70
[Setup] Run Keywords
... Set INI Window Size 1000 600 AND
... CommandLine_Common.Run Agent AND
... Open Manager GUI AND
... Set Global Filename And Default Save Path example.robot AND
[Setup] Run Keywords
... Set INI Window Size 1200 600 AND
... CommandLine_Common.Run Agent AND
... Open Manager GUI AND
... Set Global Filename And Default Save Path example.robot AND
... Create Robot File file_content=***Test Case***\nExample Test Case\n\t[Documentation]\tI am sleeping 10s\n\tSleep\t10

Press Key.tab 4 Times
Expand All @@ -41,18 +40,18 @@ Check If Run Will Stop Gradually
Click Button runplay
Stop Agent Robots Gradually ${15} ${10}

[Teardown] Run Keywords
... Remove File ${global_path}${/}example.robot AND
... CommandLine_Common.Stop Agent AND
[Teardown] Run Keywords
... Remove File ${global_path}${/}example.robot AND
... CommandLine_Common.Stop Agent AND
... CommandLine_Common.Stop Manager

Check If Run Will Stop With Terminate Signal (Ctrl + C)
[Tags] windows-latest ubuntu-latest macos-latest Issue #70
[Setup] Run Keywords
... Set INI Window Size 1000 600 AND
... CommandLine_Common.Run Agent AND
... Open Manager GUI AND
... Set Global Filename And Default Save Path example.robot AND
[Setup] Run Keywords
... Set INI Window Size 1200 600 AND
... CommandLine_Common.Run Agent AND
... Open Manager GUI AND
... Set Global Filename And Default Save Path example.robot AND
... Create Robot File file_content=***Test Case***\nExample Test Case\n\t[Documentation]\tI am sleeping 300s\n\tSleep\t300

Press Key.tab 4 Times
Expand All @@ -67,9 +66,9 @@ Check If Run Will Stop With Terminate Signal (Ctrl + C)
Click Button runplay
Stop Agent With Terminate Signal ${15}

[Teardown] Run Keywords
... Remove File ${global_path}${/}example.robot AND
... CommandLine_Common.Stop Agent AND
[Teardown] Run Keywords
... Remove File ${global_path}${/}example.robot AND
... CommandLine_Common.Stop Agent AND
... CommandLine_Common.Stop Manager

Insert Example Data To Manager
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3e29dff

Please sign in to comment.