Test method and device
A test method and test case technology, applied in the computer field, can solve problems such as insufficient testing, affecting product stability, affecting user experience, etc., to achieve the effect of increasing testing efforts, improving experience, and improving testing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] See figure 1 , This embodiment provides a test method, and the specific process of the method is as follows:
[0045] 101: Get the test case of the tested object.
[0046] 102: Randomly select an operation from the operations included in the test case.
[0047] 103: Generate the operation to be tested according to the randomly selected operation.
[0048] 104: Test the object under test according to the operation to be tested.
[0049] Among them, the operation to be tested is generated according to the randomly selected operation, including:
[0050] The randomly selected operations are formed into serially executed operations to be tested in a preset order through the random model.
[0051] Or, generate the operation to be tested based on randomly selected operations, including:
[0052] The randomly selected operations are generated according to the preset operation concurrency matrix through the random model to generate concurrently executed operations to be tested.
[0053] Spec...
Embodiment 2
[0061] See figure 2 This embodiment provides a test method to test the object under test by generating serial operations to be tested. The method flow is as follows:
[0062] 201: Obtain the test case of the tested object.
[0063] Among them, the measured object can contain one or more functions, usually multiple functions. The functions include but are not limited to opening and closing. The function of the tested object is realized through the corresponding code, usually a function corresponds to a piece of code, and the corresponding function is realized through this piece of code. In this embodiment, the test case can be generated according to the code of the object under test. Specifically, a test case can be developed for each piece of code, so as to test the function corresponding to the piece of code.
[0064] Specifically, the method for obtaining the test case of the tested object belongs to the prior art, and will not be repeated here.
[0065] 202: Randomly select an o...
Embodiment 3
[0082] See image 3 This embodiment provides a test method. The difference from the second embodiment is that the test object is tested by generating concurrently executed operations to be tested. The method flow is as follows:
[0083] 301: Obtain the test case of the tested object.
[0084] Specifically, the method for obtaining the test case of the tested object belongs to the prior art, and will not be repeated here.
[0085] 302: Randomly select an operation from the operations included in the test case.
[0086] Specifically, random functions can be used to randomly select operations from the operations included in the test case. Wherein, the test case may be all test cases of the tested object, or may also be a part of designated test cases, which is not limited in the present invention.
[0087] 303: Using a random model, randomly selected operations are generated according to a preset operation concurrency matrix to generate concurrently executed operations to be tested.
[008...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


