Support Forum
Using Phantom 1.4 this should be possible but we haven't yet tried to use it: Please see: https://code.google.com/p/phantomjs/wiki/ReleaseNotes
During the build time, our server is not up. However, we want to execute unit tests for our front-end components mostly written in Extjs. Currently this is not achievable through Siesta since Siesta requires a server up before the testing. That was the reason why I started this question. I was looking for an way of testing not through http, which although limits testing for only NON-XHR because Cross origin requests are only supported for HTTP. One way that i can think of - opening the test-harness.html by accessing file directly (c:/..../test-harness.html) and invoking the StartTest function for the each test file. Is this possible? I could not tell how each testing is invoked when looking at phantomjs.bat file.
What tool do you use for building? Is it some shell script or something like Jenkins? Does your web server reside on your dev machine? You can install local web server on your machine.
Read the API documentation
We are using ant for building our application. When developing i am using my local web server. However, we don't want this web server dependencies while building especially through our cruise control. QAs also does not need to know and they might just need to run automated script, which triggers testing without worrying about web server at all.
I guess, if you will allow XHR requests to file system (somewhere in about:config) in browser config that should also work.
Read the API documentation