https://github.com/fatimazza/robotseleniumtest
Web Automation Testing using Robot Framework with Selenium Library & Python
https://github.com/fatimazza/robotseleniumtest
python robot-framework selenium-library selenium-pom web-automation-testing
Last synced: 2 months ago
JSON representation
Web Automation Testing using Robot Framework with Selenium Library & Python
- Host: GitHub
- URL: https://github.com/fatimazza/robotseleniumtest
- Owner: Fatimazza
- Created: 2023-04-11T05:03:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T03:22:51.000Z (about 3 years ago)
- Last Synced: 2025-03-11T14:19:22.462Z (over 1 year ago)
- Topics: python, robot-framework, selenium-library, selenium-pom, web-automation-testing
- Language: HTML
- Homepage:
- Size: 257 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Robot Selenium Test
:sparkles: Web Automation Testing using Robot Framework with Selenium Library & Python :sparkles:
## Preparation
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 |
## Pre-Requisite Installation
Install VS Code Editor, Python, and PIP
To check whether you already installed Python & PIP
```Bash
python --version
```
```Bash
python -m pip --version
```
## Testing Tools Installation
Install Robot Framework
```Bash
python -m pip install robotframework
```
Install Selenium Library
```Bash
python -m pip install --upgrade robotframework-seleniumlibrary
```
Install PyYAML
```Bash
python -m pip install pyyaml
```
## Setting up Project
### Clone
**👉 [Clone this Repository](https://github.com/Fatimazza/RobotSeleniumTest/)** through Terminal or Command Prompt
### Open the Project on Editor
Open this Automation Project using VS Code Editor.
### Run the Automation Project
Change to Project directory on Terminal or Command Prompt
```Bash
cd RobotSeleniumTest
```
Run Specific Test Execution on Terminal
```Bash
robot --outputdir output/ step/test_login.robot
```
Run All Test Execution on Terminal
```Bash
robot --outputdir output/ .
```
> Note: Please wait until all test execution finished
> Default Browser used is Chrome
Run All Test on Various Browser
```Bash
robot --variable browser:chrome --outputdir output/chrome .
```
```Bash
robot --variable browser:firefox --outputdir output/firefox .
```
```Bash
robot --variable browser:safari --outputdir output/safari .
```
### Test Execution HTML Report
:white_check_mark: Report available on RobotSeleniumTest/output/report.html OR
:white_check_mark: Report available on RobotSeleniumTest/output/browser/report.html