Skip to content

Commit

Permalink
Still trying to change INI file
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekKuczynski committed Mar 30, 2024
1 parent 0a93975 commit 118cb26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/Regression/Manager/GUI_Bugs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Verify scenario file content for example robot
IF "${platform}" == "macos"
Open Manager GUI
Run Keyword Close Manager GUI ${platform}
Set INI Data Window Size 900 400
Set INI Window Size 900 400
END
Open Manager GUI
Set Global Save Path And Filename ${correct_data}[1]
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 @@ -195,17 +195,19 @@ Get Manager INI Data
Should Not Be Empty ${ini_content}
RETURN ${ini_content}

Set INI Data Window Size
Set INI Window Size
[Arguments] ${x_width} ${y_width}
${location}= Get Manager INI Location
${ini_content}= Get Manager INI Data

${ini_content_list}= Split String ${ini_content}
${i}= Get Index From List ${ini_content_list} win_width
${j}= Get Index From List ${ini_content_list} win_height

Replace String ${ini_content} ${ini_content}[${i + 2}] ${x_width}
Replace String ${ini_content} ${ini_content}[${j + 2}] ${y_width}
Log ${ini_content}
Log ${ini_content_list}[${i + 2}]
Log ${x_width}
Replace String ${ini_content} ${ini_content_list}[${i + 2}] ${x_width}
Replace String ${ini_content} 390 450
Remove File ${location}
Log ${ini_content}
Append To File ${location} ${ini_content}
Expand Down

0 comments on commit 118cb26

Please sign in to comment.