Automatic test method and device, electronic equipment and readable storage medium

A technology of automated testing and sub-nodes, applied in the field of testing, can solve problems such as high labor costs, consumption, and poor accuracy of test results

Active Publication Date: 2019-07-26
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the scene selection and data selection in Option 1 are subjective to a certain extent, which easily affects the accuracy of test results; Option 2 has no scene aggregation and weight analysis on the entire traffic, resulting in the need for additional manpower when playback verification fails. To analyze and evaluate whether it is possible to go online
To sum up, the existing automated regression testing schemes have problems such as poor accuracy of test results and high labor costs.

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
  • Automatic test method and device, electronic equipment and readable storage medium
  • Automatic test method and device, electronic equipment and readable storage medium
  • Automatic test method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] An automated testing method provided by an embodiment of the present disclosure is introduced in detail.

[0030] refer to figure 1 , shows a flowchart of steps of an automated testing method in an embodiment of the present disclosure.

[0031] Step 110, establishing a traffic access path tree of the target item by analyzing the dependency relationship of the target item.

[0032] Automated testing is a process of converting human-driven testing behavior into machine execution. In practical applications, in order to conduct automated testing for the target project, it is necessary to perform step-by-step execution on the target project to test whether the execution results of each step are consistent with the expected results. However, as user needs become more diverse and detailed, different projects contain more and more content, so for each target project that requires automated testing, there are more and more service interfaces included in it, and in order to To...

Embodiment 2

[0050] An automated testing method provided by an embodiment of the present disclosure is introduced in detail.

[0051] refer to image 3 , shows a flowchart of steps of an automated testing method in an embodiment of the present disclosure.

[0052] Step 210, obtaining the entry address of the target project and the dependencies among the interfaces included in the target project.

[0053] In order to establish a traffic access path tree for the target target item, the entry address of the target item and the dependencies among the interfaces included in the target item can be obtained.

[0054] For example, suppose a target project contains entry address A, interface B, interface C, interface D, interface E, and interface F, and both interface B and interface C depend on entry address A, that is, to access interface B and interface C Before, entry address A must be accessed first, while interface D depends on interface B, interfaces E and F depend on interface C, and so o...

Embodiment 3

[0093] An automatic testing device provided by an embodiment of the present disclosure is introduced in detail.

[0094] refer to Figure 4 , shows a schematic structural diagram of an automated testing device in an embodiment of the present disclosure.

[0095] The traffic access path tree establishment module 310 is configured to establish a traffic access path tree of the target item by analyzing the dependency relationship of the target item.

[0096] The interface access sequence acquiring module 320 is configured to acquire the interface access sequence of the target item according to the traffic access path tree.

[0097] The traffic proportion acquisition module 330 is configured to acquire the traffic proportion of each interface access sequence according to the access traffic of the target item.

[0098] The automated regression testing module 340 is configured to select a target access sequence from the interface access sequences according to a preset test traffic...

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 an automatic testing method and device, electronic equipment and a readable storage medium. The method comprises the following steps: analyzing a dependency relationship of a target project, and establishing a flow access path tree of the target project; obtaining an interface access sequence of the target project according to the traffic access path tree; obtaining a flowratio of each interface access sequence according to the access flow of the target project; and according to a preset test flow value, selecting a target access sequence from the interface access sequences, and carrying out an automatic regression test on the target access sequence. Therefore, the technical problems that an existing automatic testing method is poor in testing result accuracy, highin labor cost and the like are solved. The beneficial effects of improving the accuracy of the test result and reducing the labor cost are achieved.

Description

technical field [0001] The embodiments of the present disclosure relate to the technical field of testing, and in particular to an automated testing method, device, electronic equipment, and readable storage medium. Background technique [0002] With the rapid development of computer technology, various application software that meet people's application needs in various aspects are constantly being developed and put into use. In the life cycle of the software, because developers need to improve the application software according to the problems and application requirements, it is necessary to test the updated version of the software accordingly. Among them, the regression test will re-test after modifying the old code to confirm that the modification does not introduce new errors or cause errors in other codes. [0003] With regard to automated regression testing, existing solutions can be mainly divided into the following two types: first, testers analyze user usage scena...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/3692
Inventor 刘月晓
Owner BEIJING SANKUAI ONLINE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products