Add variable for adjusting timeout 38/46638/2
authorLuis Gomez <ecelgp@gmail.com>
Thu, 6 Oct 2016 22:16:35 +0000 (15:16 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Thu, 6 Oct 2016 22:20:42 +0000 (15:20 -0700)
We need this to run the suite locally.

Change-Id: I11ea9e94467508485d3a9503c23c691b8126230e
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/suites/netconf/scale/getmulti.robot
csit/suites/netconf/scale/getsingle.robot

index 708a2be77af59311d4cad4fe4f2d7a3841045918..f5bedb0589276462aaf951a27a72235d5f2d7fbc 100644 (file)
@@ -30,6 +30,7 @@ Variables         ${CURDIR}/../../../variables/Variables.py
 *** Variables ***
 ${DEVICE_COUNT}    500
 ${WORKER_COUNT}    10
+${TIMEOUT_FACTOR}    10
 ${device_name_base}    netconf-scaling-device
 ${base_port}      17830
 
@@ -40,12 +41,12 @@ Start_Test_Tool
 
 Configure_Devices_On_Netconf
     [Documentation]    Make requests to configure the testtool devices.
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*10
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Configure_Device    timeout=${timeout}
 
 Wait_For_Devices_To_Connect
     [Documentation]    Wait for the devices to become connected.
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*10
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Wait_Connected    timeout=${timeout}
 
 Issue_Requests_On_Devices
@@ -62,13 +63,13 @@ Issue_Requests_On_Devices
 
 Deconfigure_Devices
     [Documentation]    Make requests to deconfigure the testtool devices.
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*10
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Deconfigure_Device    timeout=${timeout}
     [Teardown]    Report_Failure_Due_To_Bug    4547
 
 Check_Devices_Are_Deconfigured
     [Documentation]    Check there are no netconf connectors or other stuff related to the testtool devices.
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*10
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Check_Device_Deconfigured    timeout=${timeout}
 
 *** Keywords ***
index 03733b946fef156d47ae91cce3931dc0cd93b081..68e41d1db96ff53a4eb93b539f2b15229759d978 100644 (file)
@@ -25,6 +25,7 @@ Variables         ${CURDIR}/../../../variables/Variables.py
 
 *** Variables ***
 ${DEVICE_COUNT}    500
+${TIMEOUT_FACTOR}    10
 
 *** Test Cases ***
 Start_Test_Tool
@@ -34,18 +35,18 @@ Start_Test_Tool
 Configure_Devices_Onto_Netconf
     [Documentation]    Make requests to configure the testtool devices.
     [Tags]    critical
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*10
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Configure_Device    timeout=${timeout}
 
 Get_Data_From_Devices
     [Documentation]    Ask testtool devices for data.
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*2
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Check_Device_Data    timeout=${timeout}
 
 Deconfigure_Devices_From_Netconf
     [Documentation]    Make requests to deconfigure the testtool devices.
     [Tags]    critical
-    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*10
+    ${timeout}=    BuiltIn.Evaluate    ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
     NetconfKeywords.Perform_Operation_On_Each_Device    Deconfigure_Device    timeout=${timeout}
     [Teardown]    Report_Failure_Due_To_Bug    4547