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.

Gordon crowbar autotestsuite (2)

40 views

Published on

autotesting

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Gordon crowbar autotestsuite (2)

  1. 1. Gordon Collection of autotests for Crowbar
  2. 2. Problem - In cloud part of the QA Maintenance team we’re spending a lot of time on web application tests; - Also we need to run those tests at least twice: before and after each update; - Usually we don’t have much time for automation because of number of updates in our queue So hackweek is ideal time to get our hand dirty with automation!
  3. 3. Goals: - To automate repeatable web-page testing tasks - To simulate simple user’s actions (drag&drop, form filling, etc.. ) - Create at least POC during this hackweek - Learn more useful python tricks
  4. 4. Tools
  5. 5. Selenium Selenium automates browsers. That's it!
  6. 6. Splinter Splinter is an open source tool for testing web applications using Python. It lets you automate browser actions, such as visiting URLs and interacting with their items.
  7. 7. Why not just selenium without splinter? To fill out a form field with Splinter: browser.fill('username', 'janedoe') In Selenium, the equivalent code would be: elem = browser.find_element.by_name('username') elem.send_keys('janedoe')
  8. 8. … plus - Splinter is an abstraction layer, it supports multiple web automation backends: - Chrome, Firefox - Phantomjs, zope.testbrowser
  9. 9. Links https://github.com/Evalle/gordon https://hackweek.suse.com/14/projects/1384
  10. 10. Results - POC was created; - Gordon can simulate typical user behavior (drag & drop, form filling etc...) on Crowbar page; - ~ 60 tests were written.
  11. 11. Still to be done: - cover whole Crowbar page with tests; - adapt Gordon for SUSE Cloud 5 and SUSE OpenStack Cloud 7 - get more hackers involved in this project; - cleanup and refactoring (it’s still POC); - put everything into container, because doh!
  12. 12. Contacts Email: eshmarnev@suse.com irc:/// Evgeny Github: Evalle SUSE: QAM Prague office, room #3.57
  13. 13. Thank you...
  14. 14. … and I hope that we will find all these guys

×