Protractor: HTTP Response Testing
问题 I'm using Protracotr for e2e testing. I want to test response from HTTP in protractor. Basically: I have running some NodeJS server. I want to send request to this server Receive some JSON data Parse those data Check if they are correct I'm using "http" NODEJS Lib to make http calls GET+POST. var http = require('http'); describe("Some test", function() { function httpGet(siteUrl) { http.get(siteUrl, function(response) { response.setEncoding('utf8'); response.on("data", function(chunk) {