Introduction to Robot Framework (external)

21
Robot Framework An Introduction

description

A quick introduction I was giving in HiQ and ESAB.

Transcript of Introduction to Robot Framework (external)

Page 1: Introduction to Robot Framework (external)

Robot FrameworkAn Introduction

Page 2: Introduction to Robot Framework (external)

Agenda

1. basic concepts in Robot Framework2. demo3. pros and cons

Page 3: Introduction to Robot Framework (external)

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)

framework architecture

Test Cases

RF

Test Library

SUT

parsing test data syntax

interaction with SUT

calling functions

Page 5: Introduction to Robot Framework (external)

Simple tabular syntax

Page 6: Introduction to Robot Framework (external)

it can be in HTML

Page 7: Introduction to Robot Framework (external)

also in TSV and plain text

● tip: text-based test case works better with version-control system

Page 8: Introduction to Robot Framework (external)

Test Libraries

How RF translate test cases into actions

Page 9: Introduction to Robot Framework (external)

Test Libraries

How RF translate test cases into actions

Page 10: Introduction to Robot Framework (external)

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)

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)

Basic Element - Keywords

You can define keywords in library...

Page 13: Introduction to Robot Framework (external)

Basic Element - Keywords

...or test cases

Page 14: Introduction to Robot Framework (external)

Different Test Style

Keyword-driven

Page 15: Introduction to Robot Framework (external)

Different Test Style

Data-driven

Page 16: Introduction to Robot Framework (external)

Different Test Style

Behavior-driven

Page 17: Introduction to Robot Framework (external)

Test Execution

tag support

nice test result in HTML

Page 18: Introduction to Robot Framework (external)

Test Execution

nice test result in HTMLfile:///C:/dev/rf/report.html

Page 19: Introduction to Robot Framework (external)

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)

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)

Tack!