To get it as a dependency (for now) you can add my bintray repository. via gradle:
repositories {
maven { url 'https://dl.bintray.com/jasonkdarby/generic' }
}
dependencies {
testCompile 'com.jdarb:extent-reports-parser:0.1'
}
This is intended to be a library to assist with testing Anshoo Aurora's Extent Reports.
It was originally created to assist with testing test framework plugins that generate reports.
To use it you'll need to have a SauceLabs account and provide the environment variables GEB_SAUCE_LAB_USER
and GEB_SAUCE_LABS_ACCESS_PASSWORD
as required by the geb-saucelabs plugin.
Both the tests and the library itself use Geb. I didn't have much luck trying to use headless options like htmlunit.
I'll add more features as necessary or as requested.
Check out the tests for more information, but as a quick sample:
List<TestNode> result = new ExtentReportParser(reportUrl).tests
[
[
name: 'basic test',
status: 'Pass',
stepDetails: [
logs: [
[
status: 'pass',
details: 'PASS'
] as DetailLog
],
tests: []
] as StepDetails
] as TestNode
] == result