as

Saturday 30 May 2015

How to record the selenium automation execution

We can easily record the screen using ffmpeg tool.

Create one batch file called abc.bat and copy below commands in that file.


cd \d F:\softwares\ffmpeg-20150528-git-7206b94-win32-static\bin
del d:\blogs\abcd.flv
ffmpeg -f dshow -r 5 -i video="screen-capture-recorder" d:\blogs\abcd.flv

@echo off
set /p UserInputPath= Press any key to stop?
cd C:\%UserInputPath%

Above commands will start the recording of your test execution. To start the batch file using C#, you can use below code.

System.Diagnostics.Process.Start("d:\\blogs\\newabc.bat");

Recorded video can be very crucial in fixing the broken code.

What do you think on this topic? Please express your opinion or ask any question through comment below. You can write to me at reply2sagar@gmail.com

No comments:

Post a Comment

Leave your valuable feedback. Your thoughts do matter to us.

Sponsored Links

Popular Posts

Comments

ShareThis