File tree Expand file tree Collapse file tree 2 files changed +14
-26
lines changed
src/test/java/com/browserstack Expand file tree Collapse file tree 2 files changed +14
-26
lines changed Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" encoding =" UTF-8" ?>
2
1
<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
2
<modelVersion >4.0.0</modelVersion >
4
3
18
17
<surefire .version>2.19.1</surefire .version>
19
18
<selenium .version>4.1.4</selenium .version>
20
19
<json-simple .version>1.1.1</json-simple .version>
21
- <surefire .plugin.version>3.0.0-M5</surefire .plugin.version>
22
20
<config .file>config/sample-local-test.testng.xml</config .file>
23
21
</properties >
24
22
58
56
<groupId >org.apache.maven.plugins</groupId >
59
57
<artifactId >maven-surefire-plugin</artifactId >
60
58
<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 >
62
67
</plugin >
63
68
<plugin >
64
69
<groupId >org.apache.maven.plugins</groupId >
83
88
<suiteXmlFiles >
84
89
<suiteXmlFile >config/sample-local-test.testng.xml</suiteXmlFile >
85
90
</suiteXmlFiles >
86
- <argLine >-javaagent:${com.browserstack:browserstack-java-sdk:jar} </argLine >
91
+ <argLine >
92
+ -javaagent:${com.browserstack:browserstack-java-sdk:jar}
93
+ </argLine >
87
94
</configuration >
88
95
</plugin >
89
96
</plugins >
101
108
<suiteXmlFiles >
102
109
<suiteXmlFile >config/sample-test.testng.xml</suiteXmlFile >
103
110
</suiteXmlFiles >
111
+ <argLine >
112
+ -javaagent:${com.browserstack:browserstack-java-sdk:jar}
113
+ </argLine >
104
114
</configuration >
105
115
</plugin >
106
116
</plugins >
107
117
</build >
108
118
</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
-
128
119
</profiles >
129
120
</project >
Original file line number Diff line number Diff line change 3
3
import java .net .URL ;
4
4
import java .util .HashMap ;
5
5
6
- import org .openqa .selenium .WebDriver ;
7
- import org .openqa .selenium .MutableCapabilities ;
8
- import org .openqa .selenium .remote .RemoteWebDriver ;
9
6
import org .testng .annotations .AfterMethod ;
10
7
import org .testng .annotations .BeforeMethod ;
11
8
import org .openqa .selenium .WebDriver ;
You can’t perform that action at this time.
0 commit comments