https://github.com/saturninoabril/mm-hw-ui-automation
https://github.com/saturninoabril/mm-hw-ui-automation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saturninoabril/mm-hw-ui-automation
- Owner: saturninoabril
- Created: 2021-04-14T17:41:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-05T00:43:04.000Z (over 3 years ago)
- Last Synced: 2025-01-15T13:12:34.830Z (5 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Set your credentials via environment variables
It would be best to have it in your `.profile` or `.bashrc`, but will work quickly using `export`.
From Github:
- `GITHUB_TOKEN_DEV=[token]`
- `GITHUB_OWNER_DEV=[saturninoabril]`
- `GITHUB_REPO_DEV=[mm-hw-ui-automation]`From Jira/TM4J
- `TM4J_API_KEY=[key]`#### How to run the script
Pick up test case/s from Zephyr Scale (formerly TM4J) and take note of its test ID as `TEST_KEY` and test folder as `TEST_FOLDER`. You may assign one or more keys to `TEST_KEY`, separated by comma.
```bash
TEST_KEY=3201,3202 TEST_FOLDER=messaging node cypress/index.js
TEST_KEY=3203,3204 TEST_FOLDER=messaging node detox/index.js
```
The script will create a file like `/cypress/MM-T3201.md` and will publish an issue as help-wanted to the Github repo based from the template.#### Before publishing
1. Create a test Github repo to see if the newly created issue/help-wanted is as expected.
2. Adjust the template or labels accordingly before using the intended Github repo.