SlideShare a Scribd company logo
ROBOT
FRAMEWORK
Onur Baskirt
Who am I?
ā–Ŗ I am Onur Başkırt
ā–Ŗ Currently, Head of SW Testing at Kariyer.net
ā–Ŗ Co-owner of www.swtestacademy.com and a Test Hive Member 
ā–Ŗ Formerly, Teknosa, Ericsson, Huawei, ST-Ericsson, BahƧeşehir University
Table of Contents
ā–Ŗ What is Robot Framework?
ā–Ŗ Robot Framework Architecture and Test Flow
ā–Ŗ Libraries
ā–Ŗ Tools
ā–Ŗ How to install Robot Framework on Windows?
ā–Ŗ Robot Framework Usage with an Example
What is Robot Framework?
ā–Ŗ Robot Framework is a generic test automation framework.
ā–Ŗ It has easy-to-use tabular test data syntax.
ā–Ŗ It utilizes the keyword-driven testing approach.
ā–Ŗ Its testing capabilities can be extended by test libraries.
ā–Ŗ Users can create new higher-level keywords from existing ones using the same
syntax.
ā–Ŗ It is operating system and application independent. The core framework is
implemented using Python.
ā–Ŗ Robot Framework itself is open source.
Robot Framework Architecture and Test Flow
ā–Ŗ When test execution is started, the framework
first parses the test data.
ā–Ŗ It then utilizes keywords provided by the test
libraries to interact with the system under
test.
ā–Ŗ Libraries can communicate with the system
either directly or using other test tools as
drivers.
ā–Ŗ Test execution is started from the command
line and at the end of execution you get report
and log HTML format as well as XML output.
Libraries
ā–Ŗ Test libraries provide the actual testing capabilities to Robot Framework by
providing keywords.
Libraries
Libraries
Tools
Tools
Tools
How to install Robot Framework on Windows?
ā–Ŗ We will install Robot Framework with pip.
ā–Ŗ Pip is the standard Python package manager and is already installed if you’re
using Python 2 >=2.7.9 or Python 3 >=3.4
How to install Robot Framework on Windows?
ā–Ŗ Step-1: Install Phyton
Go to https://www.python.org/ , download and install Python 2.7.x version
How to install Robot Framework on Windows?
ā–Ŗ Step-2: Install Robot Framework
Open command prompt and run below command.
pip install robotframework
How to install Robot Framework on Windows?
ā–Ŗ Step-3: Upgrade pip
Upgrade the pip with below command.
python -m pip install -U pip
How to install Robot Framework on Windows?
ā–Ŗ Step-4: Verifying Installation
After a successful installation, you should be able to execute below commands
and get both Robot Framework and interpreter versions.
robot --version
rebot --version
How to install Robot Framework on Windows?
ā–Ŗ Note: If you have any problem please check Path configuration and restart
your PC. Path configuration must be as same as below figure.
How to install Robot Framework on Windows?
ā–Ŗ Step-5: Upgrade Robot Framework
Upgrading to a new version required either using the –upgrade option:
pip install --upgrade robotframework
or specifying the version to use explicitly:
pip install robotframework==2.9.2
Note: You can uninstall Robot Framework anytime with below command.
pip uninstall robotframework
How to install Robot Framework on Windows?
ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor)
ā–Ŗ Python 2.6 is the minimum version.
ā–Ŗ Notice that similarly as Robot Framework, RIDE does not yet support Python 3.
ā–Ŗ Notice also that on OS X RIDE requires 32-bit Python version.
How to install Robot Framework on Windows?
ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor)
ā–Ŗ Step-6.1: Python must be installed. (We installed it)
How to install Robot Framework on Windows?
ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor)
ā–Ŗ Step-6.2: wxPyhton must be installed.
We need to install ā€œwxPyhton2.8-win32-unicode-2.8.12.1-py27.exeā€ 32-bit version.
WARNING!
If you install latest version, you will get below error!
How to install Robot Framework on Windows?
ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor)
ā–Ŗ Step-6.3: Install RIDE with below pip command
pip install robotframework-ride
How to install Robot Framework on Windows?
ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor)
ā–Ŗ Step-6.4: After a successful installation, RIDE can be started from the command
line by running ride.py.
How to install Robot Framework on Windows?
ā–Ŗ Step-7: Install Selenium 2 (WebDriver) Library
Selenium2Library is a web testing library for Robot Framework that leverages
the Selenium 2 (WebDriver) libraries from the Selenium project.
Installation Command:
pip install robotframework-selenium2library
How to install Robot Framework on Windows?
ā–Ŗ Step-8: Upgrade Selenium 2 (WebDriver) Library
Upgrade Command:
pip install --upgrade robotframework-selenium2library
Robot Framework Usage with an Example
ā–Ŗ Test Scenario:
ā–Ŗ Open www.kariyer.net
ā–Ŗ Check Title
ā–Ŗ Maximize Browser
ā–Ŗ Go to User Login Page
ā–Ŗ Enter User Name
ā–Ŗ Enter Wrong Password
ā–Ŗ Click Login
ā–Ŗ Wait 2 seconds
ā–Ŗ Assert Warning Message
ā–Ŗ Close Browser
Robot Framework Usage with an Example
ā–Ŗ Directory Structure:
ā–Ŗ setup.robot file holds Settings, Variables, Keywords information
ā–Ŗ KariyerLoginTest.robot file contains Test Cases which are using our High
Level Keywords
Robot Framework Usage with an Example
ā–Ŗ Setup.robot:
ā–Ŗ KariyerLoginTest.robot:
Robot Framework Usage with an Example
ā–Ŗ Run the Test on Command Prompt
robot KariyerLoginTest.robot
ā–Ŗ Report and log results will be automatically generated after the test execution.
Robot Framework Usage with an Example
ā–Ŗ Run the Test on RIDE
ā–Ŗ Open cmd prompt and write ā€œride.pyā€ and then press Enter. Then, you will see
RIDE editor.
ā–Ŗ Go to File >> New Project and then give a name to your project as shown below.
Robot Framework Usage with an Example
ā–Ŗ Add Resource File
Robot Framework Usage with an Example
ā–Ŗ After adding Resource File
Robot Framework Usage with an Example
ā–Ŗ Write your robot test
Robot Framework Usage with an Example
ā–Ŗ Write your robot test
Robot Framework Usage with an Example
ā–Ŗ Run The Test
Robot Framework Usage with an Example
ā–Ŗ While Test is Running
Robot Framework Usage with an Example
ā–Ŗ When Test finished.
Robot Framework Usage with an Example
ā–Ŗ REPORT
Robot Framework Usage with an Example
ā–Ŗ LOG
For More Information
ā–Ŗ http://www.swtestacademy.com/getting-started-robotframework/
QUESTIONS?

