This project is a Java-based application that uses Spring Boot and Playwright to perform automated tests on the registration functionality of an e-commerce website.
src/main/java/com/example/playwright/PlaywrightApplication.java
: The main entry point for the Spring Boot application.src/main/java/com/example/playwright/RegistrationTests.java
: Contains the Playwright tests for the registration functionality..gitignore
: Specifies files and directories to be ignored by Git.
- Java 11 or higher
- Maven
- Node.js and npm (for Playwright)
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install Playwright:
npm install -D @playwright/test
-
Build the project using Maven:
mvn clean install
To run the Playwright tests, execute the RegistrationTests
class:
mvn exec:java -Dexec.mainClass="com.example.playwright.RegistrationTests"