MAPI service MorpheeResults
To get MorpheeResults service use:
MorpheeResultsServiceProxy
Bases: MAPIService
MORPHEEResults MAPI service allows to get MORPHEE result files
Source code in restmapi\restmapi\services.py
__init__(url=None)
DO NOT create MorpheeResultsServiceProxy by yourself. Always use MAPIServices.get_service("MorpheeResults") method to create it.
Parameters:
-
url(string, default:None) –Base URL to create of the REST service.
Source code in restmapi\restmapi\services.py
list(filter, skip, count)
Get the MorpheeResultProxy list of MORPHEE testrun results.
Parameters:
-
filter(string) –Use filter to filter the list of URLs. We get only result folder that starts with filter. Note that filter must be the complete name of a subfolder with \ separator (e.g. master\TESTRESULTS) -
skip(int) –0 based start page index -
count(int) –Number of testrun grouped by page
Returns:
-
MorpheeResultProxy array–List of MorpheeResultProxy. Each MorpheeResultProxy manages result files of a MORPHEE testrun.
Source code in restmapi\restmapi\services.py
MorpheeResultProxy
Bases: MAPIService
MORPHEEResultProxy represents the results of one TestRun (it describe the content of one .files file)
Source code in restmapi\restmapi\services.py
__init__(url)
DO NOT create MorpheeResultProxy by yourself. Always use MAPIServices.get_service("MorpheeResults").list() method to create one.
Parameters:
-
url(string) –Base URL to create of the REST service.
Source code in restmapi\restmapi\services.py
get_files()
Result files description. It returns the content of the .files.
Returns:
-
MorpheeResultFileProxy array–Each entry of the .files MORPHEE file.
Source code in restmapi\restmapi\services.py
MorpheeResultFileProxy
Bases: MAPIService
MorpheeResultFileProxy is one MORPHEE result file
Source code in restmapi\restmapi\services.py
group
property
Point group name
id
property
Point file id (unique id used inside the url)
local
property
Integer value that defines the status of the file (-1 file is deleted, 0 the file is located one another computer, 1 local file
name
property
Full path of the result file
storage_key
property
Storage key name
type
property
File format (MASCII, CSV, MDF4,...)
__init__(parent_url, entry)
DO NOT create MorpheeResultFileProxy by yourself. Always use MorpheeResultProxy.get_files() method to create one.
Parameters:
-
parent_url(string) –Base URL to create of the REST service. -
entry–Json object returned by the server
Source code in restmapi\restmapi\services.py
get_raw_content()
Get raw content of a MORPHEE result file. To be used on MDF4 files.
Returns:
-
byte array–Content of the file.
get_text_content()
Get text content of a MORPHEE result file. To be used on MASCII or CSV files.
Returns:
-
string–Content of the file.