Last active
April 6, 2018 18:55
-
-
Save sauceaaron/d8a2e9ac48398863dfac116c5dead7a9 to your computer and use it in GitHub Desktop.
Update test results in Sauce Labs using Javascript executor from WD
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
| var wd = require("wd"); | |
| var username = process.env.SAUCE_USERNAME; | |
| var accessKey = process.env.SAUCE_ACCESS_KEY; | |
| var capabilities = { | |
| platform: "Linux", | |
| browseName: "Chrome", | |
| version: "latest", | |
| name: "Update test results in Sauce Labs using Javascript executor from WD" | |
| } | |
| var browser = wd.remote("ondemand.saucelabs.com", 80, username, accessKey); | |
| browser.init(capabilities, function() { | |
| browser.get("https://saucelabs.com", function() { | |
| browser.execute("sauce:job-result=passed", function() { | |
| browser.quit(); | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment