SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Guest

    accessing COM objects

    Has anyone used silk to access COM objects? I am at a loss as I can find no documentation and I don't know where to begin.

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: accessing COM objects

    One way of doing this is to create a small VB application which loads the COM object in an ActiveX wrapper. Then using SilkTest's built in ActiveX support you can communicate with the COM object via the VB interface. See attached ZIP file for an example.

    Comtest.zip

    [This message has been edited by AJ (edited 01-16-2000).]

  3. #3
    BKD
    BKD is offline
    Junior Member
    Join Date
    Jul 2000
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: accessing COM objects

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by jamesso:
    One way of doing this is to create a small VB application which loads the COM object in an ActiveX wrapper. Then using SilkTest's built in ActiveX support you can communicate with the COM object via the VB interface. See attached ZIP file for an example.

    Comtest.zip

    [This message has been edited by AJ (edited 01-16-2000).]
    <HR></BLOCKQUOTE>


  4. #4
    BKD
    BKD is offline
    Junior Member
    Join Date
    Jul 2000
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: accessing COM objects

    I am getting following error after executin your script from ZIP file. :
    [-] Testcase VerifyCtrl - 1 error
    [ ] (local) ADSITest.SetActive () tag="/[VBForm]ADSITest"
    [ ] (local) *** Error: Window '[VBForm]ADSITest' was not found
    [ ] (local) Occurred in SetActive
    [ ] (local) Called from VerifyCtrl at adsitst.t(48)


    Please advice do i have to define object or create any object?....

    thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by jamesso:
    One way of doing this is to create a small VB application which loads the COM object in an ActiveX wrapper. Then using SilkTest's built in ActiveX support you can communicate with the COM object via the VB interface. See attached ZIP file for an example.

    Comtest.zip

    [This message has been edited by AJ (edited 01-16-2000).]
    <HR></BLOCKQUOTE>


  5. #5
    Member
    Join Date
    May 2000
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: accessing COM objects

    Here's an interesting one for those of you interested in testing a COM object that doesn't have a GUI. I've been trialing Compuware's TestPartner tool, and I was able to access the properties of ComTest by simply cranking together the following script:

    Sub Main()

    Dim coextComTest As TComObject
    Set coextComTest = TestPartner.ComObject("Application=ADSITST.EXE CLSID=adsictrl.adsictl")

    MsgBox coextComTest.Object.Name
    MsgBox coextComTest.Object.Path
    MsgBox coextComTest.Object.Class
    MsgBox coextComTest.Object.ParentName

    End Sub

    You'll also note that TestPartner uses VBA as its scripting language (real VBA, not pseudo-VBA like some other testing tools).

    In any case... no more ActiveX wrappers for this QA department!

  6. #6
    Junior Member
    Join Date
    Jan 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: accessing COM objects

    Could someone please explain what COM Objects are? Thanks!

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:58 PM.

Copyright BetaSoft Inc.