Package ats3 :: Module parsers :: Class MmpFileParser |
[hide private]
[frames] | no frames]

# Class MmpFileParser

source code

    object --+
             |
            MmpFileParser

Parser for .mmp files. Returns wanted information from the mmp-file - file type (executable dll, plugin, exe, etc) - test harness (STIF, EUNIT) if mmp is related to the test component - file name - libraries listed in the mmp

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
get_target_filetype(self, path_to_mmp=None) Filetype given using TARGETTYPE in .mmp file is returned. | source code
get_target_filename(self, path_to_mmp=None) Filename given using TARGET in .mmp file is returned If "c:path ommp" is a location where mmp file is stored get_target_filename("c:path ommp") | source code
get_libraries(self, path_to_mmp=None) Libraries listed in the MMP file are returned in a list If "c:path ommp" is a location where mmp file is stored get_libraries("c:path ommp") | source code
get_harness(self, path_to_mmp=None) Returns harness of test component If "c:path ommp" is a location where mmp file is stored get_harness("c:path ommp") | source code
get_dll_type(self, path_to_mmp=None) Returns type of test whether 'executable' or 'dependent' (dependent can be a stub or plugin) If "c:path ommp" is a location where mmp file is stored get_dll_type("c:path ommp") | source code
read_information_from_mmp(self, path_to_mmp=None, flag=0) Returns wanted information - user can define the wanted information level by setting a flag value following way: 0 - (targetfilename, filetype, libraries, harness) 1 - (targetfilename, filetype, libraries) 2 - (targetfilename, filetype) 3 - targetfilename 4 - filetype 5 - libraries 6 - harness (in case of test component) 7 - mmpfilename | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### get_target_filetype(self, path_to_mmp=None) | source code
Filetype given using TARGETTYPE in .mmp file is returned. If "c:path ommp" is a location where mmp file is stored get_target_filetype("c:path ommp") if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"

### get_target_filename(self, path_to_mmp=None) | source code
Filename given using TARGET in .mmp file is returned If "c:path ommp" is a location where mmp file is stored get_target_filename("c:path ommp") if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"

### get_libraries(self, path_to_mmp=None) | source code
Libraries listed in the MMP file are returned in a list If "c:path ommp" is a location where mmp file is stored get_libraries("c:path ommp") if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"

### get_harness(self, path_to_mmp=None) | source code
Returns harness of test component If "c:path ommp" is a location where mmp file is stored get_harness("c:path ommp") if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"

### get_dll_type(self, path_to_mmp=None) | source code
Returns type of test whether 'executable' or 'dependent' (dependent can be a stub or plugin) If "c:path ommp" is a location where mmp file is stored get_dll_type("c:path ommp") if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"