Sunday 10 March 2013

How to edit registry key in qtp


Below QTP program / example demonstrates how to edit registry key in qtp


'Create a shell object
Set WshShell = CreateObject("WScript.Shell")

'write the value of key in the registry

WshShell.RegWrite "HKCU\Software\ie\settings\", 1, "REG_BINARY"

Note that you must know path of the key.

No comments:

Post a Comment

Please Leave your reply. We value your feedback and inputs

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.