{"id":30770421,"url":"https://github.com/daud-nisar/ecommerce-automation","last_synced_at":"2026-05-14T20:33:07.034Z","repository":{"id":303475608,"uuid":"1015642405","full_name":"Daud-Nisar/ecommerce-automation","owner":"Daud-Nisar","description":"Automation suite for signup and login flows using Selenium and PyTest, featuring dynamic email generation and JSON-based data reuse.","archived":false,"fork":false,"pushed_at":"2025-07-07T21:41:44.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-07T22:20:52.826Z","etag":null,"topics":["automation","e2e-tests","pytest","python","qa-automation","selenium","selenium-webdriver","test-automation","testing-framework","web-testing"],"latest_commit_sha":null,"homepage":"https://github.com/Daud-Nisar/ecommerce-automation","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/Daud-Nisar.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-07-07T20:18:37.000Z","updated_at":"2025-07-07T21:47:47.000Z","dependencies_parsed_at":"2025-07-07T22:20:53.956Z","dependency_job_id":"e2ab5718-9323-4161-99eb-72ea7b5973e0","html_url":"https://github.com/Daud-Nisar/ecommerce-automation","commit_stats":null,"previous_names":["daud-nisar/ecommerce-automation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Daud-Nisar/ecommerce-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daud-Nisar%2Fecommerce-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daud-Nisar%2Fecommerce-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daud-Nisar%2Fecommerce-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daud-Nisar%2Fecommerce-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daud-Nisar","download_url":"https://codeload.github.com/Daud-Nisar/ecommerce-automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daud-Nisar%2Fecommerce-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273685604,"owners_count":25149722,"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-09-04T02:00:08.968Z","response_time":61,"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":["automation","e2e-tests","pytest","python","qa-automation","selenium","selenium-webdriver","test-automation","testing-framework","web-testing"],"created_at":"2025-09-04T23:05:02.086Z","updated_at":"2026-05-14T20:33:06.992Z","avatar_url":"https://github.com/Daud-Nisar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛒 Ecommerce Automation\n\nThis project automates the **Signup** and **Login** workflows of an ecommerce website using **Python**, **Selenium**, and **PyTest**. It simulates real-user behavior, generates unique credentials during signup, saves them to a JSON file, and uses the same credentials to perform login — ensuring a complete end-to-end test.\n\n---\n\n## 🚀 Features\n\n- ✅ Automates user **Signup** flow\n- ✅ Saves user credentials to a **JSON file**\n- ✅ Uses saved credentials in **Login** flow\n- ✅ Uses `webdriver_manager` for easy ChromeDriver management\n- ✅ Clean structure using **Page Object Model (POM)** (optional)\n- ✅ Configurable via `pytest.ini`\n\n---\n\n## 🛠 Tech Stack\n\n- Python 3.x\n- Selenium\n- PyTest\n- WebDriver Manager\n- JSON (for data sharing)\n- [pytest-order](https://pypi.org/project/pytest-order/) (optional)\n\n---\n\n## 📁 Project Structure\n ```\necommerce-automation/\n├── tests/\n│ ├── test_signup.py #Signup automation (with data save)\n│ ├── test_login.py #Login automation (reads data)\n│ └── init.py\n├── utils/\n│ ├── driver_setup.py #get_driver() using Chrome + manager\n│ └── init.py\n├── conftest.py #Pytest fixture for browser\n├── temp_login_data.json #Auto-generated user credentials\n├── pytest.ini #Pytest config\n├── requirements.txt # Dependencies\n├── .gitignore #Ignore venv/.idea/pycache\n└── README.md #You're reading it :)\n```\n\n\n\n---\n\n## 🧾 Setup Instructions\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/Daud-Nisar/ecommerce-automation\ncd ecommerce-automation\n```\n### 2.Create and activate virtual environment (optional)\n**👉 On Windows:**\n```\npython -m venv venv\nvenv\\Scripts\\activate\n```\n**👉 On macOS / Linux:**\n```\nsource venv/bin/activate\n```\n### 3. Install dependencies\n```bash\npip install -r requirements.txt\n```\n---\n### ▶️ Running the Tests\n```bash\npytest\n```\n## To run individually:\n```bash\npytest tests/test_signup.py\npytest tests/test_login.py\n```\n## Sample Output:\n\n🔥 Signup Test Running\n✅ Signup successful\n\n🔥 Login Test Running\n✅ Login successful\n\n---\n\n## 📄 Sample temp_login_data.json\n```bash\n{\n  \"email\": \"Adam1720349320@mail.com\",\n  \"password\": \"SecurePass123\"\n}\n```\nThis file is auto-generated by the Signup test and used in the Login test\n---\n\n## ✅ Requirements\n```bash\nContents of requirements.txt:\nselenium\npytest\nwebdriver-manager\npytest-order\n```\n\n## 🧪 Pytest Configuration (pytest.ini)\n```bash\n[pytest]\ntestpaths = tests\npython_files = test_*.py\npython_functions = test_*\naddopts = -v\n```\n # 👨‍💻 Author\n**Daud Nisar**\nPython Automation Developer\n\n## ⭐️ Support\n\nIf you liked this project:\n\n- ⭐️ Star this repository  \n- ✅ Follow me on [GitHub](https://github.com/Daud-Nisar)  \n- 💬 Share your feedback or suggestions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaud-nisar%2Fecommerce-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaud-nisar%2Fecommerce-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaud-nisar%2Fecommerce-automation/lists"}