contour-ui-test

1.0.0 • Public • Published

| Home |


Running Tests

On local machine

Before running the tests, make sure that you are using appropriate chrome driver for the version of Chrome browser installed in your machine. If your Chrome version is 105, then change the following attribute value to 105 in contour-app-test/ui-test/package.json.

"chromedriver": "^105.0.0",

From contour-app-test/ui-test folder, run the following commands,

npm install
npx contour-fet -c './test/suite/<path to config file>'

For example,

npx contour-fet -c './test/suite/login.ts'

On Selenoid Hub

Selenoid is being used as Selenium Hub implementation in our infrastructure. Tests can be sent to Selenoid hub, in which case, selenoid handles the distribution of tests among multiple nodes (docker containers with specific browser & version installed) and also test execution.

To run the tests on Selenoid hub, from contour-app-test/ui-test folder, run the following command (using hub config file),

npm install
npx contour-fet -c './test/suite/<path to hub config file>'

For example,

npx contour-fet -c './test/suite/login.hub.ts'

Test execution can be viewed in realtime here.

Change Management Checklist

  1. Feature file is placed in appropriate folder
  2. Feature file is added to appropriate test suite
  3. Feature file is tagged with appropriate functional tag. For list of valid functional tags, refer this secion
  4. Test the changes by running the tests against Selenoid Hub (Chrome browser)
  5. Once all above criterias are met, raise a PR to develop branch

Notes

Dependency issues:

  • Can not upgrade @wdio/local-runner due to this issue. Using fixed version 7.0.5 as temporary solution.

Appendix

Test Case Functional Tags

Function Tag
DC Issuance @DCIssuance
DC Amendment @DCAmendment
DC Cancellation @DCCancellation
DC Presentation @DCPresentation
DC Templates @DCTemplates
BNO @BNO
User Management @UserMgmt
P2P Message @P2PMsg
EssDocs @EssDocs
Printing @Printing
Absolute Session Limit @SessionLimit
Data Model @DataModel
Network Map @NetworkMap
MFA @MFA
SSO @SSO
Security @Security
Customisation @Customisation
Credit Guarantee @CreditGuarantee
Localisation @Localisation
Audit Trail @Audit Trail
Email Notifications @EmailNotifications
Login @Login
Reset Password @ResetPassword
Forgot Password @ForgotPassword
E2E @E2E

Readme

Keywords

none

Package Sidebar

Install

npm i contour-ui-test

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

41.4 MB

Total Files

695

Last publish

Collaborators

  • contournetwork