I recently completed a marathon project to create 5 working test automation frameworks from scratch, which form a Test Automation Portfolio. This article is a bonus edition of that portfolio, where I use TestProject to create the same tests in an earlier framework using their codeless solution. (hint: it was insanely easy).
- You should consider writing a test automation portfolio if:-
- You think you might need to show off your automation skills e.g. to an interviewer
- You want to learn more about automation by getting your hands dirty
- You want to improve your visibility as a tester and share your knowledge with others
- You should consider using TestProject’s codeless test automation for your Test Automation Portfolio if:-
- You want a quick (like, lightning quick) way to create tests
- You’ve been frustrated by how long it takes to get a fully fledged automation framework set up in the past and want an easier solution
- You want to see how far IDE type solutions have come since “the bad old days”
I had created a test framework which executed a few basic tests such as login on the OpenCart admin demo website – this is a great one to use for testing because it has a lot of features.
I wanted to wrap these tests up into a suite so I could run them all together.
Test Project is the first codeless solution I have used since early Selenium IDE, and I’ve got to say that codeless solutions have definitely come a long way since then! Test Project feels much more solid to me, and yet super easy to get started and have something up and running in no time at all.
The test recorder is a great feature if you want a quick solution. For example, in an earlier framework I’d spent hours trying to get my head around relative locators in Selenium 4 to identify a tricky logout button that didn’t have a nice user friendly ID in the DOM. I wanted the code to be easily readable, so didn’t want to map some crazy CSS query, and I really struggled to identify the element.
Here it is:-
With the Test Project recorder, all I had to do was click “logout” and it added a user readable step into my test case, no manual intervention required. To someone like me, this is literally hours saved.
Not only did I use the recorder to create all 3 of my test cases, but I also tried out the new sharing feature to pass my test case from one user to the next. This felt like Postman to me, being able to easily send someone else my code and for them to accept it and run it right .
You can read more about this feature here.
I was even inspired to do a few video tutorials! Here is how easy it is to create a test:-
And here is a video about how to create a “run” consisting of several tests:-
The codeless solution has some great features that genuinely surprised me. Once you have written a test, such as login, you can add that test into another test, to avoid re-writing code that you need to maintain in different places.
Also the use of parameters such as Username and Password was fantastic. You can set project (global) or test specific variables and even make them secret. The great benefit of this is if a parameter changes or you want to use a different user you only need to go to one place to update and it will propagate through all your tests.
Thanks to the sharing feature, I thought it would be helpful to share the links to my tests with you. Feel free to import them into your solution and see if it works!
Login:- This test clears the default username and password, types in a new one and logs in. It then validates the user has landed on the correct page.
View Orders: – This test logs in (reusing the login test above to reduce duplicate code), opens the menu bar and selects sales -> orders. It then validates the orders page is visible.
Logout:- This test logs in, clicks logout and validates the user is returned to the login page
Getting the chance to add Test Project into my portfolio was an enlightening experience for me. I learned how easy it is to over engineer an automated framework, particularly if you only want a quick and easy solution. The speed with which I was able to get up and running and produce parameterised tests which could run on any browser installed on my machine was a game changer.
I would definitely turn to codeless solutions in future as the fastest way of getting off the ground, and the fact Test Project has some many features to increase maintainability, such as global parameters, test imports and the ability to share test cases with other team members, means you don’t have to worry that you’re somehow “not doing it properly”. I also love how you can convert the tests into coded tests using the SDK if you want a more fully fledged solution, as this allows you to start off small, and as your skills mature the framework can grow with you. If you are interested in creating a test automation portfolio for yourself, I’d encourage you to take a look at Angie Jones article here for inspiration.