Integrator::Test::ConfigData is a Perl module for configuration information transfered in the TAP output.
SYNOPSIS
This module provides test functions to automate measurement and state information gathering from a test script to the TAP output with the intent of loading the information in the Integrator tool from Cydone Solutions. These functions are mostly wrappers around ok functions. See Test::Simple on www.cpan.org as a reference. If you need more information for the TAP format see Test::TAP::Model on www.cpan.org.
Each of these functions is considered a single test statement and must be counted in your test plan. This module is a sub-class of Test::Builder.
#... your typical test.t file ...
#!/usr/bin/perl
use Test::More tests => 3; #you declare your tests as usual
use Integrator::Test::ConfigData; #you add this to have access this module's functions
# a test to produce a measurement in the TAP output.
my $fan_speed = function_that_returns_some_fan_speed();
measure( 'fan speed on FAN1', 'FAN_TACH1', $fan_speed, 'RPM', 0.1, 'TACH_123' );
# a test to declare a component state in the TAP output.
component( 'locking a blade in place', 'CPU_BLADE', 'SN0010023', 'HANDLE', 'LOCKED' );
# a test to store a config file in the TAP output.
config_file( 'last night temperature log', '/var/log/heat.log.00');
# a test to store config data in the TAP output.
my $string = 'SERIAL_NUMER=1234;18Sept1970';
config_data( 'last night temperature log', 'serial_number_and_date', $string);
Product's homepage
Requirements:
· Perl
Download Integrator::Test::ConfigData 1.057 Free
Tags: configuration information , Perl module , configuration , information , Perl ,
test, tap, tap output, output, functions, # test, information, module, state, $fan_speed, declare, 'last night, # test, perl, night temperature, tests, file, config, integratortestconfigdata, temperature, 'last, measurement, log', night, component

No comments:
Post a Comment