Mobile Architecture - GeekyAnts/ga-wdio GitHub Wiki
Boiler Plate Design:
- The design contains
/src/
which contains all the necessary files for the boilerplate, and this folder contains directories like common, helpers, test & xpath.
src/common
directory contains all the logic that is requires for a specific component or page.
src/helpers
directory contains reusable functions / modules.
src/test
directory contains all the test cases.
src/xpath
directory contains the xpaths for the different kinds of platform & this is why we have added three more directories into it.
- We have also added the xpath function in which will return the function depending on the driver type from your xpath sub-directories.
src/xpath/web
contains the web xpaths
src/xpath/ios
contains the ios xpaths
src/xpath/android
contains the android xpaths
Folder Structure:
├── conf
├── src
│ ├── common
│ ├── helpers
│ ├── test
│ └── xpath
│ ├── android
│ ├── ios
│ ├── web
│ └── index.js
├── store
└── .env