1.0.8 • Published 1 year ago
@olegyanush/zephyr v1.0.8
WDIO Enverus Zephyr Scale Integration
About
Getting Started
Once installed it can now be referenced by simply calling
import { ZephyrScaleReporter, ZephyrScaleService, TestCycle } from '@wdio-enverus/wdio-enverus-zephyrscale-reporter';
How to use:
You have just to: 1. Define configuration for Zephyr Scale Reporter:
const zephyrConfig = {
url: 'https://api.zephyrscale.smartbear.com/v2/',
projectKey: '<Jira project key>', // Project key in Jira
accessToken: '<access token>', // Access token for calling Zephyr Scale API
executedById: '<identifier of user>', // Identifier of an user what will be assigned to Cycle run as an executor.
assignedToId: '<identifier of user>', // Identifier of an user what will be assigned to Cycle run.
ignoreStepCondition: (title) => title.startsWith('[Ignore]'), // Condition for ignoring reporting steps. [OPTIONAL]
cycleKey: '<Zephyr Scale cycle key>', // Cycle key, if you would like to report test execution to existed Test Cycle. [OPTIONAL]
stepReporting: true, // Enable or disable steps reporting
cycle: new TestCycle(
`<Zephyr Scale cycle name>`,
'<Zephyr Scale cycle description>')
};
- Add ZephyrScaleReporter to WDIO reporters in config:
config.reporters.push([ZephyrScaleReporter, zephyrConfig]);
- Add ZephyrScaleService to WDIO services in config:
config.services.push([ZephyrScaleService]);