内容简介:Free and open source library to create
QA Wolf
Create browser tests 10x faster
Free and open source library to create Playwright / Jest browser tests and run them in CI
️
Install
Set up your project for browser tests:
cd /my/awesome/project npm init qawolf # or yarn create qawolf
Configure your test directory and CI provider:
? rootDir: Directory to create tests in (.qawolf) ? Choose CI Provider (Use arrow keys) Azure DevOps Bitbucket Pipelines CircleCI ❯ GitHub Actions GitLab CI/CD Jenkins Skip CI setup
This will install qawolf , jest and playwright as dev dependencies and create a CI workflow file to:
-
:racehorse: Run tests in parallel -
:video_camera: Record a video of each test -
:page_facing_up: Capture browser logs
:art:
Create a test
npx qawolf create url [name]
| Action | Status | Example |
|---|---|---|
| Click |
|
page.click(selectors['0_submit']) |
| Type |
|
page.type(selectors['0_username'], 'username') |
| Scroll |
|
qawolf.scroll(page, 'html', { x: 0, y: 200 }) |
| Select |
|
page.selectOption(selectors['0_ice_cream'], 'chocolate') |
| Replace text |
|
page.fill(selectors['0_username'], 'username') |
| Paste |
|
page.type(selectors['password'], 'pasted') |
| Use a test attribute |
|
page.click("[data-qa='submit']") |
| Use a test attribute on an ancestor |
|
page.click("[data-qa='radio'] [value='cat']") |
| Use multiple pages/tabs |
|
qawolf.waitForPage(page.context(), 1) |
| Iframes |
|
Coming soon |
| Drag and drop |
|
Coming soon |
| File upload |
|
Coming soon |
| Back button |
|
Coming soon |
As your test is created:
-
:pencil2: Edit the code as you like -
️ Use the REPL to try out commands
:white_check_mark:
Run your tests
On Chromium:
npx qawolf test [name]
On Firefox:
npx qawolf test --firefox [name]
On Webkit:
npx qawolf test --webkit [name]
On all browsers:
npx qawolf test --all-browsers [name]
:raising_hand:
Get help
We want QA Wolf to work for you, so please reach out to get help!
If you have a feature request or feedback, please open an issue or chat with us .
:memo:
License
QA Wolf is licensed under BSD-3-Clause .
以上所述就是小编给大家介绍的《Open source library to create browser tests 10x faster》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
电子商务:管理与社交网络视角(原书第7版)
(美)埃弗雷姆·特班(Efraim Turban)、戴维.金(David King)、李在奎、梁定澎、德博拉·特班(Deborrah Turban) / 时启亮、陈育君、占丽 / 机械工业出版社 / 2014-1-1 / 79.00元
本书对电子学习、电子政务、基于web的供应链、协同商务等专题进行了详细的介绍,全书涵盖丰富的资料以及个案,讨论了Web 2.0环境内的产业结构、竞争变化以及对当今社会的影响。另外,本书在消费者行为、协同商务、网络安全、网络交易及客户管理管理、电子商务策略等内容上都有最新的改编,提供读者最新颖的内容,贴近当代电子商务的现实。 本书适合高等院校电子商务及相关专业的本科生、研究生及MBA学员,也可......一起来看看 《电子商务:管理与社交网络视角(原书第7版)》 这本书的介绍吧!