- ๐ Install Node.js: You have to install Node.js, please ensure Node.js and npm are installed on your computer.
- ๐ How to set up?: To install TestCafe:
npm install -g testcafe
- ๐ How to verify the version?: To verify the node.js version you have to type:
node -v
and to verify testcafe version: `testcafe -v - ๐ The IDE is optional: For this project I was working with Visual Studio Code
- ๐ Controller Version: For this project I was using Git
- ๐ป OS: Windows 10 for this project, but you can use it for Linux or MacOS
In this repository you are able to find different kind of E2E testing on the 'http://automationpractice.com' page using testcafe as a testing framewrok. Please follow the steps below in case you want to clone my repo.
- Go to Github
- Go to 'Repositories'
- Search: ProyectoFinal_Testcafe
- Click on "Code"
- Clone the project as HTTPS
- Open your terminal
- Create a folder
- Type:
git clone https://github.com/LuisYairAquino/TestCafe_Bootcamp.git
to copy the entire project.
Browsers: chrome, firefox, edge
- ๐ Run an specific script:
testcafe <browser> <script_name>
- ๐ Run an specific test:
testcafe chrome -e <test.js> -t "name_of_the_test"
- ๐ Run the scripts with 2 or more browsers:
testcafe chrome,firefox <Test.js>
- ๐ฅ Record video:
testcafe <browser> <script_name> --video Video
(Video is the name of the folder where goign to be allowed)
I'm greateful with QA Minds for this bootcamp, this allowed to me to learn more about the tool and how to implement it in my futures jobs