eng: Add test case attributes

Update #3715.
This commit is contained in:
Sebastian Huber 2020-08-06 09:15:13 +02:00
parent 3d22529d1e
commit 9633e98d5d

View File

@ -1716,10 +1716,20 @@ test-brief
The attribute value shall be an optional string. If the value is present, The attribute value shall be an optional string. If the value is present,
then it shall be the test case brief description. then it shall be the test case brief description.
test-cleanup
The attribute value shall be an optional string. If the value is present,
then it shall be the test cleanup code. The code is placed in the test
action loop body after the test post-condition checks.
test-context test-context
The attribute value shall be a list. Each list element shall be an The attribute value shall be a list. Each list element shall be an
:ref:`SpecTypeActionRequirementTestContextMember`. :ref:`SpecTypeActionRequirementTestContextMember`.
test-context-support
The attribute value shall be an optional string. If the value is present,
then it shall be the test context support code. The context support code
is placed at file scope before the test context definition.
test-description test-description
The attribute value shall be an optional string. If the value is present, The attribute value shall be an optional string. If the value is present,
then it shall be the test case description. then it shall be the test case description.
@ -1738,6 +1748,11 @@ test-local-includes
test-name test-name
The attribute value shall be a :ref:`SpecTypeTestName`. The attribute value shall be a :ref:`SpecTypeTestName`.
test-prepare
The attribute value shall be an optional string. If the value is present,
then it shall be the early test preparation code. The code is placed in
the test action loop body before the test pre-condition preparations.
test-setup test-setup
The attribute value shall be an The attribute value shall be an
:ref:`SpecTypeActionRequirementTestFixtureMethod`. :ref:`SpecTypeActionRequirementTestFixtureMethod`.
@ -1841,6 +1856,7 @@ Please have a look at the following example:
test-action: | test-action: |
/* Call the function of the action */ /* Call the function of the action */
test-brief: null test-brief: null
test-cleanup: null
test-context: test-context:
- brief: null - brief: null
description: null description: null
@ -1848,11 +1864,13 @@ Please have a look at the following example:
- brief: null - brief: null
description: null description: null
member: option_type option member: option_type option
test-context-support: null
test-description: null test-description: null
test-header: null test-header: null
test-includes: [] test-includes: []
test-local-includes: [] test-local-includes: []
test-name: RedGreenData test-name: RedGreenData
test-prepare: null
test-setup: null test-setup: null
test-stop: null test-stop: null
test-support: null test-support: null