StartTest(function(t) {
"use strict";
t.diag("Sanity Test, loading classes on demand and verifying they were indeed loaded.");
t.ok(Ext, 'ExtJS is here');
t.ok(VI, 'VI namespace is here');
t.ok(TR, 'TR strings are here');
t.chain(
function (next) { t.requireOk('StudySearch.model.Archive', next); },
function (next) { t.requireOk('StudySearch.store.Archives', next); },
function (next) { t.requireOk('StudySearch.view.ArchivesList', next); },
function (next) { t.requireOk('StudySearch.controller.Filter', next); },
function () { t.done(); }// Optional, marks the correct exit point from the test
);
});
It runs just fine in the browser. Mats suggested it might be a firewall/anti-virus software issue. Maybe I need to add authentication - I tried adding the phantomjs parameter --settings {username: 'admin', password: 'MyPassword'} but that didn't seem to change anything.
Thank you for that suggestion. I didn't see anything in the event viewer. But it seems that just entering the event viewer causes an authentication failure "Informational" log entry.
I'm not experienced at looking at windows Event Viewer logs so I might be missing something.
Last edited by AaronTovo on Wed Jun 13, 2012 8:27 pm, edited 1 time in total.
One obvious error in my attempt was adding the --settings parameter to the command line. These settings are intended for the phantom.webPage object. I didn't read the documentation closely enough and it looks like I can't pass those values in from the command line.
Instead I tried to add them directly to the phantomjs-launcher.js script as follows:
var page = new WebPage({
settings : {
localToRemoteUrlAccessEnabled : true,
username: 'admin',
password: 'MyPassword'
}
})
I've also tried this on localhost:80 which does not require authentication and that yields the same error. So I doubt my problem is related to authentication.
and phantomjs crashed with a message from Windows7 saying that it was looking for a solution to the problem (I usually take this as a veiled threat and hit the cancel button )