Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
Recordering Selinium Scripts with ATUTestRecorder

Open 1 Answers 77 Views
0 1

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
0

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();

answered by (859 points)
3Comments
commented by (188 points)
Thank you @mayur

it's working fine do you have any idea for changing the format of the video file
commented by (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?
commented by (859 points)
Kindly find your answer here.
https://softwaretestingboard.com/qna/2921

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...