Skip to content

Commit c2d9696

Browse files
2 parents 040f582 + 9238bed commit c2d9696

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

browserstack.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ accessKey: YOUR_ACCESS_KEY
1919
buildName: browserstack-build-1
2020
# Use `projectName` to set the name of your project. Example, Marketing Website
2121
projectName: BrowserStack Samples
22+
# Use `framework` to set the framework of your project. Example, testng, cucumber, cucumber-testng
23+
framework: testng
2224

2325
# =======================================
2426
# Platforms (Browsers / Devices to test)
@@ -28,11 +30,11 @@ projectName: BrowserStack Samples
2830
platforms:
2931
- os: OS X
3032
osVersion: Big Sur
31-
browser: Chrome
33+
browserName: Chrome
3234
browserVersion: latest
3335
- os: Windows
3436
osVersion: 10
35-
browser: Edge
37+
browserName: Edge
3638
browserVersion: latest
3739
- device: Samsung Galaxy S22 Ultra
3840
browserName: chrome # Try 'samsung' for Samsung browser
@@ -55,7 +57,7 @@ parallelsPerPlatform: 1
5557
# ==========================================
5658
# Set browserStackLocal to true if your website under test is not accessible publicly over the internet
5759
# Learn more about how BrowserStack Local works here -> https://www.browserstack.com/docs/automate/selenium/local-testing-introduction
58-
browserstackLocal: false # <boolean> (Default false)
60+
browserstackLocal: true # <boolean> (Default false)
5961
# browserStackLocalOptions:
6062
# Options to be passed to BrowserStack local in-case of advanced configurations
6163
# - localIdentifier: # <string> (Default: null) Needed if you need to run multiple instances of local.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repositories { mavenCentral() }
77
dependencies {
88
implementation 'org.testng:testng:7.4.0'
99
implementation 'commons-io:commons-io:1.3.2'
10-
implementation 'org.seleniumhq.selenium:selenium-java:3.141.59'
10+
implementation 'org.seleniumhq.selenium:selenium-java:4.1.4'
1111
implementation 'com.browserstack:browserstack-local-java:1.0.6'
1212
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
1313
compileOnly 'com.browserstack:browserstack-java-sdk:latest.release'

pom.xml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
<maven.compiler.target>1.8</maven.compiler.target>
1717
<testng.version>7.4.0</testng.version>
1818
<surefire.version>2.19.1</surefire.version>
19-
<selenium.version>3.141.59</selenium.version>
19+
<selenium.version>4.1.4</selenium.version>
2020
<json-simple.version>1.1.1</json-simple.version>
21-
<browserstack-local-java.version>1.0.6</browserstack-local-java.version>
22-
<config.file>config/sample-test.testng.xml</config.file>
21+
<config.file>config/sample-local-test.testng.xml</config.file>
2322
</properties>
2423

2524
<dependencies>
@@ -28,26 +27,11 @@
2827
<artifactId>testng</artifactId>
2928
<version>${testng.version}</version>
3029
</dependency>
31-
<dependency>
32-
<groupId>commons-io</groupId>
33-
<artifactId>commons-io</artifactId>
34-
<version>1.3.2</version>
35-
</dependency>
3630
<dependency>
3731
<groupId>org.seleniumhq.selenium</groupId>
3832
<artifactId>selenium-java</artifactId>
3933
<version>${selenium.version}</version>
4034
</dependency>
41-
<dependency>
42-
<groupId>com.browserstack</groupId>
43-
<artifactId>browserstack-local-java</artifactId>
44-
<version>${browserstack-local-java.version}</version>
45-
</dependency>
46-
<dependency>
47-
<groupId>com.googlecode.json-simple</groupId>
48-
<artifactId>json-simple</artifactId>
49-
<version>${json-simple.version}</version>
50-
</dependency>
5135
<dependency>
5236
<groupId>com.browserstack</groupId>
5337
<artifactId>browserstack-java-sdk</artifactId>

0 commit comments

Comments
 (0)