|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
15 | 15 | <maven.compiler.source>1.6</maven.compiler.source> |
16 | 16 | <maven.compiler.target>1.6</maven.compiler.target> |
17 | | - <testng.version>7.4.0</testng.version> |
18 | 17 | <surefire.version>2.19.1</surefire.version> |
19 | | - <selenium.version>3.141.59</selenium.version> |
20 | | - <json-simple.version>1.1.1</json-simple.version> |
21 | | - <browserstack-local-java.version>1.0.6</browserstack-local-java.version> |
22 | | - <config.file>config/local.testng.xml</config.file> |
| 18 | + |
| 19 | + <test.file></test.file> |
| 20 | + <config.file>default</config.file> |
23 | 21 | </properties> |
24 | 22 |
|
25 | 23 | <dependencies> |
26 | 24 | <dependency> |
27 | 25 | <groupId>org.testng</groupId> |
28 | 26 | <artifactId>testng</artifactId> |
29 | | - <version>${testng.version}</version> |
| 27 | + <version>6.9.10</version> |
30 | 28 | </dependency> |
31 | 29 | <dependency> |
32 | 30 | <groupId>commons-io</groupId> |
|
36 | 34 | <dependency> |
37 | 35 | <groupId>org.seleniumhq.selenium</groupId> |
38 | 36 | <artifactId>selenium-java</artifactId> |
39 | | - <version>${selenium.version}</version> |
| 37 | + <version>3.12.0</version> |
40 | 38 | </dependency> |
41 | 39 | <dependency> |
42 | 40 | <groupId>com.browserstack</groupId> |
43 | 41 | <artifactId>browserstack-local-java</artifactId> |
44 | | - <version>${browserstack-local-java.version}</version> |
| 42 | + <version>1.0.3</version> |
45 | 43 | </dependency> |
46 | 44 | <dependency> |
47 | 45 | <groupId>com.googlecode.json-simple</groupId> |
48 | 46 | <artifactId>json-simple</artifactId> |
49 | | - <version>${json-simple.version}</version> |
| 47 | + <version>1.1.1</version> |
50 | 48 | </dependency> |
51 | 49 | </dependencies> |
52 | 50 |
|
|
55 | 53 | <plugin> |
56 | 54 | <groupId>org.apache.maven.plugins</groupId> |
57 | 55 | <artifactId>maven-surefire-plugin</artifactId> |
58 | | - <version>${surefire.version}</version> |
59 | | - <configuration> |
60 | | - <suiteXmlFiles> |
61 | | - <suiteXmlFile>${config.file}</suiteXmlFile> |
62 | | - </suiteXmlFiles> |
63 | | - </configuration> |
64 | | - </plugin> |
65 | | - <plugin> |
66 | | - <groupId>org.apache.maven.plugins</groupId> |
67 | | - <artifactId>maven-compiler-plugin</artifactId> |
68 | | - <configuration> |
69 | | - <source>1.8</source> |
70 | | - <target>1.8</target> |
71 | | - </configuration> |
| 56 | + <version>2.18.1</version> |
72 | 57 | </plugin> |
73 | 58 | </plugins> |
74 | 59 | </build> |
75 | 60 |
|
76 | 61 | <profiles> |
| 62 | + <profile> |
| 63 | + <id>single</id> |
| 64 | + <build> |
| 65 | + <plugins> |
| 66 | + <plugin> |
| 67 | + <groupId>org.apache.maven.plugins</groupId> |
| 68 | + <artifactId>maven-surefire-plugin</artifactId> |
| 69 | + <configuration> |
| 70 | + <suiteXmlFiles> |
| 71 | + <suiteXmlFile>config/single.testng.xml</suiteXmlFile> |
| 72 | + </suiteXmlFiles> |
| 73 | + </configuration> |
| 74 | + </plugin> |
| 75 | + </plugins> |
| 76 | + </build> |
| 77 | + </profile> |
| 78 | + |
77 | 79 | <profile> |
78 | 80 | <id>local</id> |
79 | 81 | <build> |
|
107 | 109 | </plugins> |
108 | 110 | </build> |
109 | 111 | </profile> |
| 112 | + |
| 113 | + <profile> |
| 114 | + <id>suite</id> |
| 115 | + <build> |
| 116 | + <plugins> |
| 117 | + <plugin> |
| 118 | + <groupId>org.apache.maven.plugins</groupId> |
| 119 | + <artifactId>maven-surefire-plugin</artifactId> |
| 120 | + <configuration> |
| 121 | + <suiteXmlFiles> |
| 122 | + <suiteXmlFile>config/suite.testng.xml</suiteXmlFile> |
| 123 | + </suiteXmlFiles> |
| 124 | + </configuration> |
| 125 | + </plugin> |
| 126 | + </plugins> |
| 127 | + </build> |
| 128 | + </profile> |
110 | 129 | </profiles> |
| 130 | + |
111 | 131 | </project> |
0 commit comments