Skip to content

Commit 00f0778

Browse files
Mukul GuptaMukul Gupta
authored andcommitted
first commit
1 parent d08293f commit 00f0778

21 files changed

Lines changed: 491 additions & 1 deletion

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
*.class
4+
5+
# BlueJ files
6+
*.ctxt
7+
8+
# Mobile Tools for Java (J2ME)
9+
.mtj.tmp/
10+
11+
# Package Files #
12+
*.jar
13+
*.war
14+
*.ear
15+
16+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
17+
hs_err_pid*
18+
19+
.idea
20+
.gauge
21+
22+
logs/
23+
gauge_bin
24+
target/

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
# gauge-java-browserstack
1+
# gauge-browserstack
2+
3+
[Gauge](http://getgauge.io) Integration with BrowserStack
4+
5+
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
6+
7+
## Prerequisites
8+
9+
* [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).
11+
* [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).
12+
13+
## Setup
14+
15+
* Clone the repo
16+
* Install dependencies `mvn compile`
17+
* Update `env/default/default.properties` with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
18+
19+
## Running the tests
20+
* To run the test suite, run `mvn test`
21+
22+
## Notes
23+
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
24+
* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/java#setting-os-and-browser)
25+
26+
## Additional Resources
27+
* [Documentation for writing Automate test scripts in Java](https://www.browserstack.com/automate/java)
28+
* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)
29+
* [Browsers & mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)
30+
* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)

env/chrome/browserstack.properties

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

env/default/default.properties

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# default.properties
2+
# properties set here will be available to the test execution as environment variables
3+
4+
# sample_key = sample_value
5+
6+
#The path to the gauge reports directory. Should be either relative to the project directory or an absolute path
7+
gauge_reports_dir = reports
8+
9+
#Set as false if gauge reports should not be overwritten on each execution. A new time-stamped directory will be created on each execution.
10+
overwrite_reports = true
11+
12+
# Set to false to disable screenshots on failure in reports.
13+
screenshot_on_failure = true
14+
15+
# The path to the gauge logs directory. Should be either relative to the project directory or an absolute path
16+
logs_directory = logs
17+
18+
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# Specify an alternate Java home if you want to use a custom version
3+
gauge_java_home =
4+
5+
# IntelliJ and Eclipse out directory will be usually autodetected
6+
# Use the below property if you need to override the build path
7+
gauge_custom_build_path =
8+
9+
# specify the directory where additional libs are kept
10+
# you can specify multiple directory names separated with a comma (,)
11+
gauge_additional_libs = libs/*
12+
13+
# JVM argument passed to java while launching
14+
gauge_jvm_args =
15+
16+
# specify the directory containing java files to be compiled
17+
# you can specify multiple directory names separated with a comma (,)
18+
gauge_custom_compile_dir =
19+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BROWSER = Firefox
2+
BROWSER_VERSION = 45
3+
OS = Windows
4+
OS_VERSION = 8.1

env/ie/browserstack.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BROWSER = IE
2+
BROWSER_VERSION = 11
3+
OS = Windows
4+
OS_VERSION = 8.1

env/iphone/browserstack.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
BROWSERNAME = iPhone
2+
PLATFORM = MAC
3+
DEVICE = iPhone 6S Plus

gauge-browserstack.iml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10+
<excludeFolder url="file://$MODULE_DIR$/target" />
11+
</content>
12+
<orderEntry type="inheritedJdk" />
13+
<orderEntry type="sourceFolder" forTests="false" />
14+
<orderEntry type="library" name="Maven: com.thoughtworks.gauge:gauge-java:0.5.1" level="project" />
15+
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
16+
<orderEntry type="library" name="Maven: org.reflections:reflections:0.9.10" level="project" />
17+
<orderEntry type="library" name="Maven: com.google.guava:guava:15.0" level="project" />
18+
<orderEntry type="library" name="Maven: org.javassist:javassist:3.19.0-GA" level="project" />
19+
<orderEntry type="library" name="Maven: com.google.code.findbugs:annotations:2.0.1" level="project" />
20+
<orderEntry type="library" name="Maven: com.github.javaparser:javaparser-core:2.3.0" level="project" />
21+
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
22+
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
23+
<orderEntry type="library" name="Maven: commons-io:commons-io:2.4" level="project" />
24+
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
25+
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:2.6.1" level="project" />
26+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-java:3.0.1" level="project" />
27+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-chrome-driver:3.0.1" level="project" />
28+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-remote-driver:3.0.1" level="project" />
29+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-api:3.0.1" level="project" />
30+
<orderEntry type="library" name="Maven: cglib:cglib-nodep:3.2.4" level="project" />
31+
<orderEntry type="library" name="Maven: org.apache.commons:commons-exec:1.3" level="project" />
32+
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.3.1" level="project" />
33+
<orderEntry type="library" name="Maven: net.java.dev.jna:jna-platform:4.1.0" level="project" />
34+
<orderEntry type="library" name="Maven: net.java.dev.jna:jna:4.1.0" level="project" />
35+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-edge-driver:3.0.1" level="project" />
36+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-firefox-driver:3.0.1" level="project" />
37+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-ie-driver:3.0.1" level="project" />
38+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-opera-driver:3.0.1" level="project" />
39+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-safari-driver:3.0.1" level="project" />
40+
<orderEntry type="library" name="Maven: io.netty:netty:3.5.7.Final" level="project" />
41+
<orderEntry type="library" name="Maven: org.seleniumhq.selenium:selenium-support:3.0.1" level="project" />
42+
<orderEntry type="library" name="Maven: net.sourceforge.htmlunit:htmlunit:2.23" level="project" />
43+
<orderEntry type="library" name="Maven: xalan:xalan:2.7.2" level="project" />
44+
<orderEntry type="library" name="Maven: xalan:serializer:2.7.2" level="project" />
45+
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.4" level="project" />
46+
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.2" level="project" />
47+
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.4" level="project" />
48+
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.5.2" level="project" />
49+
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.10" level="project" />
50+
<orderEntry type="library" name="Maven: net.sourceforge.htmlunit:htmlunit-core-js:2.23" level="project" />
51+
<orderEntry type="library" name="Maven: net.sourceforge.htmlunit:neko-htmlunit:2.23" level="project" />
52+
<orderEntry type="library" name="Maven: xerces:xercesImpl:2.11.0" level="project" />
53+
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
54+
<orderEntry type="library" name="Maven: net.sourceforge.cssparser:cssparser:0.9.20" level="project" />
55+
<orderEntry type="library" name="Maven: org.w3c.css:sac:1.3" level="project" />
56+
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
57+
<orderEntry type="library" name="Maven: com.codeborne:phantomjsdriver:1.3.0" level="project" />
58+
<orderEntry type="library" name="Maven: org.eclipse.jetty.websocket:websocket-client:9.2.15.v20160210" level="project" />
59+
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-util:9.2.15.v20160210" level="project" />
60+
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-io:9.2.15.v20160210" level="project" />
61+
<orderEntry type="library" name="Maven: org.eclipse.jetty.websocket:websocket-common:9.2.15.v20160210" level="project" />
62+
<orderEntry type="library" name="Maven: org.eclipse.jetty.websocket:websocket-api:9.2.15.v20160210" level="project" />
63+
</component>
64+
</module>

0 commit comments

Comments
 (0)