qualification::result::QualTestResult Class Reference

Result of Qualification test. More...

List of all members.

Public Member Functions

def __init__
def add_prestartup_result
def add_shutdown_result
def add_sub_result
def cancel
def close
def email_qual_team
 Email qualification team results as HTML summary and tar file.
def error
def export_data
def get_pass_bool
def get_prestarts
def get_qual_team
def get_retry
def get_retrys
def get_subresult
def get_subresults
def get_test_result_str
def get_test_result_str_invent
def is_prestart_error
def line_summary
def log
def log_results
def make_email_message
 Creates MIMEMultipart email message with proper attachments.
def make_index
def make_log_table
def make_prestart_table
def make_retry_index
def make_shutdown_results
def make_startup_data
def make_summary_page
def prestarts_ok
def results_dir
def retry_subresult
 Stores data from subtest as a "retry".
def set_notes
def set_operator
def set_results_dir
def tar_name
def write_results_to_file

Private Member Functions

def _log_config_result
def _write_tar_file
 Dumps all files in results directory into tar file.

Private Attributes

 _canceled
 _config_only
 _error
 _item
 _item_name
 _made_dir
 _note
 _operator
 _prestarts
 _qual_test
 _results_dir
 _results_name
 _retrys
 _serial
 _shutdown_result
 _start_time
 _start_time_filestr
 _start_time_name
 _subresults
 _tar_filename
 _test_log

Detailed Description

Result of Qualification test.

Stores and logs all data

Todo:
Make unit test of this class. Should get a series of subresults, check links,

Definition at line 447 of file result.py.


Member Function Documentation

def qualification::result::QualTestResult::__init__ (   self,
  qual_item,
  qual_test,
  start_time 
)
Parameters:
qual_item QualTestItem : Item under test
qual_test Test : Test we're running
start_time int : Start time from rospy, or time.time()

Definition at line 451 of file result.py.

def qualification::result::QualTestResult::_log_config_result (   self,
  invent 
) [private]

Definition at line 950 of file result.py.

def qualification::result::QualTestResult::_write_tar_file (   self  )  [private]

Dumps all files in results directory into tar file.

Definition at line 939 of file result.py.

def qualification::result::QualTestResult::add_prestartup_result (   self,
  index,
  msg 
)

Definition at line 567 of file result.py.

def qualification::result::QualTestResult::add_shutdown_result (   self,
  msg 
)
Todo:
All these should just be appending to a list

Definition at line 562 of file result.py.

def qualification::result::QualTestResult::add_sub_result (   self,
  index,
  msg 
)

Definition at line 572 of file result.py.

def qualification::result::QualTestResult::cancel (   self  ) 

Definition at line 581 of file result.py.

def qualification::result::QualTestResult::close (   self  ) 

Definition at line 497 of file result.py.

def qualification::result::QualTestResult::email_qual_team (   self  ) 

Email qualification team results as HTML summary and tar file.

Definition at line 1050 of file result.py.

def qualification::result::QualTestResult::error (   self  ) 

Definition at line 584 of file result.py.

def qualification::result::QualTestResult::export_data (   self  ) 
Exports result data to wg_invent_client.TestData

Unit testing and Invent logging only.

\return wg_invent_client.TestData : Data for test

Definition at line 996 of file result.py.

def qualification::result::QualTestResult::get_pass_bool (   self  ) 

Definition at line 622 of file result.py.

def qualification::result::QualTestResult::get_prestarts (   self  ) 
Todo:
All these should be fixed

Definition at line 533 of file result.py.

def qualification::result::QualTestResult::get_qual_team (   self  ) 

Definition at line 1019 of file result.py.

def qualification::result::QualTestResult::get_retry (   self,
  index 
)

Definition at line 555 of file result.py.

def qualification::result::QualTestResult::get_retrys (   self,
  reverse = False 
)

Definition at line 542 of file result.py.

def qualification::result::QualTestResult::get_subresult (   self,
  index 
)

Definition at line 549 of file result.py.

def qualification::result::QualTestResult::get_subresults (   self,
  reverse = False 
)

