Top Banner
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
16

Robotframework Presentation - Pinoy Python Meetup 2011January12

May 06, 2015

Download

Technology

Franz Allan See

Robotframework Presentation of Pinoy Python Users Group Meetup of January 12, 2011
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Robotframework Presentation - Pinoy Python Meetup 2011January12

Introduction to Robotframeworkhttp://code.google.com/p/robotframework/

by Franz Seehttp://twitter.com/franz_see

http://ph.linkedin.com/in/franzsee

Pinoy Python Users Group2011-01-12 Meetup

http://groups.google.com/group/pinoy-python-usershttp://www.facebook.com/group.php?gid=235993924519

Page 2: Robotframework Presentation - Pinoy Python Meetup 2011January12

Robotframework Introduction

What is Robotframework? Installation Usage Custom Robotframework Library Q&A

Page 3: Robotframework Presentation - Pinoy Python Meetup 2011January12

What is Robotframework?

Acceptance Testing Keyword-Driven Written Python

Page 4: Robotframework Presentation - Pinoy Python Meetup 2011January12

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/Installationhttp://www.wxpython.org/builddoc.php

Pre-requisites:– Python– wxPython

Page 5: Robotframework Presentation - Pinoy Python Meetup 2011January12

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

...

Page 6: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - the test case

Page 7: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - the test case IDE

Page 8: Robotframework Presentation - Pinoy Python Meetup 2011January12

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 failed1 test total, 1 passed, 0 failed==============================================================================Sample Basic Project Test | PASS |1 critical test, 1 passed, 0 failed1 test total, 1 passed, 0 failed==============================================================================Output: <current-dir>/reports/output.xmlReport: <current-dir>/reports/report.htmlLog: <current-dir>/reports/log.html

Page 9: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - test results :: pass

Page 10: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - test results :: fail

Page 11: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - test results :: logs

Page 12: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - demo

<Demo Time>

<Testing a Pinax Cloned Project><http://pinaxproject.com>

Page 13: Robotframework Presentation - Pinoy Python Meetup 2011January12

Usage - demo

<Demo Time>

<Testing a Java Webapp>

Page 14: Robotframework Presentation - Pinoy Python Meetup 2011January12

Custom Robotframeworklibrary

<Demo Time>

<Robotframework Database Library><http://franz-see.github.com/Robotframework-Database-Library/>

Page 15: Robotframework Presentation - Pinoy Python Meetup 2011January12

Custom Robotframeworklibrary - 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

...

Page 16: Robotframework Presentation - Pinoy Python Meetup 2011January12

Questions?

Thank you