test-platforms

A collection of all available test platforms for SauceLabs

npm install test-platforms
27 downloads in the last month

test-platforms

A collection of all available testing platforms for SauceLabs

API

test-platforms exports the following object:

{ opera:
   [ { platform: 'Windows 2003',
       browserName: 'opera',
       version: '12' },
     { platform: 'Windows 2008',
       browserName: 'opera',
       version: '12' },
     { platform: 'Linux',
       browserName: 'opera',
       version: '12' },
     { platform: 'Windows 2003',
       browserName: 'opera',
       version: '11' },
     { platform: 'Windows 2008',
       browserName: 'opera',
       version: '11' } ],
  'internet explorer':
   [ { platform: 'Windows 2012',
       browserName: 'internet explorer',
       version: '10' },
     { platform: 'Windows 2008',
       browserName: 'internet explorer',
       version: '9' },
     { platform: 'Windows 2003',
       browserName: 'internet explorer',
       version: '8' },
     { platform: 'Windows 2003',
       browserName: 'internet explorer',
       version: '7' },
     { platform: 'Windows 2003',
       browserName: 'internet explorer',
       version: '6' } ],
  firefox:
   [ { platform: 'Linux',
       browserName: 'firefox',
       version: '17' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '17' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '17' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '16' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '16' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '16' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '16' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '15' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '15' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '15' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '15' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '14' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '14' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '14' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '14' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '14' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '13' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '13' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '13' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '13' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '13' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '12' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '12' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '12' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '12' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '12' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '11' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '11' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '11' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '11' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '11' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '10' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '10' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '10' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '10' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '10' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '9' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '9' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '9' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '9' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '9' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '8' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '8' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '8' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '8' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '8' },
     { platform: 'Mac 10.6',
       browserName: 'firefox',
       version: '7' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '7' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '7' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '7' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '7' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '6' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '6' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '6' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '6' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '5' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '5' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '5' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '5' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '4' },
     { platform: 'Windows 2008',
       browserName: 'firefox',
       version: '4' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '4' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '4' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '3.6' },
     { platform: 'Linux',
       browserName: 'firefox',
       version: '3.6' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '3.6' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '3.5' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '3.5' },
     { platform: 'Windows 2012',
       browserName: 'firefox',
       version: '3.0' },
     { platform: 'Windows 2003',
       browserName: 'firefox',
       version: '3.0' } ],
  safari:
   [ { platform: 'Windows 2008',
       browserName: 'safari',
       version: '5' },
     { platform: 'Mac 10.6',
       browserName: 'safari',
       version: '5' } ],
  chrome:
   [ { platform: 'Windows 2003',
       browserName: 'chrome',
       version: null },
     { platform: 'Windows 2008',
       browserName: 'chrome',
       version: null },
     { platform: 'Mac 10.8',
       browserName: 'chrome',
       version: null },
     { platform: 'Mac 10.6',
       browserName: 'chrome',
       version: null },
     { platform: 'Linux',
       browserName: 'chrome',
       version: null } ],
  ipad:
   [ { platform: 'Mac 10.8',
       browserName: 'ipad',
       version: '6' },
     { platform: 'Mac 10.8',
       browserName: 'ipad',
       version: '5.1' },
     { platform: 'Mac 10.6',
       browserName: 'ipad',
       version: '5' },
     { platform: 'Mac 10.6',
       browserName: 'ipad',
       version: '4.3' } ],
  iphone:
   [ { platform: 'Mac 10.8',
       browserName: 'iphone',
       version: '6' },
     { platform: 'Mac 10.8',
       browserName: 'iphone',
       version: '5.1' },
     { platform: 'Mac 10.6',
       browserName: 'iphone',
       version: '5' },
     { platform: 'Mac 10.6',
       browserName: 'iphone',
       version: '4.3' } ],
  android:
   [ { platform: 'Linux',
       browserName: 'android',
       version: '4' } ] }

Each object { os, browser, version } also has the following 2 methods:

toString()

To string is overriden to return a friendly string describing the browser in use. It has special cases for emulators, Chrome (which doesn't let you specify a version) and ie (for which it uses 'internet explorer')

osType()

Returns the short name of the OS type (can be Windows, Linux or Mac).

toURL()

Returns a string suitable to use in a url. e.g. opera/12/windows-2003

npm loves you