This is a mashup of casper netsniff with spider.js, which combined became an automated performance testing script.
Disclaimer: Spider.js is a very useful script I grabbed from the internet, and the author should be the owner of this blog - http://planzero.org/blog/2013/03/07/spidering_the_web_with_casperjs
This mashup has integrated casper netsniff functions into spider.js, which let's you to crawl through the whole site by specify an entry point, and for each link it sees, it will take screenshot as well as generate har file for you.
Usage
casper netsniff-spider.js your_site_entry_point
Troubleshooting
You may need to create 2 folders in the same directory as your netsniff-spider.js, one is 'har/' and the other one is 'png'. Feel free to contact iroy2000 [at] gmail.com if you have any questions.
Here is some sample screenshots
- Capture Screenshot for each link it crawled
- You can view your performance metrics with the file generated