- make sure that you have the latest version of node installed, preferably using nvm and node 14
- run
npm installto install all dependencies - upload the apps from the apps folder to the Sauce Storage on Staging
This project has Appium 1 and Appium 2 tests, execute the following commands to make it work
| Appium Version | OS | App/Browser | Driver | Command |
|---|---|---|---|---|
| Appium 1 | Android | UiAutomator2 | App | npm run appium1.android |
| Appium 1 | Android | UiAutomator2 | Browser | npm run appium1.android.browser |
| Appium 2 | Android | UiAutomator2 | App | npm run appium2.android |
| Appium 2 | Android | UiAutomator2 | Browser | npm run appium2.android.browser |
| Appium 2 | Android | Flutter | App | npm run appium2.android.flutter |
| Appium 2 | Android | AxeUiAutomator2 | App | npm run appium2.android.deque |
| Appium 1 | iOS | XCUITest | App | npm run appium1.ios |
| Appium 1 | iOS | XCUITest | Browser | npm run appium1.ios.browser |
| Appium 2 | iOS | XCUITest | App | npm run appium2.ios |
| Appium 2 | iOS | XCUITest | Browser | npm run appium2.ios.browser |
| Appium 2 | iOS | AxeXCUITest | App | npm run appium2.ios.deque |
NOTE There is no flutter test for iOS. This is not needed because there is only one flutter driver that is for Android and iOS. This means that when the flutter driver is working for Android it will work for iOS as well.
- TEST_SCRIPT : the name of the script we need to run it should be on of the following :
- appium1.android
- appium1.android.browser
- appium2.android
- appium2.android.browser
- appium2.android.flutter
- appium2.android.deque
- appium1.ios
- appium1.ios.browser
- appium2.ios
- appium2.ios.browser
- appium2.ios.deque
- USERNAME : sauce username used to run those tests
- ACCESS_KEY : access key for the selected username
- APPIUM_URL : appium url
- DEQUE_API_KEY: deque api key