X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FMaximum_Switches%2F010__finding_max_switches.robot;h=74ee2ebf5080a2e9127ddec2e0561c315986260a;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=3bec90b83b99bcea84fa872b5c1370e9f4b26c67;hpb=59e81c38620fa1b61e15771191e35771450b9499;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Maximum_Switches/010__finding_max_switches.robot b/csit/suites/openflowplugin/Maximum_Switches/010__finding_max_switches.robot index 3bec90b83b..74ee2ebf50 100644 --- a/csit/suites/openflowplugin/Maximum_Switches/010__finding_max_switches.robot +++ b/csit/suites/openflowplugin/Maximum_Switches/010__finding_max_switches.robot @@ -1,23 +1,38 @@ *** Settings *** Documentation Test suite for finding out max number of switches -Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} -Suite Teardown Scalability Suite Teardown +Suite Setup Workflow Setup +Suite Teardown Workflow Teardown Library OperatingSystem -Library RequestsLibrary -Variables ../../../variables/Variables.py -Resource ../../../libraries/Scalability.robot +Resource ../../../variables/Variables.robot +Resource ../../../libraries/WorkflowsOpenFlow.robot +Resource ../../../libraries/KarafKeywords.robot *** Variables *** ${MIN_SWITCHES} 100 -${MAX_SWITCHES} 500 +${MAX_SWITCHES} 800 ${STEP_SWITCHES} 100 ${SWITCHES_RESULT_FILE} switches.csv +${TIME_RESULT_FILE} time.csv *** Test Cases *** Find Max Switches [Documentation] Find max number of switches starting from ${MIN_SWITCHES} till reaching ${MAX_SWITCHES} in steps of ${STEP_SWITCHES} - Append To File ${SWITCHES_RESULT_FILE} Max Switches Linear Topo\n - ${max-switches} Find Max Switches ${MIN_SWITCHES} ${MAX_SWITCHES} ${STEP_SWITCHES} - Log ${max-switches} - Append To File ${SWITCHES_RESULT_FILE} ${max-switches}\n - + ${error_message}= Set Variable Fail initializing suite + ${maximum_switches}= Set Variable ${0} + ${discover_time}= Set Variable 0 + ${start}= Convert to Integer ${MIN_SWITCHES} + ${stop}= Convert to Integer ${MAX_SWITCHES} + ${step}= Convert to Integer ${STEP_SWITCHES} + FOR ${switches} IN RANGE ${start} ${stop+1} ${step} + ${status} ${error_message} ${topology_discover_time} WorkflowsOpenFlow.Workflow Linear Topology ${switches} + Exit For Loop If '${status}' == 'FAIL' + ${maximum_switches}= Set variable ${switches} + ${discover_time}= Set Variable ${topology_discover_time} + END + Log to console ${\n} + Log To Console Execution stopped because: ${error_message} + Log To Console Max Switches: ${maximum_switches} + OperatingSystem.Append To File ${SWITCHES_RESULT_FILE} Max Switches\n + OperatingSystem.Append To File ${SWITCHES_RESULT_FILE} ${maximum_switches}\n + OperatingSystem.Append To File ${TIME_RESULT_FILE} Discover Time\n + OperatingSystem.Append To File ${TIME_RESULT_FILE} ${discover_time}\n