How To Test Programs

Table of contents:

How To Test Programs
How To Test Programs

Video: How To Test Programs

Video: How To Test Programs
Video: Software Testing Tutorial For Beginners | Manual u0026 Automation Testing | Selenium Training | Edureka 2024, December
Anonim

The creation of programs consists of several stages called the life cycle. Testing is one of the most important stages, since it precedes the delivery of the software to the customer and commissioning. It should be remembered that the purpose of testing is not to make sure that the program is working correctly and correctly, but to detect errors, to identify failures when creating atypical situations or abnormal termination.

How to test programs
How to test programs

Necessary

  • - tested program with source code;
  • - program documentation;
  • - test plan;
  • - several sets of input data (both correct and deliberately incorrect);
  • - like-minded colleagues.

Instructions

Step 1

The first step in testing is debugging. Debugging is usually done by a programmer who wrote a program or knows the programming language of the product under test. At the debugging stage, the program source code is checked for syntax errors. The detected errors are eliminated.

Step 2

The next step in debugging is static testing. At this stage, all documentation obtained as a result of the program's life cycle is checked. This is a technical task, and a specification, and the source code of a program in a programming language. All documentation is analyzed for compliance with programming standards. As a result of a static check, it is determined how the program meets the specified criteria and customer requirements. Elimination of inaccuracies and errors in the documentation is a guarantee that the created software is of high quality.

Step 3

The next step in testing is using dynamic methods. Dynamic methods are applied in the process of direct program execution. The correctness of a software tool is checked against a set of tests or sets of prepared input data. During the run of each test, data on failures and failures in the program is collected and analyzed.

Step 4

There are methods in which the program is considered as a "black box", ie. information about the problem to be solved is used, and methods in which the program is considered as a "white box", i.e. the program structure is used.

Step 5

The goal of dynamic black-box testing of programs is to identify the maximum number of errors in one test using a small subset of input data. To carry out testing using this method, it is necessary to prepare two groups of input conditions. One group should contain the correct inputs for the program, the second group should contain incorrect inputs based on the assignment of erroneous inputs. After running the program on the input data from both groups, discrepancies are established between the real behavior of the functions and the expected.

Step 6

The "white box" method allows you to explore the internal structure of the program. A set of tests based on this principle in the aggregate should ensure that each operator is passed at least once. The division into groups of input conditions should be focused on checking the passage of all program paths: conditions, branches, loops.

Recommended: