Website testing Technology Overview _ PHP Tutorial

Source: Internet
Author: User
Tags html validator website performance
Website testing technology overview. Author: Ding Laiqing 1 summary in a software project development, system testing is an important part of ensuring the overall quality of the project. This article will focus on the testing technology of the website and the corresponding automatic testing tools. author: ding Laiqing 1 overview in a software project development, system testing is an important part of ensuring the overall quality of the project. This article will briefly introduce the testing technology of the website and the corresponding automatic testing tools. This article mainly discusses the following aspects: functional testing performance testing security testing stability testing browser compatibility testing availability/usability testing link testing code legality testing 2 testing content 2.1 function testing in practice, the function has its uncertainty in every system, and we cannot use the exhaustive method for testing, which leads to the difficulty of functional testing, we follow the 80/20 principle (that is, 80% error exists in part 20% of the system) the following two methods are used to design the test cases 2.1.1 White-box test: the control structure of the program design is used to export the test cases. Based on the current situation, we use the basic path Test Method for White box testing. this method is simple and efficient. The basic path test method is described as follows: first, export the data flow diagram through the system design flowchart. calculation of the annular complexity V (G) = E-N + 2 or V (G) based on the data flow diagram) = P + 1 V (G): Annular charge E: number of edges in a flow chart N: number of nodes in a flow chart P: number of nodes in the flow chart. let's set the V (G) path. let's design V (G) path-based simulated data evaluate test 2.1.2 the black-box test derives the input conditions for all functional requirements of the execution program, thereby exporting test cases and testing methods, black box testing is used to assist White box testing. We use the equivalent division method for testing, that is, dividing the input fields of the program into data classes to export test cases. Generally, the input condition is a specific value, a numeric field, a group of related values, or a boolean condition. 2.1.3 website function testing for website testing, each independent function module needs to design and export separate test cases based on requirement analysis. openSTA (Open System Testing Architecture) automated testing 2.2 performance testing the website's performance testing is very important for the website's operation, but the current performance testing for the website is not enough, we do not have a good benchmark for reference during system design. Therefore, it is vital to establish a complete set of testing solutions for website performance testing. Website performance tests are mainly carried out in two aspects: Load and Stress. Load testing refers to testing some boundary data, stress testing is more like a malicious test. Stress Testing tends to cause the entire system to crash. Performance testing can be automated using corresponding tools. we currently use the following tool AB ----- Apache test tool OpenSTA-development system test architecture 2.3 security testing Currently network security issues are becoming increasingly important, it is particularly important for websites with interactive information and websites that conduct e-commerce activities. Currently, our tests do not cover website Security tests. we plan to adopt tools for determination. the Tool is SAINT ------- Security Administrators Integrated Network Tool. this Tool can detect the corresponding Security problems of the website system, it also provides solutions to security vulnerabilities, but some common vulnerability solutions. 2.4 stability test the website's stability test refers to whether the entire system is running normally during the website's operation. Currently, there is no better test solution. it mainly uses testing servers that run for a long time. 2.5 test cases that pass the white-box or black-box test and export in browser compatibility testing use corresponding tools for testing. OpenSTA can be used for testing. this test tool can be tested in different browsers. 2.6 availability/usability testing availability/usability at present, we can only use the manual testing method for evaluation, and there is a lack of a good benchmark for evaluation. in this aspect, we need to discuss it together. 2.7 link test hyperlink for website users means that they can smoothly use the services provided by the entire website. Therefore, the link will be tested as an independent project. At present, we already have a test tool Xenu ------ mainly used to test the correctness of the link. Unfortunately, some errors may occur in the test of dynamically generated pages. 2.8 code legitimacy test consists of two parts: check the legitimacy of program code and check the legitimacy of the displayed code. the main criteria for checking the legitimacy of program code are intergrp group programming specifications. Currently, the SCM administrator is responsible for standard checks, in the future, we hope that appropriate tools will be available for testing. ○ Check of the validity of the displayed code: checks the validity of the displayed code, mainly including Html, JavaScript, and Css code, currently, HTML code check ------ using cse html Validator to test JavaScript and Css can also be downloaded from the Internet. 3. the test tool OpenSTA is mainly used to test the load and pressure of performance tests. it is easy to use. you can write a test script or automatically generate a test script before testing the application test script. Security testing for SAINT websites: provides security testing for specified websites and solutions to security problems. Cse html Validator is a useful tool for checking the validity of HTML code. AB (Apache compiler) Apache comes with a lot of performance testing tools, but it is very practical. Crash-me Mysql comes with a tool to test the performance of multiple databases. In addition to AB and Crash-me, the above tools can be found in the following directories: smbserverappslinuxappintergrp AB and Crash-me. please check the relevant information on the corresponding website.} 4. Note that this article is only for the website I made a brief introduction to the test, there are few tools provided, but they can be used (of course, they can be obtained free of charge from the Internet). There are also many testing tools that require Money. if you are interested, you can try them out, I just made a preliminary survey on the testing tool mentioned above. for detailed functional instructions, please refer to the relevant instructions. Another important part in the test of the website is the test of the database. because some Money is required for tools with good database performance testing, we use Mysql Crash-me, however, there is also a problem: it is better to use a third-party tool for testing different databases. Therefore, you can study 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

In a software project development, system testing is an important part of ensuring the overall quality of the project. This article will focus on the testing technology of the website and the corresponding automatic testing tools...

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.