Forum Discussion
rraghvani
2 years agoChampion Level 3
Use the latest version of TestComplete and VLC, and ensure you follow VideoRecorder Extension.
The following code example will record a video.
function Test() {
// Start recording with High quality
VideoRecorder.Start("High")
// Do some test actions
WshShell.Run("notepad");
var pNotepad = Sys.WaitProcess("notepad", 10*1000);
var wMain = pNotepad.Window("Notepad", "*Notepad")
var wEdit = wMain.Window("Edit")
wEdit.Keys("Test")
wMain.MainMenu.Click("Help|About Notepad");
pNotepad.Window("#32770", "About Notepad").Window("Button", "OK").ClickButton();
pNotepad.Close();
Aliases.notepad.dlgNotepad.DirectUIHWND.CtrlNotifySink.btnDontSave.ClickButton();
// Stop recording
VideoRecorder.Stop()
}
Related Content
- 3 years ago
- 2 years ago