169 lines
5.9 KiB
XML
169 lines
5.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.utopiadeals</groupId>
|
|
<artifactId>scat</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<junit.jupiter.version>5.10.2</junit.jupiter.version>
|
|
<playwright.version>1.49.0</playwright.version>
|
|
<jackson.version>2.17.2</jackson.version>
|
|
<surefire.version>3.2.5</surefire.version>
|
|
<log4j.version>2.23.1</log4j.version>
|
|
<extent.reports.versions>5.1.2</extent.reports.versions>
|
|
<slf4j.version>2.0.13</slf4j.version>
|
|
<logback.version>1.5.6</logback.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- JUnit 5 -->
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>${junit.jupiter.version}</version>
|
|
</dependency>
|
|
|
|
<!-- JUnit 5 Params -->
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-params</artifactId>
|
|
<version>${junit.jupiter.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Playwright Java -->
|
|
<dependency>
|
|
<groupId>com.microsoft.playwright</groupId>
|
|
<artifactId>playwright</artifactId>
|
|
<version>${playwright.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Jackson Databind (JSON parsing) -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Optional: JSON annotations -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.13.2</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<version>5.10.2</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- Loggers ! -->
|
|
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.aventstack</groupId>
|
|
<artifactId>extentreports</artifactId>
|
|
<version>${extent.reports.versions}</version>
|
|
</dependency>
|
|
|
|
<!-- SLF4J API -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Logback Implementation -->
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
|
|
<!-- SLF4J Simple Binding (for tests) -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<testResources>
|
|
<testResource>
|
|
<directory>src/test/resources</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>**/*</include> <!-- All files in all subdirectories -->
|
|
</includes>
|
|
</testResource>
|
|
</testResources>
|
|
<plugins>
|
|
<!-- Surefire Plugin for running tests -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${surefire.version}</version>
|
|
<configuration>
|
|
<!-- Enable JUnit 5 Platform -->
|
|
<useModulePath>false</useModulePath>
|
|
<includes>
|
|
<include>**/*Test.java</include>
|
|
<include>**/*Tests.java</include>
|
|
</includes>
|
|
<argLine>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</argLine>
|
|
<!-- 👇 Optional: Run in same JVM for better debugging -->
|
|
<forkCount>0</forkCount>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>dev</id>
|
|
<properties>
|
|
<seller.cosmos.url>https://app.sellercosmos.com/</seller.cosmos.url>
|
|
<env.browser>${env.browser}</env.browser>
|
|
<env.headless>${env.headless}</env.headless>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>qa</id>
|
|
<properties>
|
|
<seller.cosmos.url>https://app.sellercosmos.com/</seller.cosmos.url>
|
|
<env.browser>chrome</env.browser>
|
|
<env.headless>false</env.headless>
|
|
</properties>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
</project> |