More Related Content

PDF
Robot Framework Introduction
PDF
Introduction to Robot Framework
PDF
Robot Framework Dos And Don'ts
PDF
Introduction to Robot Framework – Exove
Ā 
PPTX
Code smells and remedies
PPTX
Robot framework
PPTX
Introduction to Automation Testing
Robot Framework Introduction
Introduction to Robot Framework
Robot Framework Dos And Don'ts
Introduction to Robot Framework – Exove
Ā 
Code smells and remedies
Robot framework
Introduction to Automation Testing

What's hot (20)

PDF
Functional Tests Automation with Robot Framework
PPTX
Introduction to robot framework
PPTX
Robot framework
Ā 
PPTX
Integration Group - Robot Framework
PPTX
Scripting robot
PDF
Ruin your life using robot framework
PDF
ATDD Using Robot Framework
PDF
Robot Framework :: Demo login application
PDF
Karate - powerful and simple framework for REST API automation testing
PPTX
Selenium test automation
PDF
Test Automation Using Python | Edureka
PPTX
Robot framework Gowthami Goli
PDF
Introduction to Robot Framework (external)
Ā 
PDF
Robot framework and selenium2 library
PPTX
Automation Testing by Selenium Web Driver
ODP
Python unit testing
PPT
Selenium Automation Framework
PPTX
Automation - web testing with selenium
PDF
Robot framework
PPTX
Karate for Complex Web-Service API Testing by Peter Thomas
Functional Tests Automation with Robot Framework
Introduction to robot framework
Robot framework
Ā 
Integration Group - Robot Framework
Scripting robot
Ruin your life using robot framework
ATDD Using Robot Framework
Robot Framework :: Demo login application
Karate - powerful and simple framework for REST API automation testing
Selenium test automation
Test Automation Using Python | Edureka
Robot framework Gowthami Goli
Introduction to Robot Framework (external)
Ā 
Robot framework and selenium2 library
Automation Testing by Selenium Web Driver
Python unit testing
Selenium Automation Framework
Automation - web testing with selenium
Robot framework
Karate for Complex Web-Service API Testing by Peter Thomas
Ad

Similar to Robot Framework (20)

