def setTestStepResult(self, step_number, result: ResultType, comment=None):
    '"\n        Set the result of a test step\n\n        :param step_number: Step number\n        :param result: The result fo the test step\n        :param comment: An optional comment\n        '
    if (self.testStepResults is None):
        service = self._polarion.getService('TestManagement')
        test_steps = service.getTestSteps(self.testCaseURI)
        number_of_steps = 0
        if (test_steps.steps is not None):
            number_of_steps = len(test_steps.steps.TestStep)
        self.testStepResults = self._polarion.ArrayOfTestStepResultType()
        for _i in range(number_of_steps):
            self.testStepResults.TestStepResult.append(self._polarion.TestStepResultType())
    if (step_number < len(self.testStepResults.TestStepResult)):
        self.testStepResults.TestStepResult[step_number].result = self._polarion.EnumOptionIdType(id=result.value)
        if (comment is not None):
            self.testStepResults.TestStepResult[step_number].comment = self._polarion.TextType(content=comment, type='text/html', contentLossy=False)
    self.save()
"
Set the result of a test step

:param step_number: Step number
:param result: The result fo the test step
:param comment: An optional comment
def setTestStepResult(self, step_number, result: ResultType, comment=None):
    '"\n        Set the result of a test step\n\n        :param step_number: Step number\n        :param result: The result fo the test step\n        :param comment: An optional comment\n        '
    if (self.testStepResults is None):
        service = self._polarion.getService('TestManagement')
        test_steps = service.getTestSteps(self.testCaseURI)
        number_of_steps = 0
        if (test_steps.steps is not None):
            number_of_steps = len(test_steps.steps.TestStep)
        self.testStepResults = self._polarion.ArrayOfTestStepResultType()
        for _i in range(number_of_steps):
            self.testStepResults.TestStepResult.append(self._polarion.TestStepResultType())
    if (step_number < len(self.testStepResults.TestStepResult)):
        self.testStepResults.TestStepResult[step_number].result = self._polarion.EnumOptionIdType(id=result.value)
        if (comment is not None):
            self.testStepResults.TestStepResult[step_number].comment = self._polarion.TextType(content=comment, type='text/html', contentLossy=False)
    self.save()