Browse Prior Art Database

Method and approach for Optimized api test lifecycle automation

IP.com Disclosure Number: IPCOM000243566D
Publication Date: 2015-Oct-01
Document File: 3 page(s) / 163K

Publishing Venue

The IP.com Prior Art Database

Abstract

Application Program Interface - APIs have become the heart of any development work today. They allow reuse of functionality and can be combined to create enriched functionality for users. One of the key needs from a public API or a private API having a large number of consumers is the stability of the API. Therefore, thorough testing of the API plays a critical role in the API development life cycle. Currently available solutions address either the test modelling and coverage aspects of the lifecycle or the automation aspects of testing. However, our solution provides a complete automation of API test cycle by combining the capabilities of test coverage and automation.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 53% of the total text.

Page 01 of 3

Method and approach for Optimized api test lifecycle automation

The products available for combinatorial test design (CTD) focus on test modelling and generation of optimized data combinations and the API test automation tools focus on automation of test suite execution.

These solutions/products address only one aspect of the API testing lifecycle. But our solution provides a complete automation of API test cycle by combining the capabilities of combinatorial test design tool with API test execution automation tool.

Our solution integrates the tools available for Optimized Test Design and Test automation execution. This approach minimizes over testing/under testing situations by optimizing the test combinations using Combinatorial Test Design tool and the resulting output of the CTD tool is fed into automation engine which executes the test combinations on the API.

Validations were developed in test execution tool to automate the validation of the test results. Custom reporting was developed to show the pass/fail status of each test combination. The solution also takes care of non-availability of dependent interfaces through the virtualization capabilities of the test execution tool we used.

This approach lends itself very well to an Agile development lifecycle. We were able to achieve up to ~40% reduction in test execution time in the first sprint/iteration and ~80% reduction in test execution time in the subsequent sprints/iterations
Let us look at the 2 key components used to create the automation:

Combinatorial Test Design Tool:

This tool allows a CTD (Combinatorial Test Design) model to be created. This tool can be applied in a varied scenarios to model data elements and attributes and achieve an optimal data combination set for testing.

One of the key challenges in testing is to ensure thorough coverage of functionality while still achieving cycle time objectives. By leveraging CTD tool one can obtain an optimized list of data combinations to test based on the manageable risk levels and coverage expectations.

Test execution automation / virtualization tool:

This tool has the following key aspects:

· Record/Playback to enable easy stubbing and virtualization of existing interfaces

· Scripting to enable enhancemen...