Definition at line 536 of file result.py.

def qualification::result::QualTestResult::get_test_result_str (   self  ) 
Todo:
This needs major cleanup

Definition at line 647 of file result.py.

def qualification::result::QualTestResult::get_test_result_str_invent (   self  ) 

Definition at line 641 of file result.py.

def qualification::result::QualTestResult::is_prestart_error (   self  ) 

Definition at line 616 of file result.py.

def qualification::result::QualTestResult::line_summary (   self  ) 

Definition at line 819 of file result.py.

def qualification::result::QualTestResult::log (   self,
  entry 
)

Definition at line 529 of file result.py.

def qualification::result::QualTestResult::log_results (   self,
  invent 
)
Todo:
Add timeout to invent

Definition at line 961 of file result.py.

def qualification::result::QualTestResult::make_email_message (   self  ) 

Creates MIMEMultipart email message with proper attachments.

Returns:
MIMEMultipart email message with tarfile attachment of plots

Definition at line 1028 of file result.py.

def qualification::result::QualTestResult::make_index (   self,
  link,
  link_dir 
)
Todo:
private

Definition at line 843 of file result.py.

def qualification::result::QualTestResult::make_log_table (   self  ) 
Todo:
private

Definition at line 856 of file result.py.

def qualification::result::QualTestResult::make_prestart_table (   self  ) 
Todo:
private

Definition at line 872 of file result.py.

def qualification::result::QualTestResult::make_retry_index (   self,
  link,
  link_dir 
)
Todo:
private

Definition at line 830 of file result.py.

def qualification::result::QualTestResult::make_shutdown_results (   self  ) 
Todo:
private

Definition at line 794 of file result.py.

def qualification::result::QualTestResult::make_startup_data (   self  ) 
Todo:
private

Definition at line 774 of file result.py.

def qualification::result::QualTestResult::make_summary_page (   self,
  link = True,
  link_dir = TEMP_DIR 
)
Todo:

Append strings, make parse tests

Rename all "make_" methods to "write_" methods

Definition at line 680 of file result.py.

def qualification::result::QualTestResult::prestarts_ok (   self  ) 
Todo:
private fn

Definition at line 609 of file result.py.

def qualification::result::QualTestResult::results_dir (   self  ) 

Definition at line 506 of file result.py.

def qualification::result::QualTestResult::retry_subresult (   self,
  index,
  notes = '' 
)

Stores data from subtest as a "retry".

Definition at line 588 of file result.py.

def qualification::result::QualTestResult::set_notes (   self,
  note 
)

Definition at line 523 of file result.py.

def qualification::result::QualTestResult::set_operator (   self,
  name 
)

Definition at line 526 of file result.py.

def qualification::result::QualTestResult::set_results_dir (   self,
  path 
)

Definition at line 511 of file result.py.

def qualification::result::QualTestResult::tar_name (   self  ) 

Definition at line 509 of file result.py.

def qualification::result::QualTestResult::write_results_to_file (   self,
  temp = True,
  local_link = False 
)

Definition at line 887 of file result.py.


Member Data Documentation

Definition at line 490 of file result.py.

Todo:
Fix this See if the qual_item is a configuration item

Definition at line 477 of file result.py.

Definition at line 489 of file result.py.

Definition at line 466 of file result.py.

Definition at line 468 of file result.py.

Definition at line 486 of file result.py.

Definition at line 494 of file result.py.

Definition at line 495 of file result.py.

Definition at line 458 of file result.py.

Definition at line 452 of file result.py.

Definition at line 515 of file result.py.

Definition at line 483 of file result.py.

Definition at line 456 of file result.py.

Definition at line 467 of file result.py.

Definition at line 460 of file result.py.

Definition at line 462 of file result.py.

Definition at line 463 of file result.py.

Definition at line 464 of file result.py.

Definition at line 454 of file result.py.

Definition at line 481 of file result.py.

Definition at line 492 of file result.py.


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


qualification
Author(s): Kevin Watts (watts@willowgarage.com), Josh Faust (jfaust@willowgarage.com)
autogenerated on Fri Jan 11 09:39:15 2013