Testing javascript integration for single page applications

I am currently developing a one-page javascript application using Sinatra Ruby on the server side and Backbone.js, jQuery, the jQuery user interface for the client side. The main purpose of the application is to allow the client to view / edit different types of elements, with each element representing a more or less complex form.

So that everything is correct, I plan:

  • unit tests using QUnit
  • functional / integration tests

What framework / tools do you recommend for integration testing in this case? I started with Selena, but I didn't like it. I just started looking at PhantomJS and CasperJS, and they seem pretty enjoyable for basic things like swimming, clicking on links, ...

What is your advice?

+5
source share
1 answer

, Selenium, , JavaScript, CasperJS . - . - wait; , , , , , . , : , <span id="xxxx">...</span> , !

CasperJS PhantomJS SlimerJS. SlimerJS, :

  • PhantomJS 1.x WebKit ( Safari 5.1 Chrome 13), .
  • SlimerJS Gecko Firefox. Firefox , ..
  • SlimerJS JavaScript, , .

PhantomJS 2.0 ( 2013 , ), - API- HTML5, CasperJS , . (BTW, PhantomJS, , , SlimerJS Xvfb, Linux Mac.)

Selenium , , IE. (, , IE Windows-.) Selenium, SlimerJS, Xvfb, ( , Windows). (BTW, Selenium , , .)

+1

All Articles