Skip to content

Commit ec0f1ae

Browse files
Ankit098francisf
authored andcommitted
chore: rename tests, update pom
1 parent 8aad361 commit ec0f1ae

File tree

5 files changed

+40
-8
lines changed

5 files changed

+40
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.settings/
55
target/
66
browserstack.err
7+
logs/

browserstack.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ source: java-playwright-browserstack:sample-sdk:v1.0
3434
platforms:
3535
- os: OS X
3636
osVersion: Big Sur
37-
browserName: Chrome
37+
browserName: chrome
3838
browserVersion: latest
3939
- os: Windows
4040
osVersion: 10
41-
browserName: Edge
41+
browserName: playwright-firefox
42+
browserVersion: latest
43+
- os: OS X
44+
osVersion: catalina
45+
browserName: playwright-webkit
4246
browserVersion: latest
43-
- deviceName: Samsung Galaxy S22 Ultra
44-
browserName: chrome # Try 'samsung' for Samsung browser
45-
osVersion: 12.0
4647

4748
# =======================
4849
# Parallels per Platform

pom.xml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,36 @@
7676
<scope>compile</scope>
7777
</dependency>
7878
</dependencies>
79+
<build>
80+
<plugins>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-dependency-plugin</artifactId>
84+
<executions>
85+
<execution>
86+
<id>getClasspathFilenames</id>
87+
<goals>
88+
<goal>properties</goal>
89+
</goals>
90+
</execution>
91+
</executions>
92+
</plugin>
93+
<plugin>
94+
<groupId>org.apache.maven.plugins</groupId>
95+
<artifactId>maven-surefire-plugin</artifactId>
96+
<version>${maven-surefire-plugin}</version>
97+
<configuration>
98+
<includes>
99+
<include>${tests.single}</include>
100+
</includes>
101+
<argLine>
102+
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
103+
</argLine>
104+
<testFailureIgnore>false</testFailureIgnore>
105+
</configuration>
106+
</plugin>
107+
</plugins>
108+
</build>
79109
<profiles>
80110
<profile>
81111
<id>local</id>
@@ -87,7 +117,7 @@
87117
<version>3.0.0-M5</version>
88118
<configuration>
89119
<includes>
90-
<include>${tests.tests.local}</include>
120+
<include>${tests.local}</include>
91121
</includes>
92122
<testFailureIgnore>false</testFailureIgnore>
93123
<argLine>

src/test/java/tests/LocalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public class LocalTest extends BstackRunner {
99

1010
@Test
11-
void sampleTest() {
11+
void bstackSampleLocalTest() {
1212
try {
1313
page.navigate("http://bs-local.com:45454/");
1414
String validateContent = page.title();

src/test/java/tests/SampleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public class SampleTest extends BstackRunner {
99

1010
@Test
11-
void sampleTest() {
11+
void bstackSampleTest() {
1212
try {
1313
page.navigate("https://bstackdemo.com/");
1414
String product_name = page.locator("//*[@id='1']/p").textContent();

0 commit comments

Comments
 (0)