SPONSORS:






User Tag List

Results 1 to 10 of 10

Thread: testing APIs

  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    fremont, ca, usa
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    testing APIs

    Can anyone please explain me how APIs of an application can be tested?

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

    Re: testing APIs

    Usually you'll test them using the same programming software you used to create the APIs.

    If your APIs are available in DLLs then you can call them through Silk.

    Or if your APIs are for java app you can write wrappers to make them work with silk(not well documented subject).

    Silk is more of a UI testing tool. I would not recommend using it to test anything not related to it.

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

  3. #3
    Junior Member
    Join Date
    May 2001
    Location
    fremont, ca, usa
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testing APIs

    Hi,
    Thank you for your reply. If it is a DLL how can we call that API using SilkTest. I could not find anything in "help".

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

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

    Re: testing APIs

    search in help for 'dll', there will be 'dll declaration' under index.

    example from help:

    I never used dll call in silk. You can also search this forum to see if you are lucky.

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


    [This message has been edited by GodKnows (edited 05-22-2001).]

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

    Re: testing APIs

    I've used the Windows DLL's for internet access to do things like stress web servers, retrieve and read files via ftp access from internal development servers, and create a search engine for a search engine (i.e. Do a search for term ABC in Altavista, then search through the results in Altavista to see if it showed up).

    It's not complicated, but it is limited. COM objects are not accessible. Never followed through with the idea of using a wrapper for it, though it seems a possible thing to do. I was told that it might work to use VB to create an instantiated instance of the objects defined by the .dll and then reference those through SilkTest, but this was coming from someone who didn't know SilkTest very well and was just a guess on how you could do it.

    There's some reference to these techniques in the Silk documentation, but if you really want good code to look at that utilizes these efforts, check out a past issue of the SilkTest newsletter from the Segue site. I can't remember which month -- if you really want, i could look it up. Basically there's an article that has the code for a web spider that utilizes the Windows API functions. It was from this code that I learned most of what I know and worked through many small projects, like I mentioned above.

    Andrew

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

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

    Re: testing APIs

    Here is the Help index in SilkTest on how to link to dll's:
    dll declaration

    I've used this functionality to access windows api's, but only as a last resort when I can't find the functionality I need in SilkTest. I would highly discourage you from using Silk to do API testing. I agree with GodKnows that you should use the same language that the was used to create the API's. Using Silk will introduce one more level of abstraction and uncertainty into your testing that you don't need. Good luck.


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

  7. #7
    Junior Member
    Join Date
    Nov 1999
    Location
    VIENNA, AUSTRIA, EUROPE
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testing APIs

    here is the link to segue news:
    http://customers.segue.com/protected...qa_insider.htm


    ANDALL

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

  8. #8
    Senior Member
    Join Date
    Jan 2000
    Location
    Chicago, Illinois, USA
    Posts
    151
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testing APIs

    In that code wininet.dll is used. Does anybody know where that dll can be downloaded.

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

  9. #9
    rg
    rg is offline
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testing APIs

    Wininet.dll is installed by Internet Explorer. If you have MSIE installed, you should already have it.

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

    Re: testing APIs

    Another article about dll and an example of doing html request:
    http://customers.segue.com/protected...9/s_rgupta.htm


    Happy reading

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

 

 

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 07:42 AM.

Copyright BetaSoft Inc.