Skip to content

Commit 7a0839b

Browse files
mattonemfrancisf
authored andcommitted
add browserstack-sdk and dedicated sample-test-browserstack profile
1 parent 8c5e97e commit 7a0839b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
<artifactId>selenium-java</artifactId>
3434
<version>${selenium.version}</version>
3535
</dependency>
36+
<dependency>
37+
<groupId>com.browserstack</groupId>
38+
<artifactId>browserstack-java-sdk</artifactId>
39+
<version>LATEST</version>
40+
<scope>compile</scope>
41+
</dependency>
3642
</dependencies>
3743

3844
<build>
@@ -77,6 +83,7 @@
7783
<suiteXmlFiles>
7884
<suiteXmlFile>config/sample-local-test.testng.xml</suiteXmlFile>
7985
</suiteXmlFiles>
86+
<argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine>
8087
</configuration>
8188
</plugin>
8289
</plugins>
@@ -94,11 +101,29 @@
94101
<suiteXmlFiles>
95102
<suiteXmlFile>config/sample-test.testng.xml</suiteXmlFile>
96103
</suiteXmlFiles>
104+
</configuration>
105+
</plugin>
106+
</plugins>
107+
</build>
108+
</profile>
97109

110+
<profile>
111+
<id>sample-test-browserstack</id>
112+
<build>
113+
<plugins>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-surefire-plugin</artifactId>
117+
<configuration>
118+
<suiteXmlFiles>
119+
<suiteXmlFile>config/sample-test.testng.xml</suiteXmlFile>
120+
</suiteXmlFiles>
121+
<argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine>
98122
</configuration>
99123
</plugin>
100124
</plugins>
101125
</build>
102126
</profile>
127+
103128
</profiles>
104129
</project>

0 commit comments

Comments
 (0)