Introduction to TestNG 1. Overview In this article, we’ll introduce the TestNG testing framework. We’ll focus on: framework setup, writing simple test case and configuration, test execution, test reports generation, and concurrent test execution. 2. Setup Let’s start by adding the Maven dependency in our pom.xml file: <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId>… Continue Reading testng

Custom Reporting with TestNG 1. Overview In this article, we will discuss generating custom logging and reports using TestNG. TestNG provides its own reporting feature – generating reports in either HTML/XML formats. If tests are run using the maven-surefire-plugin, the report will take the default form defined by the plugin.… Continue Reading testng-custom-reporting

Guide to Selenium with JUnit / TestNG 1. Introduction This article is a quick, practical introduction to working with Selenium and writing tests with JUnit and TestNG. 2. Selenium Integration In this section, we’ll start with a simple scenario – opening a browser window, navigating to a given URL and… Continue Reading java-selenium-with-junit-and-testng