UFT
Introduction to UFT Installation of UFT UFT GUI Recording the application Directory structure and file extension of UFT test VBScript Basic UFT concepts Object Spy Test Settings Properties Test Run Settings Environment Recovery Associating library files Object Identification mechanism Object repository Object repository Manager Associating repositories with UFT tests Launching applications Loading ini fileDifference between QFL and VBS file Automating web applications automating Windows applications Handling Databases Mathematical operations Create new Excel workbook file Read and Edit Excel workbook Delete excel workbook fileBuilt in Objects
SystemUtil Datatable CryptDotNetFactory Extern OptionalStep PathFinder MercuryTimer RandomNumber Recovery Reporter RepositoriesCollection TextUtil XmlUtil Err objectAdvanced
Description programmingRecovery ScenariosLaunching the UFT using ScriptAutomation FrameworkMisc
UFT Vs Selenium UFT Vs Appium UFT vs LeanFTLimitations and drawbacks of UFTInterview Questions and answersExtern object in UFT
Extern object is used to call the windows native API methods.
'Declare 2 windows native methods - FindWindow and SetWindowText
Extern.Declare micHwnd, "FindWindow", "user32.dll", "FindWindowA", micString, micString
Extern.Declare micLong, "SetWindowText", "user32.dll", "SetWindowTextA", micHwnd, micString
'Get HWND of the Notepad window
'You can use any of the below statements to find the window.
'FindWindow method takes 2 arguments - first is the class of the window, second is the title of the window
'hwnd = Extern.FindWindow("Notepad", null)
hwnd = Extern.FindWindow(null,"Untitled - Notepad")
if hwnd = 0 then
MsgBox "Untitled Notepad window not found"
end if
'Set the title of the window
Extern.SetWindowText hwnd, "UFT"
Web development and Automation testing
solutions delivered!!