Here's my repo. You can also find my javascript based framework here
Edit: Im gonna work on improving the java framework tonight. Sorry for the bad code, its been 3 years since I last made improvements on this
Edit 2: ok I just made some changes to clean it up a bit. please leave some stars if you find this framework helpful. thank youu <3
Selenium with Java automation project on GitHub
Selenium framework from scratch?
People are throwing "framework" term to losely. Look, everything that u can find online in terms of ready "framework" - is so easily achivable with few weeks of coding. What u should focus on is building your own "framework", with its config and property files, create maintable page object model - the one that makes sense for your project. Start from corenfunctionality move onto broader specs. In a mean while look to intergate your test with some CI/CD tools (jenkins, hudson, bamboo... whatever). implement reporting into your test results (u mentioned u r familiar wiith allure). Keep your code in some kind of source control (git, subversion, tfs...). Implement jdbc or odbc drivers for db verification - and of u go. There is your framework.
Mind you, this is a lot of work that never ends due to steady changes in business requests and thus changes in your test suite as well.
Wishing u all the best in your future endeavours!
More on reddit.comCreating Framework from scratch
Hi! Do you understand Java? I found this guide helpful to understand this concept: https://www.testingexcellence.com/develop-test-automation-framework-scratch/
In a nutshell: pick a language and group tests by module (someone help me here) BUT you also create the so holy useful helpers which makes you reuse most of the methods. One of the most used by me is a "replace" method created to split and replace bills' names to avoid coding the same again.
This is my experience (half a year working on automation only) I am still learning a lot but I hope this helps you too.
TLDR:
Pick a language
Pick your unittesting framework
Pick a methodology like BDD, POM, POM with BDD, etc. (I only know BDD and POM right now)
Create the core selenium (or another) functions (like helpers/database connectors)
Create tests modules (folders) (the tests using helpers)
Introduce some reporting integration
Go with continuos integration and continous delivery with Azure Devops / Docker / Jenkins.
If someone finds a mistake on my explanation pls correct me!
Thanks!
More on reddit.com