Method and equipment for testing computer program
A computer program and program technology, which is applied in the field of computer program testing, can solve the problems of high time consumption, poor detection software efficiency, and inability to meet user needs, etc., to achieve less time consumption, improve efficiency, and reduce detection effects Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] Please refer to Figure 1-4 Equipment for testing computer programs, including:
[0056] A program reading unit 1, the program reading unit 1 is used to read any object-oriented program, and store the class information of the read program to be tested.
[0057] The configuration parameter unit 2 is used for configuring the object information of the object-oriented program, and the configuration parameter unit 2 is electrically connected with the program reading unit 1 .
[0058] The computing unit 3 is used to generate edge test cases and execute candidate test cases, select and execute test cases, and obtain test results. The computing unit 3 is electrically connected to the configuration parameter unit 2 .
[0059] The result output module 4 , the result output module 4 is used to obtain the experimental results of the test and output the test results, and the result output module 4 is electrically connected to the computing unit 3 .
[0060] In the present inventio...
Embodiment 2
[0077] On the basis of Example 1, please refer to Figure 5 As shown, the present invention also provides a method for testing a computer program, comprising the following steps:
[0078] Step 1: The tester inputs the class information of the program to be tested, and saves and configures the class information of the program to be tested in an XML file.
[0079] Step 2. Generate an edge test case in the input domain according to the scope and structure of the object-oriented test case.
[0080] Step 3: Generate an instance through the constructor of the class, and use a random function to assign values to the members of the object.
[0081] Step 4. Execute the test case and verify whether the result satisfies the termination condition.
[0082] Step 5. After executing the first random test case, if the termination condition is not met, select the next test case until the termination condition is met.
[0083] Step 6. After the program test is finished, record the correspo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


