On Mon, Sep 9, 2013 at 12:56 PM, rdodev <[email protected]> wrote: > We're trying to setup an acceptance/integration test environment for our > app engine application to be run against our local dev servers. To do so in > a time-efficient manner, we need to be able to side-load data to the > datastore, that is, cirumventing the app altogether, wiping the local > datastore and then loading the test data (a known starting state). So, two > questions: > > 1. Is it possible > 2. How to go about it? >
Yes, it is possible. Doing so depends on the language you code in. If you use Python, the development server uses a SQLite stub - you can save a known-good SQLite backup file, then import it whenever you need a fresh copy. The Eclipse plugin for Java saves the contents of the development datastore in the directory */war/WEB-INF/appengine-generated/* within a file named * local_db.bin*. You can back up and restore this file as necessary to get back to a known-good state. Note that the SDK changes the way it writes the development datastore between versions, so you'll need to rebuild the file whenever you upgrade your SDK. ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
