-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selenium grid support - file upload fix; some browserstack support
- Loading branch information
1 parent
1b30f9a
commit 368d22e
Showing
8 changed files
with
133 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ build/* | |
*.iws | ||
*.iml | ||
*.ipr | ||
**/application-default.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...eb-quickstart-more-examples/src/acceptance/resources/config/application-browserstack.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
com.roche.spock.geb: | ||
base-url: http://gebish.org | ||
# change to "docker" to enable Docker-based browser execution | ||
# browser-type: docker | ||
browser-type: browserstack | ||
browser: | ||
browser-stack: | ||
username: [TODO] | ||
access-key: [TODO] | ||
browser-name: Chrome | ||
options: | ||
os: Windows | ||
osVersion: 10 | ||
browserVersion: 125 | ||
resolution: 1920x1080 | ||
projectName: Geb Spock | ||
debug: true | ||
networkLogs: true | ||
telemetryLogs: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
spock-geb-quickstart/src/main/java/com/roche/spock/geb/config/BrowserStackConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package com.roche.spock.geb.config; | ||
|
||
import java.util.Map; | ||
|
||
public class BrowserStackConfiguration { | ||
|
||
private final String username; | ||
private final String accessKey; | ||
private final String local; | ||
private final String localIdentifier; | ||
private final String build; | ||
private final String name; | ||
private final String browser = "chrome"; | ||
private final String os = "Windows"; | ||
private final String osVersion = "10"; | ||
private final String browserVersion = "125"; | ||
private final Map<String, Object> options; | ||
private final String browserName; | ||
|
||
|
||
public BrowserStackConfiguration(String username, String accessKey, String local, String localIdentifier, String build, String name, Map<String, Object> options, String browserName) { | ||
this.username = username; | ||
this.accessKey = accessKey; | ||
this.local = local; | ||
this.localIdentifier = localIdentifier; | ||
this.build = build; | ||
this.name = name; | ||
this.options = options; | ||
this.browserName = browserName; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public String getAccessKey() { | ||
return accessKey; | ||
} | ||
|
||
public String isLocal() { | ||
return local; | ||
} | ||
|
||
public String getLocalIdentifier() { | ||
return localIdentifier; | ||
} | ||
|
||
public String getBuild() { | ||
return build; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getBrowser() { | ||
return browser; | ||
} | ||
|
||
public String getOs() { | ||
return os; | ||
} | ||
|
||
public String getOsVersion() { | ||
return osVersion; | ||
} | ||
|
||
public String getBrowserVersion() { | ||
return browserVersion; | ||
} | ||
|
||
public Map<String, Object> getOptions() { | ||
return options; | ||
} | ||
|
||
public String getBrowserName() { | ||
return browserName; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
spock-geb-quickstart/src/main/java/com/roche/spock/geb/config/BrowserType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.roche.spock.geb.config; | ||
|
||
public enum BrowserType { | ||
local, docker, grid | ||
local, docker, grid, browserstack | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters