Introduction to website testing technology_PHP tutorial

WBOY
Release: 2016-07-13 17:30:12
Original
737 people have browsed it

Author: Ding Laiqing 1 Overview In the development of a software project, system testing is an important part of ensuring the overall project quality. This article will give a brief introduction to the testing technology of the website and the corresponding automatic testing tools. Mainly discuss the following aspects: Functional testing Performance testing Security testing Stability testing Browser compatibility testing Usability/usability testing Link testing Code legality testing 2 Test content 2.1 Functional testing In actual work, functions are in every A system has its own uncertainties, and we cannot use exhaustive methods to test, which makes functional testing more difficult. We follow the 80/20 principle (that is, 80% of errors exist in 20% of the system) ) The following two methods are used for the design of test cases 2.1.1 White-box testing White-box testing uses the control structure of the program to export test cases. Based on the current situation, we use the basic path testing method for white-box testing, which is simple and efficient. A brief description of the basic path test method is as follows: ¨ First, export the data flow diagram through the flow chart of the system design ¨ Calculate its cyclic complexity V(G)=E-N+2 or V(G)=P+1 according to the data flow diagram V(G): Ring responsibility E: The number of edges in the flow graph N: The number of nodes in the flow graph P: The number of decision nodes in the flow graph¨ We set V(G) paths¨ We design V(G) Simulation data of each path¨ Carry out corresponding tests based on the data 2.1.2 Black box testing Black box testing is to derive the input conditions for executing all functional requirements of the program, thereby deriving test cases and testing methods. Black box testing is used to assist white box testing. box test. We use the equivalent division method for testing, that is, dividing the input domain of the program into data classes in order to derive test cases. Generally, the input condition is: a specific value, a numerical field, a set of related values, or a Boolean condition. 2.1.3 Website functional testing For website testing, each independent functional module requires the design and export of separate test cases. The main basis is "Requirements Analysis". For application modules, designers need to provide basic path testing methods for testing. After the use case has a test case, OpenSTA (Open System Testing Architecture) can be used for automated testing 2.2 Performance Testing The performance testing of the website is extremely important for the operation of the website, but currently there is not enough performance testing for the website. When we design the system There is no good benchmark to refer to, so establishing a complete set of test plans for website performance testing will be crucial. Website performance testing is mainly carried out from two aspects: load testing (Load) and stress testing (Stress). Load testing refers to testing some boundary data. Stress testing is more like malicious testing. The tendency of stress testing should be to cause the entire System crashes. Performance testing can use corresponding tools for automated testing. We currently use the following tools ab -----Apache's testing tool OpenSTA-Development system test architecture 2.3 Security testing At present, network security issues are becoming increasingly important, especially for websites with interactive information It is especially important for websites that carry out e-commerce activities. At present, our tests do not cover the security of the website. We plan to use tools to measure it. The tool is as follows: SAINT------Security Administrators Integrated Network Tool. This tool can detect the corresponding security issues of the website system and can The solutions to security vulnerabilities are given, but they are solutions to some of the more common vulnerabilities. 2.4 Stability test The stability test of the website refers to whether the entire system is running normally during the operation of the website. Currently, there is no better test plan. The main method is to run the test server for a long time for testing. 2.5 Browser compatibility testing Test cases exported through white-box testing or black-box testing are tested using corresponding tools. OpenSTA can be used for testing. This testing tool can be tested using different browsers. 2.6 Usability/ease of use testing At present, we can only use manual testing methods to evaluate usability/ease of use, and there is a lack of a good evaluation benchmark. This aspect needs to be discussed by everyone. 2.7 Link Testing For website users, hyperlinks mean whether they can smoothly use the services provided by the entire website, so the link will be tested as an independent project. At present, we already have a testing tool Xenu------a tool that mainly tests the correctness of links. Unfortunately, there will be some errors when testing dynamically generated pages. 2.8 Code legality test Code legality test mainly includes two parts: program code legality check and display code legality check¨ Program code legality check The main standard for program code legality check is the "Intergrp Group Programming Specification", which is currently adopted by SCM administrators conduct standardized inspections and expect to have corresponding tools for testing in the future. ¨ Display code legality check Display code legality check is mainly divided into Html, JavaScript, and Css code checks. Currently, HTML code check is used------CSE HTML Validator is used to test JavaScript and Css. You can also download the corresponding ones online. testing tools.3. Testing tool OpenSTA is mainly used for load and stress testing of performance testing. It is relatively easy to use. You can write test scripts or automatically generate test scripts first, and then test the application test scripts. SAINT website security testing can conduct security testing on designated websites and provide solutions to security problems. CSE HTML Validator is a useful tool for checking the validity of HTML code. Ab (Apache Bench) Apache's own tool for performance testing does not have many functions, but it is very practical. Crash-me Mysql has its own tool for testing database performance, which can test the performance of multiple databases. Except for Ab and Crash-me, all the above tools can be found in the following directory: smbserverappslinuxappintergrp ab and Crash-me. Please go to the corresponding website to view the corresponding information} 4 Postscript This article is only a brief introduction to website testing. , the tools provided are relatively few, but they are guaranteed to be usable (of course they are all available for free online). In addition, there are many testing tools that require Money. If you are interested, you can try them out. I also recommend the testing tools mentioned above. I just did a preliminary survey. For detailed function description, please check the relevant documentation. Another important part of website testing is the testing of the database. Since better tools for database performance testing require some money, we use Mysql's Crash-me, but there is also a problem that different databases It is better to use third-party tools for testing. Therefore, you can research other database performance testing tools. 5 References (1) "Software Engineering - Research Methods for Practitioners" ----- Roger S. Pressman (2) http://www.softwareqatest.com (3) http://www.soft.com/ (4) http://www.qaforums.com (5) http://www.opensta.org

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/509183.htmlTechArticleAuthor: Ding Laiqing 1 Overview In the development of a software project, system testing is an important part of ensuring the overall project quality. Ring, this article will discuss website testing technology and corresponding automatic testing tools...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template