Selenium Tutorials

Selenium 4 headless execution through arguments

Selenium's headless mode allows running browser tests without a visible browser window by configuring the browser driver with the headless option. This approach enables faster and more efficient test execution as rendering the browser window is unnecessary.

Earlier to execute your Selenium tests in headless mode, you had to utilize the ChromeOptions as shown below.

ChromeOptions options = new ChromeOptions();

By using setHeadless() method, you will accomplish the same result.

Top 10 Codeless Testing Tools in 2020 You’d Better Know

It is projected that in 2020 and forward, challenges in automation testing are growing by leaps. Some of these challenges include picking an appropriate tool, skilled testers, upfront expenses, and time constraints. According to Kumar and Mishra (2016), 30% of QA teams’ effort is utilized in manually writing test cases many times to seek significant returns in the long run. Here it’s very well said that those challenges yield the latest innovative idea - codeless automation testing tools.

Allure Report using Annotations

Allure Reporting framework works fine with any test framework like TestNG, JUnit etc. Below example covers the implementation of Allure Reports in Selenium using TestNG, Java and Maven.

Let us first try to understand allure annotations before using them in our selenium example.

@Description("In this cool test we will check cool thing")

These annotations are used in the same way like we use TestNG annotations or JUnit annotations.

Extent Reports using TestNG Listeners in POM

As we know all know that ExtentReport is an HTML reporting library (open source) which can be integrated with Selenium WebDriver.

In this article, we will teach you how to develop advanced extent reports / integrate Extent Reports with your existing test automation framework.

We assume you have a working knowledge on Selenium,TestNG and Maven.

Let us start now !!!!

Importance of Reporting in a Test Automation Framework :-

Creating extent reports in selenium webdriver example

Extent Reports are the most popular reporting used with Selenium. As we all know, TestNG generates html reports by default but they are not more readable and interactive, we have to put lots of efforts to make it attractive. TestNG has provided an ability to implement 'IReporter' an interface to customize testng report by users.