Prepare for deploy test

This commit is contained in:
Thomas FORGIONE 2015-09-29 09:20:07 +02:00
parent a03dc89195
commit 372f86a504
3 changed files with 15 additions and 14 deletions

View File

@ -801,7 +801,7 @@ DBReq.ExpCreator.prototype.finish = function() {
// Commit, and then release
this.client.query("COMMIT;", function() {
Log.debug('Exp creation took ' + (Date.now() - self.startTime) + ' ms');
Log.debug('Exp creation took ' + (Date.now() - self.startTime) + ' ms', true);
self.release();
self.client = null;

View File

@ -73,15 +73,13 @@ Log.mailerror = function(error) {
);
};
if (isDev) {
Log.debug = function(info) {
Log.debug = function(info, force) {
if (isDev || force === true) {
log(
'[DBG] ' + (info !== undefined ? info : ''),
Colors.ORANGE
);
};
} else {
Log.debug = function(){};
}
};
module.exports = Log;

View File

@ -1,3 +1,6 @@
var baseUrl = 'http://localhost:4000/';
var baseUrl = 'http://3dinterface.no-ip.org/';
function makeId()
{
var text = "";
@ -18,13 +21,13 @@ var casper = require('casper').create({
var limit = 100;
casper.start('http://localhost:4000/');
casper.start(baseUrl);
for (var i = 0; i < limit; i++) {
(function(i) {
casper.thenOpen('http://localhost:4000/user-study', function() {
casper.thenOpen(baseUrl + 'user-study', function() {
console.log(i);
@ -42,12 +45,12 @@ for (var i = 0; i < limit; i++) {
// }, true);
this.thenOpen('http://localhost:4000/prototype/tutorial');
this.thenOpen('http://localhost:4000/prototype/play');
this.thenOpen('http://localhost:4000/prototype/play');
this.thenOpen('http://localhost:4000/prototype/play');
this.thenOpen(baseUrl + 'prototype/tutorial');
this.thenOpen(baseUrl + 'prototype/play');
this.thenOpen(baseUrl + 'prototype/play');
this.thenOpen(baseUrl + 'prototype/play');
this.thenOpen('http://localhost:4000/logout');
this.thenOpen(baseUrl + 'logout');
});