Introduction to robot framework
-
Upload
chonlasith-jucksriporn -
Category
Software
-
view
347 -
download
1
description
Transcript of Introduction to robot framework
![Page 1: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/1.jpg)
Introduction toRobot Framework
@chonla
Hello, human
.
September 25, 2014
![Page 2: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/2.jpg)
Outline
What’s robot framework? Prerequisites Installation First Bot Localized Bot Data Driven Bot Q&A
![Page 3: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/3.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/4.jpg)
Prerequisites
Python 2.7.x pip Robot Framework Selenium2 Library Requests
![Page 5: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/6.jpg)
Installation
Verify installation▪ python --version
![Page 7: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/7.jpg)
Installation
Pip Go to http://
pip.readthedocs.org/en/latest/installing.html, download getpip.py and install the latest version of pip via getpip.py.
![Page 8: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/8.jpg)
Installation
Verify installation▪ pip --version
![Page 9: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/10.jpg)
Installation
Verify installation▪ pybot --version
![Page 11: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/11.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/12.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/13.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/14.jpg)
Installation
Here we go.
![Page 15: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/15.jpg)
First Bot
Google Bot
![Page 16: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/16.jpg)
First Bot
Google Bot - Result
![Page 17: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/17.jpg)
Localized Bot
Localized Google Bot
![Page 18: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/18.jpg)
Localized Bot
Localized Google Bot - Result
![Page 19: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/19.jpg)
Localized Bot
Localized Google Bot - Log
![Page 20: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/20.jpg)
Data Driven Bot
Data Driven Google Bot
![Page 21: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/21.jpg)
Data Driven Bot
Data Driven Google Bot - Result
![Page 22: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/22.jpg)
Data Driven Bot
Data Driven Google Bot - Log
![Page 23: Introduction to robot framework](https://reader036.fdocuments.us/reader036/viewer/2022081720/558d13c7d8b42a9e5d8b470c/html5/thumbnails/23.jpg)
Q&A
Anything?