[ 
https://issues.apache.org/jira/browse/OFBIZ-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695703#action_12695703
 ] 

Jacopo Cappellato commented on OFBIZ-2259:
------------------------------------------

Scott,

looks like a great enhancements, thanks for working at it.
Do you think we could use this work also as a way to prepare demo data for a 
test?
What I have in mind is something like:
1) I start ofbiz and when I am ready to prepare data I activate the "test mode"
2) I prepare all the data I need
3) instead of just rolling back everything we export all the changes recorded 
by the delegator in an xml file

The data could then be used to prepare the starting scenario for a use 
case/test.

Do you think it could work?

Jacopo

> Testing - Rollback database changes after each test-suite using the 
> GenericDelegator
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2259
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2259
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>            Reporter: Scott Gray
>            Assignee: Scott Gray
>         Attachments: rollback.patch
>
>
> During testing have the delegator keep track of all changes made to the 
> database and then roll them back at the end of each test suite.  This will 
> allow the same demo data to be reused across test suites without having to 
> worry about what changes previous tests have made to the data and solves this 
> problem regardless of the database being used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to