Simple Cucumber-based Selenium in Java
Functionalities covered:
UI Positive Test Cases:
- Login using valid Facebook
- Login using valid Google+
- User can comment if logged in
UI Negative test cases:
- Login using invalid Facebook
- Login using invalid Google+
- User can not comment if not logged in
Prerequisite: Install maven & chromedriver
- This simple automation test project supports both Chrome and Firefox in parallel
- Modify
TestSuite.xml
according to preferences - List of preferred cucumber folder to run can be edited on runner class(es) E.g.
RunnerLoginFeatures.java
- On terminal
cd
to folder directory and runmvn clean test
to run the tests on test suite
1. Parallel Execution (Firefox and Chrome)
2. One browser test (Commenting articles)
Full video demo can be found here