Allow to run testtool without installing it first
[integration/test.git] / csit / suites / netconf / scale / max_devices.robot
index 120f0734ec8bc75b19212d8ab714fbd39bc69c8b..aa051189aa58ff4d63acdd5bfc977c8733c83f61 100644 (file)
@@ -33,6 +33,8 @@ ${BASE_PORT}      17830
 ${NUM_WORKERS}    10
 ${TIMEOUT_FACTOR}    5
 ${DEVICES_RESULT_FILE}    devices.csv
+${INSTALL_TESTTOOL}    True
+${TESTTOOL_EXECUTABLE}    ${EMPTY}
 
 *** Test Cases ***
 Find Max Netconf Devices
@@ -47,7 +49,8 @@ Find Max Netconf Devices
     : FOR    ${devices}    IN RANGE    ${start}    ${stop+1}    ${increment}
     \    ${timeout} =    BuiltIn.Evaluate    ${devices}*${TIMEOUT_FACTOR}
     \    Log To Console    Starting Iteration with ${devices} devices
-    \    NetconfKeywords.Install_And_Start_Testtool    device-count=${devices}
+    \    Run Keyword If    "${INSTALL_TESTTOOL}"=="True"    NetconfKeywords.Install_And_Start_Testtool    device-count=${devices}
+    \    ...    ELSE    NetconfKeywords.Start_Testtool    ${TESTTOOL_EXECUTABLE}    device-count=${devices}
     \    ${status}    ${result} =    Run Keyword And Ignore Error    NetconfKeywords.Perform_Operation_On_Each_Device    Configure_Device    timeout=${timeout}
     \    Exit For Loop If    '${status}' == 'FAIL'
     \    ${status}    ${result} =    Run Keyword And Ignore Error    NetconfKeywords.Perform_Operation_On_Each_Device    Wait_Connected    timeout=${timeout}