Skip to end of metadata
Go to start of metadata
username The Sauce Labs username that will be used to connect to the servers. If not provided, uses the value of the SAUCE_USERNAME environment variable.
key The Sauce Labs secret key. Since this is a secret, this should not be checked into the source code and may be available as an environment variable. Grunt can access this using process.env.saucekey. Will also default to the SAUCE_ACCESS_KEY environment variable
urlsXAn array or URLs that will be loaded in the browsers, one after another. Since SauceConnect is used, these URLs can also be localhost URLs that are available using the server task from grunt.
build The build number for this test.
testname The name of this test, displayed on the Sauce Labs dashboard.
tags An array of strings, to be added as tags to the test on Sauce Labs.
tunneled Defaults to true. Won't launch a Sauce Connect tunnel if set to false.
tunnelArgs Array of optional arguments to be passed to the Sauce Connect tunnel. Check out Sauce Connect Command Line Reference for more information about what arguments you can use.
sauceConfig Map of extra parameters to be passed to Sauce Labs. Check out Test Configuration and Annotation for more information about the available parameters.
pollInterval Number of milliseconds between each retry to see if a test is completed or not (default: 2000). 
statusCheckAttempts Number of times to attempt to see if a test is completed or not (default: 90). Effectively, your tests have statusCheckAttempts * pollInterval seconds to complete (Thus, 180s by default). Set to -1 to try forever.
throttled Maximum number of unit test pages which will be sent to Sauce Labs concurrently. Exceeding your Sauce Labs' allowed concurrency can lead to test failures if you have a lot of unit test pages.
max-duration Maximum duration of a test, this is actually a Selenium Capability. Sauce Labs defaults to 180 seconds for JavaScript unit tests. 
browsers An array of objects representing the various browsers on which this test should run.
onTestComplete A callback that is called every time a unit test for a page is complete. Runs per page, per browser configuration. Receives two arguments (result, callback)result is the JavaScript object exposed to Sauce Labs as the results of the test. callback must be called, node-style (having arguments errresult where result is a true/false boolean which sets the test result reported to the command line). Check out Using the TestComplete Callback Grunt-Sauce Task Parameter for more information.
maxRetries Specifies how many times the timed out tests should be retried (default: 0). 
public The job visibility level. Defaults to team. Check out Sharing the Results of Sauce Labs Tests for more information.



  • No labels