MEC Testing Framework in Robot Framework - GS 032-2
Introduction
This repositories contains the test specifications and test adapter code for MEC Testing project in Robot Framework.
Latest publicly available drafts are available at https://docbox.etsi.org/isg/mec/open.
For more information on ETSI ISG Multi-access Edge Computing (MEC), visit https://www.etsi.org/technologies/multi-access-edge-computing.
Contact information
Email at cti_support
at etsi
dot org
.
License
Unless specified otherwise, the content of this repository and the files contained are released under the BSD-3-Clause license. See the attached LICENSE file or visit https://forge.etsi.org/legal-matters.
Standard links
- Mobile-Edge Computation standards, accessible here
RFC links
- RFC 7159 - The JavaScript Object Notation (JSON) Data Interchange Format, accessible here
NOTE All draft can be found in the 'IETF XML Registry', accessible here
Installation
The main precondition for running the tests is having Robot Framework installed. The Robot Framework Installation Instructions provide full details of the installation procedure. For those familiar with installing Python packages with pip package manager, the following command can be run to install Robot Framework:
Robot Framework >3.0 is recommended. It requires Python 3.
Robot Framework Required Libraries
The Robot Framework Test Cases in this repository depend on the following libraries:
A pip requirements file is provided to ease the installation of the required python libraries, as follows:
$ pip install -r requirements.txt
Usage
The usage of these Test Suites goes through different steps. First of all, you should be aware of the structure's folder. After that, some configuration steps are needed and at the end, you can run the test.
Folder structure
The Test folder is structured as follow:
Test Suite files
<group>/<feature>/<interface>
e.g.: SRV/APPSUB/PlatAppSubscriptions.robot
Environmental files
In the same folder, you will find two subfolders
- environment
- jsons
The environment folder contain a file, called variables.txt, which contains all the information necessary to reach and interact with the SUT
*** Variables ***
${MEC-APP_SCHEMA} http
${MEC-APP_HOST} 192.168.56.1
${MEC-APP_PORT} 8081
...
This file should be updated before running the tests.
The json folder contains the json payloads necessary to perform the POST/PUT/PATCH requests. These files should contain the exact content to be sent.
Execution of the test cases
The Robot Framework Test Cases in this repository can be executed with the following command:
$ robot <name_of_the_robot_file>
To execute all test case files in a directory recursively, just give the directory as an argument. You can also give multiple files or directories in one go and use various command-line options supported by Robot Framework.
For more information about the command-line usage, you can run:
$ robot --help
The Robot Framework User Guide provides full details on how to execute tests in general.
How to Report a Bug
The ETSI MEC Testing Framework project is under constant development, so it is possible that you will encounter a bug while using it. You may report in the Issues section of the project.
For any other inquiry, you may contact cti_support at etsi dot org.