Para acessar a versão em Português do Brasil, basta clicar aqui! 🇧🇷
This structure is possible to run UI tests for native apps (Android + iOS) using Appium + WebdriverIO.
📦TS-APPIUM-WEBDRIVERIO-STRUCTURE
┣ 📂apps
┃ ┣ 📂android
┃ ┃ ┗ 📜app-android-calculator.apk
┃ ┗ 📂ios
┃ ┃ ┗ 📜SimpleCalculator.app
┣ 📂config
┃ ┣ 📜wdio.android.app.conf.ts
┃ ┣ 📜wdio.ios.app.conf.ts
┃ ┣ 📜wdio.shared.conf.ts
┃ ┗ 📜wdio.shared.local.appium.conf.ts
┣ 📂tests
┃ ┣ 📂helpers
┃ ┃ ┣ 📜Biometrics.ts
┃ ┃ ┣ 📜Constants.ts
┃ ┃ ┣ 📜Gestures.ts
┃ ┃ ┣ 📜Utils.ts
┃ ┃ ┗ 📜WebView.ts
┃ ┣ 📂screenobjects
┃ ┃ ┣ 📂CalculatorScreen
┃ ┃ ┃ ┣ 📜CalculatorScreen.ts
┃ ┃ ┃ ┣ 📜calculator.android.elements.json
┃ ┃ ┃ ┗ 📜calculator.ios.elements.json
┃ ┃ ┗ 📜AppScreen.ts
┃ ┗ 📂specs
┃ ┃ ┗ 📜app.calculator.spec.ts
┣ 📜.editorconfig
┣ 📜.eslintrc.json
┣ 📜.gitignore
┣ 📜LICENSE
┣ 📜README-pt_BR.md
┣ 📜README.md
┣ 📜appium.log
┣ 📜babel.config.js
┣ 📜package-lock.json
┣ 📜package.json
┗ 📜tsconfig.json
- Clone project
git clone https://github.com/maximilianoalves/ts-appium-webdriverio-structure.git
- Run
npm install
- Install Appium on a local machine or if you already had appium installed run
npm link appium
- Set variables Android and iOS on a local machine
- Open and config Android and iOS simulators
- Run tests using
npm run android.app
,npm run ios.app
ornpm run full
- Open report:
npm run report