Below QTP program / example demonstrates how you can read registry key in QTP
'Create a shell object
Set WshShell = CreateObject("WScript.Shell")
'Read the value of key from the registry
bvalue = WshShell.RegRead(varpathofkey)
' in above function we have to pass the path of key in registery.
e.g. HKCU\Software\ie\settings
msgbox bvalue
'Create a shell object
Set WshShell = CreateObject("WScript.Shell")
'Read the value of key from the registry
bvalue = WshShell.RegRead(varpathofkey)
' in above function we have to pass the path of key in registery.
e.g. HKCU\Software\ie\settings
msgbox bvalue
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs