Test Script Execution Recording using Selenium Webdriver

Everyone has known how to take the screenshot in selenium web driver but when we ask how to take a video recording of the test script in web driver, people have no idea. So here I describe how to capture test script video in selenium web driver.

When the execution time of your script is too long so you can record your script and then you can analyze the script.

For the recording the script you have to download ATUTestRecorder jar file and include in your project.

So here I am writing the code of recording script.

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.chrome.ChromeDriver;
import atu.testrecorder.ATUTestRecorder;
public class SeleniumRecord 


public static void main(String args[]) throws Exception
ATUTestRecorder OBJ = new ATUTestRecorder("/home/manoj/Desktop/recording","RECORDINGVIEO-",false);
System.setProperty("webdriver.chrome.driver", "/home/manoj/Downloads/chromedriver"); 
WebDriver driver = new ChromeDriver(); 

For recording, I am creating a folder recording and we already define the path of this folder in ATURecorder constructor.
After executing the test script, the script was recorded and you can check in your folder. here I am attaching the screenshot of the video.




Feel free to ask me any question.


This entry was posted in Scala, testing and tagged , , , , , . Bookmark the permalink.

One Response to Test Script Execution Recording using Selenium Webdriver

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s