Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perfectomobilesa/json2xml-api-export
Export XCTest and Espresso executions into Junit XML format
https://github.com/perfectomobilesa/json2xml-api-export
Last synced: about 6 hours ago
JSON representation
Export XCTest and Espresso executions into Junit XML format
- Host: GitHub
- URL: https://github.com/perfectomobilesa/json2xml-api-export
- Owner: PerfectoMobileSA
- License: mit
- Created: 2020-04-24T16:27:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T21:33:53.000Z (over 2 years ago)
- Last Synced: 2023-03-01T23:31:36.877Z (over 1 year ago)
- Language: Java
- Size: 217 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Perfecto Reporting API JSON to Junit XML Exporter
=
This command line interface is designed to extract XCTest and Espresso test execution results for a single test suite from the Perfect Reporting API via REST and convert the resulting JSON to Junit XML and write it to a file.Usage
=
Either run at the command line:> com.perfectomobile.Exporter -c=https://example.app.perfectomobile.com -s=[SECURITY TOKEN OBTAINED FROM PERFECTO QUALITY LAB CLOUD] -e=[GUID REPRESENTING TEST SUITE EXECUTED IN THE PERFECTO QUALITY LAB] -x=./TestSuites.xml
Or create an Eclipse run configuration:
![Page One](img/run-configuration-1.jpg)
![Page Two](img/run-configuration-2.jpg)
Required Arguments
--
* c | perfectoCloudReportingServer
* Example: -c=https://example.app.perfectomobile.com
* s | perfectoSecurityToken
* Example: -s=[SECURITY TOKEN OBTAINED FROM PERFECTO QUALITY LAB CLOUD]
* x | xmlOutputFilePath
* Example: -x=./TestSuites.xmlOptional Arguments
--
* l | list [all executions in the past 24 hours]
* Example: -l
* e | testExecutionId
* Example: -e=[GUID REPRESENTING TEST SUITE EXECUTED IN THE PERFECTO QUALITY LAB]
* t | tag
* Example: -t=ExampleTestTag
* j | jsonOutputFilePath
* Example: -j=./TestSuites.json
* v | verbose
* Example: -vExport Executable Jar
=
To create an executable jar in Eclipse, select the File menu | Export. In the export wizard, choose Java > Runnable JAR file. Follow the wizard to select your launch configuration and file path.![Page One](img/export-page-1.jpg)
![Page Two](img/export-page-2.jpg)
See also [Create runnable jar with Eclipse](http://doduck.com/create-runnable-jar-with-eclipse/index.html).
Reference
=
[Perfecto API documentation](https://developers.perfectomobile.com/display/PD/Smart+Reporting+Public+API)[Junit XML reference](https://llg.cubic.org/docs/junit/)
Special Thanks
--
The core of the TestUnits XML class used to serialize the results was borrowed from [Adam Gent](https://gist.github.com/agentgt/8583649).