Tapper Team > Tapper-Cmd > Tapper::Cmd::Testrun

Download:
Tapper-Cmd-4.1.8.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 4.1.8   Source  

NAME ^

Tapper::Cmd::Testrun

SYNOPSIS ^

This project offers backend functions for all projects that manipulate testruns or preconditions in the database. This module handles the testrun part.

    use Tapper::Cmd::Testrun;

    my $bar = Tapper::Cmd::Testrun->new();
    $bar->add($testrun);
    ...

NAME ^

Tapper::Cmd::Testrun - Backend functions for manipluation of testruns in the database

FUNCTIONS ^

find_matching_hosts

create

Create new testruns from one element of a test plan (actually a test plan instance) that contains all information including requested hosts and features. If the new testruns belong to a test plan instance the function expects the id of this instance as second parameter. If the instance id is empty the function can also be used to create testruns from a testplan like layout without actually using test plan features, i.e. without creating a link between the new testruns and a test plan (instance).

@param hash ref - test plan element @param instance - test plan instance id

@return array - testrun ids

add

Add a new testrun. Owner/owner_id and requested_hosts/requested_host_ids allow to specify the associated value as id or string which will be converted to the associated id. If both values are given the id is used and the string is ignored. The function expects a hash reference with the following options: -- optional -- * requested_host_ids - array of int or * requested_hosts - array of string

* notes - string * shortname - string * topic - string * date - DateTime * instance - int

* owner_id - int or * owner - string

@param hash ref - options for new testrun

@return success - testrun id) @return error - exception

@throws exception without class

update

Changes values of an existing testrun. The function expects a hash reference with the following options (at least one should be given):

* hostname - string * notes - string * shortname - string * topic - string * date - DateTime * owner_id - int or * owner - string

@param int - testrun id @param hash ref - options for new testrun

@return success - testrun id @return error - undef

del

Delete a testrun with given id. Its named del instead of delete to prevent confusion with the buildin delete function.

@param int - testrun id

@return success - 0 @return error - error string

rerun

Insert a new testrun into the database. All values not given are taken from the existing testrun given as first argument.

@param int - id of original testrun @param hash ref - different values for new testrun

@return success - testrun id @return error - exception

@throws exception without class

AUTHOR ^

AMD OSRC Tapper Team, <tapper at amd64.org>

COPYRIGHT & LICENSE ^

Copyright 2012 AMD OSRC Tapper Team, all rights reserved.

This program is released under the following license: freebsd

AUTHOR ^

AMD OSRC Tapper Team <tapper@amd64.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2013 by Advanced Micro Devices, Inc..

This is free software, licensed under:

  The (two-clause) FreeBSD License
syntax highlighting: