Is there a way to test Comet applications without launching a browser?

I am trying to connect to an application that uses a comet, and quite heavily in Javascript and Comet. I have gone as far as I can go to Firebug, the HTTP Header exam, and am trying to figure out what happens through the wire by writing something using Ruby Mechanize.

However, since I don't have client runtime, my approach is to simulate HTTP requests going back and forth (this is done using Ruby Mechanize). I look at the logs and compare them with the LiveHTTPHeader output, and it is very similar, but the server is not responding (I do not have access to the server code).

Are there any tools that could help? Has anyone tried to simulate the work of DOM and Javascript using something like Rhino or is it just a request for pain?

+3
source share
2 answers

The only sensible way I've found to run automated tests in web applications with significant Javascript (no comet), selenium rc is basically mechanizing / automating a real browser from your favorite programming language. (Perhaps there are other approaches with similar architecture, but Selenium is popular and this is what I know). Imitating the DOM and JS browser is just too painful - it was there, tried, failed, -).

+6

Visual Studio 2010 Ultimate -. , .

0

Source: https://habr.com/ru/post/1718352/


All Articles