/** * Tools for setting up the casperjs tests * mainly setting host, port and path path **/ // load config files var fs = require('fs'); var env = require('system').env; var args = require('system').args; var utils = require('utils'); var configFile = fs.absolute('./casperjs.config'); var host = null; var port = null; var path = null; var verbose = false; if (typeof(env.CASPERJS_HOST) === "string") host = env.CASPERJS_HOST; if (typeof(env.CASPERJS_PORT) === "string") port = parseInt(env.CASPERJS_PORT, 10); if (typeof(env.CASPERJS_PATH) === "string") path = env.CASPERJS_PATH; for (var i=0;i