Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Building Resilient Automated UI Tests for Cloud Applications using Scripless Technonologies

830 views

Published on

This presentation was given by Denis Markovtsev from Inflectra during DevGeekWeek / QA Geek Week in Israel. It discusses the challenges testing a cloud based application (such as a plugin for Office365) that has to run on a constantly changing infrastructure (Azure Cloud Services). It provides solutions for dealing with changing XPATH and UI, so that your tests remain resilient and continue work. It also discusses how use of scriptless technologies allow you to have a mix of programmers and domain specialists on a testing team.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Building Resilient Automated UI Tests for Cloud Applications using Scripless Technonologies

  1. 1. Building Resilient Automated UI Tests for Cloud Based Applications using Scriptless Technologies By Denis Markovtsev Inflectra Corporation
  2. 2. 2 Automated UI testing in uncontrollably improving environment Practical experience
  3. 3. • Many implementation languages • Many UI technologies • Custom UI components • No public access 3 Automated UI testing in uncontrollably improving environment Typical application
  4. 4. 4 Outlook plugin for Office 365
  5. 5. 5 Automated UI testing in uncontrollably improving environment Why test UI in this case? Is it unavoidable?
  6. 6. • Unpredictable updates on Microsoft servers may lead to – Plugin load error – Plugin functional issues • Issues depend on client type and geo location • No logs 6 Updates in the cloud
  7. 7. 7 Automated UI tests are required for monitoring
  8. 8. 8 Automated UI testing in uncontrollably improving environment Resilient & scriptless testing How we test?
  9. 9. • Resistance to changes in application –Reuse of test parts –Elastic XPATH • Stability of execution –Private browsing mode –Physical click 9 Automated UI testing in uncontrollably improving environment Resiliency of tests
  10. 10. 10 Automated UI testing in uncontrollably improving environment //span[@class='badge ng-binding']
  11. 11. 11 Reuse: same tests for Outlook and browsers
  12. 12. • Use attributes: id, class, role • Avoid auto generated ids and classes: _lvv_3, _ariaId_24 • Avoid full xpath /html/body/div[5] • Index may be a good choice: (//div[@role='option'])[1] • Search for text //span[text()='Log In'] 12 Automated UI testing in uncontrollably improving environment Elastic XPATH
  13. 13. 13 Automated UI testing in uncontrollably improving environment Private browsing mode
  14. 14. 14 Automated UI testing in uncontrollably improving environment Physical click • Sometimes event based click is not an option – May not work when it should – May work when it should not
  15. 15. 15 Automated UI testing in uncontrollably improving environment Scriptless technologies • Recording • Web Spy • Rapise Visual Language (RVL)
  16. 16. • Capture user interactions • Generate assertions 16 Automated UI testing in uncontrollably improving environment Recording
  17. 17. 17 Automated UI testing in uncontrollably improving environment Web Spy • Cross-browser • Object picker • XPATH generators
  18. 18. 18 Automated UI testing in uncontrollably improving environment Rapise Visual Language
  19. 19. One Language, Unified Approach 19 Automated UI testing in uncontrollably improving environment solution for automated UI testing Desktop. Web. Mobile.
  20. 20. 20 Automated UI testing in uncontrollably improving environment Get Rapise https://www.inflectra.com/Rapise GitHub https://github.com/Inflectra/office365-outlook- plugin-ui-testing Twitter @dmarkovtsev

×