X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fnetconf%2Frestperfclient%2Fperformance.robot;h=80eb4a1fdf5f67055e8eb91e14f280c243963c2a;hb=c78951947995a7a1e6df298e4efab4082e8fb014;hp=404a2165f866d39952c6770b374530bd77b75d9d;hpb=2971be2863af8d9bd545133930d31f0927e281e4;p=integration%2Ftest.git diff --git a/csit/suites/netconf/restperfclient/performance.robot b/csit/suites/netconf/restperfclient/performance.robot index 404a2165f8..80eb4a1fdf 100644 --- a/csit/suites/netconf/restperfclient/performance.robot +++ b/csit/suites/netconf/restperfclient/performance.robot @@ -44,7 +44,8 @@ Start_Testtool [Documentation] Deploy and start test tool, then wait for all its devices to become online. # Start test tool SSHLibrary.Switch_Connection ${testtool} - NetconfKeywords.Install_And_Start_Testtool device-count=1 schemas=${CURDIR}/../../../variables/netconf/CRUD/schemas mdsal=false debug=false + Run Keyword If '${IS_KARAF_APPL}' == 'True' NetconfKeywords.Install_And_Start_Testtool device-count=1 schemas=${CURDIR}/../../../variables/netconf/CRUD/schemas debug=false + ... ELSE NetconfKeywords.Start_Testtool ${NETCONF_FILENAME} device-count=1 schemas=${CURDIR}/../../../variables/netconf/CRUD/schemas debug=false Configure_Device_On_Netconf [Documentation] Configure the testtool device on Netconf connector. @@ -56,12 +57,12 @@ Wait_For_Device_To_Become_Connected Create_Device_Data [Documentation] Send some sample test data into the device and check that the request went OK. - ${template_as_string}= BuiltIn.Set_Variable {'DEVICE_NAME': '${DEVICE_NAME}'} + ${template_as_string}= BuiltIn.Create_Dictionary DEVICE_NAME=${device_name} TemplatedRequests.Post_As_Xml_Templated ${directory_with_crud_templates}${/}cars ${template_as_string} Run_Restperfclient [Documentation] Deploy and execute restperfclient, asking it to send the specified amount of requests to the netconf connector of the device. - ${url}= BuiltIn.Set_Variable /restconf/config/network-topology:network-topology/topology/topology-netconf/node/${DEVICE_NAME}/yang-ext:mount/car:cars + ${url}= BuiltIn.Set_Variable /rests/data/network-topology:network-topology/topology\=topology-netconf/node\=${DEVICE_NAME}/yang-ext:mount/car:cars RestPerfClient.Invoke_Restperfclient ${TESTTOOL_DEVICE_TIMEOUT} ${url} async=false Check_For_Failed_Requests @@ -91,7 +92,8 @@ Setup_Everything # Setup resources used by the suite. SetupUtils.Setup_Utils_For_Setup_And_Teardown NetconfKeywords.Setup_Netconf_Keywords - RestPerfClient.Setup_Restperfclient + Run Keyword If '${IS_KARAF_APPL}' == 'False' RestPerfClient.Setup_Restperfclient build_version=${NETCONF_TESTTOOL_VERSION} build_location=org/opendaylight/netconf + ... ELSE RestPerfClient.Setup_Restperfclient # Connect to the tools system (testtool) ${testtool}= SSHKeywords.Open_Connection_To_Tools_System BuiltIn.Set_Suite_Variable ${testtool} ${testtool}