r/softwaretesting • u/OwnVeterinarian9444 • Jan 14 '24
Setting up a test automation framework from scratch
Hey fellow testers
I've recently realized the importance of being able to set up a test automation framework from scratch, as it seems to be a crucial skill in many job descriptions nowadays. While I've contributed to existing frameworks in my previous jobs, I haven't had the chance to create one entirely on my own.
I've dabbled in creating local frameworks for practice using tools like Cypress and Playwright, but I'm now looking to take this to a more professional level. I have a few questions and would appreciate any insights or advice you could share:
Is there much difference between setting up a small framework (as seen in tutorials) and one for professional work?
I'm curious about the nuances and challenges that come with setting up a framework for real-world, professional projects. What should I keep in mind that might not be covered in basic tutorials?Should I think of a structure for the project, such as using the Page Object Model (POM) or any other recommended approaches? Why or why not?
I've heard about POM, but are there other structures or design patterns I should consider? What are the pros and cons, and how do they impact maintainability and scalability?Are there any aspects or decisions that I might not be aware of (the unknown unknowns) that could be crucial during the framework setup?
I want to make informed decisions, so if there's anything I should be aware of that might not be obvious, please share your experiences.Is the foundational process of setting up a test automation framework generally the same, with variations due to tool-specific features and requirements?
I'm particularly interested in Playwright and want to understand if the overall process remains consistent across tools, with variations influenced by tool-specific nuances. Are there fundamental principles that can be easily transferred, or does each tool demand a more specific approach? Any advice or resources specific to navigating these tool-specific differences would be greatly appreciated.Are there any good resources that discuss setting up a test automation framework in a workplace?
I'm looking for materials that provide guidance on creating documentation, choosing tools and languages to facilitate collaboration, and making it easier for others to contribute.Speaking of documentation, what kind of documents should I create?
Should I create documentation outlining the framework structure, tools used, and any coding standards or guidelines? How can I make it easy for others to understand and contribute to the project?If you have experience with Playwright, could you share any specific resources or wisdom on setting up a framework using this tool?
I'm particularly interested in diving deeper into Playwright, so any guidance or experiences you can share would be immensely helpful.I have never set up a framework from scratch, but if I want to change a job to one which requires it, is it a good idea to have a github where one is set up and its working? If yes, could you please point to such repositories where similar projects exist?
Thanks in advance for any advice, tips, or resources you can provide!