Welcome to the next episode in our new series “Integrating testing into your development flow”. Today we are going to be looking at “Selenium In TestNG: Taking Your Web Tests To The Next Level “.

In our last presentation, we went over how to expand on the logging and reporting tools provided by testNG to generate more meaningful reports. In addition, we covered several examples on how to write your own custom logger and reporters. So that you can create your own custom HTML and XML reports that make sense to the end-user.

Today we’re going to take our tests to the next level by looking at using Selenium in TestNG. Specifically, how Selenium in TesgNG can be used to create tests that interact with web pages. Starting with an overview of What selenium is and what tools it offers. Such as the Selenium IDE, Webdriver, and Grid. Then, we are going to get into setting up your environment to use Selenium. Including examples or using the Selenium IDE to record tests interactively in a browser.

Once, we have our recording we walkthrough converting those recordings into a TestNG test using the Selenium Webdriver. Including, some additional examples of using the Selenium Webdriver API. Then, we will take a look at a test pattern known as the Page Object Model.  Using the Page Object Model with Selenium, we can break out the selenium page interactions and elements into a Page Model class. Thus, allowing us, to build a reusable code base that reduces the overhead in our test cases.  By, using Page Objects to break the mold of duplicating page logic in each individual unit test.

Topics covered in Selenium In TestNG:

    • What is Selenium?
    • Different parts of Selenium
    • Selenium Installation and Setup
    • Using Selenium with TestNG

What is Selenium?

Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.

Selenium also provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers.

More information on Selenium In TestNG:

This series comes from our mentoring/mastermind classes.  These classes are virtual meetings that focus on how to improve our technical skills and build our businesses.  The goals of each member vary.  However, this diversity makes for great discussions and a ton of educational value every time we meet.  We hope you enjoy viewing this series as much as we enjoy creating it.  As always, this may not be all new to you, but we hope it helps you be a better developer.

Other Classes, You Might Consider:

Leave a Reply