All-in-one test automation framework with sample tests against Greenfield test management app.
- Support for Mobile, Web and API testing
- Parallel test execution
- Support for Selenium Grid
- Custom test listeners (support for integration with various APIs)
- Page Object pattern
- Eye candy reports (with screenshots) deployed on standalone server
- TestNG (test runner)
- Appium (mobile testing)
- Selenium (web app testing)
- REST-assured (REST API testing)
- Allure (reporting)
- Deploy Greenfield app as described in https://github.com/maciejd/greenfield-django
- Run Selenium Standalone Chrome node
docker run -d -p 4444:4444 selenium/standalone-chrome:3.0.1-aluminum
- Clone repo with tests
git clone https://github.com/maciejd/appium-selenium-testng-framework.git
- Run
mvn clean test
specyfing the following parameters:
- remote - boolean, run tests against Remote Web Driver
- seleniumGridURL - Selenium Grid / Standalone Node URL, e.g.
http://127.0.0.1:4444/wd/hub
- browser - web browser we want to test agains on, e.g.
chrome
- appUrl - web app base URL, e.g.
127.0.0.1
- suite - test suite to run, filters test by package name (see pom.xml), e.g.
web
If your docker host is at 127.0.0.1
then you'd need to execute the following:
mvn clean test -Dremote=true -DseleniumGridURL=http://127.0.0.1:4444/wd/hub -Dbrowser=chrome -DappUrl=127.0.0.1 -Dsuite=web
TODO
TODO
- Generate report
mvn site
- Deploy jetty
mvn jetty:run
- Reports should be accessible on port 8080