Uploaded by syahrulg06

serenity tech talk

advertisement
MOBILE AUTOMATION TEST WITH
JAVA, APPIUM & SERENITY
INTRODUCTION
• Serenity BDD is an open source library that aims to make the idea of living
documentation a reality.
• Serenity BDD helps you write cleaner and more maintainable automated
acceptance and regression tests faster.
INTRODUCTION
• Serenity also uses the test results to produce illustrated, narrative reports that
document and describe what your application does and how it works.
• Serenity tells you not only what tests have been executed, but more
importantly, what requirements have been tested.
• One key advantage of using Serenity BDD is that you do not have to invest
time in building and maintaining your own automation framework.
WHAT DID SERENITY GIVES TO US?
• Support many tools of automation test utilities :
• Selenium
• Appium
• RestAssured (API backend automation test)
• Compatibility with page-object-pattern method
• Enhancements/Addons that we can implement easily
• Convert acceptance criteria into automation test
• Easy to learn
• Provides us good reporting format
• And more importantly, it’s an open source community
SERENITY X PAGEOBJECT MODEL
• Feature files
• Step Definitions
• Serenity
• Page objects
FEATURE
STEP DEFINITIONS
SERENITY
PAGE OBJECTS
SERENITY REPORT
JOIN THE COMMUNITY
• https://gitter.im/serenity-bdd/serenity-core
• https://gitter.im/appium/appium
• https://gitter.im/webdriverio/webdriverio
• https://gitter.im/appium/java-client
WHAT NEEDS TO DO?
• For Getting started, we need :
• Java (version 1.8)
• Android Simulator
• SDK
• XCode
• Appium
• Serenity
• Serenity guideline will be added in notion very soon
WHATS NEXT?
• Speedup performance of automation test :
• Try inspect element with accessibilityID instead of xpath
• Create fluent wait method for inspecting element
• Create documentation of utility tools of Appium + serenity
• Parallel automation testing (Android & iOS)
• Integration with monolog
• Integration with CI CD, solutions to propose so far :
• AWS Device farm
• Jenkins
• BrowserStack
• TestRail for dynamic reporting with CI CD
DEMO
Download