Recording of test execution using ATUTestRecorder

In this blog, We will guide you how to use ATUTestRecorder in Selenium WebDriver.

Selenium web driver didn’t provide an inbuilt feature for recording test execution but by using the ATUTestRecorder, you can record Selenium test. This Python Selenium recorded video helps to identify the issue more easily and can use this video as proof to show activities to stakeholders.

To get started with Selenium recording, you will need to integrate ATUTestRecorder in selenium webdriver by following steps:

  • Download ATUTestRecorder.jar and ATUReporter_Selenium_testNG.jar files.
  • Add these downloaded jar files into the build path.
  • Create a new folder in the project to store the recorded videos.
  • Add a new package(e.g. package_ATUTestRecorder) in the project and create a new class (e.g. into that.
  • Open class (\src\package_ATUTestRecorder\ and write below code into that.

package package_ATUTestRecorder;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import atu.testrecorder.ATUTestRecorder;

public class Demo {

WebDriver driver;
ATUTestRecorder recorder;

public void ATURecordersetup() throws Exception {
DateFormat dateFormat = new SimpleDateFormat(“yy-MM-dd HH-mm-ss”);
Date date = new Date();
recorder = new ATUTestRecorder(“Location of video folder”,”RecordedVideo-“+dateFormat.format(date),false);
String Chromepath = “E:\\chromedriver.exe”;
System.setProperty(“”, Chromepath);
driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
public void ScreenResolutions() throws Exception {
driver.manage().window().setSize(new Dimension(500,700));
Thread. sleep(1000);
driver.manage().window().setSize(new Dimension(700,500));
Thread. sleep(1000);
public void Close() throws Exception {

  • Now, run the script and once it’s successfully executed it will create .mov extension video into a specified location.
  • Click to play recorded video into the player.

Follow the above-mentioned steps to record ATU testing in the Selenium web driver. Selenium web driver recording can be easy if you follow the process mentioned here. If you have any queries or would like to know how we can work with your company, contact us today!

What is Selenium WebDriver?

Selenium WebDriver refers to an open-source collection of APIs that helps developers test out web applications. It is one of the primary components of the Selenium family – which includes tools like Selenium Client API, Selenium IDE, Selenium Grid, and Selenium Remote Control. This tool is used to automate application testing and verify whether the app is working as expected. It permits cross-browser testing, and primarily supports Chrome, Firefox, Internet Explorer, and Safari.

Selenium WebDriver also allows you to use programming languages when creating test scripts – this is something that is not possible with Selenium IDE. The different programming languages that the tool supports includes Java, C#, PHP, Perl, and Ruby for writing test scripts. Selenium WebDriver is also platform-independent, given that the same code can be used across multiple operating systems including Linux, Apple OS, and Microsoft Windows.

One of the only limitations of Selenium WebDriver is that it does not handle Windows components, but this can be overcome by making use of external tools. There is also no in-built feature in Selenium WebDriver for Selenium recording of videos, but you can use ATUTestRecorder, which is a third-party ATU testing API, to record Selenium test executions.

Related Posts

Comments (5)

Maven is not loading dependencies what is the latest version
Cannot resolve atu.testng.reports.ATUReports:atu-reports:7.4.0

Hi Sandeep, Apache Maven 3.8.4 is the latest release and recommended version for all users. If Jar is not resolved then might be the issue with configuration. Please follow below steps:
1. First download the ATU jars from web.
2. Right click on project (options will appear in popup), click on build path option and then click on configure build path.
3. Properties popup will appear at the center of the page, now you need to navigate on the libraries tab.
4. Click on add external jar button, and now select the jars that you downloaded from the web.
5. In last, click on apply and close button to complete the configuration of the ATU support in your project.


Pretty! This has been an incredibly wonderful article. Many thanks for supplying
these details.

Glad, It helps you!

Video recorded cannot open. It’s said Error Code 0xc00d5212. How can i fix it? Thank you

Leave a comment