How to locate a bug in a Web test

Source: Internet
Author: User

1. Packet Capture analysis

Web During the test , how to judge the front-end bug or the back-end bug? The clutch analysis can be carried out by grasping the package tool.

Most of BrowserHave their own grab bag plug-ins, such as Firefox's Firebug plugin, Chrome, theRapid mode, Sogou high-speed mode comes with the Developtools plug-in, F12 open capture, in the network can see the current page sent every HTTP request. In general, we can determine the bug by requesting the interface, the parameters and the response, and we can also debug the code in the browser's console. (1) The Request interface URL is correct if the request interface URL is incorrect, the front-end Bug, (2) The parameters in the HTTP request is correct if the parameters in the HTTP request is incorrect, the front-end Bug, (3) If the interface URL and parameters are correct, see if the response content is correct if this situation The response content is incorrect, then the backend bug. (4) If the JS base is better, you can also enter the JS code in the browser's console to debug in addition, in addition to the browser's own grab plug-in, you can also use other capture software, such as Fiddler, Charles, HttpWatch, Wireshark and so on. 2. Back-end bugs, how to pinpoint where the problem is, how to accurately describe the bug? (1) Check the newspaper error log to check the error log, through the log analysis, need to have some experience, and a certain code base, in order to better locate the problem. (2) View DatabaseData to understand the function of the data table structure, testing process, review the database data, confirm the correctness of the data. (3) Check if the cache (such as Memcache, APC, Redis, etc.) is correct

How to locate a bug in a Web test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.