‎2009 Jul 15 5:18 PM
Hi guys,
I am watching a strange behaviour while running Unit Tests (Abap Unit).
When i perform the tests SE38 -> Menu: Program -> Test -> Unit Test (Ctrl-Shift-F10)
The database rolls back at the end. Nice.
But: if i write out one line to list (e.g. write: / 'blabla'.) the result is different.
Then i have the database rollback skipped.
Probably due to the list processing, which obligizes a db commit when showing up the list.
do you agree? am i wrong?
Regards,
Hartmut
‎2009 Jul 24 12:34 PM
Hello Hartmut,
a unit test must not contain any interactive technique. Especially list commands will cause a popup to appear which will make executing the tests a pain and possibly cause an implict db commit.
The cure to this desease is to avoid list commands.
Regards
Klaus
‎2009 Jul 24 12:34 PM
Hello Hartmut,
a unit test must not contain any interactive technique. Especially list commands will cause a popup to appear which will make executing the tests a pain and possibly cause an implict db commit.
The cure to this desease is to avoid list commands.
Regards
Klaus
‎2009 Jul 24 12:41 PM
... there is a single poor "write" statement yet too much list processing causing the db to commit. seems not being mature yet.
Best regards
Hartmut