Forum Discussion
aaronpliu
7 years agoFrequent Contributor
Hi 678 ,
Suggest to use jsoup (ReadyAPI contains this jar in /lib)
// extract node value if need
import org.jsoup.*
def htmlResponse = testRunner.testCase.testSteps["YourStepName"].testRequest.response.contentAsString
def htmlParse = Jsoup.parse(htmlResponse)
// for example, retrieve value from "input" node
htmlParse.select("input").each {
if (it.attr("name") == "xxxxxx") {
// get value
log.info java.net.URLEncoder.encode(it.attr("value"), "UTF-8)
}
}
BR,
/Aaron
- 6787 years agoRegular Contributor
basically i have a project report on HTML created on projectfolder
I need only TestSuite results page to be extract - any help ?