Skip to content

Commit

Permalink
Changed teardowns for test cases Issue damies13#132 damies13#144
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekKuczynski committed Sep 28, 2024
1 parent f687097 commit 618c03f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Tests/Regression/Reporter/CommandLine_Bugs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Auto Generate HTML Report Without GUI Using Template
Should Contain ${html_content} <h1>8 Issue-#132</h1>
Should Contain ${html_content} <div class="body"><p>This is a test for Issue-#132</p></div>

[Teardown] Remove File ${resultfolder}${/}${resultdata}.html
[Teardown] Move File ${resultfolder}${/}${resultdata}.html ${OUTPUT_DIR}${/}${testdata}${/}${resultdata}.html

Auto Generate DOCX Report Without GUI Using Template
[Tags] ubuntu-latest macos-latest windows-latest Issue #144 Issue #132 DOCX
Expand All @@ -73,7 +73,7 @@ Auto Generate DOCX Report Without GUI Using Template
Should Exist ${resultfolder}${/}${resultdata}.docx
File Should Not Be Empty ${resultfolder}${/}${resultdata}.docx

[Teardown] Remove File ${resultfolder}${/}${resultdata}.docx
[Teardown] Move File ${resultfolder}${/}${resultdata}.docx ${OUTPUT_DIR}${/}${testdata}${/}${resultdata}.docx

Auto Generate XLSX Report Without GUI Using Template
[Tags] ubuntu-latest macos-latest windows-latest Issue #144 Issue #132 XLSX
Expand All @@ -98,4 +98,5 @@ Auto Generate XLSX Report Without GUI Using Template
Should Exist ${resultfolder}${/}${resultdata}.xlsx
File Should Not Be Empty ${resultfolder}${/}${resultdata}.xlsx

[Teardown] Remove File ${resultfolder}${/}${resultdata}.xlsx
[Teardown] Move File ${resultfolder}${/}${resultdata}.xlsx ${OUTPUT_DIR}${/}${testdata}${/}${resultdata}.xlsx

12 changes: 9 additions & 3 deletions Tests/Regression/Reporter/GUI_Bugs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ Auto Generate HTML Report With GUI Using Template
Should Contain ${html_content} <h1>4 Issue-#132</h1>
Should Contain ${html_content} <div class="body"><p>This is a test for Issue-#132</p></div>

[Teardown] Run Keywords Remove File ${resultfolder}${/}${resultdata}.html AND Close GUI
[Teardown] Run Keywords
... Close GUI AND
... Move File ${resultfolder}${/}${resultdata}.html ${OUTPUT_DIR}${/}${testdata}${/}${resultdata}.html

Auto Generate DOCX Report With GUI Using Template
[Tags] ubuntu-latest macos-latest windows-latest Issue #132 DOCX
Expand All @@ -334,7 +336,9 @@ Auto Generate DOCX Report With GUI Using Template

File Should Not Be Empty ${docx_files}[0]

[Teardown] Run Keywords Remove File ${resultfolder}${/}${resultdata}.docx AND Close GUI
[Teardown] Run Keywords
... Close GUI AND
... Move File ${resultfolder}${/}${resultdata}.docx ${OUTPUT_DIR}${/}${testdata}${/}${resultdata}.docx

Auto Generate XLSX Report With GUI Using Template
[Tags] ubuntu-latest macos-latest windows-latest Issue #132 XLSX
Expand All @@ -355,5 +359,7 @@ Auto Generate XLSX Report With GUI Using Template

File Should Not Be Empty ${xlsx_files}[0]

[Teardown] Run Keywords Remove File ${resultfolder}${/}${resultdata}.docx AND Close GUI
[Teardown] Run Keywords
... Close GUI AND
... Move File ${resultfolder}${/}${resultdata}.xlsx ${OUTPUT_DIR}${/}${testdata}${/}${resultdata}.xlsx

0 comments on commit 618c03f

Please sign in to comment.