Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.7k views
by The go-to Tester (190 points)
retagged by

Hi friends,

This is my script

ATUTestRecorder recorder = new ATUTestRecorder("E:\\Video_Rec\\","Test",false);

recorder.start();

driver.get("https://www.google.co.in/");

Thread.sleep(5000);

recorder.stop();

once i execute this script it will create a .MOV file in this  location  E:\\Video_Rec\\

After few mins, again i run the script recording process working fine but it replace the old video because of the same name how to handle this 

1) if i run this script 5 time's it shoud create 5 videos ?

2)how to change the format of the video by default it is .MOV file i need to change it to MP4 etc ?

1 Answer

0 like 0 dislike
by Master (1.2k points)
selected by
 
Best answer

Why don't you try using the timestamp in your file name?

Timestamp timestamp = new Timestamp(System.currentTimeMillis());

ATUTestRecorder recorder = new ATUTestRecorder("E:\\Video_Rec\\","Test_" + timestamp.getTime(),false);

recorder.start();

driver.get("https://www.google.co.in/");

Thread.sleep(5000);

recorder.stop();

by The go-to Tester (190 points)
Thank you @mayur

it's working fine do you have any idea for changing the format of the video file
by Expert (748 points)
edited by
Yes, the same condition happened for my code. When I execute the code, it generates .mov file. How do I change the file format?
by Master (1.2k points)
Kindly find your answer here.
https://softwaretestingboard.com/qna/2921


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...