Know why better organized code helps in better maintenance of the project.
- [Narrator] Welcome to the fourth video…of section four in this course.…In this video we shall cover and organize our code…for better maintainability.…Test automation is about writing code…that verifies your application.…It is very important that you organize your code…so it is easy to work with.…So, what does "easy to work with" mean?…I think it should mean that it is easy…to locate the right place to do a change.…This probably means that the right abstractions are used…at the right place.…
Try to organize your code base so that the main concepts…of your application are easy to spot…and, therefore, easy to extend.…You may check the book Clean Code by Robert C. Martin…and apply all the lessons you have learned there.…You can get the book on Amazon.…This will help you create a test code base…that is possible to maintain without a herculean effort.…This will also enable you to create a code base…with minimum technical debt.…
At the same time, it is better to start easy…and then apply any changes.…My approach is slightly different.…
Selenium gives developers the power to control web browsers and use them to automate web application testing. As an open-source toolset, Selenium makes it easier for testers to evaluate web applications without putting in any extra time and effort.
Mastering Selenium Testing Tools is all about demystifying the Selenium suite. Learn to verify web applications, control browsers with code, and scale up the testing environment by distributing the execution of web applications on different browsers running on different operating systems.
Author Ripon Al Wasim starts with the Selenium IDE, a Firefox plugin that performs a simple record-and-playback of interactions with the browser. A tester aiming for professional output can use WebDriver, an advanced scripting tool that allows you to locate the elements you need to interact with using their name: id, xPath, or CSS. Next, learn to express the desired behavior using a well-known framework for behavior-driven development (BDD) called Cucumber for Java, which uses a language called Gherkin. Last but not least, Ripon shows how to run tests on the Selenium Server, and walks through a complete working example of Selenium and Cucumber in action, for acceptance testing of a web application.
- Preparing your Selenium test environment
- Using the Selenium IDE
- Scripting in WebDriver
- Locating web elements
- Writing test cases with the Page Object Model
- Enabling continuous delivery with a continuous integration build system
- Working with Cucumber and Gherkin
- Describing features with Cucumber
- Running tests on Selenium Server