Parameters added in XmlTest during AlterSuiteListener not available in SuiteListener #2469
Is the issue reproductible on runner?
Test case sample
From the above
The text was updated successfully, but these errors were encountered:
Looking at it more, this issue impacts several other fields. Since the method does not advertise support for deep cloning, I hesitate to call this a bug, just undesired behavior.
I'd be willing to look deeper into what else would need an update to support a deep clone, but perhaps someone more established could provide some insight?
I'll work on it. This certainly goes very deep given how many models are nested under the XmlTest.
The circular reference between XmlTest and XmlSuite may need some extra thought. My intuition is that cloning the test should not clone the parent suite. However, using the same suite would lead to a slightly inconsistent state where the cloned test has a parent suite but will not be executed since it is not listed in the suite's tests. As long as this is explicitly stated in the javadoc, does this behavior make sense?