Public Member Functions | Private Attributes
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.


Constructor & Destructor 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.


Member Function Documentation

Definition at line 124 of file test_param.py.

Get description of test

Definition at line 134 of file test_param.py.

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.

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.

Definition at line 160 of file test_param.py.

Writes parameters to HTML table form for logging
@return str : Table as a string

Definition at line 204 of file test_param.py.

Definition at line 147 of file test_param.py.

Definition at line 127 of file test_param.py.

Definition at line 156 of file test_param.py.

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.

Definition at line 130 of file test_param.py.

Definition at line 153 of file test_param.py.

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 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.

Definition at line 52 of file test_param.py.


The documentation for this class was generated from the following file:


life_test
Author(s): Kevin Watts
autogenerated on Sat Dec 28 2013 17:56:37