{"id":28591540,"url":"https://github.com/monarc-project/monarc-selenium","last_synced_at":"2025-07-17T06:33:29.361Z","repository":{"id":157391673,"uuid":"633460060","full_name":"monarc-project/monarc-selenium","owner":"monarc-project","description":"This is a testing set application for the Monarc web tool.","archived":false,"fork":false,"pushed_at":"2023-04-27T14:46:24.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-11T09:56:53.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/monarc-project.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":"2023-04-27T14:43:38.000Z","updated_at":"2023-04-27T14:45:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f6cf431-e0e8-4f8e-8b30-487aaa969d79","html_url":"https://github.com/monarc-project/monarc-selenium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monarc-project/monarc-selenium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monarc-project%2Fmonarc-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monarc-project%2Fmonarc-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monarc-project%2Fmonarc-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monarc-project%2Fmonarc-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monarc-project","download_url":"https://codeload.github.com/monarc-project/monarc-selenium/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monarc-project%2Fmonarc-selenium/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265573520,"owners_count":23790455,"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":[],"created_at":"2025-06-11T09:36:03.077Z","updated_at":"2025-07-17T06:33:29.356Z","avatar_url":"https://github.com/monarc-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monarc Test Suite\n\nThis is a test suite for the login functionality of the Monarc web application. The test suite is implemented using Selenium in Python, and uses the unittest framework to define and run test cases.\n\n## Requirements\n\n- Python 3.x\n- Selenium WebDriver\n- ChromeDriver\n- chromedriver-binary package\n- unittest\n\n## Installation\n\n1. Clone this repository to your local machine.\n2. Install Python 3.x if you don't have it installed already.\n3. Install the Selenium WebDriver for Chrome. You can download it from the [official website](https://sites.google.com/a/chromium.org/chromedriver/downloads) or install it using a package manager like `apt-get` or `brew`.\n4. Install the `chromedriver-binary` package using `pip`: `pip install chromedriver-binary`.\n5. Install the `unittest` package using `pip`: `pip install unittest`.\n\n## Configuration\n\nBefore running the test suite, you need to configure the test environment by setting some variables in the `config.py` file. In particular, you need to set the path to the ChromeDriver executable and the base URL for the MyMonarc web application. You also need to set the login credentials for valid and invalid logins.\n\n```python\nclass Config:\n    \"\"\"Config class to store configuration variables\"\"\"\n\n    # Selenium configuration\n    BASE_URL = \"https://127.0.0.1:5000/\"\n\n    # Login configuration\n    VALID_USERNAME = \"valid_username\"\n    VALID_PASSWORD = \"valid_password\"\n    INVALID_USERNAME = \"invalid_username\"\n    INVALID_PASSWORD = \"invalid_password\"\n```\n\n## Usage\n\nTo run the test suite, simply execute the `run_tests.py` script:\n\n```\npython run_tests.py\n```\n\nThis will run all the test cases defined in the `TestLogin` module and print the results to the console.\n\n## Test Suite Structure\n\nThe test suite is organized as follows:\n\n- `config.py`: Configuration variables for the test suite.\n- `run_tests.py`: Script to run the test suite.\n- `pages/`: Directory containing page object classes for the different pages of the MyMonarc web application.\n- `tests/`: Directory containing the test case classes for the MyMonarc web application.\n- `tests/test_login.py`: Test case class for the login functionality of the MyMonarc web application.\n- `tests/__init__.py`: Empty file that tells Python that the `tests` directory should be treated as a package.\n\n## License\n\nThis software is licensed under\n[GNU Affero General Public License version 3](http://www.gnu.org/licenses/agpl-3.0.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonarc-project%2Fmonarc-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonarc-project%2Fmonarc-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonarc-project%2Fmonarc-selenium/lists"}