Git Product home page Git Product logo

playwright-typescript-automation's Introduction

playwright-typescript-automation

This Playwright Typescript Automation repository has Playwright UI and API demo automation code for the Cubecart demo application and Petstore API

how to use this Playwright Typescript code repository

  1. You should have installed Nodejs on your PC. If you have not installed the Nodejs application, visit the website below to install. https://nodejs.org/en/download
  2. in the terminal, type the command below to install all the dependencies.

npm install

cubecart demo url

https://www.cubecart.com/demo You can find the cubecart demo admin page url on the link above.

Petstore API website

https://petstore.swagger.io/

test cases

  • admin user should be able to add a new customer
  • admin user should see a customer link
  • User should be able to see the order link
  • example test for title verification
  • example test for get started link verification
  • example test for community link verification

API test cases

  • admin user should be able to submit a new pet with a post request
  • admin user should be able to find pets with a get request
  • admin user should be able to update an existing pet with a put request
  • admin user should be able to delete a pet with a delete request

to execute the Playwright UI and API framework

check out the code and run the command below.

  • npx playwright test --headed (run the test with a browser mode)
  • npx playwright test (run the test with a headless mode with 5 workers)
  • npx playwright test --headed --workers 1 (run the test with a browser mode with 1 worker)

execution result

you can see the test execution report by typing the command below in the terminal

npx playwright show-report

Note: you should see 52 test cases

playwright-typescript-automation's People

Contributors

dolkuntarim avatar

Stargazers

Jessica Babcock avatar

Watchers

 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.