PPTX
Baabtra django framework installation and sample project using aptana
PDF
Getting Started with Playwright: A Beginner-Friendly Introduction & Setup Guide
PPTX
Django simplified : by weever mbakaya
PDF
EuroPython 2013 - Python3 TurboGears Training
PPTX
Django Girls Tutorial
PPTX
Auto integration testing
PPTX
Robot a quick automation frame work
PDF
Deliver Python Apps with Docker
PPT
Proper Connections Development for Proper Domino Developers
PPTX
How to configure PyCharm for Odoo development in Windows?
PDF
Effizientere WordPress-Plugin-Entwicklung mit Softwaretests
Ā 
PPT
OWASP WebGoat and PANTERA Web Assessment Studio Project.
PPTX
Explore asp.net core 3.0 features
DOCX
Prizm Installation Guide
PPTX
Web development with Python
PPTX
Cross Browser Automation Testing Using Watir
PPTX
The New York Times: Sustainable Systems, Powered by Python
PPT
Web development-work space
PDF
Intro to SpringBatch NoSQL 2021
PDF
Django Dev Environment Howto
Baabtra django framework installation and sample project using aptana
Getting Started with Playwright: A Beginner-Friendly Introduction & Setup Guide
Django simplified : by weever mbakaya
EuroPython 2013 - Python3 TurboGears Training
Django Girls Tutorial
Auto integration testing
Robot a quick automation frame work
Deliver Python Apps with Docker
Proper Connections Development for Proper Domino Developers
How to configure PyCharm for Odoo development in Windows?
Effizientere WordPress-Plugin-Entwicklung mit Softwaretests
Ā 
OWASP WebGoat and PANTERA Web Assessment Studio Project.
Explore asp.net core 3.0 features
Prizm Installation Guide
Web development with Python
Cross Browser Automation Testing Using Watir
The New York Times: Sustainable Systems, Powered by Python
Web development-work space
Intro to SpringBatch NoSQL 2021
Django Dev Environment Howto
Ad

Recently uploaded (20)

PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
medical staffing services at VALiNTRY
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Complete Guide to Website Development in Malaysia for SMEs
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Salesforce Agentforce AI Implementation.pdf
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by AndrƩ Kraus
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Nekopoi APK 2025 free lastest update
Autodesk AutoCAD Crack Free Download 2025
AutoCAD Professional Crack 2025 With License Key
medical staffing services at VALiNTRY
Oracle Fusion HCM Cloud Demo for Beginners
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Complete Guide to Website Development in Malaysia for SMEs
17 Powerful Integrations Your Next-Gen MLM Software Needs
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Designing Intelligence for the Shop Floor.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Salesforce Agentforce AI Implementation.pdf
Monitoring Stack: Grafana, Loki & Promtail
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Reimagine Home Health with the Power of Agentic AI​
How to Choose the Right IT Partner for Your Business in Malaysia
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
T3DD25 TYPO3 Content Blocks - Deep Dive by AndrƩ Kraus
Navsoft: AI-Powered Business Solutions & Custom Software Development
Wondershare Filmora 15 Crack With Activation Key [2025
Nekopoi APK 2025 free lastest update

Robot Framework

  • 2. Who am I? ā–Ŗ I am Onur Başkırt ā–Ŗ Currently, Head of SW Testing at Kariyer.net ā–Ŗ Co-owner of www.swtestacademy.com and a Test Hive Member  ā–Ŗ Formerly, Teknosa, Ericsson, Huawei, ST-Ericsson, BahƧeşehir University
  • 3. Table of Contents ā–Ŗ What is Robot Framework? ā–Ŗ Robot Framework Architecture and Test Flow ā–Ŗ Libraries ā–Ŗ Tools ā–Ŗ How to install Robot Framework on Windows? ā–Ŗ Robot Framework Usage with an Example
  • 4. What is Robot Framework? ā–Ŗ Robot Framework is a generic test automation framework. ā–Ŗ It has easy-to-use tabular test data syntax. ā–Ŗ It utilizes the keyword-driven testing approach. ā–Ŗ Its testing capabilities can be extended by test libraries. ā–Ŗ Users can create new higher-level keywords from existing ones using the same syntax. ā–Ŗ It is operating system and application independent. The core framework is implemented using Python. ā–Ŗ Robot Framework itself is open source.
  • 5. Robot Framework Architecture and Test Flow ā–Ŗ When test execution is started, the framework first parses the test data. ā–Ŗ It then utilizes keywords provided by the test libraries to interact with the system under test. ā–Ŗ Libraries can communicate with the system either directly or using other test tools as drivers. ā–Ŗ Test execution is started from the command line and at the end of execution you get report and log HTML format as well as XML output.
  • 6. Libraries ā–Ŗ Test libraries provide the actual testing capabilities to Robot Framework by providing keywords.
  • 10. Tools
  • 11. Tools
  • 12. How to install Robot Framework on Windows? ā–Ŗ We will install Robot Framework with pip. ā–Ŗ Pip is the standard Python package manager and is already installed if you’re using Python 2 >=2.7.9 or Python 3 >=3.4
  • 13. How to install Robot Framework on Windows? ā–Ŗ Step-1: Install Phyton Go to https://www.python.org/ , download and install Python 2.7.x version
  • 14. How to install Robot Framework on Windows? ā–Ŗ Step-2: Install Robot Framework Open command prompt and run below command. pip install robotframework
  • 15. How to install Robot Framework on Windows? ā–Ŗ Step-3: Upgrade pip Upgrade the pip with below command. python -m pip install -U pip
  • 16. How to install Robot Framework on Windows? ā–Ŗ Step-4: Verifying Installation After a successful installation, you should be able to execute below commands and get both Robot Framework and interpreter versions. robot --version rebot --version
  • 17. How to install Robot Framework on Windows? ā–Ŗ Note: If you have any problem please check Path configuration and restart your PC. Path configuration must be as same as below figure.
  • 18. How to install Robot Framework on Windows? ā–Ŗ Step-5: Upgrade Robot Framework Upgrading to a new version required either using the –upgrade option: pip install --upgrade robotframework or specifying the version to use explicitly: pip install robotframework==2.9.2 Note: You can uninstall Robot Framework anytime with below command. pip uninstall robotframework
  • 19. How to install Robot Framework on Windows? ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor) ā–Ŗ Python 2.6 is the minimum version. ā–Ŗ Notice that similarly as Robot Framework, RIDE does not yet support Python 3. ā–Ŗ Notice also that on OS X RIDE requires 32-bit Python version.
  • 20. How to install Robot Framework on Windows? ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor) ā–Ŗ Step-6.1: Python must be installed. (We installed it)
  • 21. How to install Robot Framework on Windows? ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor) ā–Ŗ Step-6.2: wxPyhton must be installed. We need to install ā€œwxPyhton2.8-win32-unicode-2.8.12.1-py27.exeā€ 32-bit version. WARNING! If you install latest version, you will get below error!
  • 22. How to install Robot Framework on Windows? ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor) ā–Ŗ Step-6.3: Install RIDE with below pip command pip install robotframework-ride
  • 23. How to install Robot Framework on Windows? ā–Ŗ Step-6: Installing RIDE (Robot Framework Test Data Editor) ā–Ŗ Step-6.4: After a successful installation, RIDE can be started from the command line by running ride.py.
  • 24. How to install Robot Framework on Windows? ā–Ŗ Step-7: Install Selenium 2 (WebDriver) Library Selenium2Library is a web testing library for Robot Framework that leverages the Selenium 2 (WebDriver) libraries from the Selenium project. Installation Command: pip install robotframework-selenium2library
  • 25. How to install Robot Framework on Windows? ā–Ŗ Step-8: Upgrade Selenium 2 (WebDriver) Library Upgrade Command: pip install --upgrade robotframework-selenium2library
  • 26. Robot Framework Usage with an Example ā–Ŗ Test Scenario: ā–Ŗ Open www.kariyer.net ā–Ŗ Check Title ā–Ŗ Maximize Browser ā–Ŗ Go to User Login Page ā–Ŗ Enter User Name ā–Ŗ Enter Wrong Password ā–Ŗ Click Login ā–Ŗ Wait 2 seconds ā–Ŗ Assert Warning Message ā–Ŗ Close Browser
  • 27. Robot Framework Usage with an Example ā–Ŗ Directory Structure: ā–Ŗ setup.robot file holds Settings, Variables, Keywords information ā–Ŗ KariyerLoginTest.robot file contains Test Cases which are using our High Level Keywords
  • 28. Robot Framework Usage with an Example ā–Ŗ Setup.robot: ā–Ŗ KariyerLoginTest.robot:
  • 29. Robot Framework Usage with an Example ā–Ŗ Run the Test on Command Prompt robot KariyerLoginTest.robot ā–Ŗ Report and log results will be automatically generated after the test execution.
  • 30. Robot Framework Usage with an Example ā–Ŗ Run the Test on RIDE ā–Ŗ Open cmd prompt and write ā€œride.pyā€ and then press Enter. Then, you will see RIDE editor. ā–Ŗ Go to File >> New Project and then give a name to your project as shown below.
  • 31. Robot Framework Usage with an Example ā–Ŗ Add Resource File
  • 32. Robot Framework Usage with an Example ā–Ŗ After adding Resource File
  • 33. Robot Framework Usage with an Example ā–Ŗ Write your robot test
  • 34. Robot Framework Usage with an Example ā–Ŗ Write your robot test
  • 35. Robot Framework Usage with an Example ā–Ŗ Run The Test
  • 36. Robot Framework Usage with an Example ā–Ŗ While Test is Running
  • 37. Robot Framework Usage with an Example ā–Ŗ When Test finished.
  • 38. Robot Framework Usage with an Example ā–Ŗ REPORT
  • 39. Robot Framework Usage with an Example ā–Ŗ LOG
  • 40. For More Information ā–Ŗ http://www.swtestacademy.com/getting-started-robotframework/