Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qavajs/format-report-portal
Formatter for EPAM report portal
https://github.com/qavajs/format-report-portal
cucumber-js qa test-automation testing
Last synced: 3 days ago
JSON representation
Formatter for EPAM report portal
- Host: GitHub
- URL: https://github.com/qavajs/format-report-portal
- Owner: qavajs
- License: mit
- Created: 2022-06-15T06:34:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T06:29:58.000Z (4 months ago)
- Last Synced: 2024-09-26T17:08:37.237Z (about 2 months ago)
- Topics: cucumber-js, qa, test-automation, testing
- Language: JavaScript
- Homepage:
- Size: 907 KB
- Stars: 9
- Watchers: 0
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.MD
- License: LICENSE
Awesome Lists containing this project
README
## @qavajs/format-report-portal
This package is formatter for EPAM report portal### Install
`npm install @qavajs/format-report-portal`### Configuration
add formatter to config.js
```javascript
module.exports = {
default: {
format: [
['@qavajs/format-report-portal', 'report/rp.out']
],
formatOptions: {
rpConfig: {
enable: true,
debug: false,
apiKey: 'your token',
endpoint: 'https://your-rp-instance/api/v1',
description: 'Description',
tags: ['Tag'],
project: 'your project',
launch: 'your launch name',
mode: 'DEFAULT',
retry: 1, // number of retries to send result to report portal (default - 1)
ignoreErrors: false, // ignore RP errors (default: false)
showLaunchURL: true, // log report portal launch link,
tagsAsAttributes: true // (default: false → tags go to description)
},
}
}
}
```
Option `enable` is set to `true` even if it is not defined explicitly in rpConfig section.### Test Level Attributes
Test level attributes can be added via cucumber logs e.g. in Before hook
```javascript
const { Before } = require('@cucumber/cucumber');Before(function () {
this.log('log from before'); //just log
this.log(`rp_attribute: fixed:42`); //static attribute
this.log(`rp_attribute: random:${Date.now()}`); //dynamic attribute
});
```
### Run Unit Tests
add token.json file with rp token and other config
run
`npm run test`### Run E2E Tests
add token.json file with rp token and other config
run
`npm run test-e2e`