{"id":24360593,"url":"https://github.com/cmccarthyirl/kotlin-testng-selenium","last_synced_at":"2026-05-01T20:31:36.974Z","repository":{"id":244543922,"uuid":"815461161","full_name":"cmccarthyIrl/kotlin-testng-selenium","owner":"cmccarthyIrl","description":"This project executes Kotlin tests sequentially or in parallel using TestNG, to provide a basic test harness.","archived":false,"fork":false,"pushed_at":"2024-06-16T04:35:02.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T01:33:01.789Z","etag":null,"topics":["chrome","firefox","kotlin","retry","selenium","testing","testng"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/cmccarthyIrl.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}},"created_at":"2024-06-15T08:19:51.000Z","updated_at":"2024-06-16T04:35:04.000Z","dependencies_parsed_at":"2025-01-18T21:41:57.063Z","dependency_job_id":null,"html_url":"https://github.com/cmccarthyIrl/kotlin-testng-selenium","commit_stats":null,"previous_names":["cmccarthyirl/kotlin-testng-selenium"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cmccarthyIrl/kotlin-testng-selenium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccarthyIrl%2Fkotlin-testng-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccarthyIrl%2Fkotlin-testng-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccarthyIrl%2Fkotlin-testng-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccarthyIrl%2Fkotlin-testng-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmccarthyIrl","download_url":"https://codeload.github.com/cmccarthyIrl/kotlin-testng-selenium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmccarthyIrl%2Fkotlin-testng-selenium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["chrome","firefox","kotlin","retry","selenium","testing","testng"],"created_at":"2025-01-18T21:31:51.241Z","updated_at":"2026-05-01T20:31:36.905Z","avatar_url":"https://github.com/cmccarthyIrl.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotlin TestNG Selenium - Demo\n\n## Description\n\nBrief description of the project.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\n- JDK (Java Development Kit) installed\n- IntelliJ IDEA or any preferred IDE\n- Maven or Gradle (optional, if using for build management)\n\n### Installing\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/yourusername/your-repository.git\n   ```\n\n2. Open the project in IntelliJ IDEA.\n\n3. Resolve dependencies using Maven or Gradle.\n\n### Configuration\n\n1. **Ensure `config.properties` exists:**\n\n    - The `config.properties` file should be located in the `src/main/resources/` directory.\n    - If it doesn't exist, create a new file named `config.properties` under `src/main/resources/` and add your configuration properties.\n\n   Example `config.properties`:\n   ```properties\n   key1=value1\n   key2=value2\n   ```\n\n2. **Verify `PropertiesReader.kt`:**\n\n    - Make sure `PropertiesReader.kt` correctly loads `config.properties`.\n    - Adjust the file path in `PropertiesReader.kt` if necessary to match your project structure.\n\n   Example `PropertiesReader.kt`:\n   ```kotlin\n   object PropertiesReader {\n       private val properties = Properties()\n\n       init {\n           val inputStream = PropertiesReader::class.java.classLoader.getResourceAsStream(\"config.properties\")\n           if (inputStream != null) {\n               properties.load(inputStream)\n           } else {\n               throw FileNotFoundException(\"config.properties file not found\")\n           }\n       }\n\n       fun getProperty(key: String): String {\n           return properties.getProperty(key)\n       }\n\n       // Add other methods as needed...\n   }\n   ```\n\n### Running Tests\n\n1. **TestNG Configuration:**\n\n    - Ensure your `testng.xml` or annotations correctly specify the test suite and include necessary dependencies.\n\n   Example `testng.xml`:\n   ```xml\n   \u003c!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\"\u003e\n   \u003csuite name=\"Test Suite\"\u003e\n       \u003ctest name=\"Login Test\"\u003e\n           \u003cclasses\u003e\n               \u003cclass name=\"com.cmccarthy.kotlin.test.LoginTest\"/\u003e\n           \u003c/classes\u003e\n       \u003c/test\u003e\n       \u003c!-- Include other tests as necessary --\u003e\n   \u003c/suite\u003e\n   ```\n\n2. **Run the tests:**\n\n    - Execute your TestNG tests from IntelliJ IDEA or from command line using Maven or Gradle.\n\n### Troubleshooting\n\n- If you encounter `FileNotFoundException: config.properties not found`, double-check:\n    - The location of `config.properties`.\n    - The file path specified in `PropertiesReader.kt`.\n\n- Kill the chrome processes \n       - `taskkill /im chromedriver.exe /f`\n## Built With\n\n- Kotlin\n- TestNG\n- Selenium WebDriver\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmccarthyirl%2Fkotlin-testng-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmccarthyirl%2Fkotlin-testng-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmccarthyirl%2Fkotlin-testng-selenium/lists"}