Category Archives: TestNG

Capture ScreenShot in Extent Report in Selenium : Extent 3

In this tutorial, you will see, How can you capture ScreenShot in Extent Report in Selenium. In the previous tutorial Generate Extent Report in Selenium, you have seen how can you configure the Extent report and Generate the Extent report in Selenium.   In this tutorial, we will capture the screenshot for a particular failure step. … Continue reading Capture ScreenShot in Extent Report in Selenium : Extent 3

Generate Extent Report in Selenium: Extent 3

In Automation Software Testing execution report is the evidence to verify the pass and fail status of Tests. Most of the licensed automation testing tools will have in built rich report option to show the execution status. But coming to open source automation tools lacking in this option. In the same way Selenium doesn’t have reporting … Continue reading Generate Extent Report in Selenium: Extent 3

Data Provider in TestNG

Test case parameterization is the technique to execute the same Test Case with different input values. Parameterized tests allow developers to run the same tests over and over again using different values.   We will see how to parameterize the Test case in TestNG. There are two ways in TestNG to make the test case parameterized … Continue reading Data Provider in TestNG

Test Groups in TestNG

Let’s see the concept of Test Groups in TestNG. Grouping Test Methods in TestNG is one of the most important features of TestNG. We can group the Test Methods or Test Classes in TestNG. This feature allows the test methods to be segregated into different sections or modules.   With the help of Grouping, you can make … Continue reading Test Groups in TestNG

Assertion in TestNG

The assertion in TestNG means “Trust but Verify” Assertion is performed to compare the Actual result with expected result. In TestNG assertion is performed with the help of Assert Class.   Assert helps us to verify the conditions of the test and decide whether the test has failed or passed.  It is most popular and frequently used … Continue reading Assertion in TestNG

TestNG Annotations

TestNG comes with a series of Annotations. TestNG is very rich in annotations. We will see the TestNG annotations with Example. You don’t need to main() method to execute your Test Class. TestNG annotation will create the object of the class and start execution.   Let’s see important annotations of TestNG. 1. @BeforeSuite – Methods … Continue reading TestNG Annotations

Skip Test in TestNG

Skip test means, we don’t want to execute some particular test when Test Class will execute. In TestNG, we have various way to do this. We can skip the test completely or skip when some particular condition occurs.   There are many ways to skip the Test in TestNG, We will discuss all in detail … Continue reading Skip Test in TestNG

Execution order of TestNG Annotations

Let’s discuss the execution order of TestNG Annotations. TestNG annotations execute in a predefined order. It’s very easy to find out the execution sequence of TestNG annotations. We will create  Test class in TestNG and include important annotations in that test class and execute the test class. Now we will note the Execution order of … Continue reading Execution order of TestNG Annotations