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
AMD OSRC Tapper Team <tapper@amd64.org>
Tapper Team <tapper-ops@amazon.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2024 by Advanced Micro Devices, Inc.
This is free software, licensed under:
The (two-clause) FreeBSD License