Skip to content

Commit

Permalink
Adding new things to Example Robot File keyword and still making images
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekKuczynski committed Mar 30, 2024
1 parent 45b0717 commit a6f0f02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Tests/Regression/Manager/GUI_Bugs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Verify scenario file content for example robot
Click Button select_test_case
Click Button select_example
Click Button runsave
Sleep 3
Take A Screenshot
Save Scenario File ${scenario_name}
Verify scenario File ${scenario_name} @{correct_data}
Delete Scenario File ${scenario_name}
Expand Down
10 changes: 6 additions & 4 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,13 @@ Get Manager PIP Data
RETURN ${pip_data.stdout}

Create Example Robot File
[Arguments] ${path}=${save_path} ${name}=${file_name}

${example_robot_content}= Set Variable ***Test Case***\nExample Test Case\n
Variable Should Exist ${save_path} msg="Global save path does not exist."
Variable Should Exist ${file_name} msg="Global file name does not exist."
Create File ${save_path}${/}${file_name} content=${example_robot_content}
File Should Exist ${save_path}${/}${file_name}
Variable Should Exist ${path} msg="Global save path does not exist or path is not provided."
Variable Should Exist ${name} msg="Global file name does not exist or file name id not provided."
Create File ${path}${/}${name} content=${example_robot_content}
File Should Exist ${path}${/}${name}

Delete Example Robot File
Remove File ${save_path}${/}${file_name}
Expand Down

0 comments on commit a6f0f02

Please sign in to comment.