|
1 |
| -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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"> |
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 | 4 |
|
5 | 5 | <groupId>com.browserstack</groupId>
|
6 |
| - <artifactId>testng-browserstack</artifactId> |
| 6 | + <artifactId>testng-browserstack-android</artifactId> |
7 | 7 | <version>1.0-SNAPSHOT</version>
|
8 | 8 | <packaging>jar</packaging>
|
9 | 9 |
|
|
12 | 12 |
|
13 | 13 | <properties>
|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 15 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 16 | + <maven.compiler.source>1.8</maven.compiler.source> |
15 | 17 | <surefire.version>2.19.1</surefire.version>
|
16 |
| - |
17 |
| - <test.file></test.file> |
| 18 | + <surefire.plugin.version>3.0.0-M5</surefire.plugin.version> |
18 | 19 | <config.file>default</config.file>
|
19 | 20 | </properties>
|
20 | 21 |
|
21 | 22 | <dependencies>
|
22 |
| - <dependency> |
23 |
| - <groupId>org.testng</groupId> |
24 |
| - <artifactId>testng</artifactId> |
25 |
| - <version>6.9.10</version> |
26 |
| - </dependency> |
27 |
| - <dependency> |
28 |
| - <groupId>io.appium</groupId> |
29 |
| - <artifactId>java-client</artifactId> |
30 |
| - <version>7.0.0</version> |
31 |
| - </dependency> |
32 |
| - <dependency> |
33 |
| - <groupId>commons-io</groupId> |
34 |
| - <artifactId>commons-io</artifactId> |
35 |
| - <version>1.3.2</version> |
36 |
| - </dependency> |
37 |
| - <dependency> |
38 |
| - <groupId>org.seleniumhq.selenium</groupId> |
39 |
| - <artifactId>selenium-java</artifactId> |
40 |
| - <version>3.141.59</version> |
41 |
| - </dependency> |
42 |
| - <dependency> |
43 |
| - <groupId>com.browserstack</groupId> |
44 |
| - <artifactId>browserstack-local-java</artifactId> |
45 |
| - <version>1.0.3</version> |
46 |
| - </dependency> |
47 |
| - <dependency> |
48 |
| - <groupId>com.googlecode.json-simple</groupId> |
49 |
| - <artifactId>json-simple</artifactId> |
50 |
| - <version>1.1.1</version> |
51 |
| - </dependency> |
| 23 | + <dependency> |
| 24 | + <groupId>org.testng</groupId> |
| 25 | + <artifactId>testng</artifactId> |
| 26 | + <version>7.5</version> |
| 27 | + </dependency> |
| 28 | + <dependency> |
| 29 | + <groupId>org.seleniumhq.selenium</groupId> |
| 30 | + <artifactId>selenium-java</artifactId> |
| 31 | + <version>4.13.0</version> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>io.appium</groupId> |
| 35 | + <artifactId>java-client</artifactId> |
| 36 | + <version>8.6.0</version> |
| 37 | + </dependency> |
| 38 | + <dependency> |
| 39 | + <groupId>commons-io</groupId> |
| 40 | + <artifactId>commons-io</artifactId> |
| 41 | + <version>2.11.0</version> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>com.googlecode.json-simple</groupId> |
| 45 | + <artifactId>json-simple</artifactId> |
| 46 | + <version>1.1.1</version> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>com.browserstack</groupId> |
| 50 | + <artifactId>browserstack-java-sdk</artifactId> |
| 51 | + <version>LATEST</version> |
| 52 | + <scope>compile</scope> |
| 53 | + </dependency> |
52 | 54 | </dependencies>
|
53 | 55 |
|
54 | 56 | <build>
|
55 | 57 | <plugins>
|
| 58 | + <plugin> |
| 59 | + <artifactId>maven-dependency-plugin</artifactId> |
| 60 | + <version>3.3.0</version> |
| 61 | + <executions> |
| 62 | + <execution> |
| 63 | + <id>getClasspathFilenames</id> |
| 64 | + <goals> |
| 65 | + <goal>properties</goal> |
| 66 | + </goals> |
| 67 | + </execution> |
| 68 | + </executions> |
| 69 | + </plugin> |
56 | 70 | <plugin>
|
57 | 71 | <groupId>org.apache.maven.plugins</groupId>
|
58 | 72 | <artifactId>maven-surefire-plugin</artifactId>
|
59 | 73 | <version>2.22.2</version>
|
| 74 | + <configuration> |
| 75 | + <suiteXmlFiles> |
| 76 | + <suiteXmlFile>src/test/resources/com/browserstack/sample-test.testng.xml</suiteXmlFile> |
| 77 | + </suiteXmlFiles> |
| 78 | + <argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine> |
| 79 | + </configuration> |
60 | 80 | </plugin>
|
61 | 81 | <plugin>
|
62 | 82 | <groupId>org.apache.maven.plugins</groupId>
|
|
72 | 92 |
|
73 | 93 | <profiles>
|
74 | 94 | <profile>
|
75 |
| - <id>first</id> |
76 |
| - <build> |
77 |
| - <plugins> |
78 |
| - <plugin> |
79 |
| - <groupId>org.apache.maven.plugins</groupId> |
80 |
| - <artifactId>maven-surefire-plugin</artifactId> |
81 |
| - <configuration> |
82 |
| - <suiteXmlFiles> |
83 |
| - <suiteXmlFile>src/test/resources/com/browserstack/run_first_test/first.testng.xml</suiteXmlFile> |
84 |
| - </suiteXmlFiles> |
85 |
| - </configuration> |
86 |
| - </plugin> |
87 |
| - </plugins> |
88 |
| - </build> |
89 |
| - </profile> |
90 |
| - |
91 |
| - <profile> |
92 |
| - <id>local</id> |
| 95 | + <id>sample-test</id> |
93 | 96 | <build>
|
94 | 97 | <plugins>
|
95 | 98 | <plugin>
|
96 | 99 | <groupId>org.apache.maven.plugins</groupId>
|
97 | 100 | <artifactId>maven-surefire-plugin</artifactId>
|
98 | 101 | <configuration>
|
99 | 102 | <suiteXmlFiles>
|
100 |
| - <suiteXmlFile>src/test/resources/com/browserstack/run_local_test/local.testng.xml</suiteXmlFile> |
| 103 | + <suiteXmlFile>src/test/resources/com/browserstack/sample-test.testng.xml</suiteXmlFile> |
101 | 104 | </suiteXmlFiles>
|
102 | 105 | </configuration>
|
103 | 106 | </plugin>
|
104 | 107 | </plugins>
|
105 | 108 | </build>
|
106 | 109 | </profile>
|
107 |
| - |
108 | 110 | <profile>
|
109 |
| - <id>parallel</id> |
| 111 | + <id>sample-local-test</id> |
110 | 112 | <build>
|
111 | 113 | <plugins>
|
112 | 114 | <plugin>
|
113 | 115 | <groupId>org.apache.maven.plugins</groupId>
|
114 | 116 | <artifactId>maven-surefire-plugin</artifactId>
|
115 | 117 | <configuration>
|
116 | 118 | <suiteXmlFiles>
|
117 |
| - <suiteXmlFile>src/test/resources/com/browserstack/run_parallel_test/parallel.testng.xml</suiteXmlFile> |
| 119 | + <suiteXmlFile>src/test/resources/com/browserstack/sample-local-test.testng.xml</suiteXmlFile> |
118 | 120 | </suiteXmlFiles>
|
119 | 121 | </configuration>
|
120 | 122 | </plugin>
|
121 | 123 | </plugins>
|
122 | 124 | </build>
|
123 | 125 | </profile>
|
124 | 126 | </profiles>
|
125 |
| - |
126 | 127 | </project>
|
0 commit comments