Skip to content

01 Quick overview

Ziridis edited this page May 9, 2017 · 13 revisions

Technical requirements

  • Java 8.111
  • selenium 3.0.1
  • restassured 3.0.1
  • ft-test-log 2.0.1
  • Docker (optional)

The factory structure

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.

Root of the Test folder

/src/test/

  • Factory (bellow for more details)
  • Ressources that the config file and the feature files (cucumber)

Root of the factory folder

/src/test/java/com/fanaticaltest/test_factory_demo
CukesRunner.java : Is the glue for Cucumber and the test entry point

"api" folder

/src/test/java/com/fanaticaltest/test_factory_demo/api
Are the commun function used to interact with the api.

"cucumber" folder

/src/test/java/com/fanaticaltest/test_factory_demo/cucumber
Is the implementation of each steps defines in the cucumber file.

"lib" folder

/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.

"page" folder

/src/test/java/com/fanaticaltest/test_factory_demo/page
Are the commun function used to interact with the HTML page

Cucumber