CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: API testing

  1. #1
    Join Date
    Nov 2001
    Posts
    401

    API testing

    I will starting to work on Testing the API of our product and am looking for some general ideas on how to go about it so that I have a good plan before I actually start doing it.

    It sa Vc++ application and api is a dll with the functions exported in c like format.

    What I want to know is ideas on what to use to like pass paramters to the application that I will be writing to test the api, will xml be a good fit, or should I use excel files for passing parameters as well as for storing results.

    Basically I would love to get some suggestions on what good features i should consider, i am not asking for a how to guide, just some good practices that folks here have followed so that the api test app is extensible and flexible enough.

    Take Care

    Pauli

  2. #2
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: API testing

    Not sure I get it exactely. What do you exactely want to do? Are you trying you track the paramters, if yes, then you can create a log file and write the values in them while passing to the API, or if you want to test the API for potential anomolies, then you can also use PC-Lint or any other tool.

  3. #3
    Join Date
    Oct 2002
    Posts
    1,134

    Re: API testing

    I think what you need is an automated test bed that will cycle through all possible combinations of input and verify the results. There are a number of packages out there that do this; here is one of them, although I personally haven't tried it. Do a Google search for "automated testing".
    Regards
    Robert Thompson

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured