Background
Web Automation testing is becoming more and more important because the Web is now an engineering state. How to test the tools, ensure the quality of web development, improve the efficiency of development, is the birth of web tools.
Web testing is divided into the following areas:
1, Interface Test Test interface is normal, this is the front-end testing the most basic link.
2, Functional test test function is normal, because of the interaction involved, this part of the test is more complex than the interface test
3, Performance Test page performance is getting more and more attention, and performance needs to continue to pay attention during the development process, otherwise it is easy to decline with the business iteration.
4, Security Test Test Web interface and webserver security, here are professional tools (Nessus webinspect). This is not a research point.
5. Unit Testing This test is already more mature in other languages, in the web domain to some only adapt to some of the more common libraries and frameworks.
6, Usability Test Test Web interface is easy to use by users. The average person is more directly effective for participation and does not recommend tools.
7. Compatibility test test the normal nature of multiple browser access.
Some categories are derived from:
Http://www.open-open.com/lib/view/open1436021333747.html
Research
The following combines test function points to summarize various test requirements and test tools.
Classification |
Tools |
Url |
Describe |
Interface Testing |
Phantomcss |
Https://github.com/Huddle/PhantomCSS |
Visual/css Regression Testing with PHANTOMJS CSS regression testing. A CASPERJS module for automating visual regression testing with PHANTOMJS 2 or Slimerjs and resemble.js. |
Interface Testing |
Page-monitor |
Https://github.com/fouber/page-monitor |
Capture Webpage and diff the Dom change with PHANTOMJS |
Functional Testing |
Phantomjs |
http://phantomjs.org/ |
Phantomjs is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards:dom handling, CSS selector, JSON, Canvas, and Svg. For web testing, interface, network capture, page Automation access, etc. can be said to be handy. Baidu has done a lot of practice on this platform. |
Functional Testing |
Casperjs |
http://casperjs.readthedocs.io/en/latest/ http://casperjs.org/ |
Casperjs is a PHANTOMJS package that provides a more user-friendly API and enhanced testing support. |
Functional Testing |
Slimerjs |
Http://www.slimerjs.org/index.html |
Slimerjs is similar to Phantomjs, except that it runs on top of Gecko, the browser engine of the Mozilla fire Fox, instead of Webkit, and is not yet truly headless. |
Functional Testing |
Testcafe |
https://testcafe.devexpress.com/ |
Functional Web Testing made easy |
Performance testing |
Phantomas |
Https://github.com/macbre/phantomas |
phantomjs-based Web performance metrics collector and monitoring tool |
Unit Test |
Karma and Jasmine |
http://blog.fens.me/nodejs-karma-jasmine/ |
Nodejs field: Jasmine do unit testing, Karma automate unit testing Https://jasmine.github.io/2.5/introduction Sinon--Piling frame mocha--Test framework Chai--Test framework |
Unit Test |
Qunit |
http://qunitjs.com/ |
Qunit is a powerful, Easy-to-use JavaScript Unit Testing framework. It ' s used by the jquery, jquery UI and jquery Mobile projects and are capable of testing any generic JavaScript code, INCLU Ding itself! |
Compatibility test |
Selenium |
www.seleniumhq.org |
Selenium can automate the acquisition of multiple browsers, and front-end engineers can easily develop test scripts using node's Webdriver (http://webdriver.io/). can also be used: http://nightwatchjs.org/ |
Compatibility test |
Dalekjs |
http://dalekjs.com/ |
Automated cross browser testing with javascript! Exterminate all the bugs! |
Automated test management tool (Test Runner): http://karma-runner.github.io/1.0/index.html (Google angular)
Web Automation Testing Tools Research