{"id":26474280,"url":"https://github.com/emanmhmd/swag_labs_testing","last_synced_at":"2025-03-19T22:52:05.303Z","repository":{"id":192872854,"uuid":"687640697","full_name":"emanmhmd/Swag_Labs_testing","owner":"emanmhmd","description":"Sample demo of testing web-app using Selenium by python","archived":false,"fork":false,"pushed_at":"2023-09-16T17:29:04.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-17T03:41:50.347Z","etag":null,"topics":["pytest","python","python3","selenium","selenium-python","test-automation","testing","ui-testing"],"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/emanmhmd.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}},"created_at":"2023-09-05T17:36:42.000Z","updated_at":"2023-09-07T12:34:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"d418d292-462b-44a1-a8ab-c5de7b0fc85b","html_url":"https://github.com/emanmhmd/Swag_Labs_testing","commit_stats":null,"previous_names":["emanmhmd/swag_labs_testing"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanmhmd%2FSwag_Labs_testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanmhmd%2FSwag_Labs_testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanmhmd%2FSwag_Labs_testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanmhmd%2FSwag_Labs_testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanmhmd","download_url":"https://codeload.github.com/emanmhmd/Swag_Labs_testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244520144,"owners_count":20465627,"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","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","python3","selenium","selenium-python","test-automation","testing","ui-testing"],"created_at":"2025-03-19T22:52:04.745Z","updated_at":"2025-03-19T22:52:05.295Z","avatar_url":"https://github.com/emanmhmd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swag Labs Testing Demo   \n\nThis is a demo project for automated testing of the Swag Labs e-commerce website using Selenium. The project includes test cases to validate various parts of the website.  \n\n## Test Cases  \n\nThe test cases included in this project are:  \n\n1. **Test Login with Valid Credentials**: Validates the login functionality using valid credentials.  \n2. **Test Login with Invalid Credentials**: Validates the login functionality using invalid credentials.  \n3. **Test Add Items to Cart and Checkout**: Adds items to the cart and completes the checkout process.  \n\n## Demo  \n  \nYou can watch a sample demo of the tests in action here .  \n\nhttps://github.com/emanmhmd/Swag_Labs_testing/assets/63087099/ccf77a6c-8bf9-405c-a581-cee543bd827d\n\n\n\n\n## Project Structure  \n\nThe project is organized as follows:  \n\nSwag_Labs_testing/  \n│  \n├── Tests/  \n│ ├── test_login.py  \n│ ├── test_addtocart.py  \n│ └── ...  \n│  \n├── Pages/  \n│ ├── LoginPage.py  \n│ ├── Addtocart.py  \n│ └── ...  \n│  \n├── Fixtures/  \n│ ├── Data.json  \n│  \n└── README.md   \n\n\n- **Tests**: Contains test scripts for different parts of the Swag Labs website.  \n- **Pages**: Includes Python classes representing various pages of the website to encapsulate page elements and interactions.  \n- **Fixtures**: Stores fixtures and test data, such as login credentials, in JSON format.  \n\n## Getting Started  \n\nTo run the tests, follow these steps:  \n\n1. Clone this repository to your local machine.  \n2. Navigate to the project directory.  \n3. Install the necessary dependencies using `pip install selenium`.  \n4. Run the tests using the testing framework of your choice. For example, you can run `pytest Tests` to execute all test scripts in the `Tests` directory.  \n\n## Environment  \n\n- **Selenium Version**: 4.12.0  \n- **System Platform**: Linux (Ubuntu 22.04)  \n- **Browser**: ChromeDriver 116.0.5845.96  \n\n## Contributors  \n\n- [Eman Mahmoud](https://github.com/emanmhmd)  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanmhmd%2Fswag_labs_testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanmhmd%2Fswag_labs_testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanmhmd%2Fswag_labs_testing/lists"}