Sunday, September 21, 2008

working with registry

Hi All,

In our day to day system activities we do lot of additions, deletions and modifications in application settings.

Most of these configuration related items are stored in the form of an INI file or XML or in the registry.

After doing some modification to the AUT configuration in automation to verify the values in registry the below code is helpful

Syntax Call FetchRegistryKeyValue(Registrykeypath)

e.g. Call FetchRegistryKeyValue("HKLM\SOFTWARE\Microsoft\Internet Explorer\Version")

Sample code to fetch Internet Explorer version from registry
----------------------------------------------------------------------
Function FetchRegistryKeyValue(strRegKey)

Dim objWso

Set objWso = CreateObject("WScript.Shell")
FetchRegistryKeyValue = objWso.RegRead(strRegKey)

Set objWso = Nothing
End Function

Sunday, September 7, 2008

Download TestComplete E-Book

Hey, if any body interested in knowing about TestComplete automation tool.

Here is the detailed PDF on TestComplete

Download TestComplete E-Book