Configuration - simon-sai/selenium-appium-java GitHub Wiki
Set env
- Create
env-configs.propertiesfromenv-configs.properties.default - Ask your team if you dont have
USERNAMEandPASSWORD
Run demo web
- Go to the root folder of the project, where
pom.xmlexists, and run:
mvn test -P runner -Dcucumber.filter.tags="@google"
- If nothing wrong, Google test cases start running with
BUILD SUCCESSat the end.
Run demo Android
- Connect to a real device or start a simulator, then open a terminal and run:
appium
-
Make sure your apppium successfully runs with drivers.: flutter-integration, uiautomator2
-
If you have only 1 device connected, Appium will use that one.
-
If you have more than one, you need to set the device name in the env file.
-
To get device name, run command below:
adb devices
- Now, open a new termial while the
appiumserver is still working and run:mvn test -P runner -Dcucumber.filter.tags="@demoAndroid"
- You will see a few scenarios run; if any of them fail, you need to talk to the QA Leader.
If you finish all steps above, your local is ready to work with. Congratulation.