This repository has been archived by the owner on Sep 19, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview: I have worked mainly in Page Object Model Hybrid Framework. But this was the first time I tried to create a Selenium Cucumber framework with Page Factory Pattern and i enjoyed it. It was a risky move to go down that route but I still wanted to try it. I had to learn on the fly and create and execute the given project. But it was fun and a very good learning experience I would say. But unfortunately I was not able to finish the project completely. As Sunday being Mother's day, I had plans and some other things came up so I couldn't spend enough time as i would have liked too.
I used the following boilerplate for the project: https://github.com/machzqcq/cucumber-jvm-template
Folder Structure:
Test folder mainly consist of two folders: java and resources.
java consist of 4 folders
helper: which has log class
modules: consist of the main logic for the different actions
pageobjects: consist of the elements written in Page Factory Design Pattern
step_definitions: consist of Hook class which controls the opening of chrome browser and step definition classes which executes the Action classes in module folder
resources consist of 1 folder
features: which has the scenarios in gherkin language
Instructions To Run:
Step1: Clone the repo.
Step2: cd Tntp.QAExercise/
Step3: execute command
mvn test
Please make sure you have chrome and maven installed.
Improvements: I would have made some improvements if I had more time. Would have liked to finish all the scenarios. Definitely can cleanup some of the code to improve organization. For state management between step definitions of a given scenario a dependency container should be pulled in to implement the World concept in Cucumber.