Automatic testing method and device

A technology for automated testing and test results, applied in software testing/debugging, etc., can solve problems such as confusion of bug reports, increased pressure on secondary distribution of bug reports, analysis of servers that cannot locate the actual person in charge of the server, etc., to improve work efficiency, The effect of ease of reading and troubleshooting efficiency

Active Publication Date: 2019-06-28
北京百佑科技有限公司
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, since testers cannot go deep into the underlying servers (for example, application A server, application B server, etc.), it is impossible to locate the actual person in charge of the server when an abnormality occurs in the analysis server, and it is rather confusing to send a bug report
The existing solution is to first send the bug report to the corresponding interface developer of the API interface through the API interface, and the interface developer further determines the corresponding business developer according to the received bug report, which increases the interface Secondary distribution pressure on developers for bug reports

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 testing method and device
  • Automatic testing method and device
  • Automatic testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 A schematic flowchart of an automated testing method provided by the first embodiment of the present invention is shown.

[0049] The automated testing method includes the following steps:

[0050] In step S110, each test log information in the received chain log is analyzed, and each test result status code in the test log information is obtained.

[0051] Specifically, the automated testing method is applied to a testing terminal, an API server and at least one application server. The test terminal is connected to the API server, and the API server is connected to at least one application server that provides services for the API server.

[0052]The chained data structure is similar to a linked list structure in a computer, including multiple blocks, each of which is a storage space of a predetermined size, and the test log information of a certain end (such as a test terminal, API server or application server) is stored in the storage space , each block a...

Embodiment 2

[0084] image 3 A schematic flowchart of an automated testing method provided by the second embodiment of the present invention is shown.

[0085] The automated testing method includes the following steps:

[0086] In step S210, a test case is set for the functional module to be tested according to the test request, so that the API server and at least one application server corresponding to the functional module perform automated testing according to the test case, and obtain test log information for generating chained logs.

[0087] Specifically, the service included in a functional module may need to call at least one API interface in the API server, and each API interface is connected to at least one application server that provides the service.

[0088] Set up test cases for all API interfaces related to the functional modules, and test the API interfaces and the application servers that provide services for the API interfaces through the test cases.

[0089] During the ...

Embodiment 3

[0109] Figure 4 A schematic flowchart of an automated testing method provided by the third embodiment of the present invention is shown.

[0110] The automated testing method includes the following steps:

[0111] In step S310, a test case is set for the functional module to be tested according to the test request, so that the API server and at least one application server corresponding to the functional module perform automated testing according to the test case, and obtain test log information for generating chained logs.

[0112] Step S310 is the same as step S210 and will not be repeated here.

[0113] In step S320, each test log information in the received chain log is analyzed, and each test result status code in the test log information is obtained.

[0114] Step S320 is the same as step S110 and will not be repeated here.

[0115] In step S330, the test result status code indicating the abnormal status is determined according to the pre-stored correspondence betwee...

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, and the method comprises the steps: carrying out the analysis of the information of all testing logs in a received chain log, and obtaining the state codes of all testing results in the information of the testing logs; Determining a test result state code representing an abnormal state according to a pre-stored corresponding relationship between the test result state code and the test result state; Positioning an abnormal function module according to the test result state code representing the abnormal state; Generating a Bug report according to the test result state code representing the abnormal state and the abnormal function module; And sending the Bug report to a terminal where the corresponding developer is located according to a pre-stored corresponding relationship between the function module and the developer, so that the developer can process the exception according to the Bug report. According to the technical scheme, the exception is identified according to the chain log, and the Bug report of the exception function module is distributed to the corresponding developer, so that the working efficiency of thetester and the automation degree of the testing process are improved.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to an automated testing method and device. Background technique [0002] IT technology tends to be large-scale and highly complex, and quality is becoming more and more important. During this period, the basic theory and practical technology of testing began to form, and various processes and management methods in the testing process were designed. The purpose of testing is to review or compare the actual output and the expected output. [0003] However, since testers cannot go deep into the underlying servers (for example, application A server, application B server, etc.), it is impossible to locate the actual person in charge of the server when an abnormality occurs in the analysis server, and it is rather confusing to send a bug report. The existing solution is to first send the bug report to the corresponding interface developer of the API interface through the API in...

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
Inventor 贾文正
Owner 北京百佑科技有限公司
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