Tapper::Cmd::Scenario
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); ...
Tapper::Cmd::Scenario - Backend functions for manipulation of scenario in the database
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 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 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
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
AMD OSRC Tapper Team <tapper@amd64.org>
Tapper Team <tapper-ops@amazon.com>
This software is Copyright (c) 2020 by Advanced Micro Devices, Inc.
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::Cmd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::Cmd
CPAN shell
perl -MCPAN -e shell install Tapper::Cmd
For more information on module installation, please visit the detailed CPAN module installation guide.