What kind of e2e testing are you trying to execute, cause usually you would want to mock your rest end points up to staging, for continous delivery if you want to add dbs in quality and live makes sense. In both situations you should inject your service and that is all.
Sent from my iPhone > On 11/feb/2014, at 00:21, Arve Knudsen <[email protected]> wrote: > > Hi guys > > I'm new to Protractor and think it's great so far, but I'm sort of stuck when > it comes to setting up a database test fixture. What I need to do is inject > data into my database (OrientDB) by POSTing to its REST API, before the test, > and remove the same data after the test (also via REST). How can I accomplish > this from Protractor? I figure I might use the Node http module, but then I > would need to be able to write an async test, See also my stackoverflow > question on the problem. > > Thanks in advance, > Arve > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" 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/angular. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "AngularJS" 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/angular. For more options, visit https://groups.google.com/groups/opt_out.
