@moquality/farms
v0.0.11
Published
Library to query to various devicefarms
Downloads
4
Readme
Library to query to various devicefarms
SauceLabs
const SauceLabs = require('@moquality/farms/saucelabs')
const sauce = new SauceLabs(testobject_username, testobject_apikey)
const report = await sauce.getReport(testobject_test_report_id)
const devices = await sauce.devices()
Devicefarm
const AWSDeviceFarm = require('@moquality/farms/devicefarm')
const devicefarm = new AWSDeviceFarm({
accessKeyId,
secretAccessKey,
region,
})
const androidDevices = await devicefarm.listDevices('android').then((d) => d.devices)
const iOSDevices = await devicefarm.listDevices('ios').then((d) => d.devices)
MobileLabs
const MobileLabs = require('@moquality/farms/mobilelabs')
const mlab = new MobileLabs(host, username, apikey)
const devices = await mlab.DeviceAvailable()