This repo contains the course material for the Test Automation University Course Introduction to E2E Web Testing using TestCafe
In order to follow this course, you will need
- macOS High Sierra or Mojave | Windows 10
- Visual Studio Code
- NodeJS
- Github Free Account
- Applitools API Key
The course is divided into the 9 different chapters and each chapter has an associated branch. The master branch without any UI tests.
Chapter 3
Branch -- Getting Started with TestCafeChapter 4
Branch -- Deep Dive with TestCafeChapter 7
Branch -- Page Object Model with TestCafeChapter 8
Branch -- Data-Driven Tests with TestCafeChapter 9
Branch -- BDD Tests with TestCafe and CucumberJSChapter 10
Branch -- Reporting with TestCafeChapter 11
Branch -- TestCafe Visual Validation with Applitools Ultra GridChapter 12
Branch -- Integrate TestCafe with GitHub ActionsChapter 14
Branch -- Use TestCafe Docker Image
You need to checkout the branch depending on the chapter you are on.
In each branch you need to run npm install
to add node_modules
into the project and also you need to install the required npm module based on the branch
TestCafe Cheat Sheet
How TestCafe Works
Install TestCafe
- https://devexpress.github.io/testcafe/
- https://marketplace.visualstudio.com/search?term=testcafe&target=VSCode&category=All%20categories&sortBy=Relevance
TestCafe Basics
- https://devexpress.github.io/testcafe/documentation/guides/basic-guides/organize-tests.html#tests
- https://devexpress.github.io/testcafe/documentation/guides/basic-guides/organize-tests.html#fixtures
- https://devexpress.github.io/testcafe/documentation/getting-started/#creating-a-test
Explore TestCafe features
-
https://devexpress.github.io/testcafe/documentation/guides/basic-guides/interact-with-the-page.html
-
https://devexpress.github.io/testcafe/documentation/reference/test-api/testcontroller/
-
https://devexpress.github.io/testcafe/documentation/reference/test-api/fixture/beforeeach.html
-
https://devexpress.github.io/testcafe/documentation/reference/test-api/fixture/aftereach.html
-
https://devexpress.github.io/testcafe/documentation/guides/basic-guides/assert.html
-
https://devexpress.github.io/testcafe/documentation/guides/basic-guides/run-tests.html
-
https://developers.google.com/web/tools/chrome-devtools/device-mode/
TestCafe Wait Mechansim
TestCafe Screenshots and Videos
TestCafe Page Model
-
https://devexpress.github.io/testcafe/documentation/guides/concepts/page-model.html
-
https://devexpress.github.io/testcafe/documentation/reference/configuration-file.html
TestCafe with Data Driven
TestCafe with Cucumber and BDD
TestCafe Reporter
- https://devexpress.github.io/testcafe/documentation/guides/concepts/reporters.html#search-for-reporter-plugins
- https://www.npmjs.com/package/testcafe-reporter-html
Allure Report
TestCafe with Applitools Ultrafast Grid
- https://applitools.com/docs/topics/overview/using-the-ultrafast-grid.html
- https://applitools.com/docs/topics/overview/overview-writing-tests-with-vg.html
- https://applitools.com/tutorials/testcafe.html
- https://github.com/applitools/eyes-testcafe
Add Project to GitHub Adding an existing project to GitHub using the command line
- https://help.github.com/en/github/importing-your-projects-to-github/- adding-an-existing-project-to-github-using-the-command-line
TestCafe with GitHub Actions
- https://help.github.com/en/actions
- https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
- https://github.com/marketplace/actions/run-testcafe
- https://devexpress.github.io/testcafe/documentation/reference/command-line-interface.html
- https://github.com/moatazeldebsy/TestCafe-Github-Action/blob/master/.github/workflows/nodejs.yml
TestCafe with Docker
- https://devexpress.github.io/testcafe/documentation/guides/advanced-guides/use-testcafe-docker-image.html
- https://docs.docker.com/
- https://docs.docker.com/docker-for-mac/install/
- https://docker-curriculum.com/
Run TestCafe on Remote Device
TestCafe with Report Portal