Robotframework Presentation - Pinoy Python Meetup 2011January12

Post on 06-May-2015

2889 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

Transcript

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

Robotframework Introduction

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

What is Robotframework?

Acceptance Testing Keyword-Driven Written Python

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

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

...

Usage - the test case

Usage - the test case IDE

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

Usage - test results :: pass

Usage - test results :: fail

Usage - test results :: logs

Usage - demo

<Demo Time>

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

Usage - demo

<Demo Time>

<Testing a Java Webapp>

Custom Robotframeworklibrary

<Demo Time>

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

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

...

Questions?

Thank you

top related