SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    COM DLL Support available?

    Hi,
    I want to access some COM DLLs functions. Is it possible in SilkTest?
    Most of you know about MS DOM parser. I want to parse some XML files by using Silk Test.
    If you have any sample code to access COM DLL methods or properties, Please send to tmpalaniselvam@yahoo.com


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: COM DLL Support available?

    If you use Silk 6 there are a whole section on that in help.

    In silk you load the dll the same you do in VB.

    1)include the dll you want to load
    dll "msxml.dll"

    2)Declare the interface for the method you want to access
    HWND ChildWindowFromPoint (HWND hWnd, LONG lPoint)

    3)make sure all data type are supported by silk.
    You can fake pointer using integers, depends how the method is written

    4)calling it's like any other function.

    In your silk install directory you should have the following files:
    mswfunc32.inc
    mswconst.inc
    mswmsg.inc
    mswtype.inc

    Reading them should give you plenty example how to call dll stuff.


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

  3. #3
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: COM DLL Support available?

    The SilkTest help is for C-Style DLL's, not COM DLL's, which require an object to be made.


    A Wrapper could be written for the COM DLL in some other language (C, Visual Basic, WSH, etc).

    Or, for your current problem, you could use a command line XML parser in combination with SYS_Execute().

    If you find a way to use COM DLL's are the MSXML parser with SilkTest, please post it here.



    ------------------
    David Genrich
    david.genrich@e2open.com
    david@linuxpuppy.net

  4. #4
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: COM DLL Support available?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by davidgenrich:
    The SilkTest help is for C-Style DLL's, not COM DLL's, which require an object to be made.
    If you find a way to use COM DLL's are the MSXML parser with SilkTest, please post it here.
    <HR></BLOCKQUOTE>
    Hi,
    I'm having SilkTest 5.0.3 only. I searched the ST help and this forums messages. I concluded that ST don't have COM DLL support. It is having support for Standard DLLs only (ex. DLLs are developed by using C). The same limitation occurs in Winrunner also.

    You can't create standard DLLs by using VB. Able to create COM DLLs only.

    If I get any code to use COM DLLs, surely I'll post here....

    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: COM DLL Support available?

    Can't be always right when you guess all the time:P Don't remind me...I will feel small for a while - sigh.

    Here it's an example Using Microsoft's MSXML 3.0 API to Transform XML to HTML (vb) http://www.15seconds.com/issue/010810.htm

    How to automate an application with COM. http://codeproject.com/com/AutomatingWindowsApps.asp

    VB could be your fast solution. If you use .net, ACT could be something too. It says you can do functional testing too and it's using vbscript(you can call CreateObject to load msxml component like in ASP). You can use ASP to be the median between silk and COM too.
    You can input your data from a text field in a form and the result be returned on the web page for example.

    ------------------
    When I say asp is the median, it means you will write your COM loading code using vbscript or jscript, and do all the work to process whatever you want using the client side script. Your interface for input/output is through the web page.

    [This message has been edited by GodKnows (edited 03-31-2003).]

  6. #6
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: COM DLL Support available?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by GodKnows:
    Can't be always right when you guess all the time:P Don't remind me...I will feel small for a while - sigh.<HR></BLOCKQUOTE>
    Hi,
    Thanks for the reply. I'm asking, Accessing of COM DLL methods are possible or not by using SilkTest.... I'm using SilkTest5.0 and I tried in all ways. I couldn't use COM DLL directly.
    Some people said that I have to write another wrapper for that DLL and I have to call appropriate procedures from the wrapper script/DLL/Application.

    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

 

 

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 02:11 AM.

Copyright BetaSoft Inc.