This repository contains automated tests using Robot Framework to verify and validate the Sheger FM website.
This project aims to automate the verification, validation, and testing of the Sheger FM website using Robot Framework, a generic open-source automation framework for acceptance testing.
To run the tests in this repository, you need to have the following installed:
- Python (version 3.x recommended)
- pip (Python package installer)
- Robot Framework
- SeleniumLibrary (Robot Framework's Selenium-based library)
- ChromeDriver (WebDriver for Chrome, for Selenium)
-
Python Installation:
- Download and install Python from python.org.
-
PIP Installation:
- PIP usually comes installed with Python. You can verify by running
pip --version
in your terminal/command prompt.
- PIP usually comes installed with Python. You can verify by running
-
Robot Framework Installation:
- After installing Python, install Robot Framework using pip:
pip install robotframework
- After installing Python, install Robot Framework using pip:
-
SeleniumLibrary Installation:
- Install SeleniumLibrary using pip:
pip install robotframework-seleniumlibrary
- Install SeleniumLibrary using pip:
-
ChromeDriver Installation:
- Download ChromeDriver from ChromeDriver Downloads.
- Extract the downloaded file and place the
chromedriver
executable in a directory that is in your system's PATH.
Before running the tests, configure the necessary details:
- Clone the Repository:
git clone https://github.com/DanielKinnito/SVVT cd SVVT
- Configuration: Update the tests/test_shegerfm.robot file with appropriate test cases and configurations relevant to Sheger FM.
To execute the tests:
- Navigate to the project directory:
cd SVVT
- Run the Robot Framework tests:
robot -d results tests/test_shegerfm.robot
This command runs all the tests defined in test_shegerfm.robot.
After running the tests, Robot Framework generates output.xml, log.html, and report.html files in your project directory. Open report.html in your browser to view the detailed test execution report.
start results\report.html
Here are some of the key test cases implemented for the Sheger FM website:
- Live Radio Streaming:
Verify that live radio streaming is accessible from the homepage. Verify that the play, pause, and stop controls for live streaming work correctly.
- On-Demand Audio Playback:
Verify that users can access on-demand audio playback from the on-demand section. Verify that the play, pause, fast-forward, and rewind controls work for on-demand audio.
- Program Schedules:
Verify that the daily and weekly program schedules are displayed correctly. Verify that detailed information about each program is accessible.
- Artist Profiles:
Verify that artist profiles are accessible and display the correct information.
- Listener Interaction:
Verify that the song request form is functional. Verify that the feedback form is functional and submissions are processed correctly. For detailed test cases and implementation, refer to the test_shegerfm.robot file in tests.
Contributions are welcome! To contribute:
- Fork the repository.
- Create your feature branch.
git checkout -b feature/new-feature
- Commit your changes.
git commit -am 'Add new feature'
- Push to the branch.
git push origin feature/new-feature
- Create a new Pull Request.
Screenshots and codes in this repo may not be correct. You will have to correct the xpath in the codes to get the results you want.