mock HTTP requests of Angular2/4 using protractor/cucumber

614 views Asked by At

I am trying to automate an angular 4 application.(protractor, cucumber, typescript). Stuck at mocking the HTTP requests.

Found Couple of approaches:

1) httpBackend 2) http-backend-proxy

But all of them talks about AngularJs application. And as per my understanding, they have achieved using ngMockE2E which I could not found in angular2+ api doc.

I also tried to follow this, no luck.

Can anyone help me where I can refer in order to mock HTTP calls(GET, POST, PUT etc) in my protractor project.

Thanks in advance.

@Ram Pasala, @vict: Do you have any comments!

0

There are 0 answers