Skip to content

Commit 5d94728

Browse files
authored
Merge pull request #4 from kamal-kaur04/migrate-sample-tests-to-bstackdemo
Migrate sample tests to bstackdemo
2 parents f2a12b3 + 9c79409 commit 5d94728

26 files changed

Lines changed: 314 additions & 356 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ hs_err_pid*
2222
logs/
2323
gauge_bin
2424
target/
25+
browserstack.err

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# gauge-java-browserstack
22

3-
[Gauge](http://getgauge.io) Integration with BrowserStack
3+
[Gauge](https://docs.gauge.org/) Integration with BrowserStack
44

55
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
66

77
## Prerequisites
88

99
* [BrowserStack Automate](https://www.browserstack.com/automate) account with at least 4 parallel tests. Signup for a free trial [here](https://www.browserstack.com/users/sign_up).
10-
* [Gauge](http://getgauge.io) should be installed and in $PATH. Latest version of Gauge can be downloaded from [the website](http://getgauge.io/get-started/index.html).
10+
* [Gauge](https://docs.gauge.org/) should be installed and in $PATH. Latest version of Gauge can be downloaded from [the website](https://docs.gauge.org/getting_started/installing-gauge.html?os=macos&language=java&ide=vscode).
1111
* [Maven](http://maven.apache.org/) should be installed and in $PATH. Latest version of Maven can be downloaded from [the website](http://maven.apache.org/install.html).
1212

1313
## Setup
@@ -17,7 +17,8 @@
1717
* Update `env/default/default.properties` with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
1818

1919
## Running the tests
20-
* To run the test suite, run `mvn test`
20+
* To run the sample specs, run `mvn test -P sample-test`
21+
* To run the sample local specs, run `mvn test -P sample-local-test`
2122

2223
## Notes
2324
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)

env/chrome/browserstack.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
BROWSER = Chrome
2-
BROWSER_VERSION = 53
2+
BROWSER_VERSION = latest
33
OS = Windows
4-
OS_VERSION = 8.1
4+
OS_VERSION = 11

env/chrome/commonCaps.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LOCAL = true
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
BROWSER = Chrome
2-
BROWSER_VERSION = 53
2+
BROWSER_VERSION = latest
33
OS = Windows
4-
OS_VERSION = 8.1
4+
OS_VERSION = 11

env/default/default.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
#The path to the gauge reports directory. Should be either relative to the project directory or an absolute path
77
gauge_reports_dir = reports
88

9+
# runner_connection_timeout = 30000
10+
911
#Set as false if gauge reports should not be overwritten on each execution. A new time-stamped directory will be created on each execution.
1012
overwrite_reports = true
1113

14+
enable_multithreading = true
15+
1216
# Set to false to disable screenshots on failure in reports.
1317
screenshot_on_failure = true
1418

1519
# The path to the gauge logs directory. Should be either relative to the project directory or an absolute path
1620
logs_directory = logs
1721

1822
APP_ENDPOINT = http://localhost:8080/
19-
20-
# The credentials associated with your BrowserStack account.
21-
BROWSERSTACK_USERNAME = userName
22-
BROWSERSTACK_ACCESS_KEY = accessKey

env/default/java.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ gauge_custom_build_path =
1010
# you can specify multiple directory names separated with a comma (,)
1111
gauge_additional_libs = libs/*
1212

13-
# JVM argument passed to java while launching
14-
gauge_jvm_args =
15-
1613
# specify the directory containing java files to be compiled
1714
# you can specify multiple directory names separated with a comma (,)
1815
gauge_custom_compile_dir =

env/firefox/browserstack.properties

Lines changed: 0 additions & 4 deletions
This file was deleted.

env/ie/browserstack.properties

Lines changed: 0 additions & 4 deletions
This file was deleted.

env/iphone/browserstack.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
BROWSERNAME = iPhone
22
PLATFORM = MAC
3-
DEVICE = iPhone 6S Plus
3+
DEVICE = iPhone 12 Pro Max

0 commit comments

Comments
 (0)