-
Notifications
You must be signed in to change notification settings - Fork 8
Developer Guide
amitmindstix edited this page Jan 15, 2018
·
10 revisions
- A module is a set of distinct features like cart, gallery etc.
- Features under cart module could be checkout, addtowishlist etc.
- Each feature can have scenarios. e.g. Checkout single product, Checkout multiple products
- Each module would have its own sub folder and subpackage.
- All feature files will reside under its module.
- All test classes (step definitions) reside under sub package for that module.
- All test classes will be named as
<Featurename>Test.java - Each scenario can have one or more tags. Typically tags include module, feature, test-type, test-priority
- e.g.
@cart @checkout @singleproduct @smoke @medium - Tags can also be given at feature file level (typically module and feature level tags)
- All POM classes kept under
pagepackage and extend fromBasePage - Test data related POJOs kept under
datapackage - Utilities are under
utilspackage - All test data is kept under
src/test/resources/testdatafolder - Selectors are kept under
test/resources/selectors.properties - Logging configuration exists in
log4j.properties - Runner classes are kept under
runnerpackage - Step definitions are under
stepdefinitionpackage. May contain sub folders for modules.