SlideShare a Scribd company logo
12
Most read
20
Most read
24
Most read
Robot Framework 
Dos and Don'ts 
© Copyright Nokia Networks 
Creative Commons Attribution 3.0 License
Introduction 
● Robot Framework is a generic acceptance level test 
automation framework 
● This presentation demonstrates general guidelines 
how to create good test cases using it 
● Both good practices and anti-patterns are presented 
● See also 
http://code.google.com/p/robotframework/wiki/HowTo 
WriteGoodTestCases
Most important goals 
● Easy to understand 
● Easy to maintain 
● Fast to execute
Naming 
● Very important to name well test cases, test 
suites, keywords, variables, libraries, resource 
files, ... 
● Good name is explicit and easy to understand 
● Consistency 
● Namespaces 
● Name should tell “what”, not “how”
Documentation 
● Test suites often benefit from documentation 
explaining background etc. 
● Well named tests created using well named 
keywords should not need extra 
documentation 
● Reusable keywords must be documented 
– Good keyword and argument names help and are 
often adequate with higher-level keywords 
– Library keywords need detailed documentation
Example categorization 
● DO: A very good and generally recommended 
practice. 
● DON'T: An anti-pattern, should not be used. 
● TRY: A practice that works in many contexts. 
● AVOID: A practice that typically should be 
avoided but may sometimes be necessary.
DO: Appropriate abstraction level
DON'T: Too low abstraction level
DON'T: Comments instead of 
abstraction
DON'T: Documentation instead of 
abstraction
DO: Use data-driven style to avoid 
repeating workflows and to 
represent business rules
TRY: Gherkin style (ATDD/BDD)
DON'T: Tests without checks
AVOID: Tests with unrelated checks
AVOID: Dependencies between 
tests
DO: Use teardowns for cleanup
DO: Use suite setup/teardown to 
speed up execution
TRY: Move suite setup/teardown to 
directory level initialization files
DO: Use variables to avoid hard 
coding
DON'T: Overuse variables
AVOID: Variable assignment on test 
case level
AVOID: Complex logic in test data
DO: Move logic to libraries when 
possible
DO: Use polling to synchronize 
DON'T: Use sleeping to synchronize

More Related Content

What's hot (20)

PDF
Ruin your life using robot framework
Prayoch Rujira
 
PDF
Robot framework and selenium2 library
krishantha_samaraweera
 
PDF
Functional Tests Automation with Robot Framework
laurent bristiel
 
PDF
Robot framework
Testing World
 
PPTX
Robot framework
boriau
 
PPTX
Scripting robot
Chonlasith Jucksriporn
 
PPTX
Introduction to robot framework
Chonlasith Jucksriporn
 
ODP
Test Automation Framework using Cucumber BDD overview (part 1)
Mindfire Solutions
 
PPTX
Test automation
Xavier Yin
 
ODT
Testing in-python-and-pytest-framework
Arulalan T
 
PPTX
TestNG with selenium
Gousalya Ramachandran
 
PDF
Selenium with Cucumber
Knoldus Inc.
 
PPTX
Test Automation Framework with BDD and Cucumber
Rhoynar Software Consulting
 
PPTX
Integration Group - Robot Framework
OpenDaylight
 
PDF
Cucumber ppt
Qwinix Technologies
 
PPTX
Introduction to Selenium Web Driver
Return on Intelligence
 
PDF
Robot Framework :: Demo login application
Somkiat Puisungnoen
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
PDF
Formation Gratuite Total Tests par les experts Java Ippon
Ippon
 
PPTX
Automation Testing
Sun Technlogies
 
Ruin your life using robot framework
Prayoch Rujira
 
Robot framework and selenium2 library
krishantha_samaraweera
 
Functional Tests Automation with Robot Framework
laurent bristiel
 
Robot framework
Testing World
 
Robot framework
boriau
 
Scripting robot
Chonlasith Jucksriporn
 
Introduction to robot framework
Chonlasith Jucksriporn
 
Test Automation Framework using Cucumber BDD overview (part 1)
Mindfire Solutions
 
Test automation
Xavier Yin
 
Testing in-python-and-pytest-framework
Arulalan T
 
TestNG with selenium
Gousalya Ramachandran
 
Selenium with Cucumber
Knoldus Inc.
 
Test Automation Framework with BDD and Cucumber
Rhoynar Software Consulting
 
Integration Group - Robot Framework
OpenDaylight
 
Cucumber ppt
Qwinix Technologies
 
Introduction to Selenium Web Driver
Return on Intelligence
 
Robot Framework :: Demo login application
Somkiat Puisungnoen
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Formation Gratuite Total Tests par les experts Java Ippon
Ippon
 
Automation Testing
Sun Technlogies
 

Similar to Robot Framework Dos And Don'ts (20)

ODP
Debugging
Olivier Teytaud
 
PDF
Beginners guide to software testing
Kevalkumar Shah
 
PDF
167312
Rathna Priya
 
PDF
software testing for beginners
Bharathi Ashok
 
PPTX
UNIT TESTING PPT
suhasreddy1
 
PDF
Effective Unit Testing
Eyal Kenig
 
PPTX
Unit testing
princezzlove
 
PPTX
Testing Documentation.pptx
PavithraK452303
 
PDF
Teaching and Learning TDD in the Coding Dojo
Emily Bache
 
PPT
SAM
guest2d10aa
 
PDF
Test and Behaviour Driven Development (TDD/BDD)
Lars Thorup
 
PPTX
The Amazing Bug Story
LiviuLupei1
 
PDF
Software Quality and Test Strategies for Ruby and Rails Applications
Bhavin Javia
 
PPTX
TDD Best Practices
Attila Bertók
 
PPT
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Engineering Software Lab
 
PDF
Clean tests
Agileee
 
PDF
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
PDF
Patterns in Test Automation
Anand Bagmar
 
PDF
The Road to QA
Benjamin Bischoff
 
Debugging
Olivier Teytaud
 
Beginners guide to software testing
Kevalkumar Shah
 
167312
Rathna Priya
 
software testing for beginners
Bharathi Ashok
 
UNIT TESTING PPT
suhasreddy1
 
Effective Unit Testing
Eyal Kenig
 
Unit testing
princezzlove
 
Testing Documentation.pptx
PavithraK452303
 
Teaching and Learning TDD in the Coding Dojo
Emily Bache
 
Test and Behaviour Driven Development (TDD/BDD)
Lars Thorup
 
The Amazing Bug Story
LiviuLupei1
 
Software Quality and Test Strategies for Ruby and Rails Applications
Bhavin Javia
 
TDD Best Practices
Attila Bertók
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Engineering Software Lab
 
Clean tests
Agileee
 
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
Patterns in Test Automation
Anand Bagmar
 
The Road to QA
Benjamin Bischoff
 
Ad

Recently uploaded (20)

PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Ad

Robot Framework Dos And Don'ts