Configuration - simon-sai/selenium-appium-java GitHub Wiki
Set env
- Create
env-configs.properties
fromenv-configs.properties.default
- Ask your team if you dont have
USERNAME
andPASSWORD
Run demo web
- Go to the root folder of the project, where
pom.xml
exists, and run:
mvn test -P runner -Dcucumber.filter.tags="@google"
- If nothing wrong, Google test cases start running with
BUILD SUCCESS
at 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
appium
server 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.