14 types of software testing: Woodpecker (Sawin website) software testing is the use of manual or automatic means to run or determination process of a software product of the system, its purpose is to verify that it meets specified requirements or expected to clarify The result is different from the actual results. This article mainly describes the type of software test. 1 Data and Database Integrity Test Data and Database Complete Test refer to the principle of test relationship database integrity and data rationality test. The database integrity is originally: principal code integrity: The main code cannot be empty; the external code integrity: the outer code must be equal to the corresponding principal code or empty. Data rationality Index is reasonable to be built in the type, length, index, etc. in the database. In the project name, the database and database processes should be tested as a subsystem. When testing these subsystems, the user interface of the test object should not be used as the interface of the data. For the Database Management System (DBMS), in-depth research is required to determine tools and techniques that can be tested. For example, there are two tables: department and employee. There are department numbers, department names, departmental managers, etc. in the department. The department name, corresponding department table. If the department number or employee record employee numbers is empty in a certain department, he violates the principle of hue integrity. If the number of the department's department belongs to ##, but ## is not found in the department number, which violates the principle of the integrity of the outer code. The employee type is defined below: 0: Workers, 1: Staff, 2: Intern. But the data type is int, we all know that Int has 4 bytes, and if it is defined as char (1). It is more space than the original. 2 White box testing white box test is based on code-based testing, testers judges the quality of software through reading program code or by using single-step debugging in the development tool, general black box testing is implemented by project managers in programmer development. White box test is divided into dynamic white box testing and static white box test 2.1 static white box testing uses the eyes, browsing the code, with experience, finding the code in the code, does not meet the writing specification in the code. For example, the code specification is specified that the function must be a powered structure. The black box test discovers that a function is defined as follows: function nameget () {....} This is an error that does not meet the development specification. There is such a code: if (i <0) & (i> = 0) ... this code intersection is the entire number, the IF statement does not have the necessary i = 0; while (i> 100) {j = j 100; t = J * pi;} There is no increase in the cycle, BUG is generated. 2.2 Dynamic White Box Test Tests in the development tool. For example, a piece of code has 4 branches, entering 4 sets of different test data to make 4 group branches can go through and the results must be correct. See a code if (i <0) {p1} else {p2} Enter i = -1 in debugging, P1 block pass, P2 block is not passed, belonging to a dynamic black box test 3. Function test function test The test software is correct, and the logic is correct. The functional test of the test object should be focused on all test requirements that can be directly tracked to the use case or business function and business rules. The goal of this test is to verify the acceptance, processing, and retrieval of the data, and whether the implementation of the business rules is appropriate. Such tests are based on black box technology, which interacts through the graphical user interface (GUI) and analyzes the output or results of the interaction to verify the application and its internal processes. The main reference for function test is a document similar to the functional manual.
For example, an e-commerce system, front desk users browse goods - put in a shopping cart - enter the checklink, the background processing orders, distribution, payment, delivery, this series of processes must be correct and no error. 4. TheUI test UI test refers to whether the style of the test user interface satisfies the customer requirements, whether the text is correct, the page is beautiful, whether the text, the portfolio is perfect, the background is beautiful, whether the operation is friendly, etc. User interface (UI) test Verify the interaction between users and software. The UI test is the target to ensure that the user interface will provide the user with the corresponding access or browsing feature to the user's functionality. In addition, the UI test also ensures that the objects in the UI operate in the expected manner and meet the standards of the company or industry. Including user friendliness, humanity, and operability testing. The UI test is subjective, with the preferences of the tester, such as: page tone color glare; user login page is more difficult to find, the error word in the text, the page picture range is too wide, etc., the defects in the UI test, but these defects are not serious. 5. Performance test performance test Main test software test performance, including load testing, intensity testing, database capacity testing, reference testing, and benchmark 5.1 load test load testing is a performance testing index running in a super-load environment, whether the program is It can be borne. In this test, the test object will assume different efforts to evaluate and evaluate the performance behavior of test objects under different efforts, and the ability to continuously run. The goal of the load test is to determine and ensure that the system can operate normally in the event of a maximum expected work. In addition, the load test also evaluates performance features, such as response time, transaction rate, and other aspects of time. For example, in the B / S structure, the user is a user belonging to the load test. You can use the WebLoad tool, simulate hundreds of customers at the same time, and how to see the system response time, how is the processing speed? 5.2 Strength Test Interaction Test is a performance test, and he is operating in software system in the case of particularly low system resources. Such tests often write software and hardware level requirements for system requirements. The purpose of implementing and implementing such tests is to identify errors caused by insufficient resources or resource contention. If the memory or disk space is insufficient, the test object may exhibit some defects that are not obvious under normal conditions. Other defects may be caused by a contention shared resource (such as database lock or network bandwidth). The intensity test can also be used to determine the maximum amount of work that the test object can process. For example: a system can run normally under memory 366m, but it is not possible to run until 258M, telling memory insufficient, this system is 366m. 5.3 Database Capacity Test Database Capacity Test Indescate into a certain number of data into the database table by stored procedures to see if the relevant page can display data in time. The database capacity test causes a large amount of data to determine if the limit will be failed to determine. Capacity test also determines the maximum load or workload that the test object can continue to process within a given time. For example, if the test object processes a set of database records for generating a report, the capacity test uses a large test database to verify that the software runs normally and generates the correct report. Doing this test usually inserts a certain number of records into a table in a table, calculates the call time of the relevant page by writing a stored procedure.
For example, in an e-commerce system, insert 10 000 data into the USER table by INSERT CUSTOMER, see if it can normalize the customer information list page, if up to 100,000 customers can be processed, but the customer information list page cannot be It is displayed in the specified time to adjust the SQL query statement in the program; if it is displayed in the specified time, the number of users can be improved to 20 000, 50 000, 100 000, respectively. 5.4 Benchmark Benchmarks Compared to known existing systems, the main test is a test with similar products. If you want to develop a financial system software and you have obtained the performance of the user's financial system, you can test your system, see which places are better than the user's financial system, what is the difference? In order to improve your own system, you can also provide data for product ads. 5.5 Competitive Test Software Competition Use Various Resources (Data Records, Memory, etc.) to see his ability to compete with other relevant systems. For example: install your financial system on a machine, but also install user financial system. When the CPU share is lowered, look at whether it is possible to force the user's financial system, but its own system can run normally? 6. Safety and Access Control Test Security and Access Control Test Two key aspects of security: Application level security, including access system level security for data or service functions, including logging in the system Or remote access. 6.1 The security of the application level ensures that: In the case of expected security, only the protagonists can only access specific features or use cases, or only limited data can be accessed. For example, everyone may allow all people to enter data, create a new account, but only administrators can delete these data or accounts. If you have a data level security, you can ensure that "User Types" can see all customer messages (including financial data), and "user two" can only see the statistics of the same customer. For example, the B / S system, do not pass the URL directly, see if it can enter the system? 6.2 System level security ensures that only users with system access can access the application, and can only be accessed by the corresponding gateway. For example, if you enter an administrator account, check if your password is easy to guess, or can you get from the database? 7. Fault Transfer and Recovery Test Failover and Recovery Testing When the host is disaster, the backup machine can start normally, so that the system can run normally, which is very important for the software in telecommunications, banks. Failover and recovery tests ensure that the test object can successfully complete the failover and can recover from various hardware, software, or network failures that cause accidental data loss or data integrity. Failover tests ensure that systems that must continue to run, once a fault occurs, the standby system will not miss the time "top replacement" to avoid loss of any data or transactions. The recovery test is a confrontational test process. In this test, the application or system will be placed under extreme conditions (or under analog extreme conditions) to generate a fault (such as device input / output (I / O) fault or invalid database pointer and gate Jianyi). Then call the recovery process and monitor and check the application and system, verifying applications or systems and data have been properly recovered. Be sure to pay attention to the backup of the primary alternate, such as a telecommunications system, sudden host program crash, whether the backup machine can start, so that the system can run normally, so that the user does not affect the phone? 8. Configure the test and called compatibility test. Configuring the test verification test objects in different software and hardware configurations. In most production environments, the specific hardware specifications of the client workstation, network connection, and database servers will vary.
The client workstation may install different software such as applications, drivers, etc., and you may run many different software portfolios at any time, thereby occupying different resources. (Such as browser version, operating system version, etc.) Listening to the main configuration test 8.1 Browser Compatibility Test Software Do you have correctly displayed and running under different organizers; such as testing IE, if you can run under Natscape browser This set of software? 8.2 Operating System Compatibility Test Software Correctly displayed and running under different operating systems; such as testing Windows98, Windows 2000, Windows XP, Linu, Can I run this software? 8.3 Hardware compatibility testing and hardware closely related software products compatibility with other hardware products, such as this software is less in parallel equipment, testing at the same time using other parallel equipment, whether the system can be used correctly. For example in Inter, Shulong Can the system run normal under the CPU chip? Such tests must establish a test laboratory to test in various environments. 9. There are two purposes for installation test installation tests. The first purpose is to ensure that the software is installed under different conditions of normal conditions and abnormal conditions: for example, the first installation, upgrade, complete, or custom installation _ can be installed. Abnormal conditions include insufficient disk space, lack of directory creation permissions, etc. The second purpose is to verify that the software can run immediately after installation. This is usually referred to in the operation of a large number of tests developed. Installation tests include test installation code and installation manual. The installation manual provides how to install, and the installation code provides basic data to install some programs to run. 10. The multilingual test is also known as the localization test, refers to the test of various local development products, such as English, Chinese, etc., including whether the program can run normally, whether the interface is in line with local customs, the shortcut is normal, etc. Wait, specifically testing B language software in a Language environment (such as trying to run Chinese version under English Win98), the phenomenon is normal. Localization test also considers: l When the language is translated from A to B, the character length changes affect the page effect. For example, there is a button called "View Advertising" in English, translated into English, and "View Advertisement" may affect the pages. The beautiful level of the page is to consider the same words in various countries, such as Football in English, and Americans may understand American football in use. l The national habits of each country, such as the symbol of understanding evil in the United States, but translated into China, Chinese people think it is a symbol of auspicious. 11. Whether the text test text test software spells correct, is it easy to understand, there is no secondary meaning, no syntax error; whether the text and content have access, including photo text. For example: "For example, please enter the correct document number!" What is the correct document number, the document can be a ID card, a driver's license, or an officer's card, if it is changed, please enter the correct ID number! " It is easy to understand. 12. Resolution test testing under different resolutions, the appearance of the interface is divided into 800 * 600, 1024 * 768, 1152 * 864, 1280 * 768, 1280 * 1024, 1200 * 1600 size fonts under the font. A good software must have an excellent resolution, and can be run at other resolutions.