{"id":32785908,"url":"https://github.com/vans-codelab/pytest-selenium-login-test","last_synced_at":"2026-05-16T09:34:54.888Z","repository":{"id":320899663,"uuid":"1074822168","full_name":"vans-codelab/pytest-selenium-login-test","owner":"vans-codelab","description":"Automated browser tests simulating user interactions, implemented with Selenium and Pytest","archived":false,"fork":false,"pushed_at":"2026-01-11T15:10:49.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T17:53:52.086Z","etag":null,"topics":["pytest","python","selenium","selenium-webdriver","test-automation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vans-codelab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-12T14:46:17.000Z","updated_at":"2025-12-06T15:16:26.000Z","dependencies_parsed_at":"2025-12-26T03:03:51.984Z","dependency_job_id":null,"html_url":"https://github.com/vans-codelab/pytest-selenium-login-test","commit_stats":null,"previous_names":["vans-codelab/pytest-selenium-login-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vans-codelab/pytest-selenium-login-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vans-codelab%2Fpytest-selenium-login-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vans-codelab%2Fpytest-selenium-login-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vans-codelab%2Fpytest-selenium-login-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vans-codelab%2Fpytest-selenium-login-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vans-codelab","download_url":"https://codeload.github.com/vans-codelab/pytest-selenium-login-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vans-codelab%2Fpytest-selenium-login-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33096985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["pytest","python","selenium","selenium-webdriver","test-automation"],"created_at":"2025-11-05T04:01:06.395Z","updated_at":"2026-05-16T09:34:54.882Z","avatar_url":"https://github.com/vans-codelab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test automation (web browsing)\nAutomated browser tests simulating user interactions, implemented with Selenium and Pytest.\n\n\n## Project overview\nThis project automates user interactions in a browser, such as clicks and inputs, and verifies expected outcomes using assertions.\n\nIt is part of my personal learning journey into test automation. \nOver time, I have been improving the project by adding features like structured tests, logging, and setup/teardown logic to simulate a more realistic project environment.\n\nAs I am still learning and growing in this area, I am always open to feedback and suggestions.\n\n\n## Features\n- Automated testing of browser-based user interactions\n- Test case covers verifying successful login on a webpage\n- Automated screenshots and logging during test run\n- Clean folder structure\n- Applied Object-Oriented Programming (OOP) principles\n- Setup and teardown routines via `conftest.py`\n- Easy to extend and maintain\n\n\n## Project structure\nThe project follows a simple structure that separates application code from tests:\n\n```\nproject/\n├───src/              -\u003e Source code\n├───tests/            -\u003e Test case(s) and related files\n│   ├───logs/         -\u003e Logs are generated during test run\n│   ├───reports/      -\u003e HTML test reports (can be generated from a command line)\n│   ├───screenshots/  -\u003e Sreenshots are captured during test run\n\n```\n\n\n## Requirements\n- **Programming Language:**  \n  Developed and tested with Python 3.11.  \n  Download Python at: https://www.python.org/downloads/  \n\n\n- **Python Packages:**  \n  See [requirements.txt](requirements.txt) for all dependencies.\n\n\n## Project setup\n\n### 1. Download the project\n\n**Option A – Clone via Git**\n```bash\ngit clone https://github.com/vans-codelab/pytest-selenium-login-test\ncd pytest-selenium-login-test \n```\n\n**Option B – Download ZIP from GitHub**  \nDownload ZIP from GitHub and extract it. Then navigate to the extracted folder with the following command:\n```bash\ncd \u003cpath-to-extracted-project-folder\u003e    # Replace with the actual folder path\n```\n\n### 2. Create a virtual environment and activate it\nWindows:\n```bash\npython -m venv .venv\n.venv\\Scripts\\activate\n```\nmacOS/Linux:\n```bash\npython -m venv .venv\nsource .venv/bin/activate\n```\n\n### 3. Install required packages\n```bash\npip install -r requirements.txt\n```\n\n## Run the test\n### Option 1 (recommended) – Using the terminal or command line:\n\nThis option is recommended for executing the full test suite.\n- Ensure that the virtual environment of the downloaded project is activated (if not already done).\n     ```bash\n     cd \u003cproject-folder-path\u003e    # Replace with the actual folder path\n     ```\n    Windows:\n    ```bash \n    .venv\\Scripts\\activate\n    ```\n    macOS/Linux:\n    ```bash\n    source .venv/bin/activate\n    ```\n\n- Run all test cases\n  ```bash\n  pytest \n  ```\n\n\n### Option 2 (optional) – Using an IDE (e.g. PyCharm):\nTo run a single test case or for easier debugging, an IDE can be used.  \n\n1. Open the project folder in an IDE (e.g. PyCharm).\n2. Ensure that the virtual environment is selected.\n3. Run individual test files using the IDE's built-in test runner.\n\n\n## Test report (optional)\nA `reports/` folder is included in the project structure to store HTML test reports.  \nAfter running the test, a report can be generated by running the following command:\n\n```bash\npytest --html=tests/reports/report.html\n```\n\nThis will create a HTML report inside the `reports/` folder.  \nThe report provides an overview of the executed test case(s) and their results.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvans-codelab%2Fpytest-selenium-login-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvans-codelab%2Fpytest-selenium-login-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvans-codelab%2Fpytest-selenium-login-test/lists"}