-
Notifications
You must be signed in to change notification settings - Fork 2
/
test-saucelabs.js
51 lines (47 loc) · 1.17 KB
/
test-saucelabs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"use strict";
var SauceLabs = require("test-saucelabs");
var maxDuration = 10800; // seconds, default 1800, max 10800
var commandTimeout = 600; // seconds, default 300, max 600
var idleTimeout = 1000; // seconds, default 90, max 1000
// https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities
var platforms = [{
browserName: "safari",
platform: "OS X 10.13",
version: "11"
}, {
browserName: "MicrosoftEdge",
platform: "Windows 10"
}, {
browserName: "firefox",
platform: "Windows 10",
version: "latest"
}, {
browserName: "googlechrome",
platform: "Windows 10"
}, {
browserName: "Safari",
"appium-version": "1.12.1",
platformName: "iOS",
platformVersion: "12.2",
deviceName: "iPhone XS Simulator"
}];
SauceLabs({
urls: [{
name: "can-query-logic",
url : 'http://localhost:3000/test-ie.html?hidepassed',
platforms: [{
browserName: 'internet explorer',
platform: 'Windows 10',
version: '11.0',
maxDuration: maxDuration,
commandTimeout: commandTimeout,
idleTimeout: idleTimeout
}]
}, {
name: "can-query-logic",
url: "http://localhost:3000/test.html?hidepassed",
platforms: platforms
}],
runInSeries: true,
zeroAssertionsPass: false
});