SPONSORS:






User Tag List

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    API Testing using silktest

    Has anyone done API testing using SilkTest?
    A step by step approach to calling those third party functions (written in C++ and Java) is welcome.

    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API Testing using silktest

    Here's an example of making an API call via SilkTest:

    dll "advapi32.dll"
    {
    LONG RegDeleteKey (in LONG hKey, STRING lpSubKey) alias "RegDeleteKeyA";
    }

    BOOLEAN DeleteRegKey(eRegistryKey Root,STRING lpszSubKey)
    {
    INTEGER dwRoot,Error;
    BOOLEAN bSuccess;

    switch (Root)
    {
    case HCR : dwRoot = 0x80000000;
    case HCU : dwRoot = 0x80000001;
    case HLM : dwRoot = 0x80000002;
    case HU : dwRoot = 0x80000003;
    case HPD : dwRoot = 0x80000004;
    case HCC : dwRoot = 0x80000005;
    case HDD : dwRoot = 0x80000006;
    }
    Error = RegDeleteKey (dwRoot, lpszSubKey);
    if (Error == 0)
    bSuccess = True;
    else
    bSuccess = False;
    return bSuccess;
    }


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


    [This message has been edited by TonyM (edited 04-16-2002).]
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API Testing using silktest

    You can't call into C++-style dll routines -- they have to be C.

    For Java, see Segue's help documentation about how to expose a (public) custom class and reference its (public) methods and objects. It's all in there.


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

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

    Re: API Testing using silktest

    agroves: Not totally true.

    As long as your function uses the types that Silk Supports, you call whatever .dll you want. It can be c++ no problem. You can also passing pointer returned from another function. I don't understand what is the benifit of doing this in Silk?

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

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API Testing using silktest

    Point taken!

    Initially the idea was to see whether we could have something centralized for all types of testing.

    As an intellectual exercise, it would be interesting what are others' views.



    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

  6. #6
    Guest

    Re: API Testing using silktest

    I would think the best way to do this kid of testing would be to write something in VB and create similar mechanism of reporting as that of silk and putting something togather in VB shouldn't be that hard. I get your point and do think that its a good idea to have test results in a same format. but its I think very difficult and not always reliable to do something like this in silk. using VB will be much easy.

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

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API Testing using silktest

    How much would be the ramp time for learning VB?

    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

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

    Re: API Testing using silktest

    For simple stuff like calling APIs(check dll declarations, it's similar to how SilkTest does it. allapi.net has a tool with windows dll declaration for VB. It's a good place to start), you should be able to learn that under 45 minutes. For complicated stuff it might take hours.

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

  9. #9
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API Testing using silktest

    Thanks. This is getting useful. I really appreciate it.
    (Godknows you are reading this mail or not!!!

    ------------------
    Jaimini Bhatt
    jaiminita@hotmail.com
    jaiminita@yahoo.com
    Jaimini Bhatt

  10. #10
    Junior Member
    Join Date
    Sep 2001
    Location
    Sterling, VA, US
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API Testing using silktest

    User vinod ravi (vinodrkumar@hotmail.com.nospam) posted:


    Hi All....

    I am one of the follower of Silk Test Group ...

    Recently I noticed that I am not getting all emails.

    At the of response / reply please make it as reply all instead of reply..

    So that all member will get the emails..


    Thanks
    Vinod
    __________________________________________________ _______________
    Chat with friends online, try MSN Messenger: http://messenger.msn.com


    Vinod

 

 
Page 1 of 3 123 LastLast

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

Copyright BetaSoft Inc.