Date post: | 11-May-2015 |
Category: |
Technology |
Upload: | zhe-li |
View: | 731 times |
Download: | 0 times |
Robot FrameworkAn Introduction
Agenda
1. basic concepts in Robot Framework2. demo3. pros and cons
facts
● keyword-driven test framework
● built on Python○ runs on Jython and IronPython as well
● open source○ released under apache 2.0 license
framework architecture
Test Cases
RF
Test Library
SUT
parsing test data syntax
interaction with SUT
calling functions
Simple tabular syntax
it can be in HTML
also in TSV and plain text
● tip: text-based test case works better with version-control system
Test Libraries
How RF translate test cases into actions
Test Libraries
How RF translate test cases into actions
Test Libraries
It can be written in Python
But you can use Jython or IronPython to be able to use Java or .Net APIs
Remote Libraries
libraries can be written in any languages
communicate with RF using XML-RPC
you can have a "master" computer execute the tests by calling remote libraries running on other computers*(
Basic Element - Keywords
You can define keywords in library...
Basic Element - Keywords
...or test cases
Different Test Style
Keyword-driven
Different Test Style
Data-driven
Different Test Style
Behavior-driven
Test Execution
tag support
nice test result in HTML
Test Execution
nice test result in HTMLfile:///C:/dev/rf/report.html
Crash course at
http://robotframework.googlecode.com/hg/doc/quickstart/quickstart.html
and it is also a test case
(now run a demo on it to show the awesomeness)
To sum up
Proit's very simple to be integrated into CI systemflexible test execution systemyou can extend the test system easily
Conrelatively small community compares to Fitnesse
Tack!