https://github.com/rahulmoundekar/robot-framework-example
robot-framework-tutorial using python
https://github.com/rahulmoundekar/robot-framework-example
python-3-7 robot-framework selenium-webdriver
Last synced: 6 months ago
JSON representation
robot-framework-tutorial using python
- Host: GitHub
- URL: https://github.com/rahulmoundekar/robot-framework-example
- Owner: rahulmoundekar
- Created: 2020-05-28T13:04:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T12:42:17.000Z (about 3 years ago)
- Last Synced: 2025-04-06T20:11:15.359Z (11 months ago)
- Topics: python-3-7, robot-framework, selenium-webdriver
- Language: Python
- Size: 18.5 MB
- Stars: 4
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Robot Framework :

The robot framework is platform-independent, Although the core framework is implemented using python it can also run on JPython(JVM) and IronPython(.NET). Robot Framework is a generic open source automation framework. It can be used for test automation and robotic process automation (RPA).
### Features Of Robot Framework
Enlisted below are the main features of the Robot Framework:
* Robot Framework is used for Acceptance Testing and Acceptance Test-driven development.
* The Framework uses the keyword-driven approach where small understandable words (either pre-defined or user-defined) are used for writing scripts.
* It supports Test Automation for different data sets thereby supporting data-driven testing.
* It shuns the use of large code and follows a behavior-driven testing approach.
* Test cases are written using keyword (pre-defined or user-defined) in a tabular format.
* Users have the option of creating their keywords.
* It supports the use of Variables.
* It can interact with third-party libraries and functions.
* It allows tagging of test cases that come handy while trying to run either of the Smoke Test Cases, Regression Test Cases, System Test Cases, etc.
* It provides detailed reports and logs of the execution status which is very helpful in case of failure of the script.
* The reports and logs are generated after every build execution.
#### Pre Requisites
- Making the project as :
```
mkdir robot-framework-example
cd robot-framework-example
```
- pip installation:
```
open command prompt type
pip install virtualenv
create virtualenv
>>virtualenv venv
we need to activate virtualenv for use
>>venv\scripts\activate
pip install robotframework
pip install robotframework-selenium2library
pip install robotframework-seleniumlibrary
pip install selenium
```
The selenium library in the robot framework is a web testing library that uses the selenium tools internally. Selenium library works fine with python 2.7, 3.4 and newer versions. In addition to the standard python interpreter, it works with Pypy and JPython except for IronPython.
#### Robot framework test data is defined in different sections listed below.
##### Settings
It is used for importing resource files, libraries, and variable files. Also used for defining metadata for test cases and test suites.
##### Variables
Used for defining variables that can be used elsewhere in test data.
##### Test Cases
It is used to create test cases from available keywords
##### Tasks
Used to create tasks using available keywords
##### Keywords
Creating user keywords from available lower-level keywords
##### Comments
Additional comments that are normally ignored by the framework