|
12 | 12 | <url>https://github.com/sayems/java.webdriver</url>
|
13 | 13 |
|
14 | 14 | <properties>
|
15 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
16 | | - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
17 | | - <java.version>10</java.version> |
| 15 | + <browser>chrome</browser> |
| 16 | + <threads>1</threads> |
| 17 | + <selenium.version>3.141.59</selenium.version> |
| 18 | + <testng.version>6.14.3</testng.version> |
| 19 | + <webdriver.manager.version>3.6.2</webdriver.manager.version> |
| 20 | + <junit.jupiter.version>5.4.2</junit.jupiter.version> |
| 21 | + <slf4j.version>1.7.26</slf4j.version> |
| 22 | + <failsafe.plugin.version>2.22.2</failsafe.plugin.version> |
| 23 | + <maven.compiler.version>3.8.1</maven.compiler.version> |
18 | 24 | <maven.compiler.source>${java.version}</maven.compiler.source>
|
19 | 25 | <maven.compiler.target>${java.version}</maven.compiler.target>
|
20 | | - <junit.jupiter.version>5.4.2</junit.jupiter.version> |
| 26 | + <java.version>10</java.version> |
| 27 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 28 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
21 | 29 | </properties>
|
22 | 30 |
|
23 | 31 | <dependencies>
|
24 | 32 | <dependency>
|
25 | 33 | <groupId>org.seleniumhq.selenium</groupId>
|
26 | 34 | <artifactId>selenium-java</artifactId>
|
27 | | - <version>3.141.59</version> |
| 35 | + <version>${selenium.version}</version> |
28 | 36 | </dependency>
|
29 | 37 | <dependency>
|
30 | 38 | <groupId>org.testng</groupId>
|
31 | 39 | <artifactId>testng</artifactId>
|
32 | | - <version>6.14.3</version> |
| 40 | + <version>${testng.version}</version> |
33 | 41 | </dependency>
|
34 | 42 | <dependency>
|
35 | 43 | <groupId>io.github.bonigarcia</groupId>
|
36 | 44 | <artifactId>webdrivermanager</artifactId>
|
37 | | - <version>3.6.2</version> |
| 45 | + <version>${webdriver.manager.version}</version> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>org.slf4j</groupId> |
| 49 | + <artifactId>slf4j-api</artifactId> |
| 50 | + <version>${slf4j.version}</version> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>org.slf4j</groupId> |
| 54 | + <artifactId>slf4j-simple</artifactId> |
| 55 | + <version>${slf4j.version}</version> |
38 | 56 | </dependency>
|
39 | 57 | </dependencies>
|
40 | 58 |
|
41 | | - <build> |
42 | | - <plugins> |
43 | | - <plugin> |
44 | | - <groupId>org.apache.maven.plugins</groupId> |
45 | | - <artifactId>maven-compiler-plugin</artifactId> |
46 | | - <version>3.8.1</version> |
47 | | - <configuration> |
48 | | - <source>${java.version}</source> |
49 | | - <target>${java.version}</target> |
50 | | - </configuration> |
51 | | - </plugin> |
52 | | - </plugins> |
53 | | - </build> |
| 59 | + <profiles> |
| 60 | + <profile> |
| 61 | + <id>selenium</id> |
| 62 | + <activation> |
| 63 | + <activeByDefault>true</activeByDefault> |
| 64 | + </activation> |
| 65 | + <build> |
| 66 | + <plugins> |
| 67 | + <plugin> |
| 68 | + <groupId>org.apache.maven.plugins</groupId> |
| 69 | + <artifactId>maven-compiler-plugin</artifactId> |
| 70 | + <version>${maven.compiler.version}</version> |
| 71 | + <configuration> |
| 72 | + <source>${java.version}</source> |
| 73 | + <target>${java.version}</target> |
| 74 | + </configuration> |
| 75 | + </plugin> |
| 76 | + <plugin> |
| 77 | + <groupId>org.apache.maven.plugins</groupId> |
| 78 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 79 | + <version>${failsafe.plugin.version}</version> |
| 80 | + <configuration> |
| 81 | + <!--You can specify which TestNG groups to run--> |
| 82 | + <!--<groups>regression</groups>--> |
| 83 | + <!--<groups>smoke</groups>--> |
| 84 | + <parallel>methods</parallel> |
| 85 | + <threadCount>${threads}</threadCount> |
| 86 | + <systemPropertyVariables> |
| 87 | + <browser>${browser}</browser> |
| 88 | + </systemPropertyVariables> |
| 89 | + </configuration> |
| 90 | + </plugin> |
| 91 | + </plugins> |
| 92 | + </build> |
| 93 | + </profile> |
| 94 | + </profiles> |
54 | 95 | </project>
|
0 commit comments