The mobile application is developed by React-native framework (v.7), simulating a few small businesses:
The Check-out process has 3 serial steps
- Personal information
- Payment information
- Summary information
Noting that the date-of-birth
field has different format in Android and iOS.
The automation framework is using:
- Maven lib: builder tool
- TestNg: test unit framework
- Appium: Mobile UI (
XCUITest and UiAutomator2
drivers) attachingwait-for
add-on. - Allure: Reporter (have to install Allure CLI to generate report)
The test script is following Page-Object-Model
The list of test cases are placed in xml
file under test/source/*.xml
.
The script is run for android
and ios
platforms (2 simulator/emulator at the same time).
At root folder, running command: mvn clean test -Dsuite="mobile-testng"
Phase 1.2: Run test-suite with appium-device-farm
=> all test execution live-streaming to device-farm dashboard
- Please switch to branch
config/appium_config_file
- Please switch to branch
config/remote_driver
- Please switch to branch
test_distribution
So far implement (basically) for iOS simulators. Related to Android emulators, I am facing issues at AppiumTestDistribution/AppiumTestDistribution#1222