Skip to content

Commit 9e54bdf

Browse files
mattonemfrancisf
authored andcommitted
revert pom.xml
remove useless imports
1 parent 7a0839b commit 9e54bdf

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

pom.xml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<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">
32
<modelVersion>4.0.0</modelVersion>
43

@@ -18,7 +17,6 @@
1817
<surefire.version>2.19.1</surefire.version>
1918
<selenium.version>4.1.4</selenium.version>
2019
<json-simple.version>1.1.1</json-simple.version>
21-
<surefire.plugin.version>3.0.0-M5</surefire.plugin.version>
2220
<config.file>config/sample-local-test.testng.xml</config.file>
2321
</properties>
2422

@@ -58,7 +56,14 @@
5856
<groupId>org.apache.maven.plugins</groupId>
5957
<artifactId>maven-surefire-plugin</artifactId>
6058
<version>${surefire.version}</version>
61-
59+
<configuration>
60+
<suiteXmlFiles>
61+
<suiteXmlFile>${config.file}</suiteXmlFile>
62+
</suiteXmlFiles>
63+
<argLine>
64+
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
65+
</argLine>
66+
</configuration>
6267
</plugin>
6368
<plugin>
6469
<groupId>org.apache.maven.plugins</groupId>
@@ -83,7 +88,9 @@
8388
<suiteXmlFiles>
8489
<suiteXmlFile>config/sample-local-test.testng.xml</suiteXmlFile>
8590
</suiteXmlFiles>
86-
<argLine>-javaagent:${com.browserstack:browserstack-java-sdk:jar}</argLine>
91+
<argLine>
92+
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
93+
</argLine>
8794
</configuration>
8895
</plugin>
8996
</plugins>
@@ -101,29 +108,13 @@
101108
<suiteXmlFiles>
102109
<suiteXmlFile>config/sample-test.testng.xml</suiteXmlFile>
103110
</suiteXmlFiles>
111+
<argLine>
112+
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
113+
</argLine>
104114
</configuration>
105115
</plugin>
106116
</plugins>
107117
</build>
108118
</profile>
109-
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>
122-
</configuration>
123-
</plugin>
124-
</plugins>
125-
</build>
126-
</profile>
127-
128119
</profiles>
129120
</project>

src/test/java/com/browserstack/SeleniumTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import java.net.URL;
44
import java.util.HashMap;
55

6-
import org.openqa.selenium.WebDriver;
7-
import org.openqa.selenium.MutableCapabilities;
8-
import org.openqa.selenium.remote.RemoteWebDriver;
96
import org.testng.annotations.AfterMethod;
107
import org.testng.annotations.BeforeMethod;
118
import org.openqa.selenium.WebDriver;

0 commit comments

Comments
 (0)