Robot Framework Test Automation
By Sumit Bisht
4/5
()
About this ebook
Related to Robot Framework Test Automation
Related ebooks
Selenium Essentials Rating: 3 out of 5 stars3/5Performance Testing with JMeter 2.9 Rating: 0 out of 5 stars0 ratingsCucumber Cookbook Rating: 0 out of 5 stars0 ratingsPerformance Testing with JMeter - Second Edition Rating: 0 out of 5 stars0 ratingsMockito Essentials Rating: 3 out of 5 stars3/5Selenium with Python - A Beginner’s Guide: Get started with Selenium using Python as a programming language Rating: 0 out of 5 stars0 ratingsTesting with JUnit Rating: 0 out of 5 stars0 ratingsJasmine JavaScript Testing - Second Edition Rating: 0 out of 5 stars0 ratingsPractical DevOps Rating: 3 out of 5 stars3/5Test-Driven Java Development Rating: 4 out of 5 stars4/5Mobile Test Automation with Appium Rating: 0 out of 5 stars0 ratingsMastering Hibernate Rating: 0 out of 5 stars0 ratingsLearning Software Testing with Test Studio Rating: 0 out of 5 stars0 ratingsTest-Driven Python Development Rating: 5 out of 5 stars5/5Hands-On Parallel Programming with C# 8 and .NET Core 3: Build solid enterprise software using task parallelism and multithreading Rating: 0 out of 5 stars0 ratingsGit Best Practices Guide Rating: 0 out of 5 stars0 ratingsSpring Boot Cookbook Rating: 0 out of 5 stars0 ratingsMastering Java for Data Science Rating: 5 out of 5 stars5/5Test-Driven JavaScript Development Rating: 0 out of 5 stars0 ratingsAutomating Software Tests Using Selenium Rating: 0 out of 5 stars0 ratingsSelenium Testing Tools Cookbook Rating: 3 out of 5 stars3/5Learning Selenium Testing Tools - Third Edition Rating: 0 out of 5 stars0 ratingsWeb Services Testing with soapUI Rating: 5 out of 5 stars5/5Absolute Beginner (Part 1) Selenium WebDriver for Functional Automation Testing Rating: 5 out of 5 stars5/5Software Testing Foundations, 4th Edition: A Study Guide for the Certified Tester Exam Rating: 4 out of 5 stars4/5Automated Software Testing Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratings
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Game Development with Unreal Engine 5: Learn the Basics of Game Development in Unreal Engine 5 (English Edition) Rating: 0 out of 5 stars0 ratingsExcel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Programming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards Rating: 0 out of 5 stars0 ratingsSQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5
Reviews for Robot Framework Test Automation
2 ratings0 reviews
Book preview
Robot Framework Test Automation - Sumit Bisht
Table of Contents
Robot Framework Test Automation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with the Robot Framework
The need for acceptance testing
Pinpoint application failure
Reducing the error rate
Providing automation and re-use
Creating the a test audit trail
What is the Robot Framework?
The Robot Framework ecosystem
Installing and setting up the Robot Framework
Source installation
One-click graphical installer
Java environment installation
The Python package installation
Support for different runtimes
Command details
A small exercise
Summary
2. Configuring a Test Project
Test naming conventions
Creating an execution order
Test randomization
Test file structure
HTML format
TSV format
Plaintext format
Pipe-separated format
Restructured text format
Test configuration files
Suite initialization files
External variable files
Structure
Python/Java files containing variables
Resource files
Structure
Test setup and teardown
Summary
3. Further Test Customization
Automation and agile
Internal re-use
Loops and flow control
Flow control
Breaking off without finishing
Feeding external data
Performing a set of tasks repeatedly within a test
Application in test automation
Higher order re-use
User keywords
Test templates
User libraries
Approaches towards writing tests
Keyboard-driven tests
Data-driven tests
Behavior-driven tests
Behavior-driven development
BDD using the Robot Framework
Standard libraries
Collections
Dialogs
Operating System
Process
Screenshot
String
Telnet
XML
Remote test execution
Summary
4. Extending the Framework
Testing the web applications
Selenium
The Robot Framework Selenium library
Running web-based tests
Using the Selenium2Library
Debugging through the REPL shell
Testing desktop applications
Testing through objects – Java Swing
A Swing test
Testing through images
Sikuli
Creating a custom Sikuli library
Other noteworthy libraries
Testing network protocols
Testing the web services
Testing the database
Summary
5. Generating Reports
The need for reports
Quick-test run assessment
Result comparison
Individual result detailing
Intelligent assessment
Generated files
Output structure
Heading
Summary information
Test statistics
Test details
Test execution log
Test coloring information
Separating files
Making changes in outputs
Customizing the report title
Background color customization
Changing how much is logged
Changing the report format
Creating derived reports
Recreating reports
Viewing differences
Further result usage
Summary
Index
Robot Framework Test Automation
Robot Framework Test Automation
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2013
Production Reference: 1181013
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-303-3
www.packtpub.com
Cover Image by Vivek Sinha (<vs@viveksinha.com>)
Credits
Author
Sumit Bisht
Reviewers
Syed Mohd Mohsin Akhtar
Ismo Aro
Acquisition Editor
Pramila Balan
Commissioning Editor
Mohammed Fahad
Technical Editors
Dipika Gaonkar
Mrunmayee Patil
Sonali Vernekar
Project Coordinator
Michelle Quadros
Proofreader
Stephen Copestake
Indexer
Rekha Nair
Graphics
Abhinash Sahu
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa
About the Author
Sumit Bisht currently works as a Senior Software Engineer at a software service outsourcing firm. He has experience in both project and product-based companies and has done Masters in Computer Applications in addition to self-taught learning as part of his learning process towards making computers work. He has keen interests in leveraging various open source technologies for developing better software, considers himself a polyglot programmer and has experience working with different programming. While not working, he devotes his time in learning new researches and technologies, reviewing technical books on a wide variety of topics, sharing interesting information, and evangelizing open source philosophy through his blog, sumitbisht.blogspot.in.
I'd like to thank Vikram Mohan Sujanani for introducing me to the Robot Framework, while being my patient mentor, and Jayanti Kumar Srivastava for his support and expertise while unraveling elements of the framework. The entire Packt Publication team has worked tirelessly and persistently towards making this book a reality, and deserve a pat on the back. I am also grateful to Syed Mohd Mohsin Akhtar for reviewing this book. Last but not least, a huge thanks to Pekka Klärck and other members of the open source community for making available this versatile software and painstakingly extending help to various users.
About the Reviewers
Syed Mohd Mohsin Akhtar is a Software Engineer (R&D) at Encardio-Rite Electronics Pvt. Ltd., Lucknow, India. He received his M.C.A.(Hons.) from GBTU, India and eventually earned his spot as Software Engineer at DataBorough India a research subsidiary of DataBorough UK. He also has a specialized degree in Computer Maintenance from Aligarh Muslim University, India. He has been a Microsoft Student Partner, member OSUM (Open Source University Meetup), and an active member within several technical forums in his college days. He loves to work as a hobbyist in the areas of Computer Science and electronics. He can be contacted at <mohsin.bcm.amu@gmail.com>.
First of all, I am grateful to Almighty Allah
for giving me strength.
I would like to express my sincere gratitude to Packt Publishing, for giving me the opportunity to have a first look at the book, and Sumit Bisht the author of this book for recommending me to review his book.
At last I would like to thank my parents, family, and my friends.
Ismo has a long history of working in agile projects as a change agent. He has a strong focus in modernizing ways of working and quality of work. Quality assurance is close to his heart and he has worked as a Product Owner of the Robot Framework, leading the development of it, and implemented good testing practices company-wide.
At the moment he is working for Basware Corporation as a Lead QA Engineer, responsible for bringing in world-class Agile Testing and Test Automation. His previous employers have been Nokia Networks, Nokia Siemens Networks, and Ericsson.
I want to thank my lovely wife and my two amazing kids. You are always in my heart.
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for