maximilianoalves / ts-appium-webdriverio-structure

Repo with a project structure using TS + Appium + WebdriverIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Structure for mobile ui tests using ts + appium + webdriverio

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.

Technologies and tools used:

File Structure

📦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

Install and run

  • 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 or npm run full
  • Open report: npm run report

Doubts or improvements !? contact me:

Twitter Medium Linkedin Instagram Facebook

About

Repo with a project structure using TS + Appium + WebdriverIO

License:Apache License 2.0


Languages

Language:TypeScript 65.2%Language:JavaScript 31.8%Language:HTML 1.9%Language:CSS 1.0%