20102010 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Suite Callbacks Lukas Larsson Lukas Larsson 2010-12-02 PA1 suite_callback.sgml
ct_suite_callback A callback interface on top of common test

The Suite Callback framework allows extensions of the default behaviour of Common Test by means of callbacks before and after all test suite calls.

In brief, Suite Callbacks allows you to:

Manipulating the runtime config before each suite configuration calls Manipulating the return of all suite configuration calls

The following sections describe the mandatory and optional suite callback functions Common Test will call during test execution. For more details see Suite Callbacks in the User's Guide.

CALLBACK FUNCTIONS

The following functions define the callback interface for a suite callback.

Module:init(Opts) -> {Id,State} asdas Opts = term() Id = term() GroupName = term()

MANDATORY

If {skip,Reason} is returned, all test cases in the module will be skipped, and the Reason will be printed on the HTML result page.

For details on groups, see Test case groups in the User's Guide.