Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Software rapid testing methods that testers must learn (3)

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

The following are some quick test methods introduced by test expert James Whittaker in HTBS(How To Break Software) based on failure models, supplemented and adjusted here, and updated to our test knowledge sharing library synchronously.

Try various inputs to trigger all error messages of the software

There are three common ways software handles incorrect input:

1. Input filtering: filtering out erroneous data

2. Input Check: Check input and report errors

3. Exception handling: When incorrect input causes a fault, exception handling code catches the exception and remediates it.

Writing the above code correctly requires careful thinking and repeated testing. A slight carelessness may introduce defects."

Limit value test, boundary value test, illegal value test, pressure test are used to test user input

Force software to use default values

Different modules are written by different programmers who may expect different defaults, and this inconsistency can lead to errors

1. Accept all defaults and submit

2. null values

3. Change the default value to another value and back again

4. Change the default value to another value and then to null "

Explore allowed character sets and data types

Frequently Asked Questions:

Character Set: Some software only supports character sets with certain encodings, and entering characters with other encodings will cause errors.

2. Programming languages: Some software will execute user input as a program, which leads to many problems, such as SQL injection

OS: The OS prohibits the creation of files with certain names. Some software cannot display Chinese characters correctly on Western OS

TestingUnderstand software, programming language, implementation technology, OS expectations and limitations on character sets and data, and then perform tests using strings or data that have special meaning for them.

Overflow input buffer

The software does not consider the input value is too long, too large, resulting in numerical calculation overflow or buffer overflow

Common test ideas:

1. Enter an extra long string, preferably similar to "Chinese Chinese digit 1234567 Chinese... "Helps locate the length that caused the error

2. Enter maxima (for addition and multiplication calculations), negative maxima (for subtraction calculations), values very close to zero (for division calculations), etc."

Test a set of values for a set of related variables

When multiple programmers develop a piece of code together, the values generated by their code may not work together properly.

In addition, programmers check multiple variables with complex nested if statements, which are not easy to write and are more prone to maintenance errors.

Testers investigate software requirements and implementations to identify variables that are truly related, often belonging to the same data structure or participating in the same calculation.

Cases are then designed according to how the software uses them.

You can also use the composite test tool to generate a Case

Repeat input multiple times

Software may not understand its limitations in space and time, and it fails when repeated operations exhaust its resources.

Tests repeatedly perform operations that consume more resources, or repeatedly perform operations that are large in data. For example, when testing an online store, the test continuously adds items to the shopping cart, creating a "super order" with many items. This order may result in failed submissions or difficulties in future order processing.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report