-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
163 lines (159 loc) · 7.41 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?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">
<groupId>com.pepgo</groupId>
<artifactId>jfwmobile</artifactId>
<version>1.0-DEV-SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>17</java.version>
<!-- Dependency versions -->
<appium-java.version>7.5.1</appium-java.version>
<selenium.version>3.141.59</selenium.version>
<playwright.version>1.15.0</playwright.version>
<testng.version>7.4.0</testng.version>
<extentreports.version>5.0.9</extentreports.version>
<opencsv.version>5.5.2</opencsv.version>
<restassured.version>4.4.0</restassured.version>
<gson.version>2.8.8</gson.version>
<lombok.version>1.18.20</lombok.version>
<!-- Plugin versions -->
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
<!-- Configurable variables -->
<suiteXmlFile>testng_smoke_regression_playwright_rest.xml</suiteXmlFile>
<threads>1</threads>
<remote>false</remote>
<enableDebugMode>false</enableDebugMode>
<appiumServerURL/>
<appiumConfig/>
<screenshotDirectory>${project.build.directory}/screenshots</screenshotDirectory>
<reportDirectory>${project.basedir}/reports</reportDirectory>
<playwrightPDFdirectory>${project.basedir}/playwrightExamplesOutput/pdfs</playwrightPDFdirectory>
<playwrightScreenshotDirectory>${project.basedir}/playwrightExamplesOutput/screenshots</playwrightScreenshotDirectory>
<playwrightTraceDirectory>${project.basedir}/playwrightExamplesOutput/traces</playwrightTraceDirectory>
<playwrightVideoDirectory>${project.basedir}/playwrightExamplesOutput/videos</playwrightVideoDirectory>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<!-- For lombok annotations to resolve -->
<!-- Required for Java 17 only, not for Java 8 or Java 11 -->
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
<version>${maven-compiler-plugin.version}</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium-java.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>${selenium.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.playwright</groupId>
<artifactId>playwright</artifactId>
<version>${playwright.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>${extentreports.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>${opencsv.version}</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>${restassured.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>appiumAlreadyRunning</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
</suiteXmlFiles>
<parallel>methods</parallel>
<threadCount>${threads}</threadCount>
<systemPropertyVariables>
<appiumServerLocation>${appiumServerURL}</appiumServerLocation>
<enableDebugMode>${enableDebugMode}</enableDebugMode>
<screenshotDirectory>${screenshotDirectory}</screenshotDirectory>
<reportDirectory>${reportDirectory}</reportDirectory>
<playwrightPDFdirectory>${playwrightPDFdirectory}</playwrightPDFdirectory>
<playwrightScreenshotDirectory>${playwrightScreenshotDirectory}</playwrightScreenshotDirectory>
<playwrightTraceDirectory>${playwrightTraceDirectory}</playwrightTraceDirectory>
<playwrightVideoDirectory>${playwrightVideoDirectory}</playwrightVideoDirectory>
<remoteDriver>${remote}</remoteDriver>
<appiumConfig>${appiumConfig}</appiumConfig>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>