MORPHEEResults
Below a sample that demonstrates how get MORPHEE result files. It gets the first test result folder content of the master, displays files information and then displays the XPAR content:
from restmapi.services import MAPIServices
resultsService = MAPIServices.instance.get_service("MorpheeResults")
print("Getting the first test result:")
# Note that in mono instance, master\TESTRESULTS should be replaced by TESTRESULTS
first_test_result = [file for file in resultsService.list("master\TESTRESULTS",0,1)][0].get_files()
for file in first_test_result:
print(f"Group:{file.group}")
print(f"Id:{file.id}")
print(f"Local:{file.local}")
print(f"Name:{file.name}")
print(f"Storage key:{file.storage_key}")
print(f"Type:{file.type}")
print("Content of XPAR file of the first test result:")
print([file for file in first_test_result if file.type == "XPAR"][0].get_text_content())