2.0.2 • Published 5 months ago
zephyr-scale-plugin v2.0.2
Overview
Zephyr scale plugin that extracts BDD scenarios from Zephyr Scale Cloud tickets and publish automation test results into Zephyr Scale Cloud.
Requirements
- Requires Node.js 14.16+
- Set environment variable Zephyr API KEY:
export ZEPHYR_TOKEN=XXXXXXXXX
Steps
- Run the npm list -g to extract the Plugin installation path
- Extract the Feature file- npm --prefix run createFeatureFile < zephyr project plan>
eg. npm createFeatureFile ABCD ABDC-P1
- Copy the Feature file to repo feature folder- cp /testcases.feature> /testcases.feature>
- Run the Test ( Ensure Proper plugin is configured to generate Json and Xml file)
- Copy the Result file - cp <workspace path/json,xml>
- Run the command to push the results to Zephyr- npm --prefix run publishResults < results file path>
eg. npm run publishResults ABCD true ./results.zip ./results.json 'Automation Build' json
Documentation
Detailed Automation API requests and properties can be found here: Zephyr Scale API
How to generate API KEY: Generating API Access Tokens