testcafe-wrapper

1.2.3 • Public • Published

TestCafe Wrapper

Generate TestCafe unit tests by creating simple yaml files.

Install testcafe-wrapper

npm install -g testcafe-wrapper
Sample yaml file
---
fixture:     Example
page:        http://devexpress.github.io/testcafe/example/

fields:
    - identifier:   submit
      selector:     button[type="submit"]
      element:      button
      type:         submit

tests:
    - name:         Type in a developer name and click submit
      logic:
          - action      : click
            identifier  : submit

Generate the code and run the command

testcafe-wrapper
Full integration into TestRail

Created conf/testrail-conf.json

{
    "host": "http://[testrail_url]/testrail/",
    "username": "testrail_username",
    "password": "testrail_password",
    "projectId": 1
}

To integrate test results straight into testrail add -t

testcafe-wrapper -t

For a list of available commands

testcafe-wrapper -help

Package Sidebar

Install

npm i testcafe-wrapper

Weekly Downloads

2

Version

1.2.3

License

MIT

Last publish

Collaborators

  • redfox256