• Increase font size
  • Default font size
  • Decrease font size

Latest Posts for 'Testing'


API Usability Testing at AT&T

  Wednesday, April 4th, 2012

Pamela Fox wrote about some great process that AT&T implemented to test the usability of their APIs. They invited several developers to come in and test out their APIs and give feedback on ways they can improve their developer experience. This is a great idea and fantastic way to improve an API based upon actual customer experience:


How API Testing Can Help

  Wednesday, December 7th, 2011

Bj Rollison wrote an article on API testing in which he talks about the differences between unit, API, and GUI testing. He goes on to describe some of the key benefits of API testing, including: reduced testing costs, improved productivity, and higher functional quality. Bj concludes by talking about the relationship between developers and testers.


API Design as if Unit Testing Mattered

  Wednesday, January 12th, 2011

Michael Feathers, author of the book “Working Effectively with Legacy Code”, gave a presentation at SD West in 2007 about designing an API with consideration for how it will be unit tested. He presents recommendations such as avoiding static methods and avoiding final/non-virtual methods (although I disagree with the latter recommendation in my book, where I argue that being minimally complete is more important). He also presents a golden rule of API Design: “It’s not enough to write tests for an API you develop, you have to write unit tests for code that uses your API.” He also states that you should supply your tests to your users. I could not agree with those statements more!


Non-functional Testing

  Thursday, September 9th, 2010

Most testing efforts are targeted toward testing the actual functionality of an API, i.e., what it is supposed to do. However, there is another class of testing called non-functional testing. This involves testing the quality of the software from the user’s perspective. It can involve things like performance testing, scalability testing, and security testing. The following article gives a comparison between functional and non-functional testing.


Unit Testing Frameworks

  Thursday, September 9th, 2010

A unit test is a white-box testing technique that a developer performs. White-box means that you write the tests with knowledge of the implementation of the API. There are many frameworks out there that help you write, maintain, and run unit tests for your code. Most of these are based upon the J-Unit style of unit testing. Wikipedia offers a good categorization of unit test frameworks that are available for C and C++. See:


API Testing

  Thursday, September 9th, 2010

This article provides a QA engineer’s perspective on API testing. It pulls out some of different types of testing approaches, such as unit testing and black-box testing, and provides some guidance on writing API tests.

Note that the term “API Testing” is commonly used in the QA domain to mean programmatic black-box tests that a QA engineer writes.  However, I view the topic of “testing an API” as being wider than this, encompassing unit testing, integration testing, and non-functional testing, and performed by either developers or QA engineers.


ABOUT THIS SITE

An Application Programming Interface (API) provides a logical interface to a piece of software and hides its internal details. This website is dedicated to a book on designing APIs for C++ and includes articles and links on API development.
 

SOURCE CODE

The book is accompanied by a source code package that contains many of the examples in the text. Download it for free.
 

OTHER BOOKS

Dr. Reddy has also published a computer graphics book called Level of Detail for 3D Graphics. Check it out too!.
 
Copyright (c) 2014 Martin Reddy. All rights reserved. Login