diff options
author | Stefan Kobza <skobza@cisco.com> | 2016-01-11 18:03:25 +0100 |
---|---|---|
committer | Stefan Kobza <skobza@cisco.com> | 2016-02-08 22:38:32 +0100 |
commit | 33499c81c94c2d3baef9d3e9f061cd76ef86fa74 (patch) | |
tree | 2d000ba17b821339a05e0c039f71e48e09553de9 /tests/suites/performance | |
parent | 5cbeca02602061d32212e14f289d65cf648920e4 (diff) |
New version of RF tests.
Change-Id: I241a2b7a7706e65f71cfd4a62e2a40f053fc5d07
Signed-off-by: Stefan Kobza <skobza@cisco.com>
Diffstat (limited to 'tests/suites/performance')
-rw-r--r-- | tests/suites/performance/short.robot | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/suites/performance/short.robot b/tests/suites/performance/short.robot new file mode 100644 index 0000000000..5c04d5ec81 --- /dev/null +++ b/tests/suites/performance/short.robot @@ -0,0 +1,41 @@ +# Copyright (c) 2016 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*** Settings *** +| Resource | resources/libraries/robot/default.robot +| Resource | resources/libraries/robot/interfaces.robot +| Library | resources/libraries/python/VatExecutor.py +| Library | resources/libraries/python/TrafficGenerator.py +| Force Tags | topo-3node +| Test Setup | Setup all DUTs before test + +*** Test Cases *** +| VPP passes traffic through L2 cross connect +| | Given L2 xconnect initialized in topology +| | Then Traffic should pass with no loss | 10 | 10 | 512 + +*** Keywords *** +| L2 xconnect initialized in topology +| | Setup L2 xconnect | ${nodes['DUT1']} | port1 | port2 +| | Setup L2 xconnect | ${nodes['DUT2']} | port1 | port2 + + +| Setup L2 xconnect | [Arguments] | ${node} | ${src_port} | ${dst_port} +| | Execute script | l2xconnect.vat | ${node} +| | Script should have passed + + +| Traffic should pass with no loss +| | [Arguments] | ${duration} | ${rate} | ${framesize} +| | Send traffic on | ${nodes['TG']} | port1 | port2 | ${duration} +| | ... | ${rate} | ${framesize} +| | No traffic loss occured |