|
1 | 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"> |
| 2 | + 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> |
|
12 | 12 |
|
13 | 13 | <properties> |
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
15 | | - <surefire.version>2.19.1</surefire.version> |
| 15 | + <surefire.version>3.0.0-M5</surefire.version> |
16 | 16 |
|
17 | | - <test.file></test.file> |
18 | 17 | <config.file>default</config.file> |
19 | 18 | </properties> |
20 | 19 |
|
21 | 20 | <dependencies> |
22 | | - <dependency> |
23 | | - <groupId>junit</groupId> |
24 | | - <artifactId>junit</artifactId> |
25 | | - <version>4.13.2</version> |
26 | | - </dependency> |
27 | | - <dependency> |
28 | | - <groupId>commons-io</groupId> |
29 | | - <artifactId>commons-io</artifactId> |
30 | | - <version>2.11.0</version> |
31 | | - </dependency> |
32 | | - <dependency> |
33 | | - <groupId>org.seleniumhq.selenium</groupId> |
34 | | - <artifactId>selenium-java</artifactId> |
35 | | - <version>4.4.0</version> |
36 | | - </dependency> |
37 | | - <dependency> |
38 | | - <groupId>io.appium</groupId> |
39 | | - <artifactId>java-client</artifactId> |
40 | | - <version>8.1.1</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> |
| 21 | + <dependency> |
| 22 | + <groupId>junit</groupId> |
| 23 | + <artifactId>junit</artifactId> |
| 24 | + <version>4.13.2</version> |
| 25 | + </dependency> |
| 26 | + <dependency> |
| 27 | + <groupId>commons-io</groupId> |
| 28 | + <artifactId>commons-io</artifactId> |
| 29 | + <version>2.11.0</version> |
| 30 | + </dependency> |
| 31 | + <dependency> |
| 32 | + <groupId>org.seleniumhq.selenium</groupId> |
| 33 | + <artifactId>selenium-java</artifactId> |
| 34 | + <version>4.4.0</version> |
| 35 | + </dependency> |
| 36 | + <dependency> |
| 37 | + <groupId>io.appium</groupId> |
| 38 | + <artifactId>java-client</artifactId> |
| 39 | + <version>8.1.1</version> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>com.googlecode.json-simple</groupId> |
| 43 | + <artifactId>json-simple</artifactId> |
| 44 | + <version>1.1.1</version> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>com.browserstack</groupId> |
| 48 | + <artifactId>browserstack-java-sdk</artifactId> |
| 49 | + <version>LATEST</version> |
| 50 | + <scope>compile</scope> |
| 51 | + </dependency> |
52 | 52 | </dependencies> |
53 | 53 |
|
54 | 54 | <build> |
55 | 55 | <plugins> |
| 56 | + <plugin> |
| 57 | + <groupId>org.apache.maven.plugins</groupId> |
| 58 | + <artifactId>maven-dependency-plugin</artifactId> |
| 59 | + <version>3.3.0</version> |
| 60 | + <executions> |
| 61 | + <execution> |
| 62 | + <id>getClasspathFilenames</id> |
| 63 | + <goals> |
| 64 | + <goal>properties</goal> |
| 65 | + </goals> |
| 66 | + </execution> |
| 67 | + </executions> |
| 68 | + </plugin> |
56 | 69 | <plugin> |
57 | 70 | <groupId>org.apache.maven.plugins</groupId> |
58 | 71 | <artifactId>maven-surefire-plugin</artifactId> |
59 | | - <version>2.22.2</version> |
| 72 | + <version>${surefire.version}</version> |
| 73 | + <configuration> |
| 74 | + <includes> |
| 75 | + <include>com/browserstack/FirstTest.java</include> |
| 76 | + </includes> |
| 77 | + <argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine> |
| 78 | + </configuration> |
60 | 79 | </plugin> |
61 | 80 | <plugin> |
62 | 81 | <groupId>org.apache.maven.plugins</groupId> |
|
72 | 91 |
|
73 | 92 | <profiles> |
74 | 93 | <profile> |
75 | | - <id>first</id> |
| 94 | + <id>sample-test</id> |
76 | 95 | <build> |
77 | 96 | <plugins> |
78 | 97 | <plugin> |
79 | 98 | <groupId>org.apache.maven.plugins</groupId> |
80 | 99 | <artifactId>maven-surefire-plugin</artifactId> |
| 100 | + <version>${surefire.version}</version> |
81 | 101 | <configuration> |
82 | 102 | <includes> |
83 | 103 | <include>com/browserstack/FirstTest.java</include> |
84 | 104 | </includes> |
85 | | - <systemPropertyVariables> |
86 | | - <config>run_first_test/first.conf.json</config> |
87 | | - </systemPropertyVariables> |
| 105 | + <argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine> |
88 | 106 | </configuration> |
89 | 107 | </plugin> |
90 | 108 | </plugins> |
91 | 109 | </build> |
92 | 110 | </profile> |
93 | 111 |
|
94 | 112 | <profile> |
95 | | - <id>local</id> |
| 113 | + <id>sample-local-test</id> |
96 | 114 | <build> |
97 | 115 | <plugins> |
98 | 116 | <plugin> |
99 | 117 | <groupId>org.apache.maven.plugins</groupId> |
100 | 118 | <artifactId>maven-surefire-plugin</artifactId> |
| 119 | + <version>${surefire.version}</version> |
101 | 120 | <configuration> |
102 | 121 | <includes> |
103 | 122 | <include>com/browserstack/LocalTest.java</include> |
104 | 123 | </includes> |
105 | | - <systemPropertyVariables> |
106 | | - <config>run_local_test/local.conf.json</config> |
107 | | - </systemPropertyVariables> |
108 | | - </configuration> |
109 | | - </plugin> |
110 | | - </plugins> |
111 | | - </build> |
112 | | - </profile> |
113 | | - |
114 | | - <profile> |
115 | | - <id>parallel</id> |
116 | | - <build> |
117 | | - <plugins> |
118 | | - <plugin> |
119 | | - <groupId>org.apache.maven.plugins</groupId> |
120 | | - <artifactId>maven-surefire-plugin</artifactId> |
121 | | - <configuration> |
122 | | - <parallel>classes</parallel> |
123 | | - <threadCount>2</threadCount> |
124 | | - <includes> |
125 | | - <include>com/browserstack/FirstTest.java</include> |
126 | | - </includes> |
127 | | - <systemPropertyVariables> |
128 | | - <config>run_parallel_test/parallel.conf.json</config> |
129 | | - </systemPropertyVariables> |
| 124 | + <argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine> |
130 | 125 | </configuration> |
131 | 126 | </plugin> |
132 | 127 | </plugins> |
|
0 commit comments