def addAttachmentToTestStep(self, step_index, file_path, title):
    '\n        Upload an attachment to a test step\n\n        :param step_index: The test step index\n        :param file_path: Source file to upload\n        :param title: The title of the attachment\n        '
    service = self._polarion.getService('TestManagement')
    file_name = os.path.split(file_path)[1]
    with open(file_path, 'rb') as file_content:
        service.addAttachmentToTestStep(self._test_run.uri, self._index, step_index, file_name, title, file_content.read())
    self._reloadFromPolarion()
Upload an attachment to a test step

:param step_index: The test step index
:param file_path: Source file to upload
:param title: The title of the attachment
def addAttachmentToTestStep(self, step_index, file_path, title):
    '\n        Upload an attachment to a test step\n\n        :param step_index: The test step index\n        :param file_path: Source file to upload\n        :param title: The title of the attachment\n        '
    service = self._polarion.getService('TestManagement')
    file_name = os.path.split(file_path)[1]
    with open(file_path, 'rb') as file_content:
        service.addAttachmentToTestStep(self._test_run.uri, self._index, step_index, file_name, title, file_content.read())
    self._reloadFromPolarion()