Forum Discussion
I am using following peice to read the complete html page but it a very long HTML page
def filename = "C:/Users/ProjectReport.html"
// read all the content of the file into a single string
File fh1 = new File(filename)
def report = fh1.getText('UTF-8')
but i need the part of the page in between lines like
Tag line <TestSuite Results> to Tag line <end of TestSuite Results>
Hi 678,
As far as I understand, you want to parse some report. Is it a ReadyAPI report?
678 wrote:
Tag line <TestSuite Results> to Tag line <end of TestSuite Results>
It's not an HTML tag. This makes me think that it will be much easier if you export your report to the XML format. By using a groovy script, you can easily extract the needed node from an XML file by using XPath. Please read the following article for more information:
https://support.smartbear.com/readyapi/docs/testing/scripts/samples/nodes.html
- 6786 years agoRegular Contributor
Yes, its an ReadyAPI Complete Project report but i need only TestSuite Results should capture from the report
that i am going to use to send an email as body
Related Content
- 4 years ago
- 2 years ago
- 2 years ago