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

What's hot

ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
Pekka Klärck
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introduction
Pekka Klärck
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'ts
Pekka Klärck
 
Robot framework
Robot frameworkRobot framework
Robot Framework with Python | Edureka
Robot Framework with Python | EdurekaRobot Framework with Python | Edureka
Robot Framework with Python | Edureka
Edureka!
 
Scripting robot
Scripting robotScripting robot
Scripting robot
Chonlasith Jucksriporn
 
Robot framework Gowthami Goli
Robot framework Gowthami GoliRobot framework Gowthami Goli
Robot framework Gowthami Goli
Gowthami Buddi
 
Robot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs Integration
Sauce Labs
 
Ruin your life using robot framework
Ruin your life using robot frameworkRuin your life using robot framework
Ruin your life using robot framework
Prayoch Rujira
 
Saving Time By Testing With Jest
Saving Time By Testing With JestSaving Time By Testing With Jest
Saving Time By Testing With Jest
Ben McCormick
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Naga Dinesh
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
Srikanth Vuriti
 
Jenkins Pipelines
Jenkins PipelinesJenkins Pipelines
Jenkins Pipelines
Steffen Gebert
 
Selenium Testing Project report
Selenium Testing Project reportSelenium Testing Project report
Selenium Testing Project report
Kapil Rajpurohit
 
Maven Nexus
Maven NexusMaven Nexus
Maven Nexus
ericndunn
 
Automation With Appium
Automation With AppiumAutomation With Appium
Automation With Appium
Knoldus Inc.
 
Appium & Robot Framework
Appium & Robot FrameworkAppium & Robot Framework
Appium & Robot Framework
Furkan Ertürk
 
Unit testing framework
Unit testing frameworkUnit testing framework
Unit testing framework
Igor Vavrish
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
Zeba Tahseen
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
Khaja Moiz Uddin
 

What's hot (20)

ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introduction
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'ts
 
Robot framework
Robot frameworkRobot framework
Robot framework
 
Robot Framework with Python | Edureka
Robot Framework with Python | EdurekaRobot Framework with Python | Edureka
Robot Framework with Python | Edureka
 
Scripting robot
Scripting robotScripting robot
Scripting robot
 
Robot framework Gowthami Goli
Robot framework Gowthami GoliRobot framework Gowthami Goli
Robot framework Gowthami Goli
 
Robot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs Integration
 
Ruin your life using robot framework
Ruin your life using robot frameworkRuin your life using robot framework
Ruin your life using robot framework
 
Saving Time By Testing With Jest
Saving Time By Testing With JestSaving Time By Testing With Jest
Saving Time By Testing With Jest
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Jenkins Pipelines
Jenkins PipelinesJenkins Pipelines
Jenkins Pipelines
 
Selenium Testing Project report
Selenium Testing Project reportSelenium Testing Project report
Selenium Testing Project report
 
Maven Nexus
Maven NexusMaven Nexus
Maven Nexus
 
Automation With Appium
Automation With AppiumAutomation With Appium
Automation With Appium
 
Appium & Robot Framework
Appium & Robot FrameworkAppium & Robot Framework
Appium & Robot Framework
 
Unit testing framework
Unit testing frameworkUnit testing framework
Unit testing framework
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 

Similar to Robot Framework

Baabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptanaBaabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptana
baabtra.com - No. 1 supplier of quality freshers
 
Django simplified : by weever mbakaya
Django simplified : by weever mbakayaDjango simplified : by weever mbakaya
Django simplified : by weever mbakaya
Mbakaya Kwatukha
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears Training
Alessandro Molina
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
Kishimi Ibrahim Ishaq
 
Auto integration testing
Auto integration testingAuto integration testing
Auto integration testing
Arthur Yueh
 
Robot a quick automation frame work
Robot  a quick automation frame workRobot  a quick automation frame work
Robot a quick automation frame work
Abhijit Sarkar
 
Deliver Python Apps with Docker
Deliver Python Apps with DockerDeliver Python Apps with Docker
Deliver Python Apps with Docker
Anton Egorov
 
Proper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersProper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino Developers
Mark Myers
 
How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?
Celine George
 
Effizientere WordPress-Plugin-Entwicklung mit Softwaretests
Effizientere WordPress-Plugin-Entwicklung mit SoftwaretestsEffizientere WordPress-Plugin-Entwicklung mit Softwaretests
Effizientere WordPress-Plugin-Entwicklung mit Softwaretests
DECK36
 
OWASP WebGoat and PANTERA Web Assessment Studio Project.
OWASP WebGoat and PANTERA Web Assessment Studio Project.OWASP WebGoat and PANTERA Web Assessment Studio Project.
OWASP WebGoat and PANTERA Web Assessment Studio Project.
Philippe Bogaerts
 
Explore asp.net core 3.0 features
Explore asp.net core 3.0 featuresExplore asp.net core 3.0 features
Explore asp.net core 3.0 features
iFour Technolab Pvt. Ltd.
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
 
Web development with Python
Web development with PythonWeb development with Python
Web development with Python
Raman Balyan
 
Cross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirCross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using Watir
Sarah Elson
 
The New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonThe New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by Python
All Things Open
 
Web development-work space
Web development-work spaceWeb development-work space
Web development-work space
chawlan
 
Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021
Slobodan Lohja
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment Howto
Tzu-ping Chung
 
Introduction To programming.pptx
Introduction To programming.pptxIntroduction To programming.pptx
Introduction To programming.pptx
ssuser11011f
 

Similar to Robot Framework (20)

Baabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptanaBaabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptana
 
Django simplified : by weever mbakaya
Django simplified : by weever mbakayaDjango simplified : by weever mbakaya
Django simplified : by weever mbakaya
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears Training
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
 
Auto integration testing
Auto integration testingAuto integration testing
Auto integration testing
 
Robot a quick automation frame work
Robot  a quick automation frame workRobot  a quick automation frame work
Robot a quick automation frame work
 
Deliver Python Apps with Docker
Deliver Python Apps with DockerDeliver Python Apps with Docker
Deliver Python Apps with Docker
 
Proper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersProper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino Developers
 
How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?
 
Effizientere WordPress-Plugin-Entwicklung mit Softwaretests
Effizientere WordPress-Plugin-Entwicklung mit SoftwaretestsEffizientere WordPress-Plugin-Entwicklung mit Softwaretests
Effizientere WordPress-Plugin-Entwicklung mit Softwaretests
 
OWASP WebGoat and PANTERA Web Assessment Studio Project.
OWASP WebGoat and PANTERA Web Assessment Studio Project.OWASP WebGoat and PANTERA Web Assessment Studio Project.
OWASP WebGoat and PANTERA Web Assessment Studio Project.
 
Explore asp.net core 3.0 features
Explore asp.net core 3.0 featuresExplore asp.net core 3.0 features
Explore asp.net core 3.0 features
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
Web development with Python
Web development with PythonWeb development with Python
Web development with Python
 
Cross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirCross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using Watir
 
The New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonThe New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by Python
 
Web development-work space
Web development-work spaceWeb development-work space
Web development-work space
 
Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment Howto
 
Introduction To programming.pptx
Introduction To programming.pptxIntroduction To programming.pptx
Introduction To programming.pptx
 

Recently uploaded

Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
OnePlan Solutions
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
ervikas4
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
ShulagnaSarkar2
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
anfaltahir1010
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
kalichargn70th171
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
The Third Creative Media
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
Marcin Chrost
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 

Recently uploaded (20)

Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 

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/