Exemplo n.º 1
0
def _execute_after_step_hook(request, response, _socket):
    execution_info = create_execution_context_from(
        request.stepExecutionEndingRequest.currentExecutionInfo)
    tags = list(execution_info.scenario.tags) + list(
        execution_info.specification.tags)
    run_hook(request, response, registry.after_step(tags), execution_info)
    response.executionStatusResponse.executionResult.message.extend(
        MessagesStore.pending_messages())
Exemplo n.º 2
0
def process_step_execution_ending_request(request):
    execution_info = create_execution_context_from(
        request.currentExecutionInfo)
    tags = list(execution_info.scenario.tags) + \
        list(execution_info.specification.tags)
    response = run_hook(request, registry.after_step(tags), execution_info)
    _add_message_and_screenshots(response)
    return response
Exemplo n.º 3
0
 def test_after_step_decorator(self):
     funcs = registry.after_step()
     expected = ['after_step1']
     self.assertEqual(expected, [func.__name__ for func in funcs])
Exemplo n.º 4
0
 def test_after_step_decorator(self):
     funcs = registry.after_step()
     expected = ['after_step1']
     self.assertEqual(expected, [func.__name__ for func in funcs])
Exemplo n.º 5
0
def _execute_after_step_hook(request, response, socket):
    execution_info = create_execution_context_from(request.stepExecutionEndingRequest.currentExecutionInfo)
    tags = list(execution_info.scenario.tags) + list(execution_info.specification.tags)
    run_hook(request, response, registry.after_step(tags), execution_info)
    response.executionStatusResponse.executionResult.message.extend(_MessagesStore.pending_messages())