2015-03-19 16:32:18 |
Anastasia Kuznetsova |
description |
If we take a look at get_description() method in the fuel-ostf/fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py file, than we can see that there are 3 key items in the test definition: Deployment tags, Available since release and Duration and we need to get them value if they are presented.
But for example following test description will be wrong parsed:
"""Test name
Steps:
1. ...
...
n. ...
Available since release: 2014.2-6.1
Duration: 10 s
"""
because 'Available since release' goes before 'Duration' and during parsing firstly _process_docstring will be called for it. As a result docstring will be updated:
docstring = docstring[:pattern_matcher.start()]
it returns new docstring that will be cutted, so info about 'Duration' will be lost. |
If we take a look at get_description() method in the fuel-ostf/fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py file, than we can see that there are 3 key items in the test definition: Deployment tags, Available since release and Duration and we need to get their values (if they are presented ).
But for example following test description will be wrong parsed:
"""Test name
Steps:
1. ...
...
n. ...
Available since release: 2014.2-6.1
Duration: 10 s
"""
because 'Available since release' goes before 'Duration' and during parsing firstly _process_docstring will be called for it. As a result docstring will be updated:
docstring = docstring[:pattern_matcher.start()]
it returns new docstring that will be cutted, so info about 'Duration' will be lost. |
|