Skip to content

Instantly share code, notes, and snippets.

@sauceaaron
Created June 8, 2018 15:13
Show Gist options
  • Save sauceaaron/d6b1e01771d2eee6052ff8b83ca4b1f7 to your computer and use it in GitHub Desktop.
Save sauceaaron/d6b1e01771d2eee6052ff8b83ca4b1f7 to your computer and use it in GitHub Desktop.
package com.briovarx.test;
import com.saucelabs.saucerest.SauceREST;
import java.io.File;
import java.io.IOException;
public class SauceStorage
{
public static void main(String[] args) throws IOException
{
String SAUCE_USERNAME = System.getenv("SAUCE_USERNAME");
String SAUCE_ACCESS_KEY = System.getenv("SAUCE_ACCESS_KEY");
String SAUCE_URL = "https://" + SAUCE_USERNAME + ":" + SAUCE_ACCESS_KEY + "@ondemand.saucelabs.com:443/wd/hub";
SauceREST api = new SauceREST(SAUCE_USERNAME, SAUCE_ACCESS_KEY);
File apk = new File("/Users/aaronevans/clients/UHG/Brx.apk");
api.uploadFile(apk, "BriovaRx.apk", true);
String files = api.getStoredFiles();
System.out.println(files);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment