{"id":18468453,"url":"https://github.com/rahulrathore44/modularframework","last_synced_at":"2025-05-07T05:33:24.341Z","repository":{"id":79385467,"uuid":"63788475","full_name":"rahulrathore44/ModularFramework","owner":"rahulrathore44","description":"Framework for Selenium Automation Using Modular Design Pattern","archived":false,"fork":false,"pushed_at":"2016-08-15T10:27:34.000Z","size":21624,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-16T18:25:32.644Z","etag":null,"topics":["modular","modularity-framework","selenium","selenium-java","selenium-webdriver","testng"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/user/fluxay44","language":"Java","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/rahulrathore44.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":"2016-07-20T14:32:32.000Z","updated_at":"2024-03-15T14:37:25.000Z","dependencies_parsed_at":"2023-04-20T16:08:18.282Z","dependency_job_id":null,"html_url":"https://github.com/rahulrathore44/ModularFramework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulrathore44%2FModularFramework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulrathore44%2FModularFramework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulrathore44%2FModularFramework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulrathore44%2FModularFramework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahulrathore44","download_url":"https://codeload.github.com/rahulrathore44/ModularFramework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252822979,"owners_count":21809700,"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":["modular","modularity-framework","selenium","selenium-java","selenium-webdriver","testng"],"created_at":"2024-11-06T10:06:32.135Z","updated_at":"2025-05-07T05:33:24.318Z","avatar_url":"https://github.com/rahulrathore44.png","language":"Java","readme":"###Modular Framework\n\nSelenium Modular Framework using Testng. Classes to handle the web components are present and can be used directly in the code.\nThe framework has following features \n\n1. Modular Design\n2. Maven based framework\n3. Log4j enabled for logging\n4. Report Generation (Excel \u0026 Extent reports) \n5. Helper class to handle web component such as (Button,Link etc)\n6. Centralized Configuration (Using Properties file)\n7. POM\n8. Support reading the data form Excel and Database.\n\n###Here is the basic code:\n\nExtend your test class from InitWebdriver class.\n\n```java\npackage com.modular.framework;\n\nimport org.testng.Assert;\nimport org.testng.annotations.Test;\n\nimport com.modular.framework.helper.InitWebdriver;\nimport com.modular.framework.helper.Browser.BrowserHelper;\nimport com.modular.framework.helper.Javascript.JavaScriptHelper;\n\n/**\n * @author rsr\n *\n * Jul 27, 2016\n */\npublic class TestBrowserWindow extends InitWebdriver {\n\t\n\t@Test\n\tpublic void testBrowser() {\n\t\tDriver.get(\"http://www.gmail.com\");\n\t\tJavaScriptHelper.executeScript(\"window.open('http://www.w3schools.com', '', 'width=100, height=100');\");\n\t\tBrowserHelper.SwitchToWindow(1);\n\t\tBrowserHelper.browserMaximize();\n\t\tAssert.assertNotNull(Driver.getTitle());\n\t\tBrowserHelper.switchToParentWindow();\n\t\tAssert.assertNotNull(Driver.getTitle());\n\t\tBrowserHelper.switchToParentWithChildClose();\n\t\tAssert.assertNotNull(Driver.getTitle());\n\t}\n\n}\n\n```\n\n### Use the testng.xml file to run the test cases \n\n```xml\n\u003csuite name=\"Suite\"\u003e\n\t\u003clisteners\u003e\n\t\t\u003clistener\n\t\t\tclass-name=\"com.modular.framework.liteners.reportlistener.ExcelReportListener\" /\u003e\n\t\t\u003clistener\n\t\t\tclass-name=\"com.modular.framework.liteners.reportlistener.ExtentReportListener\" /\u003e\n\t\u003c/listeners\u003e\n\t\u003ctest name=\"Test - 1\"\u003e\n\t\t\u003cclasses\u003e\n\t\t\t\u003cclass name=\"com.modular.framework.TestBrowserWindow\" /\u003e\n\t\t\u003c/classes\u003e\n\t\u003c/test\u003e\n\u003c/suite\u003e\n```\n\n### To see this whole thing running simply checkout this project and run this command:\n\n`mvn clean generate-sources test`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrathore44%2Fmodularframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulrathore44%2Fmodularframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulrathore44%2Fmodularframework/lists"}