Test Framework For Air Canada
Test Framework For Air Canada
Adonis Celestine
ABOUT THE SPEAKER
Adonis Celestine
Adonis has more than 10 years of industry experience in Software Testing. He has good
expertise on Software Test automation and consultation.
Adonis is passionate about test innovations and making testing simpler and more interesting.
He has implemented this framework for multiple projects on a large scale and in this
presentation he shares the experience, best practices and challenges in using this framework.
CUCUMBER
Cucumber is a leading BDD tool which lets software development teams
describe how software should behave in a business readable domain
specific language.
PROTRACTOR
Protractor is an E2E test tool developed by google to test Angular
applications.
CUCUMBER SANDWICH
Cucumber Sandwich generates awesome html reports on the fly. It
monitors your Cucumber json report directory for changes & generates
the report.
WHY NEW FRAMEWORK
Test Reporting
BEHAVIOUR DRIVEN DEVELOPMENT
GIVEN– Some
preconditions
WHEN– an
BDD event occurs A programmers mind
Travel(“market”);
If(isPresent(“egg”)){
buyMilk(6);
} else {
THEN– you see buyMilk(1);
an outcome }
Examples:
Test Data
BDD IS TDD done right It’s the language the business understands
PROTRACTOR
BDD Test Reporting
Browser Driver
Angular locators Multi browser capabilities E2E Test the whole chain
ng-binding, ng-
repeat, ng-
textarea, ng-model
, WaitForAngular
PROTRACTOR IN AN ANGULAR PAGE
The Feature file The Config file
browser.element(by.xpath(“(//input[@name=‘search’])”).sendKeys(“Amsterdam”).then(call
back);
}); Demo
PROTRACTOR IN A NON ANGULAR PAGE
browser.ignore
Acts like Synchronization
Selenium = true
browser.driver
Use a wait
instead of
function driver
More identifiers
Applications
Switches that will be
between migrated to
angular and angular in
non angular future
pages
Demo
PROTRACTOR ON MOBILE
Demo
CHALLENGES
THE BEST PRACTICES & TIPS
Visual Review
Accessibility testing
Debugging
REFERENCES
https://angular.github.io/protractor/
https://cucumber.io/
https://www.linkedin.com/profile/view?id=AAMAAAbro_EBdKrNNLuUAOzF3KxGRpDkWydxp
uE&trk=hp-identity-name
http://testautomation.applitools.com/post/94994807787/protractor-vs-selenium-which-is-
easier