SlideShare a Scribd company logo
1 of 36
ROBOT FRAMEWORK
Rochak Bhalla
Table of Contents
1. What is Robot Framework?
2. Benefits of Robot Framework?
3. Robot Framework Architecture and Test Flow
4. Robot Framework Libraries
5. PyPI (Python Repository)
6. Tools
7. How to install Robot Framework on Windows?
8. Robot Framework usage with an example
9. Logs and Report
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.
Benefits of Robot Framework?
 Ease of Use - Robot Framework allows Keyword Driven Testing and even
behavior driven one.
 Code Writing - Write only as much as you need for your automation.
(Standard login page code will not be more than 6 lines)
 Parallel Execution - Possible using external tools (example - Pabot)
 Logging and Failure Analysis - Neat and clean logs and reports. Comes with
screenshot.
 Flexibility - There are many thing you can't do. if-else (only if block). No
nested loops. And many things if you need complex coding. For many things
you can write custom keyword in Python
 Framework Design - It's a readily available framework so we don’t need to
waste time in designing framework.
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.
Robot Framework Libraries
Test libraries provide the actual testing capabilities to Robot Framework by
providing keywords.
Robot Framework Libraries
PyPI
PyPI - the Python Package Index (https://pypi.python.org)
 The Python Package Index is a repository of software for the Python
programming language. There are currently 109798 packages here.
The more you explore it the more you get 
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
 We can find it under Scripts folder wherever our python is installed.
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 using PIP (Automatically Installs the latest version)
Open command prompt and run below command.
pip install robotframework
If installing first time
If already installed
How to install Robot Framework on Windows?
Common usages using 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: Installing RIDE (RIDE is a test data editor for Robot Framework test
data)
Python 2.6 is the minimum version.
RIDE's GUI is implemented using wxPython toolkit. Only wxPython
2.8.12.1 with Unicode support is officially supported.
Notice that similarly as Robot Framework, RIDE does not yet support
Python 3.
How to install Robot Framework on Windows?
Step-5: Installing RIDE (Robot Framework Test Data Editor)
Step-5.1: Python must be installed. (Mandatory)
How to install Robot Framework on Windows?
Step-5: Installing RIDE (Robot Framework Test Data Editor)
Step-5.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-5: Installing RIDE (Robot Framework Test Data Editor)
Step-5.3: Install RIDE with below pip command
pip install robotframework-ride
For new install
If already installed
How to install Robot Framework on Windows?
Step-5: Installing RIDE (Robot IDE)
Step-5.4: After a successful installation, RIDE can be started from the
command line or Run window using command ride.py
Command Prompt
Run Window
Installing Specific Library
To install library either user can get the details from Robot Framework official website or user can visit the respective
GitHub repository for the specific needs.
Let’s start with RequestsLibrary. (Library that uses the Requests HTTP client.)
Installation Command:
pip install robotframework-requests
How to install Robot Framework on Windows?
Upgrade Library Command:
pip install --upgrade robotframework-requests
Robot Framework Usage with an Example
Test Scenario: Rest_Test
1. Create Session against the host
2. Get Request for the specific URI
3. Verify Response
Robot Framework Usage with an Example
Directory Structure:
▪ Resource.robot file holds Settings, Variables, Keywords information.
▪ Projects.robot file contains Test Suites and Test Cases which are using our High Level Keywords.
▪ However, creation of directory is on need basis and different project requirements. User can
even create Keywords in Projects.robot and vice versa.
Robot Framework Usage with an Example
Projects.robot:
▪ Here, CreateExternalSystem.robot is a test suite file which holds different test cases.
▪ On Suite Level we can define any specific settings explicitly apart from Resource file.
▪ Test Suite Arch:
Robot Framework Usage with an Example
Resource.robot:
Robot Framework usage with an example
Create Test Case :
1: Add a New TC
2: Call keywords
From Library &
Pass them required
Parameters.
Robot Framework Usage with an Example
TABULAR VIEW TEXTUAL VIEW
Robot Framework usage with an example
Running the test case :
There are two ways to run the test case:
 Run From the RIDE tool itself
Logs and Report
To view log and report access it directly by clicking below icons.
Robot Framework usage with an example
 The other way is we can Run it from Command Prompt : To do so user need to navigate to that
project directory from command prompt and then run the below command :
Logs and Report
On successful execution of
test case you will get the below
Results:
1. Log.html
2. Output.xml
3. Report.html
report.html
Logs and Report
log.html
QUESTIONS?
Thanks 

More Related Content

What's hot

Ruin your life using robot framework
Ruin your life using robot frameworkRuin your life using robot framework
Ruin your life using robot frameworkPrayoch Rujira
 
Robot Framework :: Demo login application
Robot Framework :: Demo login applicationRobot Framework :: Demo login application
Robot Framework :: Demo login applicationSomkiat Puisungnoen
 
ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot FrameworkPekka Klärck
 
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
 
Functional Tests Automation with Robot Framework
Functional Tests Automation with Robot FrameworkFunctional Tests Automation with Robot Framework
Functional Tests Automation with Robot Frameworklaurent bristiel
 
Présentation de Robot framework
Présentation de Robot frameworkPrésentation de Robot framework
Présentation de Robot frameworkgilleslenfant
 
Robot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationSauce Labs
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionGanuka Yashantha
 
Integration Group - Robot Framework
Integration Group - Robot Framework Integration Group - Robot Framework
Integration Group - Robot Framework OpenDaylight
 
Robot Framework with Python | Edureka
Robot Framework with Python | EdurekaRobot Framework with Python | Edureka
Robot Framework with Python | EdurekaEdureka!
 
Hybrid framework for test automation
Hybrid framework for test automationHybrid framework for test automation
Hybrid framework for test automationsrivinayak
 
Robot Framework with actual robot
Robot Framework with actual robot Robot Framework with actual robot
Robot Framework with actual robot Eficode
 
Effective testing with pytest
Effective testing with pytestEffective testing with pytest
Effective testing with pytestHector Canto
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1Kirti Verma
 
Continuous Quality with Postman
Continuous Quality with PostmanContinuous Quality with Postman
Continuous Quality with PostmanPostman
 

What's hot (20)

Ruin your life using robot framework
Ruin your life using robot frameworkRuin your life using robot framework
Ruin your life using robot framework
 
Robot Framework :: Demo login application
Robot Framework :: Demo login applicationRobot Framework :: Demo login application
Robot Framework :: Demo login application
 
ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
 
Robot framework
Robot frameworkRobot framework
Robot framework
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'ts
 
Functional Tests Automation with Robot Framework
Functional Tests Automation with Robot FrameworkFunctional Tests Automation with Robot Framework
Functional Tests Automation with Robot Framework
 
Présentation de Robot framework
Présentation de Robot frameworkPrésentation de Robot framework
Présentation de Robot framework
 
Python unit testing
Python unit testingPython unit testing
Python unit testing
 
Robot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs Integration
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introduction
 
Integration Group - Robot Framework
Integration Group - Robot Framework Integration Group - Robot Framework
Integration Group - Robot Framework
 
Robot Framework with Python | Edureka
Robot Framework with Python | EdurekaRobot Framework with Python | Edureka
Robot Framework with Python | Edureka
 
Java Logging
Java LoggingJava Logging
Java Logging
 
Hybrid framework for test automation
Hybrid framework for test automationHybrid framework for test automation
Hybrid framework for test automation
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
 
Robot Framework with actual robot
Robot Framework with actual robot Robot Framework with actual robot
Robot Framework with actual robot
 
Effective testing with pytest
Effective testing with pytestEffective testing with pytest
Effective testing with pytest
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Continuous Quality with Postman
Continuous Quality with PostmanContinuous Quality with Postman
Continuous Quality with Postman
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 

Similar to Robot framework

Network Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot FrameworkNetwork Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot FrameworkPayal Jain
 
Robot framework Gowthami Goli
Robot framework Gowthami GoliRobot framework Gowthami Goli
Robot framework Gowthami GoliGowthami Buddi
 
Best Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdfBest Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdfpCloudy
 
Auto integration testing
Auto integration testingAuto integration testing
Auto integration testingArthur Yueh
 
ATAGTR2017 Expanding test horizons with Robot Framework
ATAGTR2017 Expanding test horizons with Robot FrameworkATAGTR2017 Expanding test horizons with Robot Framework
ATAGTR2017 Expanding test horizons with Robot FrameworkAgile Testing Alliance
 
Robot a quick automation frame work
Robot  a quick automation frame workRobot  a quick automation frame work
Robot a quick automation frame workAbhijit Sarkar
 
Introduction to Google App Engine with Python
Introduction to Google App Engine with PythonIntroduction to Google App Engine with Python
Introduction to Google App Engine with PythonBrian Lyttle
 
Rifartek Robot Training Course - How to use ClientRobot
Rifartek Robot Training Course - How to use ClientRobotRifartek Robot Training Course - How to use ClientRobot
Rifartek Robot Training Course - How to use ClientRobotTsai Tsung-Yi
 
Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024Henry Schreiner
 
TDD for joomla extensions
TDD for joomla extensionsTDD for joomla extensions
TDD for joomla extensionsRoberto Segura
 
Python Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtPython Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtInexture Solutions
 
OpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonOpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonCodeOps Technologies LLP
 
Unearthing The Power Of IBM – Rational Functional Tester 7.0 - RFT
Unearthing The Power Of IBM – Rational Functional Tester 7.0 - RFTUnearthing The Power Of IBM – Rational Functional Tester 7.0 - RFT
Unearthing The Power Of IBM – Rational Functional Tester 7.0 - RFTYogindernath Gupta
 
.NET Recommended Resources
.NET Recommended Resources.NET Recommended Resources
.NET Recommended ResourcesGreg Sohl
 
Where's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneWhere's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneVincenzo Barone
 

Similar to Robot framework (20)

robot framework1.pptx
robot framework1.pptxrobot framework1.pptx
robot framework1.pptx
 
Network Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot FrameworkNetwork Protocol Testing Using Robot Framework
Network Protocol Testing Using Robot Framework
 
Robot framework Gowthami Goli
Robot framework Gowthami GoliRobot framework Gowthami Goli
Robot framework Gowthami Goli
 
Best Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdfBest Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdf
 
Auto integration testing
Auto integration testingAuto integration testing
Auto integration testing
 
10071756.ppt
10071756.ppt10071756.ppt
10071756.ppt
 
ATAGTR2017 Expanding test horizons with Robot Framework
ATAGTR2017 Expanding test horizons with Robot FrameworkATAGTR2017 Expanding test horizons with Robot Framework
ATAGTR2017 Expanding test horizons with Robot Framework
 
Robot a quick automation frame work
Robot  a quick automation frame workRobot  a quick automation frame work
Robot a quick automation frame work
 
Introduction to Google App Engine with Python
Introduction to Google App Engine with PythonIntroduction to Google App Engine with Python
Introduction to Google App Engine with Python
 
Rifartek Robot Training Course - How to use ClientRobot
Rifartek Robot Training Course - How to use ClientRobotRifartek Robot Training Course - How to use ClientRobot
Rifartek Robot Training Course - How to use ClientRobot
 
Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024
 
TDD for joomla extensions
TDD for joomla extensionsTDD for joomla extensions
TDD for joomla extensions
 
Framework
FrameworkFramework
Framework
 
Python Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtPython Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txt
 
Python Lecture 0
Python Lecture 0Python Lecture 0
Python Lecture 0
 
vvvvReadme
vvvvReadmevvvvReadme
vvvvReadme
 
OpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonOpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in Python
 
Unearthing The Power Of IBM – Rational Functional Tester 7.0 - RFT
Unearthing The Power Of IBM – Rational Functional Tester 7.0 - RFTUnearthing The Power Of IBM – Rational Functional Tester 7.0 - RFT
Unearthing The Power Of IBM – Rational Functional Tester 7.0 - RFT
 
.NET Recommended Resources
.NET Recommended Resources.NET Recommended Resources
.NET Recommended Resources
 
Where's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneWhere's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind Plone
 

Recently uploaded

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 

Recently uploaded (20)

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 

Robot framework

  • 2. Table of Contents 1. What is Robot Framework? 2. Benefits of Robot Framework? 3. Robot Framework Architecture and Test Flow 4. Robot Framework Libraries 5. PyPI (Python Repository) 6. Tools 7. How to install Robot Framework on Windows? 8. Robot Framework usage with an example 9. Logs and Report
  • 3. 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.
  • 4. Benefits of Robot Framework?  Ease of Use - Robot Framework allows Keyword Driven Testing and even behavior driven one.  Code Writing - Write only as much as you need for your automation. (Standard login page code will not be more than 6 lines)  Parallel Execution - Possible using external tools (example - Pabot)  Logging and Failure Analysis - Neat and clean logs and reports. Comes with screenshot.  Flexibility - There are many thing you can't do. if-else (only if block). No nested loops. And many things if you need complex coding. For many things you can write custom keyword in Python  Framework Design - It's a readily available framework so we don’t need to waste time in designing framework.
  • 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. Robot Framework Libraries Test libraries provide the actual testing capabilities to Robot Framework by providing keywords.
  • 8. PyPI PyPI - the Python Package Index (https://pypi.python.org)  The Python Package Index is a repository of software for the Python programming language. There are currently 109798 packages here. The more you explore it the more you get 
  • 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  We can find it under Scripts folder wherever our python is installed.
  • 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 using PIP (Automatically Installs the latest version) Open command prompt and run below command. pip install robotframework If installing first time If already installed
  • 15. How to install Robot Framework on Windows? Common usages using 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: Installing RIDE (RIDE is a test data editor for Robot Framework test data) Python 2.6 is the minimum version. RIDE's GUI is implemented using wxPython toolkit. Only wxPython 2.8.12.1 with Unicode support is officially supported. Notice that similarly as Robot Framework, RIDE does not yet support Python 3.
  • 19. How to install Robot Framework on Windows? Step-5: Installing RIDE (Robot Framework Test Data Editor) Step-5.1: Python must be installed. (Mandatory)
  • 20. How to install Robot Framework on Windows? Step-5: Installing RIDE (Robot Framework Test Data Editor) Step-5.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!
  • 21. How to install Robot Framework on Windows? Step-5: Installing RIDE (Robot Framework Test Data Editor) Step-5.3: Install RIDE with below pip command pip install robotframework-ride For new install If already installed
  • 22. How to install Robot Framework on Windows? Step-5: Installing RIDE (Robot IDE) Step-5.4: After a successful installation, RIDE can be started from the command line or Run window using command ride.py Command Prompt Run Window
  • 23. Installing Specific Library To install library either user can get the details from Robot Framework official website or user can visit the respective GitHub repository for the specific needs. Let’s start with RequestsLibrary. (Library that uses the Requests HTTP client.) Installation Command: pip install robotframework-requests
  • 24. How to install Robot Framework on Windows? Upgrade Library Command: pip install --upgrade robotframework-requests
  • 25. Robot Framework Usage with an Example Test Scenario: Rest_Test 1. Create Session against the host 2. Get Request for the specific URI 3. Verify Response
  • 26. Robot Framework Usage with an Example Directory Structure: ▪ Resource.robot file holds Settings, Variables, Keywords information. ▪ Projects.robot file contains Test Suites and Test Cases which are using our High Level Keywords. ▪ However, creation of directory is on need basis and different project requirements. User can even create Keywords in Projects.robot and vice versa.
  • 27. Robot Framework Usage with an Example Projects.robot: ▪ Here, CreateExternalSystem.robot is a test suite file which holds different test cases. ▪ On Suite Level we can define any specific settings explicitly apart from Resource file. ▪ Test Suite Arch:
  • 28. Robot Framework Usage with an Example Resource.robot:
  • 29. Robot Framework usage with an example Create Test Case : 1: Add a New TC 2: Call keywords From Library & Pass them required Parameters.
  • 30. Robot Framework Usage with an Example TABULAR VIEW TEXTUAL VIEW
  • 31. Robot Framework usage with an example Running the test case : There are two ways to run the test case:  Run From the RIDE tool itself
  • 32. Logs and Report To view log and report access it directly by clicking below icons.
  • 33. Robot Framework usage with an example  The other way is we can Run it from Command Prompt : To do so user need to navigate to that project directory from command prompt and then run the below command :
  • 34. Logs and Report On successful execution of test case you will get the below Results: 1. Log.html 2. Output.xml 3. Report.html report.html