aboutsummaryrefslogtreecommitdiffstats
path: root/docs/testing/developer/devguide/framework.rst
blob: eaeaaf90c169bc0efe3b09c679b0a4cd1da615d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. (c) 2017 ZTE Corp.


*********
Framework
*********

QTIP is built upon `Ansible`_ by extending `modules`_, `playbook roles`_ and `plugins`_.

.. _Ansible: https://www.ansible.com/
.. _modules: http://docs.ansible.com/ansible/modules.html
.. _playbook roles: http://docs.ansible.com/ansible/playbooks_roles.html
.. _plugins: http://docs.ansible.com/ansible/dev_guide/developing_plugins.html

Modules
=======

QTIP creates dedicated modules to gather slave node list and information from installer master. See embedded document
in ``qtip/ansible_library/modules`` for details

Plugins
=======

Stored in ``qtip/ansible_library/plugins``

Action plugins
--------------

Several action plugins have been created for test data post processing

* collect - parse and collect metrics from raw test results like log files
* calculate - calculate score according to specification
* aggregate - aggregate calculated results from all hosts under test

Playbook roles
==============

QTIP roles
----------

* qtip - main qtip tasks
* qtip-common - common tasks required in QTIP
* qtip-workspace - generate a workspace for running benchmarks

``qtip`` roles should be included with a specified ``action`` and ``output`` directory, e.g.::

    - { role: inxi, output: "{{ qtip_results }}/sysinfo", tags: [run, inxi, sysinfo] }

testing roles
-------------

Testing roles are organized by testing tools

* inxi - system information tool
* nDPI
* openssl
* ramspeed
* unixbench

supporting roles

* opnfv-testapi - report result to testapi

Tags
====

Tags are used to categorize the test tasks from different aspects.

* stages like ``run``, ``collect``, ``calculate``, ``aggregate``, ``report``
* test tools like ``inxi``, ``ndpi`` and etc
* information or metrics like ``sysinfo``, ``dpi``, ``ssl``

Use

* ``ansible-playbook run.yml --list-tags`` to list all tags
* ``ansible-playbook run.yml --list-tasks`` to list all tasks

During development of post processing, you may skip ``run`` stage to save time, e.g.
``ansible-playbook run.yml --tags collect,calculate,aggregate``