
Robot i Robot About the Tutorial Robot Framework is an open source test automation framework for acceptance testing and acceptance test-driven development. It follows different test case styles – keyword- driven, behaviour-driven and data-driven for writing test cases. This feature makes it very easy to understand. Test cases are written using keyword style in a tabular format. Robot Framework provides good support for external libraries, tools that are open source and can be used for automation. The most popular library used with Robot Framework is Selenium Library used for web development & UI testing. Audience This tutorial is designed for software programmers/testers, who want to learn the basics of Robot Framework automation testing in simple and easy ways. This tutorial will give you enough understanding on various functionalities of Robot Framework with suitable examples. Prerequisites Before proceeding with this tutorial, you should have a basic understanding of testing concepts. Copyright & Disclaimer Copyright 2019 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected] i Robot Table of Contents About the Tutorial ............................................................................................................................................ i Audience ........................................................................................................................................................... i Prerequisites ..................................................................................................................................................... i Copyright & Disclaimer ..................................................................................................................................... i Table of Contents ............................................................................................................................................ ii 1. Robot Framework — Overview ................................................................................................................. 1 Robot Framework Features ............................................................................................................................. 1 Robot Framework Advantages ........................................................................................................................ 2 Robot Framework Limitations ......................................................................................................................... 2 Conclusion ....................................................................................................................................................... 3 2. Robot Framework — Environment Setup .................................................................................................. 4 Install Python ................................................................................................................................................... 4 Setting path for Windows ................................................................................................................................ 6 3. Robot — Unix and Linux Installation ......................................................................................................... 9 Setting Path at Unix/Linux ............................................................................................................................... 9 Install PIP ......................................................................................................................................................... 9 Install Robot Framework ............................................................................................................................... 11 Install wxPython ............................................................................................................................................ 12 Install Ride ..................................................................................................................................................... 14 Conclusion ..................................................................................................................................................... 16 4. Robot Framework — Introduction to Ride .............................................................................................. 18 Create New Project........................................................................................................................................ 19 Conclusion ..................................................................................................................................................... 24 5. Robot Framework — First Test Case Using Ride ...................................................................................... 25 The Settings Format ...................................................................................................................................... 30 Conclusion ..................................................................................................................................................... 39 ii Robot 6. Robot framework — Writing and Executing Test Cases ........................................................................... 40 Project Setup ................................................................................................................................................. 40 Importing Libraries ........................................................................................................................................ 45 Write test case in tabular format .................................................................................................................. 48 Using Tags for Executing Test Case................................................................................................................ 50 Use Resource Files for Test Case ................................................................................................................... 51 Conclusion ..................................................................................................................................................... 57 7. Robot framework — Keyword and Data Driven Test Cases ..................................................................... 59 Keyword Driven Style .................................................................................................................................... 59 Data Driven Style ........................................................................................................................................... 64 Conclusion ..................................................................................................................................................... 67 8. Robot — Working With Browsers Using Selenium Library ...................................................................... 68 Project Setup In Ride ..................................................................................................................................... 68 Import Selenium Library ................................................................................................................................ 71 Test Case Using Chrome Browser .................................................................................................................. 79 Test Case Using Firefox Browser ................................................................................................................... 87 Conclusion ..................................................................................................................................................... 87 9. Robot Framework — Working With Textbox .......................................................................................... 89 Project Setup for Textbox Testing ................................................................................................................. 89 Enter Data in Textbox .................................................................................................................................... 93 Conclusion ..................................................................................................................................................... 97 10. Robot Framework — Working With Radio Button .................................................................................. 99 Project Setup For Textbox Testing ................................................................................................................. 99 Test Case for Radio Button .......................................................................................................................... 104 Conclusion ..................................................................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages223 Page
-
File Size-