Quick test professional

QTP Tips QTP codes QTP Faqs and more

How to register COM with QTP?

How to register COM with QTP? 

Steps to create Intellisense in QTP:

1. Create a wsc(windows scripting component) file in the below given format:

<?xml version=”1.0″?>
<component>

<?component error=”true” debug=”true”?>
<reference object=”Scripting.Dictionary” />
<registration description=”Functions” progid=”QTP.Functions” version=”1.00″ classid=”{d7c40957-00d4-41a5-a87b-89d1db311423}”>
</registration>

<public>

<method name=”Function1″ internalName=”Functiona1″ dispid=”0″>
<PARAMETER name=”strFileName”/>
</method>
<method name=”Function2″>
</method>
<method name=”Function3″ >
</method>
</public>

</component>
2. After the file is created, register the same using regsvr32.
3. Now create the following registry entries in the path HKCU\Software\Mercury Ineteractive\QuickTest Professional\MicTest\Reserved Objects\Functions –

ProgID REG_SZ QTP.Functions
UIName REG_SZ Functions

4. Restart QTP.

  Source: Mercury Forum’s KB articles

Advertisements

February 14, 2008 - Posted by | COM and QTP | , , , , , , , ,

3 Comments »

  1. Hi,

    I want to write Name, Address,ID as a heading in different coloumns of excel using QTP.

    Thnks in advance………..

    Regards,
    Anu

    Comment by Anu | July 12, 2010 | Reply

  2. When i try this by creating wsc file, registering that, created registry entries and restarted QTP too.

    After launching QTP i am getting error in wsc file like “The method is not defined : Functiona1”

    Can you help me in this

    Comment by Prasanth | May 11, 2011 | Reply

  3. Normally I do not learn post on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thank you, very nice post.

    Comment by Hassan | August 27, 2013 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: