SlideShare a Scribd company logo
1 of 41
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

Robot Framework :: Demo login application
Robot Framework :: Demo login applicationRobot Framework :: Demo login application
Robot Framework :: Demo login applicationSomkiat Puisungnoen
 
Ruin your life using robot framework
Ruin your life using robot frameworkRuin your life using robot framework
Ruin your life using robot frameworkPrayoch Rujira
 
Introduction to Robot Framework (external)
Introduction to Robot Framework (external)Introduction to Robot Framework (external)
Introduction to Robot Framework (external)Zhe Li
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'tsPekka Klärck
 
Robot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationSauce Labs
 
ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot FrameworkPekka Klärck
 
Robot Framework with Python | Edureka
Robot Framework with Python | EdurekaRobot Framework with Python | Edureka
Robot Framework with Python | EdurekaEdureka!
 
Hybrid automation framework
Hybrid automation frameworkHybrid automation framework
Hybrid automation frameworkdoai tran
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Edureka!
 
Présentation de Robot framework
Présentation de Robot frameworkPrésentation de Robot framework
Présentation de Robot frameworkgilleslenfant
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introductionlaurent bristiel
 
Robot framework Gowthami Goli
Robot framework Gowthami GoliRobot framework Gowthami Goli
Robot framework Gowthami GoliGowthami Buddi
 
Robot Framework - principais características
Robot Framework - principais característicasRobot Framework - principais características
Robot Framework - principais característicasalinebiath
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 
#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?
#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?
#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?Mayara Fernandes
 
Network Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot FrameworkNetwork Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot FrameworkPayal Jain
 
Test automation
Test automationTest automation
Test automationXavier Yin
 

What's hot (20)

Robot framework
Robot frameworkRobot framework
Robot framework
 
Robot Framework :: Demo login application
Robot Framework :: Demo login applicationRobot Framework :: Demo login application
Robot Framework :: Demo login application
 
Ruin your life using robot framework
Ruin your life using robot frameworkRuin your life using robot framework
Ruin your life using robot framework
 
Introduction to Robot Framework (external)
Introduction to Robot Framework (external)Introduction to Robot Framework (external)
Introduction to Robot Framework (external)
 
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 Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs Integration
 
ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
 
Robot Framework with Python | Edureka
Robot Framework with Python | EdurekaRobot Framework with Python | Edureka
Robot Framework with Python | Edureka
 
Python in Test automation
Python in Test automationPython in Test automation
Python in Test automation
 
Hybrid automation framework
Hybrid automation frameworkHybrid automation framework
Hybrid automation framework
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
 
Présentation de Robot framework
Présentation de Robot frameworkPrésentation de Robot framework
Présentation de Robot framework
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introduction
 
Robot framework Gowthami Goli
Robot framework Gowthami GoliRobot framework Gowthami Goli
Robot framework Gowthami Goli
 
Robot Framework - principais características
Robot Framework - principais característicasRobot Framework - principais características
Robot Framework - principais características
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 
#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?
#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?
#1 Robot Floripa - Robot Framework: O que é? Onde vive? Do que se alimenta?
 
Network Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot FrameworkNetwork Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot Framework
 
Test automation
Test automationTest automation
Test automation
 

Similar to Robot Framework

Django simplified : by weever mbakaya
Django simplified : by weever mbakayaDjango simplified : by weever mbakaya
Django simplified : by weever mbakayaMbakaya Kwatukha
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingAlessandro Molina
 
Auto integration testing
Auto integration testingAuto integration testing
Auto integration testingArthur Yueh
 
Robot a quick automation frame work
Robot  a quick automation frame workRobot  a quick automation frame work
Robot a quick automation frame workAbhijit Sarkar
 
Deliver Python Apps with Docker
Deliver Python Apps with DockerDeliver Python Apps with Docker
Deliver Python Apps with DockerAnton 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 DevelopersMark 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 SoftwaretestsDECK36
 
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
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guidevjvarenya
 
Web development with Python
Web development with PythonWeb development with Python
Web development with PythonRaman Balyan
 
Cross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirCross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirSarah 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 PythonAll Things Open
 
Web development-work space
Web development-work spaceWeb development-work space
Web development-work spacechawlan
 
Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Slobodan Lohja
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment HowtoTzu-ping Chung
 
Introduction To programming.pptx
Introduction To programming.pptxIntroduction To programming.pptx
Introduction To programming.pptxssuser11011f
 

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

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfIdiosysTechnologies1
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 

Recently uploaded (20)

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdf
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 

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/