Wednesday, June 27, 2012

Behavior-driven development framework för Javascript


Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.
Check out : http://pivotal.github.com/jasmine/

Tuesday, June 26, 2012

Webscraping using Javascript



There are a number of Javascript frameworks you can use to web scraping:

1) Selenium, check out Seleinum Grid.
Selenium has been adopted as the primary technology for functional testong of web applications within Google.
Selenium now wraps htmlunit so you don´t need start a browser anymore. The new WebDriver api is very easy to use too. The first example use htmlunit driver
2) Watir (Ruby)
3) PhantomJS
4) CasperJS
5) Zombie for Node.js
6) Pjscrap based on PhantomJS and JQuery
7) HTMLUnit (Java)