This is a small script that could convert your story acceptance criteria(AC) in Jira to test cases automatically. Your AC should use the Given, When and Then(GWT) format in order for it to work.
-
Install the package
npm i --save-dev actc
-
Setup your config file
// /config/default.json
{
"xml": {
"folder": "/xml",
"file": "test.xml"
},
"output": {
"folder": "./output",
"file": "test.ts"
}
}
- Create a npm script
// package.json
"scripts": {
"your-script-name": "actc"
},
-
Download the XML file from Jira into the specified folder.
-
Run your script
npm run your-script-name
Run your script with the name you like
npm run your-script-name your-file-name.js