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.

Robotframework Presentation - Pinoy Python Meetup 2011January12

3,783 views

Published on

Robotframework Presentation of Pinoy Python Users Group Meetup of January 12, 2011

Published in: Technology
  • Be the first to comment

Robotframework Presentation - Pinoy Python Meetup 2011January12

  1. 1. Introduction to Robotframework http://code.google.com/p/robotframework/ by Franz See http://twitter.com/franz_see http://ph.linkedin.com/in/franzsee Pinoy Python Users Group 2011-01-12 Meetup http://groups.google.com/group/pinoy-python-users http://www.facebook.com/group.php?gid=235993924519
  2. 2. Robotframework Introduction <ul><li>What is Robotframework? </li></ul><ul><li>Installation </li></ul><ul><li>Usage </li></ul><ul><li>Custom Robotframework Library </li></ul><ul><li>Q&A </li></ul>
  3. 3. What is Robotframework? <ul><li>Acceptance Testing </li></ul><ul><li>Keyword-Driven </li></ul><ul><li>Written Python </li></ul>
  4. 4. Installation <ul><li>$ pip search robotframework </li></ul><ul><li>robotframework - A keyword-driven acceptance test automation framework </li></ul><ul><li>RobotDriver - RobotFramework support for Bitten </li></ul><ul><li>robotframework-databaselibrary - Database utility library for Robot Framework </li></ul><ul><li>robotframework-seleniumlibrary - Web testing library for Robot Framework </li></ul><ul><li>robotframework-ride - RIDE :: Robot Framework Test Data Editor </li></ul>http://code.google.com/p/robotframework/wiki/Installation http://www.wxpython.org/builddoc.php <ul><li>Pre-requisites: </li></ul><ul><ul><li>Python </li></ul></ul><ul><ul><li>wxPython </li></ul></ul>
  5. 5. Installation <ul><li>$ pip install robotframework </li></ul><ul><li>... </li></ul><ul><li>$ pip install robotframework-ride # IDE for easier robot test editing </li></ul><ul><li>... </li></ul><ul><li>$ pip install robotframework-seleniumlibrary # for web testing </li></ul><ul><li>... </li></ul><ul><li>$ pip install robotframework-databaselibrary # for database verifications </li></ul><ul><li>... </li></ul>
  6. 6. Usage - the test case
  7. 7. Usage - the test case IDE
  8. 8. Usage – running the tests $ pybot -d reports <path-to-robot-test-cases> ============================================================================== Sample Basic Project Test ============================================================================== Sample Basic Project Test.AllTests ============================================================================== Should-be-able-to-login | PASS | ------------------------------------------------------------------------------ Sample Basic Project Test.AllTests | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== Sample Basic Project Test | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== Output: <current-dir> /reports/output.xml Report: <current-dir> /reports/report.html Log: <current-dir>/ reports/log.html
  9. 9. Usage - test results :: pass
  10. 10. Usage - test results :: fail
  11. 11. Usage - test results :: logs
  12. 12. Usage - demo <Demo Time> <Testing a Pinax Cloned Project> <http://pinaxproject.com>
  13. 13. Usage - demo <Demo Time> <Testing a Java Webapp>
  14. 14. Custom Robotframework library <Demo Time> <Robotframework Database Library> <http://franz-see.github.com/Robotframework-Database-Library/>
  15. 15. Custom Robotframework library - distribution <ul><li>$ python setup.py install </li></ul><ul><li>... </li></ul><ul><li>$ python setup.py bdist bdist_wininst </li></ul><ul><li>... </li></ul><ul><li>$ python $PATH_TO_LIBDOC/libdoc.py -o <output_dir> <src_dir> </li></ul><ul><li>... </li></ul><ul><li>$ python setup.py sdist register upload </li></ul><ul><li>... </li></ul>
  16. 16. Questions? Thank you

×