Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/
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();
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 ?
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();
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
ATUTestRecorder recorder = new ATUTestRecorder("E:\\Video_Rec\\","Test_" + timestamp.getTime(),false);
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