How to read Registry Key in QTP ?
Tags:
Question ID: 105805
0
0
Marked as spam
Posted by (Questions: 17, Answers: 7)
Asked on January 16, 2015 8:38 am
223 views
Answers (2)
1
Private answer

Using Shell Object we can read Registry Key.
Please find the below example to read Registry Key.

'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 registry.

e.g. varpathofkey = HKCUSoftwareiesettings

msgbox bvalue

Marked as spam
Posted by (Questions: 11, Answers: 5)
Answered on January 16, 2015 9:48 am
0
Private answer

Thank you

Marked as spam
Posted by (Questions: 17, Answers: 7)
Answered on January 16, 2015 10:24 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top