Code Monkey home page Code Monkey logo

tau-advanced-playwright's Introduction

Playwright Tests

Advanced Playwright

Hi ๐Ÿ‘‹๐Ÿฝ!

Welcome to the course "Advanced Playwright" by Renata Andrade for the Test Automation University. If you are new to Playwright, I invite you to a look at the Introduction to Playwright course.

Dependencies

  • Playwright v1.35.1
  • Node v20.3.0
  • npm v9.6.5
  • VSCode Version: 1.79.1 (Universal)
  • Applitools v1.17.5

Pre requirements:

Fork and clone the project

  1. Copy the project URL https://github.com/raptatinha/tau-advanced-playwright.git;
  2. Fork the project following the GitHub instructions - (use the parameter --clone=true);
  3. Access the forked project cd tau-advanced-playwright

NOTE: Remember to add the secrets & variables to your local repo.

Instal the project

IMPORTANT: Create your .env file following the .env.example. The APPLITOOLS_API_KEY is the only param you'll need to uptdate to your credentials.

On your terminal, type:

  1. npm i

Run the project

Take a look at the package.json - scripts for more details. The tests are using https://demoqa.com/

  • npm run test-ui-c runs all tests on chromium (except the auth)
  • npm run test-ui-auth-admin runs profile-stored-auth-multi-role-admin.spec.ts
  • npm run test-ui-auth-user runs profile-stored-auth-multi-role-user.spec.ts
  • npm run test-ui-auth runs profile-stored-auth-multi-role-example.spec.ts (test will fail due to application limitations)
  • npm run test-vrt runs visual-regression.spec.ts - visual regression testing with applitools

Course Content:

Chapter 1: Optimizing authentication

  • Regular authentication with page objects;
  • Stored authentication with global-setup via UI;
  • Stored authentication for multi users;
  • Advanced - auth via API request;

Chapter 2: Dynamic Page Objects & Fixtures

  • Hooks file for reusable page object creation
  • URL builder for dynamic url creation
  • Fixtures file for reusable flows

Chapter 3: Interacting with APIs

  • The APIRequestContext
  • HTTP methods, request options, request URL
  • How to identify an API call and use the swagger
  • Execute request dynamic
  • Error handling
  • Reusability

Chapter 4: Data Management

Chapter 5: Visual Regression with Applitools

  • Implementing a visual regression test
  • Using different check settings
  • Interpreting the results

Chapter 6: Continuous Integration & Observability

  • Github Actions
  • The yml file
  • Slack Integration
  • Parallelization strategy & Sharding

๐Ÿ’ก Share on LinkedIn something interesting you've learned! Don't forget to tag me Renata Andrade.

๐Ÿ’œ If you have questions, feel free to post them on github.

Happy Testing ๐ŸŽญ

tau-advanced-playwright's People

Contributors

lijo-belardi avatar raptatinha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.