Skip to content

Commit

Permalink
Verify Disable log.html - Scenario in progress
Browse files Browse the repository at this point in the history
Issue #151
  • Loading branch information
damies13 committed Apr 15, 2024
1 parent 832763d commit 3507c6e
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Library Collections

Library ImageHorizonLibrary reference_folder=${IMAGE_DIR}

Library IniFile.py

*** Variables ***
${cmd_agent} rfswarm-agent
Expand Down Expand Up @@ -161,6 +162,19 @@ Click Dialog Button
Sleep 1
Take A Screenshot

Click CheckBox
[Arguments] ${status} ${btnname}
${btnnamel}= Convert To Lower Case ${btnname}
${statusl}= Convert To Lower Case ${status}
${img}= Set Variable ${platform}_checkbox_${statusl}_${btnnamel}.png
Log ${CURDIR}
Log ${IMAGE_DIR}
Wait For ${img} timeout=300
@{coordinates}= Locate ${img}
Click Image ${img}
Sleep 1
Take A Screenshot

Click Tab ${n} Times
Sleep 0.5
FOR ${i} IN RANGE 0 ${n}
Expand Down Expand Up @@ -258,6 +272,10 @@ Get Manager INI Data
Should Not Be Empty ${ini_content}
RETURN ${ini_content}

Read INI Data
[Arguments] ${inifile}


Set INI Window Size
[Arguments] ${width}=${None} ${height}=${None}
${location}= Get Manager INI Location
Expand Down
11 changes: 10 additions & 1 deletion Tests/Regression/Manager/GUI_Features.robot
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,21 @@ Clean Files
Verify Disable log.html - Scenario
[Tags] windows-latest ubuntu-latest macos-latest Issue #151
${scenariofile}= Normalize Path ${CURDIR}${/}testdata${/}Issue-#151${/}Issue-#151.rfs

${scenariofilebefore}= Read Ini File ${scenariofile}
Log scenariofilebefore: ${scenariofilebefore} console=True

@{mngr_options}= Create List -s ${scenariofile}
Open Manager GUI
Click Button runsettings
Click Dialog Button cancel
Click CheckBox unchecked loghtml
Click Dialog Button ok
Click Button runsave
Run Keyword Close Manager GUI ${platform}

${scenariofileafter}= Read Ini File ${scenariofile}
Log scenariofileafter: ${scenariofileafter} console=True

Verify Disable report.html - Scenario
[Tags] windows-latest ubuntu-latest macos-latest Issue #151
No Operation
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.
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Tests/Regression/Manager/IniFile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import configparser

class IniFile:
def __init__(self):
print("IniFile Loaded")

def read_ini_file(self, filename):
config = configparser.ConfigParser()
config.read(filename)

variables = {}
for section in config.sections():
variables[section] = {}
for key, value in config.items(section):
variables[section][key] = value
return variables

0 comments on commit 3507c6e

Please sign in to comment.