Commit 458c1c71 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Code Refactor on Event tests

parent 32ece8bc
Loading
Loading
Loading
Loading
Loading
+203 −195

File changed.

Preview size limit exceeded, changes collapsed.

+23
Changes for tests/resources/common.resource: 23 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ Test ${TEST NAME} Currently Not Supported
    Log    Test "${TEST NAME}" Currently not supported    WARN
    Skip    Test "${TEST NAME}" Currently not supported

Init Mock Server
    Check Mock Server
    Clean Mock Server

Check Mock Server
    Log  Checking mock Server for Robot Framework.

@@ -142,3 +146,22 @@ Get Mock Server Messages
    Status Should Be    200    ${resp}
    Log List    ${resp.json()}
    RETURN   ${resp}

Check Mock Server Notification Events
    [Arguments]    ${events_expected}

    Check Variable    ${events_expected}    EventNotification
    # Check results
    ${events_expected_length}=   Get Length    ${events_expected}

    Sleep    3s
    # Get from Mock server the EventNotification Messages sent to callback setup on event subscription.
    ${resp}=    Get Mock Server Messages
    ${notification_events_on_mock_server}=    Set Variable    ${resp.json()}
    Check Variable    ${notification_events_on_mock_server}    EventNotification

    Length Should Be    ${notification_events_on_mock_server}   ${events_expected_length}
    FOR    ${event_expected}    IN    @{events_expected}
        Log    ${event_expected}
        List Should Contain Value    ${notification_events_on_mock_server}    ${event_expected}
    END
 No newline at end of file
−36

File changed.

Preview size limit exceeded, changes collapsed.