SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Jan 2002
    Location
    Hyderabad
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    calling dll from Silk test..

    hi,
    can any one help me..
    how to call dll using silk..


    ------------------
    Raj
    Raj

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    93
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calling dll from Silk test..

    Hi,

    You can declare a dll function using

    dll "dll name"
    Function in Dll

    In your script you can then call the function you have declared.

    You should probably include mswtype.inc where the datatypes for dlls have been declared. Check in the help and documentation as this is covered fairly extensively.

    One trick you can also use if you are trying to get values from a dll used by your app is to use the inprocess keyword (which is unsupported). This makes Silktest use the currently loaded instance of the dll instead of creating its own.

    Hope this helps,

    Paul

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


    [This message has been edited by ptucker (edited 01-18-2002).]
    Paul Tucker
    Merit AT
    www.merit-at.com

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calling dll from Silk test..

    Here's a simple example using kernel32.dll

    You can run this on any Windows system

    put this into an include file called dll.inc:
    Put this into a T file
    Create c:\mylongpathdir then run the T file
    you should get this in the results file:

    c:\MYLONG~1

    ------------------
    Steven Tyler
    Lead SQA Automation Engineer
    Timekeeper Central Group
    Kronos Incorporated
    E-Mail: styler@kronos.com www.kronos.com
    Improving the Performance of People and Business™

    [This message has been edited by styler (edited 01-18-2002).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  4. #4
    Junior Member
    Join Date
    Jan 2002
    Location
    Hyderabad
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calling dll from Silk test..

    thank u steven..it worked.
    can u suggest me some site where i learn more about using dll's thru silk.

    ------------------
    Raj
    Raj

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

    Re: calling dll from Silk test..

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by rajshekl:
    thank u steven..it worked.
    can u suggest me some site where i learn more about using dll's thru silk.

    <HR></BLOCKQUOTE>

    I'm not aware of any site in particular, but look at code! Some old issue in the SilkTest newsletter by Segue has the code for a link checker -- which uses wininet.dll extensively. By studying the code in that example, I was able to come to a pretty good understanding of how to impliment dll usage in Silktest, and it's _invaluable_ for the work I do and our AUT.

    I highly recommend to anyone testing in a web server / internet type environment to use wininet.dll and SilkTest together to create strong testcases. Having just made the switch from using SilkTest strictly with web browsers to now having a product where I can use URL calls directory, the result is stability, longevity, and robust testcases.

    Andrew



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

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

    Re: calling dll from Silk test..

    I have a question related to that.

    How can I find out a list of functions and their parameters in a dll?

    Thanks

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

  7. #7
    Junior Member
    Join Date
    May 2001
    Location
    Portland, OR
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calling dll from Silk test..

    Here is a site that has some of them. Although, it hasn't been updated in about a year. I'm sure that there is something better out there but this can be a starting point for you.
    http://www.vbapi.com/ref/funca.html

    Here is a second link. I haven't used this site before, but it looks pretty thorough.
    http://www.allapi.net/apilist/apilist.php

    Keep in mind that these two sites are set up for Visual Basic programming, so any code snippets do not pertain to your use. However, these sites are good for determining the structure, use, return values and home dll of winapi functions.

    When all is said and done, the best place to get this information is the MSDN.

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

  8. #8
    Junior Member
    Join Date
    Feb 2002
    Location
    Andover, MA, USA
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calling dll from Silk test..

    ptucker? I cannot find any mention of the inprocess keyword in Silk 5.5. Do you have an example of how it can be used when declaring or using Dll's?
    ========================================#
    Paul Tanguay #
    paul_tanguay@hsgmed.com #
    Philips Ultrasound #
    3000 Minuteman Road, Andover, MA 01810 #
    Tel #: (978) 659-2104 #
    Fax #: (978) 659-3014 #
    ========================================#

  9. #9
    Junior Member
    Join Date
    Sep 2004
    Location
    Lab
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calling dll from Silk test..

    Originally posted by jwashbux:
    Here is a site that has some of them. Although, it hasn't been updated in about a year. I'm sure that there is something better out there but this can be a starting point for you.
    http://www.vbapi.com/ref/funca.html

    Here is a second link. I haven't used this site before, but it looks pretty thorough.
    http://www.allapi.net/apilist/apilist.php

    Keep in mind that these two sites are set up for Visual Basic programming, so any code snippets do not pertain to your use. However, these sites are good for determining the structure, use, return values and home dll of winapi functions.

    When all is said and done, the best place to get this information is the MSDN.
    <font size="2" face="Verdana, Arial, Helvetica">The first link is broken you may want to include an update but trying to the second site proved most helpful. It contains a long list of API calls and details to help you implement them in your 4Test scripts!

 

 

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:55 PM.

Copyright BetaSoft Inc.