Common WEB front-end testing tools and common WEB testing tools
I. QUnit front-end testing tool
QUnitIs a powerful JavaScript unit testing framework developed by members of the jQuery team and is the official test suite of jQuery. Qunit is a unit test framework of Jquery and is widely used in various projects.
To use Qunit, you only need to include two Qunit files on your Html page. Qunit contains the qunit. js as the runtime and test framework, and the qunit.css file. The seating test suite page displays the style of the test result.
Ii. Selenium front-end testing tool
Selenium is an acceptance test tool specially written by ThoughtWorks for Web applications. Selenium is also a tool for Web application testing. The Selenium test runs directly in the browser, just as the real user is operating.
The main functions of this tool include:
1. Test compatibility with browsers-test your applications to see if they can work well on different browsers and operating systems.
2. Test System functions-create a regression test to test the software functions and user requirements.
3. Supports automatic recording and Automatic Generation of test scripts in different languages, such as. Net, Java, and Perl.
3. Jshint front-end testing tool
JSHintLike JSLint, JSLint is a JavaScript code Quality Check Tool mainly used to check the code quality, identify some potential code defects, and provide relevant code improvement suggestions.
Usage:
Method 1: Go to the JSHint homepage, paste your code, select related options, and click the Lint button in the lower right corner.
Method 2: Use the JSHint integrated by Grunt.
Method 3: directly use the API.
4. WebDriverTest front-end testing tool
WebDriver is an automated test Library Based on Selenium, but it is no longer a JS program running in a browser, but can control the browser by itself. It aims to improve many problems in Selenium and provides APIs that are easy to use and readable.