@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.
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.gitInstallation
npm install @tillpayments-qa/ta-common-services --save --devUsage
- 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:coveragePublish to NPM
- Update the version number in package.json.
- Update the dependencies with
npm installcommand. - Make a new build with
npm run buildcommand. - Execute the
npm logincommand and provide the npm username and password from terminal. - Once npm login was successful publish the new build- into NPM with
npm publish --access publiccommand.
Notes:
- Make sure commit and push your code changes into git once publish the new build into NPM registry.
