def test_Processor_execute_step_request_with_param(self): registry.add_step('Step <a> with <b>', impl, '') registry.add_step('Step 4', 'func1', '') request = ExecuteStepRequest() request.parsedStepText = 'Step {} with {}' parameter = Parameter() parameter.value = 'param 1' parameter1 = Parameter() parameter1.value = 'param 2' request.parameters.extend([parameter, parameter1]) response = processor.process_execute_step_request(request) self.assertTrue(isinstance(response, ExecutionStatusResponse)) self.assertEqual(False, response.executionResult.failed) self.assertEqual('', response.executionResult.errorMessage) self.assertEqual('', response.executionResult.stackTrace)
def test_Processor_execute_step_request_with_param(self): registry.add_step('Step <a> with <b>', impl, '') registry.add_step('Step 4', 'func1', '') response = Message() request = Message() request.executeStepRequest.parsedStepText = 'Step {} with {}' parameter = Parameter() parameter.value = 'param 1' parameter1 = Parameter() parameter1.value = 'param 2' request.executeStepRequest.parameters.extend([parameter, parameter1]) processors[Message.ExecuteStep](request, response, None) self.assertEqual(Message.ExecutionStatusResponse, response.messageType) self.assertEqual(False, response.executionStatusResponse.executionResult.failed) self.assertEqual('', response.executionStatusResponse.executionResult.errorMessage) self.assertEqual('', response.executionStatusResponse.executionResult.stackTrace)