Open cecille opened 1 month ago
@antonio-amjr can you try to reproduce this with TC_OPSTATE_2_1.py
?
@antonio-amjr can you try to reproduce this with
TC_OPSTATE_2_1.py
?
Sure, I'll take a look
@cecille and @fabiowmm ,
The OPSTATE and OVENOPSTATE tests are falling into the legacy python test category.
That is happening because the Python Test Parser is expecting a ast.List
type from the "steps_" method, but instead is receiving a ast.Call
.
So the problem is that the OPSTATE/OVENOPSTATE tests are the only ones, I believe, that are using another method to retrieve the steps, like shown below:
The python_test_parser.py method verifying the test steps type.
The original TC_OPSTATE_2_1 steps method that triggers the error.
Changing the TC_OPSTATE_2_1 steps method successfully adds to the correct suite and show the steps in execution.
I think that the steps are specific to tests and shouldn't be inside the TC_OpstateCommon.py
at all. And to solve this would be just moving the steps to each related file.
What is your take on this?
[!NOTE]
It seems that there's a feature already in progress that solves this issue:
Describe the bug
There are a bunch of tests where we have steps_ functions defined, but the individual steps are not displayed in the GUI
Steps to reproduce the behavior
This happens for opstate tests for example, but I assume also others.
Expected behavior
No response
Log files
No response
PICS file
No response
Screenshots
No response
Environment
No response
Additional Information
No response