Recording of test execution using ATUTestRecorder

This blog will show 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

Leave a comment