SauceLabs Custom Data
With today’s release of SaunterPHP 1.0.12 and Py.Saunter 0.58 you can mark up your Sauce Labs jobs with ‘custom-data’. You can either do this annotation at a global level, or at the script level. (see this job as an example)
Global
Python – In conf/saunter.ini, add the following section. It is completely optional.
<pre lang="ini">[SauceLabs CustomData]
orange: peel
PHP – In conf/saucelabs.inc, add the custom-data array to the configuration
<pre lang="php"><?php $GLOBALS['saucelabs'] = array(
"username" =?> "your username",
"key" => "your key",
"custom-data" => array(
"execution_number" => "five",
"release" => 1.0
)
);
?>
Script
Python – Per script markup uses a specifically formatted decorator, similar to the one used for marking methods. Just use key=value and it will get set.
<pre lang="python">@pytest.marks('deep', 'ebay', 'meta')
@pytest.mark.saucelabs_customdata(robot=45, monkey=None)
def test_meta(self):
# stuff
PHP – Similarly, for PHP you use a docstring per custom-data value
<pre lang="php">/**
* @test
* @group shallow
* @group ebay
* @sauce-custom-data donkey
* @sauce-custom-data cow moo
* @sauce-custom-data ribbit rabbit super crazy
*/
public function fashion_profile() {
// stuff