Marcos
Marcos

Reputation: 4643

Routing protractor traffic?

So, I have some e2e for my AngularJS app using Protractor. Typically I run them using grunt and the specified browser appears and well, the test starts.

I would like to sniff the network requests while running protractor, having an external script that is executed at the same time; and for each page tested, extract the network traffic.

Do you know if it's possible and how? Thanks!

Upvotes: 1

Views: 445

Answers (1)

vrachlin
vrachlin

Reputation: 817

consider using BrowserMob, there is an example here on how to record network traffic from a Protractor test using BrowserMob Proxy. and maybe more info on this SO answer. haven't had time yet to try it myself, so let me know if you succeed and if it satisfies your needs!

Upvotes: 1

Related Questions