Review – Creating an Automated Testing Framework with Selenium

Creating an Automated Testing Framework with Selenium

I just noticed that when I was creating posts for some courses I was evaluating for my company a few months back that I forgot to post this one.

Have you ever wished that you could watch, step-by-step, how a test automation framework was created? Think of the benefits of seeing why certain decisions were made and what best practices were followed along the way.

Well, sometimes wishes do come true — and the place is not Disneyland, but rather my “go to” place for learning entertainment, Pluralsight. Creating an automated testing framework with Selenium, a course by John Sonmez, contains all you need to know to create a Selenium automation framework.

Course Details

This video series is a more advanced study of Selenium for testers. (If you are new to automation and to Selenium, you’re probably better off checking out John’s beginner-based course, Automated Web Testing with Seleniumfirst.)

The training is broken up into four main modules (listed below) and contains almost four hours of video instruction.

  • Designing the Architecture
  • Creating Basic Smoke Tests
  • Building out the Framework
  • Best Practices and Tips

The main difference between Automated Web Testing with Selenium and John’s other Pluralsight Selenium course is that this one takes a deep dive into developing a test automation framework.

It you really want to know the core principles behind the successful creation of a Selenium framework as well as the why,”rather than just focusing on the selenium API itself, then this course is for you.

John does use Selenium with Visual Studio to demonstrate the creation of the framework, but the course focuses more heavily on the principles and practices that transcend the tooling you’re using. If you’re worried that this course uses C#, don’t! The same core principles behind creating an automation framework in .Net also apply to Selenium’s other language bindings like Java, Ruby, Python, and even QTP.

My Experience

For example, my company uses Java and I was able to apply all the key concepts laid out in this course to my automation framework. One key concept I was able to put into place right away is the idea of layers, and that tests are not code. Test code should be written in a special way that will make it easy to understand and a simplified way of using the programming language. Writing tests like code makes them difficult to maintain and brittle. John’s rule of thumb is that anyone should be able to look at the code and say “I totally understand what these tests are doing.” 

Using this automation layer approach has been a life saver. It has really helped me make my framework more readable and easier to maintain, and that is no easy feat — especially when the framework is being used by a number of different scrum teams. Along the way, John also shares all the tips and tools he knows and uses to help make your test automation framework:

  • Reliable
  • Maintainable
  • Reusable

I really loved his tips on framework coding standards; not needing to run your entire test suite against all browsers and operating systems, and his discussion of the importance of making distinctions between errors and failures.

Recommendation

Everything John shares in this course is designed to help you succeed in creating an automation framework. If you are just starting to create a framework or have any questions on how to create an automation framework with Selenium, I feel this course is a must-view — and it’s affordable!

One month of unlimited access to PluralSight costs only $29. This training goes fast, so make sure that you have your finger ready to pause frequently in order to soak up every drop of automation goodness.

1 comment
Click here to add a comment

Leave a comment: