Google News
logo
QTP/UFT - Interview Questions
Explain how to read registry key in UFT?
The example demonstrated here explains how to read registry key in UFT
Create a shell object

Set MyShell= CreateObject (“WScript.Shell”)

Read the value of key from the registry

RegValue =MyShell.RegRead (varpathofkey)

‘in above function we have to pass the path of key in registery’.

EX : HKCU\software\ie\settings

msgbox RegValue
Advertisement