{"id":28442339,"url":"https://github.com/salhifayza/jbl_robot_framework_python","last_synced_at":"2026-05-19T07:32:09.292Z","repository":{"id":296573304,"uuid":"993820778","full_name":"SalhiFayza/JBL_Robot_FrameWork_Python","owner":"SalhiFayza","description":"🎧 🤖 🐍","archived":false,"fork":false,"pushed_at":"2025-05-31T17:06:42.000Z","size":55355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T06:45:47.057Z","etag":null,"topics":["automated-testing","python3","robotframework"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SalhiFayza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-31T15:40:33.000Z","updated_at":"2025-05-31T17:06:46.000Z","dependencies_parsed_at":"2025-06-01T05:08:11.437Z","dependency_job_id":null,"html_url":"https://github.com/SalhiFayza/JBL_Robot_FrameWork_Python","commit_stats":null,"previous_names":["salhifayza/jbl_robot_framework_python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SalhiFayza/JBL_Robot_FrameWork_Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalhiFayza%2FJBL_Robot_FrameWork_Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalhiFayza%2FJBL_Robot_FrameWork_Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalhiFayza%2FJBL_Robot_FrameWork_Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalhiFayza%2FJBL_Robot_FrameWork_Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SalhiFayza","download_url":"https://codeload.github.com/SalhiFayza/JBL_Robot_FrameWork_Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalhiFayza%2FJBL_Robot_FrameWork_Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956328,"owners_count":26075221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated-testing","python3","robotframework"],"created_at":"2025-06-06T06:00:24.901Z","updated_at":"2025-10-08T13:56:53.413Z","avatar_url":"https://github.com/SalhiFayza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🎧 🤖 🐍 💻 ☕\n## JBL Headset Automation Testing\n\nThis project automates testing for a JBL Bluetooth headset using **Python** and **Robot Framework**. It verifies Bluetooth connectivity, plays a YouTube video, and controls system volume dynamically to simulate real-world usage.\n\n---\n\n## 🚀 Features\n\n- ✅ Check if the headset is connected via Bluetooth\n- 📺 Play a YouTube video automatically\n- 🔊 Dynamically increase the system volume step-by-step\n- 📉 Read and validate current volume level\n- 📄 Generate test reports (HTML/XML)\n\n---\n\n## 🧩 Project Structure\n\n![alt text](image.png)\n---\n\n## ⚙️ Requirements\n\n- Python 3.8+\n- Robot Framework\n- Playwright\n- PulseAudio (for volume control, Linux only)\n- A Bluetooth headset (JBL or any compatible)\n\n---\n\n## 📦 Installation\n\n1. **Clone the repo**\n```bash\ngit clone https://github.com/SalhiFayza/JBL_Robot_FrameWork_Python.git\ncd JBL_Robot_FrameWork_Python\n```\n\n2. **Install dependencies**\n```bash\npip install -r requirements.txt\nplaywright install\n```\n\n3. **Turn on and connect your Bluetooth headset (e.g., JBL)**\n![alt text](image-2.png)\n4. **Update your JBL MAC address**\nOpen the file ```resources/variables.robot``` and replace the default MAC address with your headset's:\n```\n${MAC}           37:2B:54:9C:75:C4\n```\n---\n\n## ▶️ Running the Tests\n\nYou can run the tests in two ways:\n\n### 1. Using Python runner:\n\n```bash\npython run_tests.py\n```\n\n### 2. Using Robot Framework directly:\n\n```bash\nrobot jbl.robot\nor\nrobot -d ./Results/ ./tests/jbl.robot\n```\n![alt text](img1.png)\nTest results will be available in:\n\n- `output.xml` – test execution log\n- `log.html` – detailed log with steps\n- `report.html` – summary report\n\n---\n\n## 🧪 Example Test Case\n\n- Check if headset is connected\n- Open YouTube\n- Simulate increasing volume from 0% to 100%\n- Log the current volume\n- Fail if volume is not detected\n\n---\n## 🥇 Volume Control Logic – Explained\n```\n current_volume = 0\n    set_volume(current_volume)\n    time.sleep(3)\n\n    while current_volume \u003c 100:\n        current_volume += 10\n        set_volume(min(current_volume, 100))\n        time.sleep(4)\n\n    time.sleep(3)\n    browser.close()\n```\nThis code starts by setting the system volume to 0%, then gradually increases it by 10% every 4 seconds until it reaches 100%. It uses small delays to simulate natural volume changes while a YouTube video plays, then closes the browser at the end.\n\n\n---\n\n## 💡 Notes\n\n- Works best on Linux (uses `pactl` and `bluetoothctl`)\n- You must pair your headset before running tests\n- The test will open a Chromium browser window (Playwright)\n\n---\n\n## 📬 Contact\n\nMade by Salhi Fayza  \n---\n\n## 📄 License\n\nMIT License – Free to use and modify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalhifayza%2Fjbl_robot_framework_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalhifayza%2Fjbl_robot_framework_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalhifayza%2Fjbl_robot_framework_python/lists"}