|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
1 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
2 | | - 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 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 5 | <modelVersion>4.0.0</modelVersion> |
4 | 6 |
|
5 | 7 | <groupId>com.browserstack</groupId> |
|
15 | 17 | <maven.compiler.source>1.8</maven.compiler.source> |
16 | 18 | <maven.compiler.target>1.8</maven.compiler.target> |
17 | 19 | <testng.version>7.4.0</testng.version> |
18 | | - <surefire.version>2.19.1</surefire.version> |
19 | 20 | <selenium.version>4.1.4</selenium.version> |
20 | | - <json-simple.version>1.1.1</json-simple.version> |
| 21 | + <browserstack.sdk.version>1.53.3</browserstack.sdk.version> |
21 | 22 | <config.file>config/login-test.testng.xml</config.file> |
22 | 23 | </properties> |
23 | 24 |
|
|
26 | 27 | <groupId>org.testng</groupId> |
27 | 28 | <artifactId>testng</artifactId> |
28 | 29 | <version>${testng.version}</version> |
| 30 | + <scope>test</scope> |
29 | 31 | </dependency> |
30 | 32 | <dependency> |
31 | 33 | <groupId>org.seleniumhq.selenium</groupId> |
|
35 | 37 | <dependency> |
36 | 38 | <groupId>com.browserstack</groupId> |
37 | 39 | <artifactId>browserstack-java-sdk</artifactId> |
38 | | - <version>LATEST</version> |
| 40 | + <version>${browserstack.sdk.version}</version> |
39 | 41 | <scope>compile</scope> |
40 | 42 | </dependency> |
41 | 43 | </dependencies> |
42 | 44 |
|
43 | 45 | <build> |
44 | 46 | <plugins> |
45 | 47 | <plugin> |
| 48 | + <groupId>org.apache.maven.plugins</groupId> |
46 | 49 | <artifactId>maven-dependency-plugin</artifactId> |
| 50 | + <version>3.1.0</version> |
47 | 51 | <executions> |
48 | 52 | <execution> |
49 | 53 | <id>getClasspathFilenames</id> |
|
53 | 57 | </execution> |
54 | 58 | </executions> |
55 | 59 | </plugin> |
| 60 | + |
56 | 61 | <plugin> |
57 | 62 | <groupId>org.apache.maven.plugins</groupId> |
58 | | - <artifactId>maven-surefire-plugin</artifactId> |
59 | | - <version>${surefire.version}</version> |
| 63 | + <artifactId>maven-compiler-plugin</artifactId> |
| 64 | + <version>3.8.1</version> |
60 | 65 | <configuration> |
61 | | - <suiteXmlFiles> |
62 | | - <suiteXmlFile>${config.file}</suiteXmlFile> |
63 | | - </suiteXmlFiles> |
64 | | - <argLine> |
65 | | - -javaagent:${com.browserstack:browserstack-java-sdk:jar} |
66 | | - </argLine> |
| 66 | + <source>1.8</source> |
| 67 | + <target>1.8</target> |
67 | 68 | </configuration> |
68 | 69 | </plugin> |
| 70 | + |
69 | 71 | <plugin> |
70 | 72 | <groupId>org.apache.maven.plugins</groupId> |
71 | | - <artifactId>maven-compiler-plugin</artifactId> |
| 73 | + <artifactId>maven-surefire-plugin</artifactId> |
| 74 | + <version>2.22.2</version> |
72 | 75 | <configuration> |
73 | | - <source>${maven.compiler.source}</source> |
74 | | - <target>${maven.compiler.target}</target> |
| 76 | + <suiteXmlFiles> |
| 77 | + <suiteXmlFile>${config.file}</suiteXmlFile> |
| 78 | + </suiteXmlFiles> |
| 79 | + <argLine>-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine> |
75 | 80 | </configuration> |
76 | 81 | </plugin> |
77 | 82 | </plugins> |
|
89 | 94 | <suiteXmlFiles> |
90 | 95 | <suiteXmlFile>config/loan-test.testng.xml</suiteXmlFile> |
91 | 96 | </suiteXmlFiles> |
92 | | - <argLine> |
93 | | - -javaagent:${com.browserstack:browserstack-java-sdk:jar} |
94 | | - </argLine> |
95 | | - </configuration> |
96 | | - </plugin> |
97 | | - </plugins> |
98 | | - </build> |
99 | | - </profile> |
100 | | - |
101 | | - <profile> |
102 | | - <id>login-test</id> |
103 | | - <build> |
104 | | - <plugins> |
105 | | - <plugin> |
106 | | - <groupId>org.apache.maven.plugins</groupId> |
107 | | - <artifactId>maven-surefire-plugin</artifactId> |
108 | | - <configuration> |
109 | | - <suiteXmlFiles> |
110 | | - <suiteXmlFile>config/login-test.testng.xml</suiteXmlFile> |
111 | | - </suiteXmlFiles> |
112 | | - <argLine> |
113 | | - -javaagent:${com.browserstack:browserstack-java-sdk:jar} |
114 | | - </argLine> |
115 | | - </configuration> |
116 | | - </plugin> |
117 | | - </plugins> |
118 | | - </build> |
119 | | - </profile> |
120 | | - |
121 | | - <profile> |
122 | | - <id>kyc-test</id> |
123 | | - <build> |
124 | | - <plugins> |
125 | | - <plugin> |
126 | | - <groupId>org.apache.maven.plugins</groupId> |
127 | | - <artifactId>maven-surefire-plugin</artifactId> |
128 | | - <configuration> |
129 | | - <suiteXmlFiles> |
130 | | - <suiteXmlFile>config/kyc-test.testng.xml</suiteXmlFile> |
131 | | - </suiteXmlFiles> |
132 | | - <argLine> |
133 | | - -javaagent:${com.browserstack:browserstack-java-sdk:jar} |
134 | | - </argLine> |
| 97 | + <argLine>-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine> |
135 | 98 | </configuration> |
136 | 99 | </plugin> |
137 | 100 | </plugins> |
138 | 101 | </build> |
139 | 102 | </profile> |
140 | | - </profiles> |
| 103 | + </profiles> |
141 | 104 | </project> |
0 commit comments