title: Is it possible to run protractor as a module from a javascript file?
body: <p>I want to trigger a protractor test by sending a http request, with the response containing the results of the test, as in the code snippet below. Is it possible to use protractor as a module to allow me to do that? </p>
  
  <pre><code>var http = require('http');
  
  http.createServer(function(request,response)
  {
      //call to execute protractor test
      response.writeHead(200);
      response.write("This should contain the test results");
      response.end();
  }
  ).listen(8080);
  
  console.log("Listening on port 8080");
  </code></pre>