✨ Web Automation Testing using Robot Framework with Selenium Library & Python ✨
What will be used on this project
Item | Source |
---|---|
Editor | VS Code (https://code.visualstudio.com/download) |
Package Manager | PIP (https://pip.pypa.io/en/stable/getting-started/) |
UI Test Tools | Robot Framework with Python (https://robotframework.org/#getting-started) |
Selenium Library (https://github.com/robotframework/SeleniumLibrary/) | |
PyYaml (https://pypi.org/project/PyYAML/) | |
Design Pattern | Selenium POM or Page Object Model |
Test Reporter | Robot Framework with Python (https://robotframework.org/#getting-started) |
Browser | Latest version of Chrome / Firefox / Edge / Safari |
Install VS Code Editor, Python, and PIP
To check whether you already installed Python & PIP
python --version
python -m pip --version
Install Robot Framework
python -m pip install robotframework
Install Selenium Library
python -m pip install --upgrade robotframework-seleniumlibrary
Install PyYAML
python -m pip install pyyaml
👉 Clone this Repository through Terminal or Command Prompt
Open this Automation Project using VS Code Editor.
Change to Project directory on Terminal or Command Prompt
cd RobotSeleniumTest
Run Specific Test Execution on Terminal
robot --outputdir output/ step/test_login.robot
Run All Test Execution on Terminal
robot --outputdir output/ .
Note: Please wait until all test execution finished
Default Browser used is Chrome
Run All Test on Various Browser
robot --variable browser:chrome --outputdir output/chrome .
robot --variable browser:firefox --outputdir output/firefox .
robot --variable browser:safari --outputdir output/safari .
✅ Report available on RobotSeleniumTest/output/report.html OR
✅ Report available on RobotSeleniumTest/output/browser/report.html