Learning about Selenium without the knowledge of designing frameworks is not of much use. Frameworks help us with grouping components together and wiring them as per our needs. With a proper and structured framework, adding test cases is just a matter of updating the Excel sheet that has all of the test cases and test steps. It is just a matter of keeping track of the keys in the framework, which in our case is the test case ID.
In this chapter, we will cover the following topics:
- Understanding the command design pattern
- The project structure in Eclipse
- Introducing the TestNG framework and TestNG.xml
- Configuring nodes on the Selenium Grid for remote execution
The framework that we will be designing will be based on the command pattern. Hence, it will be a good idea to understand the command pattern first.