From 10e41a2dd287a7bc72202fc56e5f29886ccbaf82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Kuczy=C5=84ski?= Date: Thu, 28 Mar 2024 21:31:27 +0100 Subject: [PATCH] Trying another way --- Tests/Regression/Manager/GUI_Bugs.robot | 2 +- Tests/Regression/Manager/GUI_Common.robot | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Tests/Regression/Manager/GUI_Bugs.robot b/Tests/Regression/Manager/GUI_Bugs.robot index fd36648f0..e28997f73 100644 --- a/Tests/Regression/Manager/GUI_Bugs.robot +++ b/Tests/Regression/Manager/GUI_Bugs.robot @@ -33,7 +33,7 @@ Verify scenario file content for example robot Set Global Save Path And Filename ${correct_data}[1] Create Example Robot File Click Button runscriptrow - Select Robot File @{correct_data} + Run Keyword Select Robot File ${platform} @{correct_data} Click Button select_test_case Click Button select_example Click Menu file diff --git a/Tests/Regression/Manager/GUI_Common.robot b/Tests/Regression/Manager/GUI_Common.robot index bac08c708..13534b6f4 100644 --- a/Tests/Regression/Manager/GUI_Common.robot +++ b/Tests/Regression/Manager/GUI_Common.robot @@ -206,7 +206,8 @@ Delete Example Robot File Variable Should Exist ${file_name} msg="Global file name does not exist." File Should Not Exist ${save_path}${/}${file_name} -Select Robot File +Select Robot File windows + [Tags] windows-latest [Arguments] @{correct_data} ${robot_file_name}= Set Variable ${correct_data}[1] ${robot_file_name}= Get Substring ${robot_file_name} 0 -6 @@ -218,6 +219,19 @@ Select Robot File Click Dialog Button open Sleep 1 +Select Robot File ubuntu + [Tags] ubuntu-latest + [Arguments] @{correct_data} + ${robot_file_name}= Set Variable ${correct_data}[1] + ${robot_file_name}= Get Substring ${robot_file_name} 0 -6 + Log ${robot_file_name} + Sleep 3 + Take A Screenshot + Type ${correct_data}[1] + Sleep 1 + Press Combination Key.enter + Sleep 1 + Save Scenario File [Arguments] ${scenario_name} Sleep 1