Does RhinoJS support web interfaces?

I use Jasmine to write BDD tests for a web application. I am interested in doing the same tests from the command line using Rhino , and I found this blog post that was very useful. However; my application uses pusher , which offers a simple API for passing events between clients using web sockets.

My tests run fine from the browser, but running them through Rhino fails to connect to the pusher. Pusher offers a debug stream, and it will show authentication errors or other failures, but it does not log activity when I run my tests from the command line.

It may be a simple yes or no answer, but I could not find any relevant documentation and I am new to Rhino, so I apologize if this is a general question n00b.

My question is,
as the name says, does anyone know if Rhino supports web socket APIs? Am I doing something else wrong, or are scripts that rely on websites just not working through Rhino?

My common goal was to use my already written jasmine tests as stress tests by running them in multiple instances of EC2 at once; Is there a good (simple?) way to do this when reusing my existing javascript tests, or should I suck it and just write my stress tests in server side scripting language? I know the selenium grid, but was hoping to avoid the emergence of new browsers to run these tests, if possible.

Many thanks!

+5
source share
1 answer

Ringo, a Rhino-based CommonJS runtime, supports them: http://ringojs.org/api/v0.6/ringo/webapp/websocket/

+5
source

All Articles