chore: setup testing android version on BrowserStack

This commit is contained in:
Sefa Ilkimen
2019-12-14 04:09:11 +01:00
parent 31b1eee355
commit 21d991b04e
7 changed files with 68 additions and 5 deletions
+17
View File
@@ -56,11 +56,28 @@ const configs = {
deviceName: 'Android Emulator',
autoWebview: true,
app: 'sauce-storage:HttpDemo.apk'
},
// testing on BrowserStack
browserstackIosDevice: {
device: 'iPhone 7',
os_version: '10',
project: 'HTTP Test App',
autoWebview: true,
app: 'HttpTestAppAndroid'
},
browserstackAndroidDevice: {
device: 'Google Nexus 9',
os_version: '5.1',
project: 'HTTP Test App',
autoWebview: true,
app: 'HttpTestAppAndroid'
}
};
function getCaps(environment, os, runtime) {
const key = environment.toLowerCase() + capitalize(os) + capitalize(runtime);
console.log(key);
const caps = configs[key];
caps.name = `cordova-plugin-advanced-http (${os})`;