Home Backend Development PHP Tutorial Introduction to website testing technology_PHP tutorial

Introduction to website testing technology_PHP tutorial

Jul 13, 2016 pm 05:30 PM
author ensure exist technology yes Overview test of Introduction system website quality software project Project Development

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...
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Jul 30, 2024 pm 02:17 PM

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

Can AI conquer Fermat's last theorem? Mathematician gave up 5 years of his career to turn 100 pages of proof into code Can AI conquer Fermat's last theorem? Mathematician gave up 5 years of his career to turn 100 pages of proof into code Apr 09, 2024 pm 03:20 PM

Fermat's last theorem, about to be conquered by AI? And the most meaningful part of the whole thing is that Fermat’s Last Theorem, which AI is about to solve, is precisely to prove that AI is useless. Once upon a time, mathematics belonged to the realm of pure human intelligence; now, this territory is being deciphered and trampled by advanced algorithms. Image Fermat's Last Theorem is a "notorious" puzzle that has puzzled mathematicians for centuries. It was proven in 1993, and now mathematicians have a big plan: to recreate the proof using computers. They hope that any logical errors in this version of the proof can be checked by a computer. Project address: https://github.com/riccardobrasca/flt

Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Jun 02, 2024 pm 02:58 PM

On April 11, Huawei officially announced the HarmonyOS 4.2 100-machine upgrade plan for the first time. This time, more than 180 devices will participate in the upgrade, covering mobile phones, tablets, watches, headphones, smart screens and other devices. In the past month, with the steady progress of the HarmonyOS4.2 100-machine upgrade plan, many popular models including Huawei Pocket2, Huawei MateX5 series, nova12 series, Huawei Pura series, etc. have also started to upgrade and adapt, which means that there will be More Huawei model users can enjoy the common and often new experience brought by HarmonyOS. Judging from user feedback, the experience of Huawei Mate60 series models has improved in all aspects after upgrading HarmonyOS4.2. Especially Huawei M

Join a new Xianxia adventure! 'Zhu Xian 2' 'Wuwei Test' pre-download is now available Join a new Xianxia adventure! 'Zhu Xian 2' 'Wuwei Test' pre-download is now available Apr 22, 2024 pm 12:50 PM

The "Inaction Test" of the new fantasy fairy MMORPG "Zhu Xian 2" will be launched on April 23. What kind of new fairy adventure story will happen in Zhu Xian Continent thousands of years after the original work? The Six Realm Immortal World, a full-time immortal academy, a free immortal life, and all kinds of fun in the immortal world are waiting for the immortal friends to explore in person! The "Wuwei Test" pre-download is now open. Fairy friends can go to the official website to download. You cannot log in to the game server before the server is launched. The activation code can be used after the pre-download and installation is completed. "Zhu Xian 2" "Inaction Test" opening hours: April 23 10:00 - May 6 23:59 The new fairy adventure chapter of the orthodox sequel to Zhu Xian "Zhu Xian 2" is based on the "Zhu Xian" novel as a blueprint. Based on the world view of the original work, the game background is set

All software will be opened with WPS, and the exe default opening method will be restored. All software will be opened with WPS, and the exe default opening method will be restored. Jun 19, 2024 am 01:48 AM

All the software on my friend's computer has been opened using WPS and cannot run normally. All exes cannot be opened, including the task manager, registry, control panel, settings, etc. When opened, all WPS garbled characters appear. This situation cannot be done remotely. The remote software is also an exe, which seems to be unsolvable. Let’s take a look at how 20 operates to restore the computer to normal. This is because the opening method of the exe has been changed to WPS, and you only need to restore the default opening method. Er0 exports the exe registry information on a normal computer and puts it on the website. Because the browser can be opened, please guide your friends to open our website, copy the registry information, create a new text document on the desktop, and save it as [File name: 1.reg; Save type: All files (*.

What are the differences between function testing and coverage in different languages? What are the differences between function testing and coverage in different languages? Apr 27, 2024 am 11:30 AM

Functional testing verifies function functionality through black-box and white-box testing, while code coverage measures the portion of code covered by test cases. Different languages ​​(such as Python and Java) have different testing frameworks, coverage tools and features. Practical cases show how to use Python's Unittest and Coverage and Java's JUnit and JaCoCo for function testing and coverage evaluation.

Huawei will launch the Xuanji sensing system in the field of smart wearables, which can assess the user's emotional state based on heart rate Huawei will launch the Xuanji sensing system in the field of smart wearables, which can assess the user's emotional state based on heart rate Aug 29, 2024 pm 03:30 PM

Recently, Huawei announced that it will launch a new smart wearable product equipped with Xuanji sensing system in September, which is expected to be Huawei's latest smart watch. This new product will integrate advanced emotional health monitoring functions. The Xuanji Perception System provides users with a comprehensive health assessment with its six characteristics - accuracy, comprehensiveness, speed, flexibility, openness and scalability. The system uses a super-sensing module and optimizes the multi-channel optical path architecture technology, which greatly improves the monitoring accuracy of basic indicators such as heart rate, blood oxygen and respiration rate. In addition, the Xuanji Sensing System has also expanded the research on emotional states based on heart rate data. It is not limited to physiological indicators, but can also evaluate the user's emotional state and stress level. It supports the monitoring of more than 60 sports health indicators, covering cardiovascular, respiratory, neurological, endocrine,

More than just 3D Gaussian! Latest overview of state-of-the-art 3D reconstruction techniques More than just 3D Gaussian! Latest overview of state-of-the-art 3D reconstruction techniques Jun 02, 2024 pm 06:57 PM

Written above & The author’s personal understanding is that image-based 3D reconstruction is a challenging task that involves inferring the 3D shape of an object or scene from a set of input images. Learning-based methods have attracted attention for their ability to directly estimate 3D shapes. This review paper focuses on state-of-the-art 3D reconstruction techniques, including generating novel, unseen views. An overview of recent developments in Gaussian splash methods is provided, including input types, model structures, output representations, and training strategies. Unresolved challenges and future directions are also discussed. Given the rapid progress in this field and the numerous opportunities to enhance 3D reconstruction methods, a thorough examination of the algorithm seems crucial. Therefore, this study provides a comprehensive overview of recent advances in Gaussian scattering. (Swipe your thumb up

See all articles