- Testsuites contain tests I've created to learn and try new things in website automation.
The code was written in Javascript using Playwright.
The project is not finished and many features are missing.
"Sensitive data" is stored in environment variables using the dotenv package.
To be able to run the tests a .env file must be created and the first 4 values filled with data found on this website https://practicesoftwaretesting.com/ website.
(A env_example template file is included.)
npm init playwright@latest
- Choose JavaScript
- end-to-end tests folder: tests
- Leave everything else on default (Don't override config!)
- Playwright will create an example test file called: "example.spec.js" you can delete it if you wish.
npm install dotenv
- Tokens handle authentication stored in environment variables.
@login_register_serial
@login_register_parallel
@api_serial
@api_paralell
@api_purchase
npx playwright test -g '@login_register_serial'