https://github.com/ebazhanov/testcafe-example
TestCafe example
https://github.com/ebazhanov/testcafe-example
docker testcafe
Last synced: about 1 year ago
JSON representation
TestCafe example
- Host: GitHub
- URL: https://github.com/ebazhanov/testcafe-example
- Owner: Ebazhanov
- Created: 2017-12-09T13:43:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T19:48:52.000Z (about 7 years ago)
- Last Synced: 2025-03-17T09:52:26.934Z (about 1 year ago)
- Topics: docker, testcafe
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## testcafe-example
Motivation:
-----------
(done/in progress)
- [x] run test in different browsers Chrome/Safari/FF/Chromium + Chrome:[Headless mode](https://devexpress.github.io/testcafe/documentation/using-testcafe/common-concepts/browsers/testing-in-headless-mode.html)
- [x] run all tests at the same browser without close/open new browser
- [x] run on physical mobile devices without cable connection [by QR-Code](https://devexpress.github.io/testcafe/documentation/recipes/test-on-remote-computers-and-mobile-devices.html#run-tests-on-a-mobile-device)
- [x] run in cloud services like [Browserstack](https://devexpress.github.io/testcafe/documentation/using-testcafe/common-concepts/browsers/browser-support.html#browsers-in-cloud-testing-services)
- [x] run in [docker](https://devexpress.github.io/testcafe/documentation/continuous-integration/gitlab.html#option-1---use-testcafe-docker-image)
Build status | Description | YML
:--- | :--- | :---
[](https://circleci.com/gh/Ebazhanov/testcafe-example) | Linux (CircleCI) | [circle.yml](circle.yml)
### Getting started
`$ npm install`
## How to run test
##### Locally
`$ npm run test`
[my video](https://monosnap.com/file/N0y3NgnhkCI6LRlMjxe5zP9NNLIJ2Q#)
##### On mobile with QR-code
`$ npm run mobile`
Read QR-code by your phone then click on the `Open link` to run the test
##### Run in docker
```
$ docker pull testcafe/testcafe:latest
```
```
$ npm run docker
```
## More info:
- [Basic things Docker](https://www.javascriptjanuary.com/blog/building-your-first-node-app-using-docker),
- [TestCafe Docker](https://hub.docker.com/r/hortonworks/cloud-web-testcafe)