2
2
<project xmlns =" http://maven.apache.org/POM/4.0.0"
3
3
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
4
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
- <modelVersion >4.0.0</modelVersion >
6
- <groupId >org.example </groupId >
7
- <artifactId >TestNG_Demo </artifactId >
8
- <version >1.0-SNAPSHOT</version >
5
+ <modelVersion >4.0.0</modelVersion >
6
+ <groupId >com.lambdatest </groupId >
7
+ <artifactId >selenium-manager-demo </artifactId >
8
+ <version >1.0-SNAPSHOT</version >
9
9
10
- <properties >
11
- <maven .compiler.source>1.8</maven .compiler.source>
12
- <maven .compiler.target>1.8</maven .compiler.target>
13
- </properties >
10
+ <properties >
11
+ <selenium-java .version>4.11.0</selenium-java .version>
12
+ <webdrivermanager .version>5.4.1</webdrivermanager .version>
13
+ <testng .version>7.8.0</testng .version>
14
+ <maven .compiler.version>3.11.0</maven .compiler.version>
15
+ <surefire-version >3.1.2</surefire-version >
16
+ <java .release.version>17</java .release.version>
17
+ <maven .source.encoding>UTF-8</maven .source.encoding>
18
+ <suite-xml >test-suite/testng.xml</suite-xml >
19
+ <argLine >-Dfile.encoding=UTF-8 -Xdebug -Xnoagent</argLine >
20
+ </properties >
14
21
15
- <dependencies >
16
- <dependency >
17
- <groupId >org.testng</groupId >
18
- <artifactId >testng</artifactId >
19
- <version >7.6.1</version >
20
- <scope >test</scope >
21
- </dependency >
22
- <dependency >
23
- <groupId >org.slf4j</groupId >
24
- <artifactId >slf4j-nop</artifactId >
25
- <version >1.7.28</version >
26
- <scope >test</scope >
27
- </dependency >
28
- <dependency >
29
- <groupId >org.seleniumhq.selenium</groupId >
30
- <artifactId >selenium-java</artifactId >
31
- <version >4.7.0</version >
32
- </dependency >
33
- <dependency >
34
- <groupId >org.seleniumhq.selenium</groupId >
35
- <artifactId >selenium-chrome-driver</artifactId >
36
- <version >4.7.0</version >
37
- </dependency >
38
- <dependency >
39
- <groupId >junit</groupId >
40
- <artifactId >junit</artifactId >
41
- <version >4.12</version >
42
- <scope >test</scope >
43
- </dependency >
44
- <dependency >
45
- <groupId >org.apache.httpcomponents</groupId >
46
- <artifactId >httpclient</artifactId >
47
- <version >4.5.13</version >
48
- </dependency >
49
- <!-- https://mvnrepository.com/artifact/com.github.sdrss/reportng -->
50
- <dependency >
51
- <groupId >org.uncommons</groupId >
52
- <artifactId >reportng</artifactId >
53
- <version >1.1.4</version >
54
- </dependency >
55
- <dependency >
56
- <groupId >com.google.inject</groupId >
57
- <artifactId >guice</artifactId >
58
- <version >4.2.2</version >
59
- </dependency >
60
- <dependency >
61
- <groupId >org.apache.maven.plugins</groupId >
62
- <artifactId >maven-surefire-plugin</artifactId >
63
- <version >3.0.0-M5</version >
64
- <type >maven-plugin</type >
65
- </dependency >
66
- <!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
67
- <dependency >
68
- <groupId >io.github.bonigarcia</groupId >
69
- <artifactId >webdrivermanager</artifactId >
70
- <version >5.3.0</version >
71
- </dependency >
72
- <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-manager -->
73
- <dependency >
74
- <groupId >org.seleniumhq.selenium</groupId >
75
- <artifactId >selenium-manager</artifactId >
76
- <version >4.7.0</version >
77
- </dependency >
22
+ <dependencies >
23
+ <dependency >
24
+ <groupId >org.seleniumhq.selenium</groupId >
25
+ <artifactId >selenium-java</artifactId >
26
+ <version >${selenium-java.version} </version >
27
+ </dependency >
28
+ <dependency >
29
+ <groupId >org.testng</groupId >
30
+ <artifactId >testng</artifactId >
31
+ <version >${testng.version} </version >
32
+ <scope >test</scope >
33
+ </dependency >
34
+ <!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
35
+ <dependency >
36
+ <groupId >io.github.bonigarcia</groupId >
37
+ <artifactId >webdrivermanager</artifactId >
38
+ <version >${webdrivermanager.version} </version >
39
+ </dependency >
78
40
79
- </dependencies >
80
-
81
- <build >
82
- <defaultGoal >install</defaultGoal >
41
+ </dependencies >
42
+ <build >
83
43
<plugins >
84
44
<plugin >
45
+ <groupId >org.apache.maven.plugins</groupId >
85
46
<artifactId >maven-compiler-plugin</artifactId >
86
- <version >3.7.0 </version >
47
+ <version >${maven.compiler.version} </version >
87
48
<configuration >
88
- <source >1.8</source >
89
- <target >1.8</target >
49
+ <release >${java.release.version} </release >
50
+ <encoding >${maven.source.encoding} </encoding >
51
+ <forceJavacCompilerUse >true</forceJavacCompilerUse >
90
52
</configuration >
91
53
</plugin >
92
54
<plugin >
93
55
<groupId >org.apache.maven.plugins</groupId >
94
56
<artifactId >maven-surefire-plugin</artifactId >
95
- <version >3.0.0-M5</version >
57
+ <version >${surefire-version} </version >
58
+ <executions >
59
+ <execution >
60
+ <goals >
61
+ <goal >test</goal >
62
+ </goals >
63
+ </execution >
64
+ </executions >
96
65
<configuration >
97
- <properties > <property >
98
- <name >usedefaultlisteners</name >
99
- <value >false</value >
100
- </property >
66
+ <useSystemClassLoader >false</useSystemClassLoader >
67
+ <properties >
101
68
<property >
102
- <name >listener</name >
103
- <value >org.uncommons.reportng.HTMLReporter,
104
- org.uncommons.reportng.JUnitXMLReporter
105
- </value >
106
- </property > </properties >
69
+ <name >usedefaultlisteners</name >
70
+ <value >false</value >
71
+ </property >
72
+ </properties >
107
73
<suiteXmlFiles >
108
- <!-- TestNG suite XML files -->
109
- <suiteXmlFile >testng.xml</suiteXmlFile >
74
+ <suiteXmlFile >${suite-xml} </suiteXmlFile >
110
75
</suiteXmlFiles >
76
+ <argLine >${argLine} </argLine >
111
77
</configuration >
112
78
</plugin >
113
- <plugin >
114
- <groupId >org.apache.maven.plugins</groupId >
115
- <artifactId >maven-surefire-report-plugin</artifactId >
116
- <version >3.0.0-M5</version >
117
- </plugin >
118
79
</plugins >
119
80
</build >
120
81
</project >
0 commit comments