Skip to content

Commit

Permalink
Try to gather Logs
Browse files Browse the repository at this point in the history
Issue #145
  • Loading branch information
damies13 committed Sep 14, 2024
1 parent 737e937 commit 1114c8a
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ Open Manager GUI
Set Screenshot Folder ${OUTPUT DIR}
# Take A Screenshot
${img}= Set Variable manager_${platform}_tab_agents.png
Wait For ${img} timeout=${default_image_timeout}
Wait For ${img} timeout=30

Close Manager GUI ubuntu
Run Keyword And Ignore Error Click Dialog Button cancel 0.01
Run Keyword And Ignore Error Click Dialog Button no 0.01
Close Manager GUI



Close Manager GUI windows
Run Keyword And Ignore Error Click Dialog Button cancel 0.01
Run Keyword And Ignore Error Click Dialog Button no 0.01
Expand Down Expand Up @@ -142,6 +144,9 @@ Close Manager GUI
Fail
END
END
# stdout=${OUTPUT DIR}${/}stdout_manager.txt stderr=${OUTPUT DIR}${/}stderr_manager.txt
Show Log ${OUTPUT DIR}${/}stdout_manager.txt
Show Log ${OUTPUT DIR}${/}stderr_manager.txt

Close Manager GUI macos
[Tags] macos-latest
Expand Down Expand Up @@ -179,13 +184,29 @@ Close Manager GUI macos
Fail
END
END
Show Log ${OUTPUT DIR}${/}stdout_manager.txt
Show Log ${OUTPUT DIR}${/}stderr_manager.txt

Stop Agent
${result} = Terminate Process ${process_agent}
Log ${result.stdout}
Log ${result.stderr}
# Should Be Equal As Integers ${result.rc} 0

# stdout=${OUTPUT DIR}${/}stdout_agent.txt stderr=${OUTPUT DIR}${/}stderr_agent.txt
Show Log ${OUTPUT DIR}${/}stdout_agent.txt
Show Log ${OUTPUT DIR}${/}stderr_agent.txt


Show Log
[Arguments] ${filename}
Log ${\n}-----${filename}----- console=True
${filedata}= Get File ${filename} encoding=SYSTEM encoding_errors=ignore
Log ${filedata} console=True
Log -----${filename}-----${\n} console=True
RETURN ${filedata}


Stop Test Scenario Run Gradually
[Arguments] ${rumup_time} ${robot_test_time}
Set Confidence 0.95
Expand Down

0 comments on commit 1114c8a

Please sign in to comment.