In This Course
Did you know that a recent poll revealed that 80% of QA Automation Engineers cannot run more than 100 functional tests daily, with 95% reliability? Furthermore, over 50% of these Automation Engineers struggle to run between 0 – 50 automated functional tests per day!
Functional test automation is a hard job. However, you can make your job much easier by learning a pattern known as the Page Object Pattern. The Page Object Pattern helps to resolve a lot of the problems that other automation techniques cannot. Making your test automation more stable as a result.
This course is designed to teach you how to properly code the Page Object Pattern using Selenium Webdriver with C#.
However, all of the information here is equally applicable to any other functional testing tool because the Page Object Pattern is a universal principle that makes test automation more robust. Similar to other universal concepts such as Don’t Repeat Yourself or Single Responsibility Principle.
Therefore, if you know Object Oriented programming and a different functional automation tool, you can still comfortably follow along with all of the principles and patterns that I lay out in this course.
In this course, you will learn:
– Why other methods such as Record & Replay or Keyword Driven do not work when it comes to test automation
– What the Page Object Pattern is in automation
– Advantages and disadvantages of the Page Objects
– Amazing tips and tricks on how to:
- Implement the Page Objects using Selenium Webdriver
- Improve your Page Objects to follow DRY Principle
- Improve Page Objects to follow SRP Principle
- Create amazing Page Objects for gigantic web pages
In This Lecture
Quiz on everything we learned
Now we’re going to write one more test. The purpose of writing all these automated functional tests is for you to practice what’s known as deliberate practice. Deliberate practice has been shown in research to be way more effective at creating an expert than the actual time log. Learning a skill. For example it’s not the 10000 hours that you spend learning that it makes you an expert.
It’s actually how much time you spend on a small concrete skill practicing. It is going to make you an expert and help you to maintain all of the information better. There’s a great story about an individual who was going to a party in Stanford in the middle of the night. And it just happened to be raining a lot. It doesn’t rain very often in Stanford but it was raining that day. And this individual was going to a party and as he was going to a party who was walking by the golf course. And heard somebody on the golf course swinging a golf ball as you know hitting him. Tch tch tch.
And the person thought OK that’s weird you know it’s raining and it’s in the middle of the night and this person is hitting golf balls. But whatever the person continued and went on to the party after a few hours you know three four hours of partying the person was coming back and that individual was still there on the golf course swinging and golf balls in the middle of the night during the rain.
And so the guy came over there to the golf course and he was like hey Tiger what are you doing here on the golf course in the middle of the night during the rain playing golf and Tiger Woods said that it doesn’t rain very often in Stanford. So he was taking the opportunity to practice his golf in the rain.
And that’s a perfect example of deliberate practice. Because Tiger Woods was there on the golf course in the middle of the night in the rain practicing his golfing in the rain for that specific skill that’s known as deliberate practice. So what I want to do now is to pull out everything that you have learned into an automated functional test that says it’s going to be a quiz.
I’m going to give you an exercise you’re going to write automated functional test utilizing everything that we have learned such a Single Responsibility Principle the drive principle and the object repositories. And then when you come back I’m going to give you the answer. So the exercise is this you’re going to come back to this complicated page down here in about the center.
We have a toggle I want you to open this toggle and then validate that the toggle has been opened successfully. I’m going to give you a hint. This is really hard to automate. So spend a little bit of time practicing deliberately practicing all of the skills that we have learned. And then after you come back I will give you the answer
Nikolay Advolodkin is a self-driven SDET on a lifelong mission to create profound change in the IT world and ultimately leave a legacy for his loved ones, community, and the world at large. Today, he serves as the CEO and Test Automation Instructor at UltimateQA.com and contributes informative articles to leading test automaton websites like SimpleProgrammer.com and TechBeacon.com