Skip to content

Commit

Permalink
Tweak test
Browse files Browse the repository at this point in the history
Add -g 1 so the output file is shown
check filename.extension rather than just extension in output
Issue #144
  • Loading branch information
damies13 committed Apr 25, 2023
1 parent 8a59dc6 commit 6a25610
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/Regression/Reporter/CommandLine.robot
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Command Line Generate HTML
Should Exist ${resultfolder}
${template}= Set Variable ${basefolder}${/}90%ileTemplate.template
Should Exist ${template}
${result}= Run python3 ${EXECDIR}${/}rfswarm_reporter${/}rfswarm_reporter.py -n -d ${resultfolder} -t ${template} --html
${result}= Run python3 ${EXECDIR}${/}rfswarm_reporter${/}rfswarm_reporter.py -n -g 1 -d ${resultfolder} -t ${template} --html
Log to console ${\n}${result}
Should Not Contain ${result} Traceback
Should Contain ${result} html
Should Contain ${result} ${resultdata}.html
Should Exist ${resultfolder}${/}${resultdata}.html

Command Line Generate Docx
Expand All @@ -48,10 +48,10 @@ Command Line Generate Docx
Should Exist ${resultfolder}
${template}= Set Variable ${basefolder}${/}90%ileTemplate.template
Should Exist ${template}
${result}= Run python3 ${EXECDIR}${/}rfswarm_reporter${/}rfswarm_reporter.py -n -d ${resultfolder} -t ${template} --docx
${result}= Run python3 ${EXECDIR}${/}rfswarm_reporter${/}rfswarm_reporter.py -n -g 1 -d ${resultfolder} -t ${template} --docx
Log to console ${\n}${result}
Should Not Contain ${result} Traceback
Should Contain ${result} docx
Should Contain ${result} ${resultdata}.docx
Should Exist ${resultfolder}${/}${resultdata}.docx

Command Line Generate Xlsx
Expand All @@ -64,10 +64,10 @@ Command Line Generate Xlsx
Should Exist ${resultfolder}
${template}= Set Variable ${basefolder}${/}90%ileTemplate.template
Should Exist ${template}
${result}= Run python3 ${EXECDIR}${/}rfswarm_reporter${/}rfswarm_reporter.py -n -d ${resultfolder} -t ${template} --xlsx
${result}= Run python3 ${EXECDIR}${/}rfswarm_reporter${/}rfswarm_reporter.py -n -g 1 -d ${resultfolder} -t ${template} --xlsx
Log to console ${\n}${result}
Should Not Contain ${result} Traceback
Should Contain ${result} xlsx
Should Contain ${result} ${resultdata}.xlsx
Should Exist ${resultfolder}${/}${resultdata}.xlsx

*** Keywords ***
Expand Down

0 comments on commit 6a25610

Please sign in to comment.