Skip to content

Repository files navigation

ui_api_toolshop

  • 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.)

Playwright


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.

dotenv


npm install dotenv

Authentication and Authorization

  • Tokens handle authentication stored in environment variables.

Test @tags:


@login_register_serial

@login_register_parallel

@api_serial

@api_paralell

@api_purchase

example command to run from terminal

npx playwright test -g '@login_register_serial'

About

Testing UI and API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages