introduction to robot framework

23
Introduction to Robot Framework @chonla Hello, human. September 25, 2014

Upload: chonlasith-jucksriporn

Post on 26-Jun-2015

352 views

Category:

Software


1 download

DESCRIPTION

Introduction to Robot Framework

TRANSCRIPT

Page 1: Introduction to robot framework

Introduction toRobot Framework

@chonla

Hello, human

.

September 25, 2014

Page 2: Introduction to robot framework

Outline

What’s robot framework? Prerequisites Installation First Bot Localized Bot Data Driven Bot Q&A

Page 3: Introduction to robot framework

What’s robot framework?

Robot Framework is a keyword based test automation framework.

It suites for Acceptance Testing and Acceptance Test-Driven Development.

Page 4: Introduction to robot framework

Prerequisites

Python 2.7.x pip Robot Framework Selenium2 Library Requests

Page 5: Introduction to robot framework

Installation

Python 2.7 Go to https://www.python.org/downloads

/ and install the latest version of python in 2.7.x series.

Set environment▪ PYTHON_HOME to python path (C:\Python27)▪ PYTHON_BIN to python script path (C:\

Python27\Scripts)

Page 6: Introduction to robot framework

Installation

Verify installation▪ python --version

Page 8: Introduction to robot framework

Installation

Verify installation▪ pip --version

Page 9: Introduction to robot framework

Installation

Robot Framework Go to https://

code.google.com/p/robotframework/wiki/Installation and install the latest version of Robot Framework.

Page 10: Introduction to robot framework

Installation

Verify installation▪ pybot --version

Page 11: Introduction to robot framework

Installation

Selenium2 Library Open command line and use the

following command to download and install robotframework-selenium2library package▪ pip install robotframework-selenium2library

Page 12: Introduction to robot framework

Installation

Requests Open command line and use the

following command to download and install requests package▪ pip install requests

Page 13: Introduction to robot framework

Installation

Installation problem in Windows x64 via pip. Insert 3 lines marked # new below into

C:\Python27\Lib\mimetypes.py and rerun the installation.

Page 14: Introduction to robot framework

Installation

Here we go.

Page 15: Introduction to robot framework

First Bot

Google Bot

Page 16: Introduction to robot framework

First Bot

Google Bot - Result

Page 17: Introduction to robot framework

Localized Bot

Localized Google Bot

Page 18: Introduction to robot framework

Localized Bot

Localized Google Bot - Result

Page 19: Introduction to robot framework

Localized Bot

Localized Google Bot - Log

Page 20: Introduction to robot framework

Data Driven Bot

Data Driven Google Bot

Page 21: Introduction to robot framework

Data Driven Bot

Data Driven Google Bot - Result

Page 22: Introduction to robot framework

Data Driven Bot

Data Driven Google Bot - Log

Page 23: Introduction to robot framework

Q&A

Anything?