Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

[SOL-20] Some readme/access level improvements #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ The helper libraries provide the following functionality:
* Invoke the Sauce REST API to mark a Sauce Job as passed/failed, based on the test result
* Output the Sauce Session Id to the stdout, so that the Sauce Continuous Integration plugins (for Bamboo/Jenkins/Hudson)
can parse the output)
* Provide a com.saucelabs.common.SauceOnDemandAuthentication class, which handles obtaining the Sauce OnDemand user name
and access key from environment variables and/or the filesystem.

For JUnit projects, the library can be added to a project by including the following dependency:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
public class JavaScriptInvokerImpl implements JavaScriptExecutor {
private final WebDriver webDriver;


public JavaScriptInvokerImpl(WebDriver driver)
{
webDriver = driver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class SauceConfiguration {
private String userNameEnvironmentVariableKey;
private String apiKeyEnvironmentVariableName;
public String accessKey;
private String accessKey;

public SauceConfiguration() {
userNameEnvironmentVariableKey = "SAUCE_USERNAME";
Expand Down Expand Up @@ -40,4 +40,7 @@ public String getEnvironmentVariableApiKeyName() {
return apiKeyEnvironmentVariableName;
}

public void setAccessKey(String accessKey) {
this.accessKey = accessKey;
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.saucelabs.common;

public class SauceJavaScriptStrings{
public static String tagsPrefix = "sauce:job-tags=";
public static String sauceContextPrefix = "sauce:context=";
public static String testNamePrefix = "sauce:job-name=";
public static String buildPrefix = "sauce:job-build=";
public static String breakStatement = "sauce: break";
public static String testStatusPrefix = "sauce:job-result=";
public static final String tagsPrefix = "sauce:job-tags=";
public static final String sauceContextPrefix = "sauce:context=";
public static final String testNamePrefix = "sauce:job-name=";
public static final String buildPrefix = "sauce:job-build=";
public static final String breakStatement = "sauce: break";
public static final String testStatusPrefix = "sauce:job-result=";
}