Commit 871a44dd authored by douomo's avatar douomo
Browse files

changed function Evaluate with Call Method in Performance Test

parent aa95f897
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@ Library NcclientLibrary
Library        common.py
Variables    ne-cfg.py

*** Variables ***
${TIMEOUT}    ${60}

*** Test Cases ***
Test_1
@@ -55,7 +57,7 @@ Check alarm
    ${init_SNR} =    Get Iface Metrics    ${m}    ${par["testInterface"]}    "actual-snir"
    ${resp}=    Evaluate    ${m}.create_subscription()
    Set TX Power    ${t}    ${transimitter["testInterface"]}    ${transimitter["minTxPower"]}    #On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
    ${notif}=    Evaluate    next(${m}.take_notification(timeout=60))
    ${notif}=    Call Method    ${m}    take_notification    timeout=${TIMEOUT}
    IF     ${notif}!=${None}
        Log    ${notif}    console=yes
        ${final_SNR} =    Get Iface Metrics    ${m}    ${par["testInterface"]}    "actual-snir"
@@ -74,7 +76,7 @@ Reaction to Alarm
    Set RSL Threshold    ${m}    ${par["testInterface"]}    -20.0
    ${resp}=    Evaluate    ${m}.create_subscription()
    Set TX Power    ${t}    ${transimitter["testInterface"]}    ${transimitter["minTxPower"]}    #On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter
    ${notif}=    Evaluate    next(${m}.take_notification(timeout=60))
    ${notif}=    Call Method    ${m}    take_notification    timeout=${TIMEOUT}
    IF    ${notif}!=${None}
        ${DegradedSNR}=    Get Iface Metrics    ${m}    ${par["testInterface"]}    "actual-snir"
        Set TX Power    ${t}    ${transimitter["testInterface"]}    ${transimitter["maxTxPower"]}    #On transimitter node: need to connect to the TX and change ${m} with the reference to the transmitter