Robotframework Presentation - Pinoy Python Meetup 2011January12

  • 2,583 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,583
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
82
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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. Robotframework Introduction
    • What is Robotframework?
    • Installation
    • Usage
    • Custom Robotframework Library
    • Q&A
  • 3. What is Robotframework?
    • Acceptance Testing
    • Keyword-Driven
    • Written Python
  • 4. Installation
    • $ pip search robotframework
    • robotframework - A keyword-driven acceptance test automation framework
    • RobotDriver - RobotFramework support for Bitten
    • robotframework-databaselibrary - Database utility library for Robot Framework
    • robotframework-seleniumlibrary - Web testing library for Robot Framework
    • robotframework-ride - RIDE :: Robot Framework Test Data Editor
    http://code.google.com/p/robotframework/wiki/Installation http://www.wxpython.org/builddoc.php
    • Pre-requisites:
      • Python
      • wxPython
  • 5. Installation
    • $ pip install robotframework
    • ...
    • $ pip install robotframework-ride # IDE for easier robot test editing
    • ...
    • $ pip install robotframework-seleniumlibrary # for web testing
    • ...
    • $ pip install robotframework-databaselibrary # for database verifications
    • ...
  • 6. Usage - the test case
  • 7. Usage - the test case IDE
  • 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. Usage - test results :: pass
  • 10. Usage - test results :: fail
  • 11. Usage - test results :: logs
  • 12. Usage - demo <Demo Time> <Testing a Pinax Cloned Project> <http://pinaxproject.com>
  • 13. Usage - demo <Demo Time> <Testing a Java Webapp>
  • 14. Custom Robotframework library <Demo Time> <Robotframework Database Library> <http://franz-see.github.com/Robotframework-Database-Library/>
  • 15. Custom Robotframework library - distribution
    • $ python setup.py install
    • ...
    • $ python setup.py bdist bdist_wininst
    • ...
    • $ python $PATH_TO_LIBDOC/libdoc.py -o <output_dir> <src_dir>
    • ...
    • $ python setup.py sdist register upload
    • ...
  • 16. Questions? Thank you