https://github.com/smartbear/zephyr-scale-server-rest-api-scripts
https://github.com/smartbear/zephyr-scale-server-rest-api-scripts
on-prem open-source zephyr-scale
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smartbear/zephyr-scale-server-rest-api-scripts
- Owner: SmartBear
- License: other
- Created: 2021-09-21T20:06:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T09:10:45.000Z (about 1 year ago)
- Last Synced: 2025-04-08T05:34:53.829Z (6 months ago)
- Topics: on-prem, open-source, zephyr-scale
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 17
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Zephyr Scale Server REST API Scripts
Example scripts to automate tasks in Zephyr Scale Server via the [REST API](https://support.smartbear.com/zephyr-scale-server/api-docs/v1/).
The examples are intentionally simple to provide a quick start for REST API users.
We recommend you to fork this repository and change it to meet your specifications.
See the [Zephyr Scale API Docs](https://support.smartbear.com/zephyr-scale-server/api-docs/v1/) for more information about the API usage.
# Requirements
The scripts are based on [Node.js](https://nodejs.org/), please make sure you have the latest Node.js LTS version installed.
After forking or cloning the project, go to the root folder and run the following command to install the dependencies:
```
npm install
```In the sections below you can see the current available scripts.
## Projects
Zephyr Scale resources are linked to Jira projects, so in order to use Zephyr Scale, first create the projects in Jira and then create the Zephyr Scale projects.
### Create Zephyr Scale Projects
First, open the template file `projects/resources/projects.js` and edit it to meet your requirements.
Then, create the Zephyr Scale projects running the following command:
```
npm run projects:create -- \
--host https://JIRA_HOST \
--username JIRA_USERNAME \
--password JIRA_PASSWORD
```## Custom Fields
Zephyr Scale supports Custom Fields for different resources, like Test Cases, Test Cycles and more.
### Create Custom Fields
First, open the template file `customFields/resources/customFields.js` and edit it to meet your requirements.
Then, create the Custom Fields running the following command:
```
npm run customFields:create -- \
--host http://JIRA_HOST \
--username JIRA_USERNAME \
--password JIRA_PASSWORD
```