How to use the intern.config.servers function in intern

To help you get started, we’ve selected a few intern examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / kibana / test / functional / apps / visualize / index.js View on Github external
bdd.describe('visualize app', function () {
    var common;
    var remote;
    var headerPage;
    var settingsPage;
    var scenarioManager = new ScenarioManager(url.format(config.servers.elasticsearch));
    this.timeout = config.timeouts.default;

    // on setup, we create an settingsPage instance
    // that we will use for all the tests
    bdd.before(function () {
      common = new Common(this.remote);
      remote = this.remote;
      headerPage = new HeaderPage(this.remote);
      settingsPage = new SettingsPage(this.remote);
    });

    bdd.before(function () {
      var self = this;
      remote.setWindowSize(1200,800);
      // load a set of makelogs data
      common.debug('loadIfEmpty logstashFunctional ' + self.timeout);
github elastic / kibana / test / functional / apps / settings / index.js View on Github external
bdd.describe('settings app', function () {
    var scenarioManager = new ScenarioManager(url.format(config.servers.elasticsearch));
    this.timeout = 120000;

    // on setup, we create an settingsPage instance
    // that we will use for all the tests
    bdd.before(function () {
      return scenarioManager.reload('emptyKibana')
      .then(function () {
        return scenarioManager.loadIfEmpty('makelogs');
      });
    });

    bdd.after(function () {
      return scenarioManager.unload('makelogs')
      .then(function () {
        scenarioManager.unload('emptyKibana');
      });
github elastic / kibana / test / support / pages / common.js View on Github external
getHostPort: function getHostPort() {
      return getUrl.baseUrl(config.servers.kibana);
    },