I’ve been on QCTO 1.8 for a long time and now I’m evaluating 2.5. Has the transaction model changed?
In 1.8, I would put in some code in the unit test initialization section and commit it. Then in the unit test cleanup section I would undo what I did in the initialization section and commit it. I think I had to commit in order for the changes to be visible in all the test cases. I typically have my init/cleanup at the unit test level, not the test case level…but in some cases there is extra init/cleanup code at the test case level.
Now when upgrading to 2.5 I’m getting all kinds of errors related to the initialization and cleanup.
Maybe I’ve always been confused about this. When does the generated test code commit and/or rollback?
If I’m doing it wrong, what pattern should I be following for init/cleanup code?