Robot Automation Session October
Robot Automation Session October
Let’s Automate
Classification: KONE Internal
Table of Content
Automation Overview
RF Architecture
RF Introduction
Operation Overview
Classification: KONE Internal
Operation Overview
Changed files are given to Tester for testing Software’s are given to Manual Tester
Global Information Tracker managing all the artifacts, binaries, packages, files,
software for distributed version control containers, and components for use throughout your
tracking changes in any set of files software supply chain
coordinating work among programmers
collaboratively developing source code during
software development
Classification: KONE Internal
Robot Framework
What is Automation Testing?
• In Simple word, Writing script for what we manually test.
• You can even automate things that you daily use to check routinely in your office application
What is Robot Framework?
• Python-based, extensible keyword-driven automation framework for testing
• Robot Framework is a generic open-source automation framework
• It can be used for test automation and robotic process automation (RPA).
• Robot Framework is actively supported, with many industry-leading companies using it in their
software development.
• It utilizes Keyword-driven testing approach
• Suitable for both normal test automation as well as ATDD
• The core framework is implemented using Python and also runs on Jython(JVM) and IronPython
(.NET)
Installation
• After completing PC Setup guide, install python and Robot-framework if not installed
• Version Check: Make sure the version required to install
robot –version
python3 –version
• Install Python and RobotFramework: Run the Below command in Terminal
pip install robotframework==4.1.2
sudo apt install python3
Classification: KONE Internal
Advantages
• Robot Framework is open and extensible and can be integrated with virtually any other tool to create powerful and flexible automation
solutions.
• Robot Framework has easy syntax, utilizing human-readable keywords.
• Its capabilities can be extended by libraries implemented with Python or Java.
• The framework has a rich ecosystem around it, consisting of libraries and tools that are developed as separate projects.
• Robot Framework project is hosted on GitHub
• Robot Framework is operating system and application independent
• Robot Framework itself is open-source software released under Apache License 2.0, and most of the libraries and tools in the ecosystem
are also open source.
• Robot Framework has a modular architecture that supports creating tests even for applications with several diverse interfaces.
Note: You can use an IDE to program from scratch, or you can integrate a framework within an IDE, or you can use a framework
without an IDE, or program without an IDE or frameworks
Classification: KONE Internal
Automation Overview
• Before we are getting into Automation Coding, Lets understand What is libraries,
Keywords and Test Case
• These are nothing but tier’s structure – Usually most of the automation testing has
three tier structure Library is the core; Next will be Keywords and using both
these library and keywords, Testcase’s are implemented.
• Why we having such 3 or 4 Tier structure
• For convenient Purpose
• Proper Alignment
• Reuse the same function
• Still Confused? Let’s see the overall picture of it before getting deep in each
concept separately.
• We having 4 tier structure/Abstraction level Protocol; Library; Keyword; Testcases
• Within Csi_test_tools – We have library and within that we have protocol too.
Classification: KONE Internal
Protocol
• Visit: kcegc/tests/libraries/csi_test_tools/protocol
• This is the core of the testcase’s. Protocols are created to serve the needs
of different types of data communication between devices
Classification: KONE Internal
Library
This is nothing but Python function’s
Robot Framework itself is not built to interact with a specific system and does not have a strictly defined list of functionalities.
Instead, it is built to be easily extended to work with any possible target system
These extensions to the framework are called libraries
Libraries provide the actual automation and testing capabilities to Robot Framework by providing keywords.
All robot framework keywords are imported from library
The framework itself ships with standard libraries, used to handle common cases
Example:
- Builtin
- OperatingSystem
- String
- Collections
- DateTime
- Process
Classification: KONE Internal
They also maintains a set of libraries that are built specifically to support few automation cases. Which we usually call as external
library
- SeleniumLibrary
- SSHLibrary
- Httplibrary
Except for the standard set, libraries come in packages that you have to add before you can use them in your robot
Csi_test_tools
• These are some examples of how we writing our own function to communicate with the system
Classification: KONE Internal
Keywords
• Keywords are operations that your robot can execute to accomplish various tasks, and are the foundation of any robot script
• Keywords can be reused, and they can be composed, which means that you can create keywords by calling other keywords
• Keywords can be defined outside of the test suite and be imported as an external resources.
• User defined keywords can be used to wrap built-in keywords in order to maintain level of abstraction
Classification: KONE Internal
Testcase’s
Classification: KONE Internal
Test Structure: