Right now I'm being tasked with the job of creating an automation test suite from scratch. The reasons because we had a legacy system that a colleague was using and that was very old using Selenium WebDriver. But in today's age, there are a few more modern frameworks that make it a lot easier and a lot quicker to iterate and become usable.
Requirements:
- Running the CICD Headless
- Be able to be developed by the testers rapidly
- AI should be able to iterate and help develop on this automation test suite
- [Optional] Dockerised
- [Optional] Application Team could develop it
Solution: I initially started with trying to find something that would be in the middle ground between what was legacy and that had worked specifically on a Windows laptop to then something that would be Linux based. To my knowledge, linux has provided a better interface and with development, was more transferrable than if it was just on a windows OS. Our old automation ran on windows because the tester had a windows computer. Over the years, because the tester was hired to work on that project - he developed extensive and possibly unnecessary tests. On refelction (looking at all the different combinations of test), it really showed that migrating those tests over would be hard. It used Webdriver IO + Selenium + Cucumber BDD Style. Seemed to be a go to approach in 2010s.
Doing a quick search around the industry and what was relevant. Playwright looks like the ideal framework. An all in starting point. Since the tester in the previous project developed extensively in Cucumber/Gherkin, it would be a shame to have to pass on that information. This led to finding the adapter framework called Playwright BDD, which would translate some of the behavioral-driven development into automation tests. I soon realized afterwards that the business does not actually look at any of these tests invalidating the really need to use a BDD framework. And so, let go of the BDD part. Embracing Playwright fully.
Playwright
Architecture: