Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2013-10-30
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Testing only according to the operation process of the product is not strong enough, which will affect the stability of the product. If the user does not operate according to the operation process of the product, it may cause abnormalities in the product and affect the user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Test method and device
  • Test method and device
  • Test method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses test method and device and belongs to the technical field of computers. The method includes: acquiring a test case of a test object; randomly selecting operations included in the test case; generating an operation to be tested according to the randomly selected operations; and testing the test object according to the operation to be tested. The invention further discloses the test device comprising an acquisition module, a selector module, a generation module and a test module. According to the method, the operations included in the test case are selected randomly, the operation to be tested is generated according to the randomly selected operations, the test object is tested according to the operation to be tested, processing blind spots of the test object can be tested under unknown situations, and the test object is accordingly convenient for developers to modify; accordingly, test effect is better, the quality of the test object is higher, and user experience is better.

Description

Technical field [0001] The invention relates to the field of computer technology, in particular to a testing method and device. Background technique [0002] With the increasingly fierce competition among similar products in the industry, how to produce cost-effective products has become the focus of attention of major manufacturers. Therefore, before putting the product into mass production, the manufacturer still needs to test the various performance indicators of the product, that is, test various performance indicators of the product by simulating various normal and peak values ​​through automated testing tools. Furthermore, performance testing can also be combined with stress testing to obtain the maximum service level that the product can provide. [0003] In the prior art, the testing of product performance indicators is performed in a normal testing environment, that is, the test is performed in full accordance with the operation process of the product during the test, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/263G06F11/36
Inventor 盛娟
Owner TENCENT TECH (SHENZHEN) CO LTD