introduction to robot framework (external)
DESCRIPTION
A quick introduction I was giving in HiQ and ESAB.TRANSCRIPT
![Page 1: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/1.jpg)
Robot FrameworkAn Introduction
![Page 2: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/2.jpg)
Agenda
1. basic concepts in Robot Framework2. demo3. pros and cons
![Page 3: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/3.jpg)
facts
● keyword-driven test framework
● built on Python○ runs on Jython and IronPython as well
● open source○ released under apache 2.0 license
![Page 4: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/4.jpg)
framework architecture
Test Cases
RF
Test Library
SUT
parsing test data syntax
interaction with SUT
calling functions
![Page 5: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/5.jpg)
Simple tabular syntax
![Page 6: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/6.jpg)
it can be in HTML
![Page 7: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/7.jpg)
also in TSV and plain text
● tip: text-based test case works better with version-control system
![Page 8: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/8.jpg)
Test Libraries
How RF translate test cases into actions
![Page 9: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/9.jpg)
Test Libraries
How RF translate test cases into actions
![Page 10: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/10.jpg)
Test Libraries
It can be written in Python
But you can use Jython or IronPython to be able to use Java or .Net APIs
![Page 11: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/11.jpg)
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*(
![Page 12: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/12.jpg)
Basic Element - Keywords
You can define keywords in library...
![Page 13: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/13.jpg)
Basic Element - Keywords
...or test cases
![Page 14: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/14.jpg)
Different Test Style
Keyword-driven
![Page 15: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/15.jpg)
Different Test Style
Data-driven
![Page 16: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/16.jpg)
Different Test Style
Behavior-driven
![Page 17: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/17.jpg)
Test Execution
tag support
nice test result in HTML
![Page 18: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/18.jpg)
Test Execution
nice test result in HTMLfile:///C:/dev/rf/report.html
![Page 19: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/19.jpg)
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)
![Page 20: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/20.jpg)
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
![Page 21: Introduction to Robot Framework (external)](https://reader034.vdocuments.site/reader034/viewer/2022050804/5550237ab4c905af648b553b/html5/thumbnails/21.jpg)
Tack!