You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public ThenStep numbering_matches(@Table QuestionNumberHolder... holders) throws Exception {
...
}
but this results in
Test Class: com.sobis.suma.tests.managers.QuestionManagerTest
Scenario: refresh numbering
Given logged in system user
When question "TEST" is created before question <nextPosition> with parent <parent>
And numbering is refreshed
Then numbering matches
| oldNumber | newNumber |
+-----------+-----------+
| 4 | 5 |
| 5 | 6 |
| 6 | 7 |
Cases:
| # | nextPosition | parent | holders | Status |
+---+--------------+--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+
| 1 | 4 | null | com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@2e222612, com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@61386958, com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@73ee04c8 | Success |
| 2 | 2.1 | 2 | com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@7671cb68, com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@49dc7102 | Success |
| 3 | 2 | null | com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@6b8ca3c8, com.sobis.suma.businessobject.questionnaire.helpers.QuestionNumberHolder@68c72235 | Success |
Actually, a nested table is expected, but instead the first entry in the dataset is used in the scenario description and the cases don't change, so this is basically some mixup.
Maybe this is interesting for you. My current workaround is to override QuestionNumberHolder's toString().
The text was updated successfully, but these errors were encountered:
I am not sure what a good fix would be. Because nesting a table in a table will become ugly, I guess. I think the best solution would be to not generate a data-table and print all cases separately.
Ah, sorry, for posting a duplicate.
Some small improvement is already to be able to control the separator for which currently, a comma is used. By e.g. being able to use \t, the readability + overriden the toString() could already help a but.
Hi Jan,
I've discovered another in a more complex report:
where the QuestionNumberHolder is
and
creates the following report:
It now makes sense to add @table:
but this results in
Actually, a nested table is expected, but instead the first entry in the dataset is used in the scenario description and the cases don't change, so this is basically some mixup.
Maybe this is interesting for you. My current workaround is to override QuestionNumberHolder's toString().
The text was updated successfully, but these errors were encountered: