-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support for pCloudy * bump version * fix azure yaml * fix pCloudy run
- Loading branch information
1 parent
d750877
commit bf270eb
Showing
11 changed files
with
125 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,23 @@ jobs: | |
npm run test-e2e-browserstack | ||
displayName: 'E2E Test' | ||
- job: E2EPluginPCloudy | ||
pool: | ||
vmImage: 'macOS-latest' | ||
|
||
steps: | ||
- task: [email protected] | ||
inputs: | ||
versionSpec: '16.x' | ||
|
||
- script: | | ||
npm ci | ||
export APPIUM_HOME=/tmp/device-farm | ||
./node_modules/.bin/appium plugin install --source=local . | ||
nohup ./node_modules/.bin/appium server -ka 800 --use-plugins=device-farm -pa /wd/hub --config=./serverConfig/pcloudy-config.json & | ||
npm run test-e2e-pCloudy | ||
displayName: 'E2E Test' | ||
- job: BrowserStack | ||
pool: | ||
vmImage: 'macOS-latest' | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"server": { | ||
"port": 31337, | ||
"plugin": { | ||
"device-farm": { | ||
"platform": "both", | ||
"remote": [ | ||
{ | ||
"cloudName": "pCloudy", | ||
"url": "https://device.pcloudy.com/appiumcloud/wd/hub", | ||
"devices": [ | ||
{ | ||
"pCloudy_DeviceManufacturer": "GOOGLE", | ||
"pCloudy_DeviceVersion": "11.0", | ||
"platform": "android" | ||
}, | ||
{ | ||
"pCloudy_DeviceManufacturer": "APPLE", | ||
"pCloudy_DeviceVersion": "15.1", | ||
"platform": "ios" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
enum Cloud { | ||
BROWSERSTACK = 'browserstack', | ||
PCLOUDY = 'pcloudy', | ||
} | ||
|
||
export default Cloud; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
import axios from 'axios'; | ||
import { expect } from 'chai'; | ||
|
||
describe('Browserstack Devices', () => { | ||
it('Should be able to run the android with Browerstack config', async () => { | ||
let androidDevices = (await axios.get('http://localhost:31337/device-farm/api/devices/android')) | ||
.data; | ||
delete androidDevices[0].meta; | ||
delete androidDevices[0]['$loki']; | ||
expect(androidDevices[0]).to.deep.equal({ | ||
platform: 'android', | ||
host: 'https://device.pcloudy.com/appiumcloud/wd/hub', | ||
busy: false, | ||
deviceType: 'real', | ||
capability: { | ||
pCloudy_DeviceManufacturer: 'GOOGLE', | ||
pCloudy_DeviceVersion: '11.0', | ||
platform: 'android', | ||
}, | ||
cloud: 'pCloudy', | ||
pCloudy_DeviceManufacturer: 'GOOGLE', | ||
pCloudy_DeviceVersion: '11.0', | ||
name: 'GOOGLE', | ||
sdk: '11.0', | ||
udid: 'GOOGLE', | ||
offline: false, | ||
}); | ||
}); | ||
|
||
it('Should be able to run the plugin with Browerstack config', async () => { | ||
const status = (await axios.get('http://localhost:31337/device-farm/api/devices')).status; | ||
expect(status).to.be.eql(200); | ||
}); | ||
|
||
it('Should be able to get iOS devices from Browerstack config', async () => { | ||
let iosDevics = (await axios.get('http://localhost:31337/device-farm/api/devices/ios')).data; | ||
delete iosDevics[0].meta; | ||
delete iosDevics[0]['$loki']; | ||
expect(iosDevics[0]).to.deep.equal({ | ||
platform: 'ios', | ||
host: 'https://device.pcloudy.com/appiumcloud/wd/hub', | ||
busy: false, | ||
deviceType: 'real', | ||
capability: { | ||
pCloudy_DeviceManufacturer: 'APPLE', | ||
pCloudy_DeviceVersion: '15.1', | ||
platform: 'ios', | ||
}, | ||
cloud: 'pCloudy', | ||
pCloudy_DeviceManufacturer: 'APPLE', | ||
pCloudy_DeviceVersion: '15.1', | ||
name: 'APPLE', | ||
sdk: '15.1', | ||
udid: 'APPLE', | ||
offline: false, | ||
}); | ||
}); | ||
}); |