Skip to content

Commit

Permalink
Missed the other Parse XML call
Browse files Browse the repository at this point in the history
Issue #239
  • Loading branch information
damies13 committed Oct 16, 2024
1 parent 0d6adc9 commit 9d35990
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/Regression/Reporter/GUI_Bugs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ Template with Start and End Dates
Copy Files ${resultfolder0}/*.report ${testresultfolder0}
Copy Files ${resultfolder0}/*.html ${testresultfolder0}

${html}= Parse XML ${resultfolder0}${/}${resultdata0}.html
# ${html}= Parse XML ${resultfolder0}${/}${resultdata0}.html
# import lxml.etree
# tree = lxml.etree.parse("/home/dave/Downloads/Reporter-windows-latest-3.11/Issue-#250/20240626_130059_jpetstore-nomon-quick/20240626_130059_jpetstore-nomon-quick.html", lxml.etree.HTMLParser())
${html}= Evaluate lxml.etree.parse("${resultfolder1}${/}${resultdata1}.html", lxml.etree.HTMLParser()) modules=lxml.etree
${sectionid}= Get Element Attribute ${html} id .//h1[text()='2 Test Result Summary']/..
${table}= Get Element ${html} .//div[@id='${sectionid}']//table
${expected}= Get Elements Texts ${table} tr/td[1]
Expand All @@ -285,8 +288,6 @@ Template with Start and End Dates
Copy Files ${resultfolder1}/*.html ${testresultfolder1}

# ${html}= Parse XML ${resultfolder1}${/}${resultdata1}.html
# import lxml.etree
# tree = lxml.etree.parse("/home/dave/Downloads/Reporter-windows-latest-3.11/Issue-#250/20240626_130059_jpetstore-nomon-quick/20240626_130059_jpetstore-nomon-quick.html", lxml.etree.HTMLParser())
${html}= Evaluate lxml.etree.parse("${resultfolder1}${/}${resultdata1}.html", lxml.etree.HTMLParser()) modules=lxml.etree
${sectionid}= Get Element Attribute ${html} id .//h1[text()='2 Test Result Summary']/..
${table}= Get Element ${html} .//div[@id='${sectionid}']//table
Expand Down

0 comments on commit 9d35990

Please sign in to comment.