-
Notifications
You must be signed in to change notification settings - Fork 2
01 Quick overview
- Java 8.111
- selenium 3.0.1
- restassured 3.0.1
- ft-test-log 2.0.1
- Docker (optional)
This has been developed with IntelliJ, but your could use Eclipse.
The tests and the libs are in a Test folder. So you could have your main in a Java folder. But ideally, you should have in a separate project.
/src/test/
- Factory (bellow for more details)
- Ressources that the config file and the feature files (cucumber)
/src/test/java/com/fanaticaltest/test_factory_demo
CukesRunner.java : Is the glue for Cucumber and the test entry point
/src/test/java/com/fanaticaltest/test_factory_demo/api
Are the commun function used to interact with the api.
/src/test/java/com/fanaticaltest/test_factory_demo/cucumber
Is the implementation of each steps defines in the cucumber file.
/src/test/java/com/fanaticaltest/test_factory_demo/lib
There are severals library that handles the main features:
- BasePage.java : Is a Selenium helper.
- LogTest.java : Allows to record the test result in a database. The service is also availble in github FataticalTest/ft-test-log.
- Property.java : manages the application properties.
- RestApi.java : is a RestAssured helper.
- Stats.java : handles the statistic per scenario.
- Tags.java : handles the cucumber tags.
/src/test/java/com/fanaticaltest/test_factory_demo/page
Are the commun function used to interact with the HTML page
- Check this wiki to understand BDD.
- Check this reference page for how it works.