Running Tests in Playwright Java
# Run all tests
mvn clean test
# Run with specific tags
mvn test -Dcucumber.filter.tags="@smoke"
# Run with specific environment
mvn test -DbaseUrl=https://staging.ultimateqa.comExample:
mvn test -DbaseUrl=https://staging.ultimateqa.com -Dbrowser=firefox -Dheadless=trueRunning Tests in Playwright
Now you can run the tests in several ways:
- Run all tests in headless mode:
npm test- Run tests in headed mode (browser visible):
npm run test:headed- Run tests with Playwright UI mode (interactive):
npm run test:ui- Run tests in debug mode:
npm run test:debug