How to Move from Manual Testing to Test Automation - Part III
In my last blog I had explained the first 5 steps of the staircase that leads from Manual Testing to Test Automation. Let’s continue the ascension by moving straight onto Step 6.
Step 6: To Learn JUNIT
Developers are using JUNIT, a unit testing framework, in order to create unit tests which validate the code correctness.
JUNIT enables test automation by providing developers with a way to create independent test scripts.
To learn test automation, some of the basic concepts of JUNIT that one should be aware of are:
- test scripts
- test suites
Step 7: To Learn about Selenium WebDriver framework.
Selenium WebDriver is a test automation framework that allows for test automation scripts to interact with the elements of a website.
Below are a list of classes for Selenium WebDriver framework along with a brief explanation about the specialization of each class:
- WebDriver class (managing the browser)
- WebElement class (interacting with common HTML elements)
- Select class (interacting with lists and dropdown lists)
- WebDriverWait class (finding elements)
- By class (using element locators)
Step 8: To Learn Java Programming related to Object Oriented Concepts
Object oriented concepts are a more advanced level of Java Programming.
At this level one needs to learn about the following:
- creating your own classes and objects
- class inheritance
- abstract classes
Upon mastering these advanced level programming concepts, one will be able to proceed to the next step of test automation by using the Page Object Model to take test automation scripts to the next level.
Step 9: To Learn how to use Page Object Model
During the process of learning test automation, WebDriver API commands are included in the test scripts. Such scripts are acceptable at the learning stage but may be very difficult to maintain over the course of time.
It is necessary to remove the WebDriver API commands from the test scripts.
The Page Object Model and the Object Oriented Concepts help to create classes that correspond to site pages by including the WebDriver API commands in the Page Object classes so as the test scripts use the Page Objects.
Step 10: Practicing Test Automation Skills
It is not enough to learn about test automation; what is more essential is to continuously practice the test automation skills that one has acquired.
So, how about you start off and create your very own test automation project and then keep practicing your test automation skills on other projects too.
Disclaimer: The views expressed here are solely those of the author in his private capacity and do not in any way represent the views of Systems Limited, or any other entity related to Systems Limited.