1.3.22 • Published 3 years ago

qali v1.3.22

Weekly downloads
54
License
BSD-3-Clause
Repository
github
Last release
3 years ago

Qali

🐺 What is Qali?

Qali is a Node.js library for creating browser tests. Run one command (npx qawolf init) to configure your project and set up CI.

  • Skip writing boilerplate: Your browser actions are converted to Playwright/Jest code.
  • Create stable tests: Your tests automatically wait for elements. Element selectors use test attributes when possible, and CSS/text otherwise.
  • Edit your tests: Edit your code as it is created and add steps to existing tests. Re-run your tests automatically with watch mode.
  • Debug with ease: Each test can report full interactive replayable session with logs.

🖥️ Install

Set up your project for browser tests:

cd /my/awesome/project
yarn create qali

Configure your test directory and CI provider:

? rootDir: Directory to create tests in (e2e)

This will install qali, jest and playwright as dev dependencies and create a CI workflow file to:

  • 🐎 Run tests in parallel
  • 📄 Create reports

🎨 Create a test

yarn qali create http://example.com testName

A new browser page will be opened where you can record the test flow. Take screenshots with ctrl/cmd + S Check the existence a string in page with ctrl/cmd+click End the test by hitting Enter in the terminal that started the test recording Hints:

  • try to do things slowly
  • click directly on text
  • type slowly

✅ Run your tests

On Chromium:

yarn qali test [name]

On Firefox:

yarn qali test --firefox [name]

On Webkit:

yarn qali test --webkit [name]

On all browsers:

yarn qali test --all-browsers [name]

To create a report for each test

yarn qali test --report

To add more logs to tests(eg server logs)

yarn qali test --report --more-logs logs.txt,server.logs

The logs must be in the form per line

    {
      "timestamp": 1608040047816,
      "method": "log",
      "data": [
        "%cbackend_dev      |%c INFO 2020-12-15 15:47:27,819 basehttp 36 139840204351232 \"GET /api/users/me/ HTTP/1.0\" 200 430\r",
        "color:rgb(0,153,102)",
        "color:rgb(-51,-153,-204)"
      ]
    }

To run the ci script:

npx qali-ci --url https://github.com/digigov/example --commit feature-qali-ci --qaliPath ui/e2e --report --prepareScript "cp backend-defaults.env backend-local.env" --port 80
1.3.22

3 years ago

1.3.19

3 years ago

1.3.20

3 years ago

1.3.21

3 years ago

1.3.18

3 years ago

1.3.17

3 years ago

1.3.16

3 years ago

1.3.15

3 years ago

1.3.14

3 years ago

1.3.13

3 years ago

1.3.10

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.30

3 years ago

1.2.28

3 years ago

1.2.29

3 years ago

1.2.27

4 years ago

1.2.25

4 years ago

1.2.26

4 years ago

1.2.24

4 years ago

1.2.21

4 years ago

1.2.22

4 years ago

1.2.20

4 years ago

1.2.19

4 years ago

1.2.18

4 years ago

1.2.17

4 years ago

1.2.15

4 years ago

1.2.14

4 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago