Book Image

Robot Framework Test Automation

By : Sumit Bisht
Book Image

Robot Framework Test Automation

By: Sumit Bisht

Overview of this book

Testing has traditionally been a part of software development, and has always involved a lot of manual effort. It can be automated with Robot Framework, which offers numerous benefits from cost saving to increased quality assurance in the software delivery. This book will help you to start designing test suites and Automated Acceptance Tests. Helping you to get started with automating acceptance tests, this book will provide a detailed overview of acceptance test management practices and principles. You will also be introduced to advanced techniques that you can use to customize the test suite, along with helpful tips and tricks to extend and leverage it in a wide variety of scenarios. Starting with a detailed explanation of the need for automated acceptance test driven development, this guide will help you with an empty test project creation and execution for proof of concept, and validation of installation. This book will also cover the Robot Framework in detail, and will help you test desktop applications using Java Swing. You will gain an in-depth knowledge of tricky activities, such as setting up a test environment and using it with Selenium. You will also learn about other popular libraries, and how to test network protocols, web services, and databases. This book will cover the entire Robot Framework with real- world practical material to make its content informative and interesting. By the end of this book you will be able to write acceptance tests for desktop and web applications, as well as know how to extend acceptance testing in other scenarios that are commonly devoid of tests, and present the results appropriately.
Table of Contents (12 chapters)

Test configuration files


As mentioned before, the tests are stored in files and are clubbed in folders that act as test suite for the files. A test file can contain different sections, which can optionally be moved into other files dedicated specifically towards the work of that particular section. Thus reducing the length and complexity of the actual test file, which is helpful if the test size is very large.

The test configuration files apart from the actual test files and folders are:

Suite initialization files

A folder in the Robot Framework denotes a test suite for all the files and subfolders contained in it. As there is no way to specify metadata of the test suite except for the folder name, there is a provision for special files that pertain to the folder in which they are placed. As with specifying a directory as a module in Python, initialization files have to be named as __init__ and their extension can be any valid extensions allowed by the Robot Framework. The format of these files...