life_test::test_param::LifeTest Class Reference

List of all members.

Public Member Functions

def __init__
def debug_ok
def desc
def duration
def get_title
def id
def init_xml
def launch_file
def make_param_table
def name
def need_power
def needs_power
def params
def set_params
def short
def type
def validate

Private Attributes

 _debug_ok
 _desc
 _duration
 _has_init
 _id
 _launch_script
 _name
 _params
 _power
 _short
 _short_serial
 _test_type

Detailed Description

Holds parameters, info for each life test

Definition at line 46 of file test_param.py.


Member Function Documentation

def life_test::test_param::LifeTest::__init__ (   self,
  short = '',
  testid = '',
  name = '',
  desc = '',
  serial = '',
  duration = 0,
  launch_script = '',
  test_type = '',
  power = False,
  params = None 
)
Use **kwargs in constructor. Preferred option is to initialize from XML

Definition at line 50 of file test_param.py.

def life_test::test_param::LifeTest::debug_ok (   self  ) 

Definition at line 124 of file test_param.py.

def life_test::test_param::LifeTest::desc (   self  ) 
Get description of test

Definition at line 134 of file test_param.py.

def life_test::test_param::LifeTest::duration (   self  ) 

Definition at line 144 of file test_param.py.

def life_test::test_param::LifeTest::get_title (   self,
  serial 
)
Return a human readable title of the test/item. Used as tab name

Definition at line 171 of file test_param.py.

def life_test::test_param::LifeTest::id (   self  ) 

Definition at line 150 of file test_param.py.

def life_test::test_param::LifeTest::init_xml (   self,
  xml 
)
Initialize LifeTest from XML value. 

Required tags:
serial - Short value only
name - Full name of test
id - Test ID
desc - Description
script - Path to launch script
type - Ex: 'Burn In'
power - Needs power or not (bool)

Optional:
debug - "true" if can run outside debug mode
duration - Default: 0

TestParam's are initialized using nested XML nodes
@raise Exception : If parameters are duplicated, or required attributes don't exist
@return bool : True if init OK

Definition at line 73 of file test_param.py.

def life_test::test_param::LifeTest::launch_file (   self  ) 

Definition at line 160 of file test_param.py.

def life_test::test_param::LifeTest::make_param_table (   self  ) 
Writes parameters to HTML table form for logging
@return str : Table as a string

Definition at line 204 of file test_param.py.

def life_test::test_param::LifeTest::name (   self  ) 

Definition at line 147 of file test_param.py.

def life_test::test_param::LifeTest::need_power (   self  ) 

Definition at line 127 of file test_param.py.

def life_test::test_param::LifeTest::needs_power (   self  ) 

Definition at line 156 of file test_param.py.

def life_test::test_param::LifeTest::params (   self  ) 
Get the parameters list. Read-only

Definition at line 139 of file test_param.py.

def life_test::test_param::LifeTest::set_params (   self,
  namespace 
)
Sets parameters in given namespace

Definition at line 163 of file test_param.py.

def life_test::test_param::LifeTest::short (   self  ) 

Definition at line 130 of file test_param.py.

def life_test::test_param::LifeTest::type (   self  ) 

Definition at line 153 of file test_param.py.

def life_test::test_param::LifeTest::validate (   self  ) 
Called during unit testing only. Checks all files exist, are valid
@return bool : True if OK

Definition at line 183 of file test_param.py.


Member Data Documentation

Definition at line 66 of file test_param.py.

Definition at line 59 of file test_param.py.

Definition at line 58 of file test_param.py.

Definition at line 68 of file test_param.py.

Definition at line 55 of file test_param.py.

Definition at line 60 of file test_param.py.

Definition at line 56 of file test_param.py.

Definition at line 64 of file test_param.py.

Definition at line 62 of file test_param.py.

Definition at line 57 of file test_param.py.

Definition at line 54 of file test_param.py.

Definition at line 61 of file test_param.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables


life_test
Author(s): Kevin Watts
autogenerated on Fri Jan 11 09:35:06 2013