Entries from August 2008 ↓

API Testing - Begin with a test framework

I recently started doing a project which involves some . Since my knowledge of this domain was restricted and began to learn of lot of things as i started….. This is the first time i thought ill blog about it as i go along.

How to and framework ???

Coming from an automation addicted software testing background, when i started to study one of the things that i found out (to my delight) was that when it comes to testing API’s, there is not much that you can do by sticking to the age old manual testing routine.

This bought me to the next question, what would be the architecture of an framework? The following notes are regarding the pre-requisites of your irrespective of whether your API is written in C,JAVA etc etc…. As usual let me start with a picture:

The framework is more or less self-explanatory. The purpose of the is to hold all the configurable components and their values for a particular test run. As a follow through, your automated test cases should be represented in a ‘parse-able’ format in the . Always keep the script highly ‘configurable’.

In the case of , you would not want to test every API in every test run ( the number of API’s that are tested will dwindle as testing progressing.) Hence your should have sections which detail which all API’s are “activated” for the particular run. Based on this, the test cases should be picked up.

Since inserting the automation test case parameters into can be a tedious activity, it should be designed in such a way that the test case can be left static with a mechanism of ‘activating’ and ‘deactivating’ them.

More on designing and real experience in later posts…………………………….

If you enjoyed this post, make sure you subscribe to my RSS feed!

Related posts