Tapper Team > Tapper-Cmd > Tapper::Cmd::Scenario

Download:
Tapper-Cmd-5.0.6.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 5.0.6   Source  

NAME ^

Tapper::Cmd::Scenario

SYNOPSIS ^

This project offers backend functions for all projects for manipulation the database on a higher level than that offered by Tapper::Schema.

    use Tapper::Cmd::Scenario;

    my $bar = Tapper::Cmd::Scenario->new();
    $bar->add($scenario);
    ...

NAME ^

Tapper::Cmd::Scenario - Backend functions for manipulation of scenario in the database

FUNCTIONS ^

create

Create a new scenario from one element of a test plan (actually a test plan instance). If the new scenario belong to a test plan instance the function expects the id of this instance as second parameter.

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

@return success - array - scenario ids @return error - die

parse_interdep

Parse an interdep scenario and do everything needed to put it into the database.

@param hash ref - config containing all relevant information @param hash ref - options

@return success - int - scenario_id @return error - die with error text

add

Add a new scenario to database. Add with testplan instance id if given.

@param hash ref - options for new scenario @param instance - test plan instance id

@return success - array - scenario id @return error - die

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

AUTHORS ^

COPYRIGHT AND LICENSE ^

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

This is free software, licensed under:

  The (two-clause) FreeBSD License
syntax highlighting: