@tillpayments-qa/ta-common-services
v2.0.8
Published
This till-ta-common-services npm module have some common reusable features like Base Locators, Page Actions and TestRail Update.
Downloads
3,046
Readme
TILL-TA-COMMON-SERVICES
This till-ta-common-services npm module have some common reusable features like Base Locators, Page Actions and TestRail Update.
Github Link
https://github.com/tillpayments/till-ta-common-services.git
Installation
npm install @tillpayments-qa/ta-common-services --save --dev
Usage
- Add below required .ENV variables
TESTRAIL_USERNAME = "Username"
TESTRAIL_PASSWORD = "Password"
TESTRAIL_RUN_NAME = "ANY_NAME"
TESTRAIL_PROJECT_ID = 1234
TESTRAIL_SUITE_ID = 12345
- Add below commands in package.json scripts section
"testrail:update": "npx ts-node ./node_modules/@tillpayments-qa/ta-common-services/testrail/update.ts"
"testrail:coverage": "npx ts-node ./node_modules/@tillpayments-qa/ta-common-services/testrail/coverage.ts"
- Run the below command to execute the test rail update.
npm run testrail:update
- Run the below command to execute the test rail coverage.
npm run testrail:coverage
Publish to NPM
- Update the version number in package.json.
- Update the dependencies with
npm install
command. - Make a new build with
npm run build
command. - Execute the
npm login
command and provide the npm username and password from terminal. - Once npm login was successful publish the new build- into NPM with
npm publish --access public
command.
Notes:
- Make sure commit and push your code changes into git once publish the new build into NPM registry.