Created
June 8, 2018 15:13
-
-
Save sauceaaron/d6b1e01771d2eee6052ff8b83ca4b1f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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