This is a Playwright API testing framework designed to demonstrate playwright api testing example
- Playwright API Testing
- Download and install Node.js
- Download and install any Text Editor like Visual Code/Sublime/Brackets
- Clone the repository into a folder
- Go to Project root directory and install Dependency:
npm install
- All the dependencies from package.json would be installed in node_modules folder.
- Go to Visual Code Preference > Setting and search
formatOnSave
and enable/ON it.
- Go to the Project root directory and run command:
npm test
- Go to the Project root directory and run command:
npx playwright test tests/01_post_static_data.spec.js
- Go to the Project root directory:
./playwright-report/index.html