Browse Prior Art Database

Adaptive Testcase Timeout

IP.com Disclosure Number: IPCOM000015364D
Original Publication Date: 2001-Nov-16
Included in the Prior Art Database: 2003-Jun-20
Document File: 1 page(s) / 34K

Publishing Venue

IBM

Abstract

A program is disclosed that overcomes the problem of running a testcase (small program used to test some aspect of a system) with a fixed timeout in different environments with different performances. The timeout sets the maximum time the testcase is expected to run, however we would expect the testcase to take different times to run in different environments. Other things that can affect the run time is other software that is running and other user activity. This program causes the timeout to be changed depending on the performance of the environment it is running in. This is done as follows: 1. Before the testcase runs a benchmark is run to determine the performance of the environment. On a 'standard' system the benchmark would take 1 second to run. 2. The 'standard' timeout associated with the testcase is then multiplied by the number of seconds the benchmark took to run.

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

Page 1 of 1

Adaptive Testcase Timeout

A program is disclosed that overcomes the problem of running a testcase (small program used to test some aspect of a system) with a fixed timeout in different environments with different performances. The timeout sets the maximum time the testcase is expected to run, however we would expect the testcase to take different times to run in different environments. Other things that can affect the run time is other software that is running and other user activity.

   This program causes the timeout to be changed depending on the performance of the environment it is running in. This is done as follows:

   1. Before the testcase runs a benchmark is run to determine the performance of the environment. On a 'standard' system the benchmark would take 1 second to run.

   2. The 'standard' timeout associated with the testcase is then multiplied by the number of seconds the benchmark took to run.

   3. This adapted timeout is used when running the testcase. The 'standard' timeout for a testcase would be determined by running it on a 'standard' system where the benchmark takes 1 second to run. This can be scaled to any desired benchmark run time.

1