various small improvements.

lua_func validation in progress.
This commit is contained in:
2026-02-14 23:53:34 +01:00
parent a2af730894
commit da44ed7dc7
13 changed files with 225 additions and 16 deletions

View File

@@ -35,7 +35,7 @@ main:
no_fail: True
exit_condition:
value: <| "$(last_test_result)" == "PASS" |>
value: <| "$(last_step_result)" == "PASS" |>
- let:

View File

@@ -92,12 +92,12 @@ if not provided is given in the table as well.
last test result
-----------------------------------------------
The global variable ``last_test_result`` is automatically set at the end of a test item execution.
The global variable ``last_step_result`` is automatically set at the end of a test item execution.
If the corresponding test item does not return any acutal, the content of the ``last_test_result``
If the corresponding test item does not return any acutal, the content of the ``last_step_result``
variable will be the test success (``PASS``, ``FAIL`` or ``SKIP``).
It the test item returns a value, the ``last_test_result`` variable will contain the returned value.
It the test item returns a value, the ``last_step_result`` variable will contain the returned value.
The main test items returning a value are:
@@ -192,7 +192,7 @@ Export attribute
- check:
name: Example of result specific to the step 001
values:
- $(last_test_result) == PASS
- $(last_step_result) == PASS
key:
- GID-1510554_step_1
report:

View File

@@ -132,7 +132,7 @@ library API (see :ref:`helper library<sec_python_helper_library>`)
* ``test_name``: The name of the file being executed without extension,
* ``home``: the path of the current user's home directory,
* ``test_outputs``: list of the paths of the test log and test report (if any),
* ``last_test_result``: test result of the last step (see :ref:`sec_item_common`),
* ``last_step_result``: test result of the last step (see :ref:`sec_item_common`),
* ``ts_start_<item_name>``: timestamp at the start of test item execution (see :ref:`sec_item_common`),
* ``ts_end_<item_name>``: timestamp at the end of test item execution (see :ref:`sec_item_common`),
* ``ts_duration_<item_name>``: duration of test item execution in seconds (see :ref:`sec_item_common`),

Binary file not shown.