Hi! This is a project automation Android with study case Eri Bank using Maven, Cucumber, TestNG, Appium, and Selenium
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:
- Annotations. ( Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc...). ( Test that your code is multithreading safe.
- Flexible test configuration.
- Support for data-driven testing (with @DataProvider).
- Support for parameters.
- Powerful execution model (no more TestSuite).
- Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
- Embeds BeanShell for further flexibility.
- Default JDK functions for runtime and logging (no dependencies).
- Dependent methods for application server testing.
TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc...
What things you need to install:
- Java Development Kit 17
- Maven
- Appium
- Docker
- Android Studio
- Portrainer (Additional)
-
- Running Appium Server with command
appium -a 127.0.0.1 -p 4723
- Open the emulator. You can use AVD or real device.
- Open the project using any IDE (Eclipse, IDEA, etc)
- Download sources Maven and update the project
- Running the project using command
mvn clean test
- Running Appium Server with command
-
- Running the Docker Emulator using command
docker-compose up -d
. Wait until completely done. - Check the address container with name
android-9.0
. If different withAndroidDriverInstance.java
, you can change it manually. - Open the project using any IDE (Eclipse, IDEA, etc)
- Download sources Maven and update the project
- Running the project using command
mvn clean test -DandroidDriver=SERVER_HUB
- Running the Docker Emulator using command