Category Archives: Selenium Java

HTTP request header

AutomationSelenium JavaTutorial

How To Modify HTTP Request Headers In JAVA Using Selenium WebDriver?

One of the most common test automation challenges is how do we modify the request headers in Selenium WebDriver. As an automation tester, you would come across this challenge for any programming language, including Java.

June 23, 2021

view count93240 Views

Read time13 Min Read

TestNG vs JUnit

AutomationSelenium Java

TestNG vs JUnit: Which testing framework should you choose?

A test automation framework is a set of components that facilitates the execution of tests along with reporting the results of the test execution. However, the discovery of the right test automation framework can be super-challenging since there are so many options at your perusal.

May 24, 2021

view count102922 Views

Read time14 Min Read

execute-junit4-tests-with-junit5

Selenium JavaAutomationTutorial

How to execute JUnit 4 tests with JUnit 5 [Tutorial]

Introduction to JUnit JUnit is a powerful framework for Selenium test automation that has been popularly used by developers to perform unit testing.

April 26, 2021

view count119037 Views

Read time12 Min Read

Selenium JavaSelenium WebDriverTutorial

How To Handle Login Pop-up In Selenium WebDriver Using Java?

Have you ever been asked for credentials while accessing a website on a browser? Let us understand why we are asked to fill up the credentials while accessing a few websites.

March 23, 2021

view count70509 Views

Read time7 Min Read

CI/CDSelenium JavaTutorial

How To Generate TestNG Reports In Jenkins?

TestNG is an open-source automated testing framework, where ‘NG’ of TestNG is Next Generation. It is similar to JUnit but designed to be better than JUnit, especially when testing integrated classes.

February 4, 2021

view count60865 Views

Read time16 Min Read

Group Test Cases In TestNG

AutomationSelenium JavaTutorial

How To Group Test Cases In TestNG [with Examples]

TestNG is an open-source automation testing framework inspired by JUnit and NUnit. The framework supports data-driven testing, parallel test execution, testing integrated classes, provides access to HTML reports, amongst others.

December 21, 2020

view count124094 Views

Read time16 Min Read

How To Setup JUnit Environment

AutomationSelenium JavaTutorial

How To Setup JUnit Environment For Your First Test?

This article is a part of our Content Hub. For more in-depth resources, check out our content hub on JUnit Tutorial. JUnit is a popular Java-based, open-source framework that is primarily used for unit testing. It can be used with Selenium for testing websites and web applications. Annotations in JUnit are used for identifying test … Continue reading How To Setup JUnit Environment For Your First Test?

December 7, 2020

view count112592 Views

Read time23 Min Read

Run Junit Tests From The Command Line

Selenium JavaAutomationTutorial

How To Run Junit Tests From The Command Line

This article is a part of our Content Hub. For more in-depth resources, check out our content hub on JUnit Tutorial. JUnit is one of the most popular Java-based open-source frameworks used for testing every unit of the application, i.e., classes and methods. And for automating the testing of web applications, you can use it … Continue reading How To Run Junit Tests From The Command Line

November 19, 2020

view count108512 Views

Read time19 Min Read

using thread.sleep() in java with selenium 3

Selenium JavaAutomation

How To Use Thread.sleep Java With Selenium?

Automating a web application optimizes the work, helps minimize errors and makes the product robust. An automated suite would be successful when the behaviour is predictable. If not so, there would be many hurdles in automation that need to be handled carefully.

October 8, 2020

view count75988 Views

Read time10 Min Read

Dataproviders TestNG

AutomationSelenium Java

How To Use DataProviders In TestNG [With Examples]

In our earlier posts, we learned about using TestNG parameters in our TestNG scripts. To jog your memory, Parameterization In TestNG helps us pass data through the code and prevent hard-coding. However, TestNG parameters enable us to pass the values only once per execution cycle.

August 18, 2020

view count87384 Views

Read time7 Min Read