This is sample Test Automation framework is designed using Robot Framework. And in this framework we will see some basic working examples for learning.
- This automation framework is designed using Robot Framework.
- Python is used as scripting language.
- Reporting is implemented using
Robot Framework
in-built module. This generates the report in html and it captures the screenshots.
- Download and install Chrome or Firefox browser.
- Download and install Python
- Download and install any Text Editor like Visual Code/Sublime/intellij Idea
- Clone the repository into a folder
- Go to Project root directory and install dependencies by running:
pip install -r requirements.txt
- All the dependencies from requirements.txt would be installed.
- Now you have to set the path of ChromeDriver.
Download the ChromeDriver from
https://chromedriver.chromium.org/
Unzip and save it in any location, but preferably in root directory of the framework. Add Environment Varable to System Variable path, in my case itsD:\MyWorkSpace\Drivers
- From CLI, go to the directory where you have saved your test case file.
- Then execute the following command
python -m robot TestSuite
- From CLI, go to the directory where you have saved your test case file.
- Then execute the following command
python -m robot TestSuite/SearchTest.robot
- Open Command Prompt
- Go to you Project Path
- Type:
ride.py
- Hit Enter key
- Go to root directory of your project and open
report.html
- Open Terminal and run command
pip install --upgrade -r requirements.txt