SlideShare a Scribd company logo
10
Most read
15
Most read
@chonla 
Aloha! 
September 25, 2014
 Test data format 
 Editor 
 Structure 
 Syntax 
 Setup and Tear down 
Keyword 
Addressing element 
Create a simple test case 
 Running your test cases 
 Data driven test case 
 Try it yourselves 
Q&A
Test cases are in test case files. 
Test case file format can be 
• HTML 
• TSV (Tab Separated Values) 
• Plain Text (This slide covers only this format)
RIDE (https://pypi.python.org/pypi/robotframework-ride) 
• GUI and easy 
Text Editor 
• Simple and fast
Data table 
• Test cases (Required) 
• Settings 
• Keywords 
• Variables 
Table header is written after * character 
• *** Test cases *** 
• *** Test cases 
• *Test cases
Spacing does matter. 
Argument/Value separator 
• At least 2 spaces 
• | (pipe) 
Comment 
• Use # 
Test Keyword 1 2 
Test Keyword | 1 | 2 
#This is comment text
Variable is written as ${VariableName} 
Passing parameters to Keyword 
• Keyword | Parameter 1 | Parameter 2 
• Don’t forget | and spaces are equal.
Settings : Suite Setup/Suite Teardown 
Settings : Test Setup/Test Teardown 
Test Cases : [Setup]/[Teardown] 
Keywords : [Teardown]
Keywords are written under table 
Keywords 
 List of built-in keywords 
• http://rtomac.github.io/robotframework-selenium2library/ 
doc/Selenium2Library.html
identifier=element (id/name) 
id=element (id) 
name=element (name) 
xpath=query (xpath) 
dom=DOM (DOM expression) 
link=href (anchor) 
css=selector (CSS selector) 
jquery=selector (jQuery selector) 
sizzle=selector (sizzle selector) 
tag=HTMLTag (HTML Tag)
What library is required? 
• Selenium2Library
Use pybot <TestCaseFilename> 
Result of testing : report.html 
Log of testing : log.html 
XML Output : output.xml
[Template] is a key of data driven test 
case. 
Create test cases with test data. 
Tell robot to use a keyword as a template 
of test data.
Scripting robot
Scenario 1 
• You are about to search for something in Google. 
You have to open your browser. Type in your 
keyword and click search and verify the result 
should contain your query. 
Scenario 2 
• Use robot to post facebook and verify page 
should contain your new post.
Enjoy 
automating!

More Related Content

PDF
ATDD Using Robot Framework
PDF
Robot Framework Introduction
PPTX
Robot framework
PDF
Robot Framework Dos And Don'ts
PPTX
Robot framework
PDF
Ruin your life using robot framework
PDF
Robot framework and selenium2 library
PDF
Introduction to Robot Framework – Exove
ATDD Using Robot Framework
Robot Framework Introduction
Robot framework
Robot Framework Dos And Don'ts
Robot framework
Ruin your life using robot framework
Robot framework and selenium2 library
Introduction to Robot Framework – Exove

What's hot (20)

PDF
Functional Tests Automation with Robot Framework
PPTX
Introduction to robot framework
PDF
Robot Framework :: Demo login application
PDF
Jenkins
PDF
Test Automation Using Python | Edureka
PPTX
API Testing Using REST Assured with TestNG
PDF
Introduction to Robot Framework
PPTX
Rest assured
PDF
Karate - Web-Service API Testing Made Simple
PPT
Selenium ppt
ODP
Test Automation Framework using Cucumber BDD overview (part 1)
PPTX
API Test Automation Using Karate (Anil Kumar Moka)
PDF
SELENIUM PPT.pdf
PDF
Cucumber ppt
PPTX
API Automation Testing Using RestAssured+Cucumber
PPTX
API Testing for everyone.pptx
PPT
Test Automation Framework Designs
PDF
Karate - powerful and simple framework for REST API automation testing
PPTX
Python in Test automation
Functional Tests Automation with Robot Framework
Introduction to robot framework
Robot Framework :: Demo login application
Jenkins
Test Automation Using Python | Edureka
API Testing Using REST Assured with TestNG
Introduction to Robot Framework
Rest assured
Karate - Web-Service API Testing Made Simple
Selenium ppt
Test Automation Framework using Cucumber BDD overview (part 1)
API Test Automation Using Karate (Anil Kumar Moka)
SELENIUM PPT.pdf
Cucumber ppt
API Automation Testing Using RestAssured+Cucumber
API Testing for everyone.pptx
Test Automation Framework Designs
Karate - powerful and simple framework for REST API automation testing
Python in Test automation
Ad

Viewers also liked (20)

PDF
Introduction to Robot Framework (external)
PDF
Introduction to Robot Framework
PDF
TestWorks Conf Robot framework - the unsung hero of test automation - Michael...
PPTX
Integration Group - Robot Framework
PDF
Internet of Things
PPTX
Robot Framework
ZIP
Robot Framework Introduction
PDF
Unit testing in PHP
PDF
Asciidoctor in 15min
PPT
Testing More With Less
PPTX
Automation test scripting techniques
PDF
Robot framework - Lord of the Rings
PDF
Rf meetup 16.3.2017 tampere share
PPT
Robotframework Presentation - Pinoy Python Meetup 2011January12
PPTX
Robot Framework : Lord of the Rings By Asheesh M
PPTX
Test automation within a scrum process
PDF
[전문가 발표] DRC참가기 & 로봇 정신 (한재권 박사)
PPTX
Acceptance Test Driven Development and Robot Framework
PPTX
IoT
PPTX
SMAC
Introduction to Robot Framework (external)
Introduction to Robot Framework
TestWorks Conf Robot framework - the unsung hero of test automation - Michael...
Integration Group - Robot Framework
Internet of Things
Robot Framework
Robot Framework Introduction
Unit testing in PHP
Asciidoctor in 15min
Testing More With Less
Automation test scripting techniques
Robot framework - Lord of the Rings
Rf meetup 16.3.2017 tampere share
Robotframework Presentation - Pinoy Python Meetup 2011January12
Robot Framework : Lord of the Rings By Asheesh M
Test automation within a scrum process
[전문가 발표] DRC참가기 & 로봇 정신 (한재권 박사)
Acceptance Test Driven Development and Robot Framework
IoT
SMAC
Ad

Similar to Scripting robot (20)

PPT
10071756.ppt
PPTX
robot framework1.pptx
PDF
The Testing Planet Issue 2
PPTX
ATAGTR2017 Expanding test horizons with Robot Framework
PPTX
Selenium.pptx
PPT
PDF
Acceptance testing plone sites and add ons with robot framework and selenium
PDF
Robot Framework Introduction & Sauce Labs Integration
PDF
Robot framework short talk
PDF
Robot framework
PDF
Selenium - The Way Of Success
PPTX
automation with python and selenium
PDF
Network Protocol Testing Using Robot Framework
PPTX
Testing Testing everywhere
PPT
Selenium
PPT
Introduction to Selenium
PDF
Rfselenium2 redhat
PPT
Selenium
PDF
Best Practices for Selenium Test Automation in Python
PPTX
One to rule them all
10071756.ppt
robot framework1.pptx
The Testing Planet Issue 2
ATAGTR2017 Expanding test horizons with Robot Framework
Selenium.pptx
Acceptance testing plone sites and add ons with robot framework and selenium
Robot Framework Introduction & Sauce Labs Integration
Robot framework short talk
Robot framework
Selenium - The Way Of Success
automation with python and selenium
Network Protocol Testing Using Robot Framework
Testing Testing everywhere
Selenium
Introduction to Selenium
Rfselenium2 redhat
Selenium
Best Practices for Selenium Test Automation in Python
One to rule them all

Recently uploaded (20)

PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
System and Network Administraation Chapter 3
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
history of c programming in notes for students .pptx
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Nekopoi APK 2025 free lastest update
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Introduction to Artificial Intelligence
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Odoo Companies in India – Driving Business Transformation.pdf
Design an Analysis of Algorithms I-SECS-1021-03
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
System and Network Administraation Chapter 3
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
history of c programming in notes for students .pptx
Operating system designcfffgfgggggggvggggggggg
Navsoft: AI-Powered Business Solutions & Custom Software Development
Design an Analysis of Algorithms II-SECS-1021-03
Wondershare Filmora 15 Crack With Activation Key [2025
VVF-Customer-Presentation2025-Ver1.9.pptx
Nekopoi APK 2025 free lastest update
Reimagine Home Health with the Power of Agentic AI​
Introduction to Artificial Intelligence
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
How Creative Agencies Leverage Project Management Software.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free

Scripting robot

  • 2.  Test data format  Editor  Structure  Syntax  Setup and Tear down Keyword Addressing element Create a simple test case  Running your test cases  Data driven test case  Try it yourselves Q&A
  • 3. Test cases are in test case files. Test case file format can be • HTML • TSV (Tab Separated Values) • Plain Text (This slide covers only this format)
  • 5. Data table • Test cases (Required) • Settings • Keywords • Variables Table header is written after * character • *** Test cases *** • *** Test cases • *Test cases
  • 6. Spacing does matter. Argument/Value separator • At least 2 spaces • | (pipe) Comment • Use # Test Keyword 1 2 Test Keyword | 1 | 2 #This is comment text
  • 7. Variable is written as ${VariableName} Passing parameters to Keyword • Keyword | Parameter 1 | Parameter 2 • Don’t forget | and spaces are equal.
  • 8. Settings : Suite Setup/Suite Teardown Settings : Test Setup/Test Teardown Test Cases : [Setup]/[Teardown] Keywords : [Teardown]
  • 9. Keywords are written under table Keywords  List of built-in keywords • http://rtomac.github.io/robotframework-selenium2library/ doc/Selenium2Library.html
  • 10. identifier=element (id/name) id=element (id) name=element (name) xpath=query (xpath) dom=DOM (DOM expression) link=href (anchor) css=selector (CSS selector) jquery=selector (jQuery selector) sizzle=selector (sizzle selector) tag=HTMLTag (HTML Tag)
  • 11. What library is required? • Selenium2Library
  • 12. Use pybot <TestCaseFilename> Result of testing : report.html Log of testing : log.html XML Output : output.xml
  • 13. [Template] is a key of data driven test case. Create test cases with test data. Tell robot to use a keyword as a template of test data.
  • 15. Scenario 1 • You are about to search for something in Google. You have to open your browser. Type in your keyword and click search and verify the result should contain your query. Scenario 2 • Use robot to post facebook and verify page should contain your new post.