I am trying to perform integration tests, with a real database. I've "always" included the database when integration testing, and I don't see any reason to start mocking it now.
What do you mean by injecting the service? Injecting an Angular service within the Protractor test? If that's what you mean, could you show an example of this technique? I don't have any service for talking to the database, since this is done from the Scala backend. I'd much rather talk directly to the database from Protractor; if I could write asynchronous Protractor tests (as with Jasmine-Node), I think I'd be able to use the Node 'http' module. Arve On Tue, Feb 11, 2014 at 12:48 AM, Lucian Enache <cors...@gmail.com> wrote: > 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 <arve.knud...@gmail.com> 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<http://nodejs.org/api/http.html>module, but then I would need to be able > to write an async test, See also > my stackoverflow > question<http://stackoverflow.com/questions/21689089/how-can-i-make-a-post-request-from-a-protractor-test> > 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 angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > 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 angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.