Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /home/cgabriel/01/robot/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //home/cgabriel/01/robot/vr940_live_optical_led_feedback_tests.robot

#*** Settings ***
Documentation    This suite tests under live conditions the defined optical led feedback.

Resource    ../../resource/gateway_connection/gateway_tester.resource
Resource    ../../resource/gateway_connection/gateway_button.resource
Resource    ../../resource/gateway_connection/gateway_access_point.resource
Resource    ../../resource/gateway_connection/gateway_optical.resource
Resource    ../../resource/gateway_flashing/gateway_flash_images.resource
Resource    ../../resource/mender/mender_rest.resource
Resource    ../../resource/network/network_setting.resource

# Suite Teardown    Teardown live optical led feedback
*** Variables ***
${SALEAE}

*** Keywords ***
Teardown live optical led feedback
    Perform a factory reset on gateway

*** Test Cases ***
TC CAG-11381 live optical led blue feedback - wifi onboarding mode
    Boot gateway until prompt
    ${blue_feedback} =    Get gateway optical blue feedback    "Blue Flashing"
    Should Be Equal As Strings    led flashing fast     ${blue_feedback}

TC CAG-11381 live optical led blue feedback - ready, wifi connected
    Connect to gateway access point
    Send the wifi configuration to the gateway    ssid    ${WLAN_SSID}    passphrase    ${WLAN_PASS}
    Connect to gateway access point
    Request stop access point mode to gateway
    Sleep    60
    ${blue_feedback} =    Get gateway optical blue feedback    "Blue"
    Should Be Equal As Strings    led on     ${blue_feedback}
    [Teardown]    Perform a factory reset on gateway

TC CAG-11381 live optical led green feedback - check ready, no internet
    Boot gateway until prompt
    Iterative connect to gateway access point
    Request stop access point mode to gateway
    Sleep    15
    ${green_feedback} =    Get gateway optical green feedback    "Green"
    Should Be Equal As Strings    led on     ${green_feedback}
    [Teardown]    Gateway power off

TC CAG-11381 live optical led green feedback - wifi with no internet connected, AP closed
    Boot gateway until prompt
    Execute command    sudo iptables -A FORWARD -j REJECT
    Connect pi with gateway access point
    Execute pi setWifiConfiguration call on    ${HTTP_GW_AP}    ${PI_SSID}    ${PI_PASS}
    Execute pi stopAccessPointMode call on    ${HTTP_GW_AP}
    Sleep    30
    ${green_feedback} =    Get gateway optical green feedback    "Green"
    Should Be Equal As Strings    led on     ${green_feedback}
    [Teardown]    Run Keywords    Gateway power off
    ...           AND             Execute command    sudo iptables -D FORWARD 1

TC CAG-11381 live optical led green feedback - check starting mode
    Gateway power on in nand mode
    Sleep    15
    ${green_feedback} =    Get gateway optical green feedback    "Green Blinking"
    Should Be Equal As Strings    led flashing     ${green_feedback}

TC CAG-11381 live optical led orange feedback - check pairing
    Boot gateway until prompt
    Gateway button short press
    ${orange_feedback} =    Get gateway optical orange feedback
    Should Be Equal As Strings    led flashing     ${orange_feedback}

TC CAG-16801 live optical led live feedback - short press period
    Boot gateway until prompt
    Gateway button press
    ${orange_feedback} =    Get gateway optical orange feedback
    Should Be Equal As Strings    led flashing     ${orange_feedback}
    Gateway button release
    [Teardown]    Gateway power off

TC CAG-16801 live optical led live feedback - mid press period
    Boot gateway until prompt
    Gateway button press
    Sleep   3
    ${blue_feedback} =    Get gateway optical blue feedback    "Blue Flashing"
    Should Be Equal As Strings    led flashing fast     ${blue_feedback}
    Gateway button release
    [Teardown]    Gateway power off

TC CAG-16801 live optical led live feedback - long press period
    Boot gateway until prompt
    Gateway button press
    Sleep   10
    IF    "${SALEAE}" != "Applied"
        FOR    ${i}     IN RANGE    5
            ${led_feedback} =    Get gateway optical led feedback
            Exit For Loop IF     "led off" == "${led_feedback}"
            Sleep    1
        END
        ${led_feedback} =    Get gateway optical led feedback
        Should Be Equal As Strings    led off     ${led_feedback}
    ELSE
        FOR    ${i}     IN RANGE    5
            ${led_feedback} =    Get gateway optical new led feedback
            Exit For Loop IF     "led off" == "${led_feedback}"
            Sleep    1
        END
        ${led_feedback} =    Get gateway optical new led feedback
        Should Be Equal As Strings    led new off     ${led_feedback}
    END

TC CAG-11381 live optical led off feedback - check off state
    IF    "${SALEAE}" != "Applied"
        Boot gateway until prompt short time
        Gateway power off
        ${led_feedback} =    Get gateway optical led feedback
        Should Be Equal As Strings    led off     ${led_feedback}
    ELSE
        Log    "Step skipped for Saleae setup."  console=yes
    END

TC CAG-11381 live optical led off feedback - check off reset
    Boot gateway until prompt
    IF    "${SALEAE}" != "Applied"
        FOR    ${i}     IN    @{10,11,12,13,14,15}
            Gateway button press
            Sleep   ${i}
            Log To Console  ${i}
            Gateway button release
            ${led_feedback} =    Get gateway optical led feedback
            Exit For Loop IF     "led off" == "${led_feedback}"
            Sleep    3
        END
        ${led_feedback} =    Get gateway optical led feedback
        Should Be Equal As Strings    led off     ${led_feedback}
    ELSE
        FOR    ${i}     IN    @{10,11,12,13,14,15}
            Gateway button press
            Sleep   ${i}
            Log To Console  ${i}
            Gateway button release
            ${led_feedback} =    Get gateway optical new led feedback
            Exit For Loop IF     "led off" == "${led_feedback}"
            Sleep    3
        END
        ${led_feedback} =    Get gateway optical new led feedback
        Should Be Equal As Strings    led new off     ${led_feedback}
    END



bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net