Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qmetry/qaf-reportportal-integration
QMetry Automation Framework reportportal.io integration
https://github.com/qmetry/qaf-reportportal-integration
appium automation bdd qaf reporting selenium test webservice-test
Last synced: about 1 month ago
JSON representation
QMetry Automation Framework reportportal.io integration
- Host: GitHub
- URL: https://github.com/qmetry/qaf-reportportal-integration
- Owner: qmetry
- Created: 2019-04-02T20:21:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-15T23:30:57.000Z (over 5 years ago)
- Last Synced: 2023-11-26T09:35:49.362Z (about 1 year ago)
- Topics: appium, automation, bdd, qaf, reporting, selenium, test, webservice-test
- Language: Java
- Size: 129 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qaf-reportportal-integration
QMetry Automation Framework reportportal.io integrationThis project provide implementation for integration of qaf test results with [reportportal.io](http://reportportal.io).
Refer [reportportal](http://reportportal.io/docs/What-is-ReportPortal?) documentation for [installation-steps](http://reportportal.io/docs/Installation-steps).
Once you have report portal up and running you can start sending results by using `ReportPortalQAFListener` listener.## Features
* Each step as log (pass - Info, Fail - Error, Warn - Warn)
* Web driver and element command log (DEBUG level)
* Screen shot attachement
* If loging enabled, logs will attached as attachment.
## DependenciesAdd to `POM.xml`
**dependency**
```xml
com.qmetry
qaf-reportportal-integration
0.0.1```
### Listener parameters
Description of listeners input parameters and how to configure it see “Parameters” in [Configuration section](http://reportportal.io/docs/JVM-based-clients-configuration).
Which are common for all **JVM based** agents. You can provide it in `reportportal.properties` available in class path or provide as system property.
If you want to provide it through application properties file add `system` prefix. For example:**application.properties:**
```
system.rp.endpoint = http://localhost:8080
system.rp.uuid =
system.rp.launch = default_TEST_EXAMPLE
system.rp.project = default_project
```**Additional properties:**
rp.step.astest : boolean to specify create a node for step under test or not. If `rp.step.astest` is set to true you will see test node for each step under actual test case. Well suited for BDD implementation.**Log4J configuration**
Add following properties in log4j.properties file:```
log4j.rootCategory=DEBUG, CONSOLE, LOGFILE,reportportallog4j.appender.reportportal=com.qmetry.qaf.reportportal.QAFLogAppender
log4j.appender.reportportal.layout=org.apache.log4j.PatternLayout
log4j.appender.reportportal.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p (%F:%L) - %m%n```
### Listener class:
`com.qmetry.qaf.reportportal.ReportPortalQAFListener`There are several ways how to install listener:
- [Maven Surefire plugin](https://github.com/reportportal/agent-java-testNG#maven-surefire-plugin)
- [Specify listener in testng.xml](https://github.com/reportportal/agent-java-testNG#specify-listener-in-testngxml)
- [Custom runner](https://github.com/reportportal/agent-java-testNG#custom-runner)
- [Using command line](https://github.com/reportportal/agent-java-testNG#using-command-line)
- [Using \@Listeners annotation](https://github.com/reportportal/agent-java-testNG#using-listeners-annotation)
- [Using ServiceLoader](https://github.com/reportportal/agent-java-testNG#using-serviceloader)> Please note, that listener must be configured in a single place only.
> Configuring multiple listeners will lead to incorrect application behavior.