- Download latest chromedriver and put under directory /usr/local/bin on Mac OS
-
Project makes use of Serenity framework
-
Execute command mvn clean verify to execute script from command line
-
Consolidated report can be found under /target/site/serenity/index.html
-
Test Cases are automated using BDD approach with help of Cucumber & Selenium
-
PageObject & PageFactory design patterns are used to keep code DRY
-
3 Amigos; first discusses, clarify & write down user stories to be developed,tested & automated under xxx.feature files, which is located under /resources/features/
-
mvn clean verify -Dcucumber.options="src/test/resources/features/SmavaWebAnalyticsUserStories.feature"
This will run single user story which executes whole of registration route to check analytics on each of the pages
-
mvn clean verify -Dcucumber.options="src/test/resources/features/SmavaWebAnalyticsDataTableUserStories.feature"
This will run individual use story for each of the pages under registration route with data table
-
Docker container run
mvn clean verify -Dcucumber.options="src/test/resources/features/SmavaWebAnalyticsDataTableUserStories.feature" -Dwebdriver.remote.url=http://0.0.0.0:4444/wd/hub -Dwebdriver.remote.os=LINUX
-
Block 3rd Party Cookies
mvn -e clean install -Dcucumber.options="src/test/resources/features/SmavaWebAnalyticsDataTableUserStories.feature" -Dchrome_preferences.profile.block_third_party_cookies="true"
-
Block all Cookies
mvn -e clean install -Dcucumber.options="src/test/resources/features/SmavaWebAnalyticsDataTableUserStories.feature" -Dchrome_preferences.profile.block_third_party_cookies="true" -Dchrome_preferences.profile.default_content_setting_values.cookies=2