saucelabs pre run capability

97 views
Skip to first unread message

Michael Maynard

unread,
Aug 28, 2015, 11:28:57 AM8/28/15
to NightwatchJs
This is more of a question than anything, but has anyone ever tried to use the Saucelabs pre run capability? It's supposed to allow a specified script to be run on the Sauce VM before a test is run. The way I am attempting to use it is by using Saucelabs Temporary Storage where I have put my bat file.

I've tried setting this up on my own but so far it doesn't seem to work. I just want to make sure its possible to set the pre run capability with Nightwatch.

My Nightwatch.json:
"production_WIN7_Chrome": {

      "test_workers": {"enabled" : true, "workers" : 10},
      "launch_url": "",
      "prerun" : "sauce-storage:sauceprerun.bat",
      "desiredCapabilities": {
        "browserName": "chrome",
        "platform" : "WIN7",
        "javascriptEnabled": true,
        "acceptSslCerts": true
      }
    },

Link to pre run documentation: 
Reply all
Reply to author
Forward
0 new messages