From e3bed8e21e3c8b60734ce95eb2bb2a2d371a9907 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Tue, 10 Jul 2018 13:41:58 +0200 Subject: CSIT-1178: Prepare for bursty MRR + All suites and tests still refer to MRR instead of BMRR (or FRMOBL). + API change: Traffic should pass with maximum rate first argument got a default value, thus it needs to be moved towards the end of argument list. + Consequently, the value for it has been deleted from suites. + Test message is now compatible only with BMRR parsing. - Reporting of transmit rate is left as TODO. + Global test __init__ with new way of giving defaults to global variables. + The new keyword is put into robot_enhancements.robot resource. + Number of trials and trial duration are now configurable. - Bootstrap scripts have no support for overriding the defaults yet. Change-Id: I4b108cc9c256730e62c03fbacba0a1c314f8ae88 Signed-off-by: Vratko Polak --- tests/__init__.robot | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/__init__.robot (limited to 'tests/__init__.robot') diff --git a/tests/__init__.robot b/tests/__init__.robot new file mode 100644 index 0000000000..106270f478 --- /dev/null +++ b/tests/__init__.robot @@ -0,0 +1,31 @@ +# Copyright (c) 2018 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 *** +| Documentation | Set global variables common to all tests. +| Resource | resources/libraries/robot/robot_enhancements.robot +| Suite Setup | Set Common Variables + +*** Keywords *** +| Set Common Variables +| | [Documentation] | Set the following global variables. +| | ... +| | ... | While currently only MRR tests are using the values, +| | ... | any new test might decide to use them, +| | ... | so variable names are generic for "perf" scope. +| | ... +| | ... | perf_trial_multiplicity - Number of trials to execute in MRR test. +| | ... | perf_trial_duration - Duration of one trial in MRR test. +| | ... +| | Ensure Global Variable | perf_trial_multiplicity | 1 +| | Ensure Global Variable | perf_trial_duration | 10 -- cgit 1.2.3-korg