via Choosing Automated Testing Frameworks – PhantomJS / CasperJS vs Selenium.
“When developing our test strategy, we must minimize the impact caused by changes in the applications we are testing, and changes in the tools we use to test them.”
–Carl J. Nagle
Now what are headless browsers? Executed using command line interfaces or network communications, headless browsers provide automated control of a web page in an environment similar to popular web browsers. Now let’s cut to the chase:
In this video we install casperjs. You need to have PhantomJS installed as well. We will add these to our system path.
via CSS Testing with PhantomCSS, PhantomJS, CasperJS and Grunt | Phase2.
A new and exciting area of Front-end Development is regression testing. I know, I know… Testing is exciting? Well in a field that has had no formal testing practices, and is constantly plagued by unexpected regressions, the opportunity to write effective tests is incredibly welcome!
via Functional testing for Magento.
Testing can be boring and time consuming task. So why don’t we use some tools and make our lives easier? In Magento there are numerous “boring” tasks that need to be done after the first install and then again when you test a new functionality. For example, create a test account, add product to cart, go trough checkout process, add product to wishlist, compare etc.Casper.js seems like the right tool for these “repeated” tasks. So, what is casper.js!?
We will skip the installation process as it is very straightforward. So let’s jump into testing right away.
We will create two scenarios for demo purpose
So what is headless I hear you say? Well basically headless means it doesn’t draw on your screen (It should really be called GUIless). It can do all the same things as your favourite browsers, but faster; which makes it perfect for automating and testing applications programmatically.
Last night I had the privilege of presenting a webcast to the NYC Metro Selenium Users Meetup. I’m happy to report that over 80 people tuned in for the presentation on PhantomJS, CasperJS, screenshot comparison tools — and of course — Ghost Inspector. You can find the video and slides for the presentation below.