CN112667868B - Data detection method and device - Google Patents

Data detection method and device Download PDF

Info

Publication number
CN112667868B
CN112667868B CN201910979042.7A CN201910979042A CN112667868B CN 112667868 B CN112667868 B CN 112667868B CN 201910979042 A CN201910979042 A CN 201910979042A CN 112667868 B CN112667868 B CN 112667868B
Authority
CN
China
Prior art keywords
data
detected
execution state
path diagram
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910979042.7A
Other languages
Chinese (zh)
Other versions
CN112667868A (en
Inventor
赖峥嵘
于兴红
李九宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910979042.7A priority Critical patent/CN112667868B/en
Publication of CN112667868A publication Critical patent/CN112667868A/en
Application granted granted Critical
Publication of CN112667868B publication Critical patent/CN112667868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a data detection method and a device, wherein the data detection method comprises the following steps: obtaining data to be detected, grouping the data to be detected based on a preset rule to obtain a plurality of data groups, extracting an execution state corresponding to each data group and an association relation between each data group, constructing and displaying a data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, and detecting the data to be detected based on the data path diagram. Therefore, the test efficiency of data can be improved.

Description

Data detection method and device
Technical Field
The invention relates to the technical field of computers, in particular to a data detection method and device.
Background
With the development of technology, the architecture of a service system is more and more complex, and various problems may exist in the process of executing the service, so that a test case is generally adopted to test the service system.
However, because the number of call levels of the service system is large, when a fault occurs in the test process, it takes much time to locate the abnormal problem according to the call relationship between the levels, and the test case needs to consume a lot of time, which results in low test efficiency.
Disclosure of Invention
The embodiment of the invention provides a data detection method and device, which can improve the test efficiency of data.
The embodiment of the invention provides a data detection method, which comprises the following steps:
acquiring data to be detected, and grouping the data to be detected based on a preset rule to obtain a plurality of data groups;
extracting the corresponding execution state of each data group and the association relation between each data group;
constructing and displaying a data path diagram of the data to be detected according to a plurality of execution states and the association relation between each data group;
and detecting the data to be detected based on the data path diagram.
Correspondingly, the embodiment of the invention also provides a data detection device, which comprises:
the acquisition module is used for acquiring data to be detected;
the grouping module is used for grouping the data to be detected based on a preset rule to obtain a plurality of data groups;
the extraction module is used for extracting the execution state corresponding to each data group and the association relation between each data group;
the first construction module is used for constructing and displaying a data path diagram of the data to be detected according to a plurality of execution states and the association relation between each data group;
And the detection module is used for detecting the data to be detected based on the data path diagram.
Optionally, in some embodiments of the present invention, the first building block includes:
a first construction unit for constructing a path diagram of a plurality of data groups based on an association relationship between each data group;
the labeling unit is used for labeling the data sets corresponding to each execution state according to the execution states to obtain a plurality of labeled data sets;
and the second construction unit is used for constructing the data path diagram of the data to be detected according to the plurality of marked data groups and the path diagram.
Optionally, in some embodiments of the present invention, the labeling unit includes:
a determining subunit, configured to determine tag information corresponding to the execution state;
and the labeling subunit is used for labeling the data sets corresponding to the execution state based on the label information corresponding to the execution state to obtain a plurality of labeled data sets.
Optionally, in some embodiments of the present invention, the labeling subunit is specifically configured to:
extracting the color corresponding to the label information;
and according to the extracted colors, the data sets corresponding to the execution states are colored to obtain a plurality of marked data sets.
Optionally, in some embodiments of the present invention, a second building module is further included, where the second building module is specifically configured to:
setting tag information;
constructing a mapping relation between an execution state and the tag information;
the determining subunit is specifically configured to: and determining the label information corresponding to the execution state based on the mapping relation constructed by the second construction module.
Optionally, in some embodiments of the present invention, the data to be detected includes a plurality of functional data packets, a plurality of request data packets, and a response data packet corresponding to each request data packet, and the grouping module is specifically configured to:
grouping data to be detected according to the plurality of functional data packets to obtain a plurality of data groups;
determining an execution state corresponding to each data group and an association relation between each data group according to the plurality of request data packets and response data packets corresponding to each request data packet;
the execution state is added to a data set corresponding to the execution state.
Optionally, in some embodiments of the present invention, the detection module is specifically configured to:
and displaying a detection result corresponding to the detection data operation according to the data detection operation of the user on the data path diagram.
Optionally, in some embodiments of the present invention, the detection module includes:
a determining unit configured to determine, when a selection operation by a user for a data path diagram is detected, a target data group in the data path diagram corresponding to the selection operation;
and the display unit is used for displaying the parameter information of the target data group when detecting the clicking operation of the user on the target data group.
After data to be detected is obtained, the data to be detected is grouped based on a preset rule to obtain a plurality of data groups, then an execution state corresponding to each data group and an association relation among each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the plurality of execution states and the association relation among each data group, and finally the data to be detected is detected based on the data path diagram. Therefore, the test efficiency of data can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data detection method according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of another flow chart of a data detection method according to an embodiment of the present invention;
fig. 2b is a schematic diagram of grouping data to be detected in the data detection method according to the embodiment of the present invention;
fig. 2c is a schematic diagram of a data path diagram for constructing data to be detected in the data detection method according to the embodiment of the present invention;
fig. 2d is a schematic diagram of checking node information in the data detection method according to the embodiment of the present invention;
fig. 2e is a schematic diagram of checking a data packet in the data detection method according to the embodiment of the present invention;
fig. 3a is a schematic structural diagram of a first implementation of the data detection device according to the embodiment of the present invention;
FIG. 3b is a schematic diagram illustrating a second embodiment of a data detection device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides a data detection method and device.
The data processing device may be integrated in a network device, such as a terminal or a server, where the terminal may include a mobile phone, a tablet computer, or a personal computer (PC, personal Computer), and the server may include a server that operates independently or is a distributed server, or may include a server cluster that includes multiple servers.
Taking the data processing device integrated in a terminal as an example, when data are required to be detected, firstly, the data can be preprocessed, for example, the data can be tested through a test case to obtain tested data, namely data to be detected, then the data to be detected can be grouped based on a preset rule to obtain a plurality of data groups, then execution corresponding to each data group and association relations among each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the execution turntables and the association relations among each data group, finally, the data to be detected is detected based on the data path diagram, for example, the data groups with errors can be displayed on the data path diagram through high brightness, and the data detection by operation and maintenance personnel is facilitated.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
A data detection method, comprising: obtaining data to be detected, grouping the data to be detected based on a preset rule to obtain a plurality of data groups, extracting an execution state corresponding to each data group and an association relation between each data group, constructing and displaying a data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, and detecting the data to be detected based on the data path diagram.
Referring to fig. 1, fig. 1 is a flow chart of a data detection method according to an embodiment of the invention. The specific flow of the data detection method can be as follows:
101. and acquiring data to be detected.
The data to be detected may include local data and network data, and it may be understood that the local data may be data stored in a database in advance, and the network data may be data pulled through an access network interface. The data to be detected may be one service data or data composed of a plurality of service data, and the service data may be processed in advance to obtain the data to be detected, for example, the service data may be tested by a test case to obtain tested service data, and the tested service data is used as the data to be detected.
102. And grouping the data to be detected based on a preset rule to obtain a plurality of data groups.
Specifically, the data to be detected may be grouped based on a preset rule, for example, the data to be detected may be divided into a plurality of data groups according to service characteristics to be implemented on the data to be detected, that is, the data to be detected may be split into a plurality of micro service modules, the functions of each micro service module are different, and the functions of each micro service module are single.
The micro-service architecture is an architecture mode, which can divide a single application program into a group of small services, and the services are coordinated and matched with each other to provide a final value for users, and the purpose of the micro-service is to effectively split the application, so as to realize agile development and deployment.
Further, the data to be detected may include a plurality of data packets, for example, may include a function data packet, a request data packet, and a response data packet corresponding to the request data packet, and the data to be detected may be grouped based on the data packets, that is, in some embodiments, the step of grouping the data to be detected based on a preset rule to obtain a plurality of data groups and an association relationship between each data group may specifically include:
(11) And grouping the data to be detected according to the plurality of functional data packets to obtain a plurality of data groups.
(12) And determining the execution state corresponding to each data group and the association relation between each data group according to the plurality of request data packets and the response data packet corresponding to each request data packet.
(13) The execution state is added to the data set corresponding to the execution state.
For example, specifically, the data to be detected includes 5 functional data packets, so that the data to be detected may be grouped according to the 5 functional data packets to obtain 5 data groups, where each data group is different in responsible function, in addition, a signal flow relationship between each data group may be determined according to a request data packet and a response data packet in the data to be detected, and further, an association relationship between each data group may be determined, and an execution state corresponding to each data group may be determined according to the request data packet and the response data packet, where the execution state may include a processed state, an unprocessed state, a received data error state, a processed data error state, or an output data error state, and the like, and finally, the execution state may be added to the data group corresponding to the execution state, specifically according to an actual situation.
103. And extracting the corresponding execution state of each data group and the association relation between each data group.
For example, after grouping data to be detected based on a preset rule, obtaining an a data group, a B data group and a C data group, respectively extracting the execution states corresponding to the a data group, the B data group and the C data group and the association relation between each data group, where the execution state of the a data group is a processed state, the execution state of the B data group is an output data error state and the execution state of the C data group is a received data error state, and the association relation between the three data groups may also be extracted.
104. And constructing and displaying a data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group.
For example, a signal transmission path between data groups may be determined according to an association relationship between each data group, then, a path diagram of a plurality of data groups may be constructed based on the signal transmission path, and each execution state may be added to the data group corresponding to the execution state in the form of a tag, so as to obtain a data path diagram of data to be detected, that is, in some embodiments, the step of "constructing and displaying the data path diagram of the data to be detected according to the plurality of execution states and the association relationship between each data group" may specifically include:
(21) And constructing path diagrams of a plurality of data groups based on the association relation between each data group.
(22) Marking the data sets corresponding to each execution state according to the execution states to obtain a plurality of marked data sets;
(23) And constructing a data path diagram of the data to be detected according to the plurality of marked data sets and the path diagram.
After constructing the path diagrams of the multiple data sets, labeling the extracted execution states on the corresponding data sets, for example, when the execution state of a certain data set is a received data error state, "abnormality" may be labeled on the icon of the data set, and of course, the data sets may be labeled in another manner, that is, in some embodiments, the step of "labeling, according to the multiple execution states, the data set corresponding to each execution state to obtain multiple labeled data sets" may specifically include:
(31) And determining the label information corresponding to the execution state.
(32) And labeling the data sets corresponding to the execution states based on the label information corresponding to the execution states, and obtaining a plurality of labeled data sets.
For example, the data set corresponding to the execution state may be labeled by the tag information corresponding to the execution state, or the color corresponding to the tag information may be determined by the tag information corresponding to the execution state, then the color corresponding to the tag information is extracted, and then the data set corresponding to the execution state is colored according to the extracted color, that is, in some embodiments, the step of labeling the data set corresponding to the execution state based on the tag information corresponding to the execution state to obtain a plurality of labeled data sets may specifically include:
(41) And extracting the color corresponding to the label information.
(42) And (3) coloring the data sets corresponding to the execution state according to the extracted colors to obtain a plurality of marked data sets.
Note that, the color in the tag information is preset, for example, the tag information marked as "abnormal" execution state may be associated with "red", that is, in some embodiments, may further include:
(51) Tag information is set.
(52) And constructing a mapping relation between the execution state and the tag information.
That is, in some embodiments, tag information corresponding to an execution state may be determined based on a mapping relationship.
105. And detecting the data to be detected based on the data path diagram.
In this embodiment, the service flow is shown through the visualized data path diagram, so that the data to be detected can be detected through the data path diagram, and the service problem can be conveniently checked and daily operation and maintenance can be conveniently performed.
Specifically, when detecting the data detection operation of the user on the data path, the detection result corresponding to the data detection operation may be displayed according to the data detection operation of the user on the data path, for example, a data group with an error reporting is displayed on the data path diagram, and the parameter information of the data group with the error reporting may be displayed.
In addition, it should be noted that, a plurality of data sets with errors may be displayed on the data path diagram, and parameter information of the corresponding data sets may be displayed based on a selection of a user, that is, in some embodiments, the step of "displaying, according to a data detection operation of the data path by the user, a detection result corresponding to the detection data operation" may specifically include:
(61) When a selection operation of a user with respect to the data path diagram is detected, a target data group in the data path diagram corresponding to the selection operation is determined.
(62) And when the clicking operation of the user on the target data set is detected, displaying the parameter information of the target data set.
Three data sets with errors are displayed on the data path diagram, the corresponding target data set can be determined according to the selection operation of a user, when the clicking operation for the target data set is detected, parameter information of the target data set is displayed, wherein the parameter information can comprise system parameters and service parameters, the system parameters can comprise hypertext transfer protocol information, remote procedure call information, authentication information and the like, and the service parameters can comprise account numbers, time and the like.
After data to be detected is obtained, the data to be detected is grouped based on a preset rule to obtain a plurality of data groups, then an execution state corresponding to each data group and an association relation among each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the plurality of execution states and the association relation among each data group, and finally the data to be detected is detected based on the data path diagram. Compared with the existing scheme, the embodiment of the invention can display the data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, the user can detect the data to be detected based on the data path diagram, when the number of the calling levels in the service is more, the request, the response time and the calling path in the service can be displayed, and when the data detection operation of the user on the target data in the data path diagram is detected, the detection result corresponding to the data detection operation can be displayed, so that the data test efficiency can be improved.
The method according to the embodiment will be described in further detail by way of example.
In this embodiment, a description will be given taking an example in which the data detection device is specifically integrated in a terminal.
Referring to fig. 2a, a specific flow of the data detection method may be as follows:
201. the terminal acquires data to be detected.
The data to be detected may be one service data or data composed of a plurality of service data, when the data to be detected is the service data, the terminal may process the service data in advance, so as to obtain the data to be detected, for example, the service data may be tested by a test case, so as to obtain the tested service data, and the terminal may use the tested service data as the data to be detected.
202. The terminal groups the data to be detected based on a preset rule to obtain a plurality of data groups.
For example, in a payment service, the terminal may group the data to be detected corresponding to the payment service according to the characteristics of the payment service, so as to obtain micro service modules such as an access proxy module, a user information access module, a cache module, a social payment module, a public payment logic module, and the like, as shown in fig. 2b, that is, the terminal groups the data to be detected based on a preset rule, so as to obtain a plurality of data groups.
203. The terminal extracts the corresponding execution state of each data group and the association relation between each data group.
204. And the terminal constructs and displays a data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group.
The terminal may represent the micro service modules in different execution states through different colors, where each execution state corresponds to only one color, for example, the execution state may include that the unpacking is successful and the unpacking is not abnormal, the unpacking is successful but the unpacking is abnormal, the unpacking is failed, the error code and the basic container are not accessed after the unpacking are not found, and the terminal represents the micro service modules in different states through different colors, constructs a data path diagram of the data to be detected according to the association relationship between the micro service modules, and may be displayed on a display screen of the terminal, as shown in fig. 2 c.
It should be noted that each execution state and the color corresponding to each execution state may be preset by the terminal, or may be preset by the operation and maintenance personnel, specifically according to the actual situation.
It should be further noted that, each micro service module has preset node information, where the node information includes parameter information and service information, for example, in a payment service, a system parameter generally includes common information of each module, and is similar to a header of a hypertext transfer protocol, and typically includes a service command word, account information, service quality information, authentication information, and modulo modulation information; the service parameters are module full-time information, and are functional features generally provided for the module service, such as order reading module, order number, amount, account number, time and the like.
205. And the terminal displays a detection result corresponding to the data operation to be detected according to the data detection operation of the user on the data path diagram.
Specifically, the terminal displays the data path diagram through the display screen, and the user can operate the micro service module in the data path diagram through the mouse, for example, after the user stays in a certain micro service module through the mouse, the node information of the micro service module can be checked, as shown in fig. 2 d; when the terminal detects the clicking operation of the user on a certain micro service module, the terminal can display a corresponding data packet, for example, at the moment, the user can check a request data packet and a response data packet corresponding to the micro service module, as shown in fig. 2e, then, the user can judge whether the micro service module is successfully invoked through the result in the response data packet, for example, when the result of the response data packet is "-202", at the moment, the wrong machine IP can be determined to be "10.50.83.41", the port number is "16809", the time is "2019/6/10 am 9:33:51", and the response time is "1616.521 ms".
As can be seen from the foregoing, after the terminal in this embodiment obtains the data to be detected, the terminal groups the data to be detected based on the preset rule to obtain a plurality of data groups, then extracts the execution state corresponding to each data group and the association relationship between each data group, then constructs and displays the data path diagram of the data to be detected according to the plurality of execution states and the association relationship between each data group, and finally, displays the detection result corresponding to the data to be detected according to the data detection operation of the user for the data path diagram. Compared with the existing data processing scheme, the terminal of the embodiment of the invention can display the data path diagram of the data to be detected according to the multiple execution states and the association relation between each data group, the user can detect the data to be detected based on the data path diagram, when the number of the calling levels in the service is more, the request, the response time and the calling path in the service can be displayed, and when the data detection operation of the user on the target data in the data path diagram is detected, the terminal can display the detection result corresponding to the detection data operation, so that the data testing efficiency can be improved.
In order to facilitate better implementation of the data detection method according to the embodiment of the present invention, the embodiment of the present invention further provides a data detection device (abbreviated as a detection device) based on the foregoing data detection device. The meaning of the nouns is the same as that of the data detection method, and specific implementation details can be referred to in the description of the method embodiment.
Referring to fig. 3a, fig. 3a is a schematic structural diagram of a data detection device according to an embodiment of the present invention, where the processing device may include an obtaining module 301, a grouping module 302, an extracting module 303, a first constructing module 304, and a detecting module 305, and may specifically be as follows:
an acquiring module 301, configured to acquire data to be detected.
For example, the data to be detected may be one service data or data composed of a plurality of service data, and the service data may be processed in advance to obtain the data to be detected, for example, the obtaining module 301 may test the service data through a test case to obtain the tested service data, and use the tested service data as the data to be detected.
The grouping module 302 is configured to group the data to be detected based on a preset rule, so as to obtain a plurality of data groups.
Specifically, the grouping module 302 may group the data to be detected based on a preset rule, for example, the grouping module 302 may divide the data to be detected into a plurality of data groups according to service characteristics to be implemented on the data to be detected, that is, the data to be detected may be split into a plurality of micro service modules, where each micro service module is different in responsible function, and each micro service module is single in responsible function.
Optionally, in some embodiments of the present invention, the data to be detected may include a plurality of functional data packets, a plurality of request data packets, and a response data packet corresponding to each request data packet, and the grouping module 302 may specifically be configured to: grouping data to be detected according to a plurality of functional data packets to obtain a plurality of data groups, determining an execution state corresponding to each data group and an association relation between each data group according to a plurality of request data packets and response data packets corresponding to each request data packet, and adding the execution state into the data group corresponding to the execution state.
And the extracting module 303 is configured to extract an execution state corresponding to each data set and an association relationship between each data set.
The first construction module 304 is configured to construct and display a data path diagram of the data to be detected according to the plurality of execution states and the association relationship between each data set.
For example, the first construction module 304 may determine a signal transmission path between data groups according to an association relationship between each data group, then construct a path diagram of a plurality of data groups based on the signal transmission path, and may add each execution state to the data group corresponding to the execution state in the form of a tag, thereby obtaining a data path diagram of data to be detected.
Alternatively, in some embodiments of the present invention, the first building block 304 may specifically include:
a first construction unit for constructing a path diagram of a plurality of data groups based on an association relationship between each data group;
the labeling unit is used for labeling the data sets corresponding to each execution state according to the execution states to obtain a plurality of labeled data sets;
and the second construction unit is used for constructing a data path diagram of the data to be detected according to the plurality of marked data groups and the path diagram.
Optionally, in some embodiments, the labeling unit may specifically include:
a determining subunit, configured to determine tag information corresponding to the execution state;
the labeling subunit is used for labeling the data sets corresponding to the execution states based on the label information corresponding to the execution states, and obtaining a plurality of labeled data sets.
Optionally, in some embodiments of the present invention, the labeling subunit may specifically be configured to: extracting the colors corresponding to the label information, and coloring the data sets corresponding to the execution states according to the extracted colors to obtain a plurality of marked data sets.
Optionally, in some embodiments of the present invention, referring to fig. 3b, the detection apparatus of the present invention may further include a second construction module 306, where the second construction module 306 may specifically be configured to: setting tag information, and constructing a mapping relation between an execution state and the tag information. The determination subunit is specifically configured to: based on the mapping relationship constructed by the second construction module 306, tag information corresponding to the execution state is determined.
The detection module 305 is configured to detect data to be detected based on the data path diagram.
In this embodiment, the service flow is shown through the visualized data path diagram, so the detection module 305 can detect the data to be detected through the data path diagram, so as to facilitate the inspection of service problems and the maintenance of daily operation.
Alternatively, in some embodiments of the present invention, the detection module 305 may specifically be configured to: and displaying a detection result corresponding to the detection data operation according to the data detection operation of the user on the data path diagram.
Optionally, in some embodiments of the present invention, the detection module 305 may specifically include:
a determining unit configured to determine, when a selection operation by a user for the data path diagram is detected, a target data group in the data path diagram corresponding to the selection operation;
and the display unit is used for displaying the parameter information of the target data group when the clicking operation of the user on the target data group is detected.
It can be seen that, after the obtaining module 301 of the data detecting apparatus in this embodiment obtains the data to be detected, the grouping module 302 groups the data to be detected based on the preset rule to obtain a plurality of data sets, then the extracting module 303 extracts the execution state corresponding to each data set and the association relationship between each data set, then the first constructing module 304 constructs and displays the data path diagram of the data to be detected according to the plurality of execution states and the association relationship between each data set, and finally the detecting module 305 detects the data to be detected based on the data path diagram. Compared with the existing scheme, the embodiment of the invention can display the data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, the user can detect the data to be detected based on the data path diagram, when the number of the calling levels in the service is more, the request, the response time and the calling path in the service can be displayed, and when the data detection operation of the user on the target data in the data path diagram is detected, the detection result corresponding to the data detection operation can be displayed, so that the data test efficiency can be improved.
Correspondingly, the embodiment of the present invention further provides a terminal, as shown in fig. 4, where the terminal may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a wireless fidelity (WiFi, wireless Fidelity) module 407, a processor 408 including one or more processing cores, and a power supply 409. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 4 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 408; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 401 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide access to the memory 402 by the processor 408 and the input unit 403.
The input unit 403 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 403 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 408, and can receive commands from the processor 408 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 403 may also comprise other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 404 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 404 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is communicated to the processor 408 to determine a type of touch event, and the processor 408 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 4 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the terminal are not described in detail herein.
Audio circuitry 406, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 406 and converted into audio data, which are processed by the audio data output processor 408 for transmission to, for example, another terminal via the RF circuit 401, or which are output to the memory 402 for further processing. Audio circuitry 406 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 407, so that wireless broadband internet access is provided for the user. Although fig. 4 shows a WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 408 is a control center of the terminal, and connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall detection of the mobile phone. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power supply 409 (e.g., a battery) for powering the various components, which may be logically connected to the processor 408 through a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 409 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the processor 408 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 408 executes the application programs stored in the memory 402, so as to implement various functions:
after data to be detected are obtained, grouping the data to be detected based on a preset rule to obtain a plurality of data groups, extracting an execution state corresponding to each data group and an association relation between each data group, constructing and displaying a data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, and detecting the data to be detected based on the data path diagram.
After data to be detected is obtained, the data to be detected is grouped based on a preset rule to obtain a plurality of data groups, then an execution state corresponding to each data group and an association relation among each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the plurality of execution states and the association relation among each data group, and finally the data to be detected is detected based on the data path diagram. Compared with the existing scheme, the embodiment of the invention can display the data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, the user can detect the data to be detected based on the data path diagram, when the number of the calling levels in the service is more, the request, the response time and the calling path in the service can be displayed, and when the data detection operation of the user on the target data in the data path diagram is detected, the detection result corresponding to the data detection operation can be displayed, so that the data test efficiency can be improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the data detection methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
after data to be detected are obtained, grouping the data to be detected based on a preset rule to obtain a plurality of data groups, extracting an execution state corresponding to each data group and an association relation between each data group, constructing and displaying a data path diagram of the data to be detected according to the plurality of execution states and the association relation between each data group, and detecting the data to be detected based on the data path diagram.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium may perform steps in any data detection method provided by the embodiments of the present invention, so that the beneficial effects that any data detection method provided by the embodiments of the present invention can be achieved, which are detailed in the previous embodiments and are not repeated herein.
The foregoing describes in detail a data detection method, apparatus, terminal and storage medium provided by the embodiments of the present invention, and specific examples are applied to illustrate the principles and embodiments of the present invention, where the foregoing examples are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (12)

1. A data detection method, comprising:
acquiring data to be detected;
grouping the data to be detected based on a preset rule to obtain a plurality of data groups;
extracting the corresponding execution state of each data group and the association relation between each data group;
constructing and displaying a data path diagram of the data to be detected according to a plurality of execution states and the association relation between each data group, wherein the data path diagram comprises the following steps: determining a signal transmission path between the data groups according to the association relation between each data group, constructing a path diagram of a plurality of data groups based on the signal transmission path, and adding each execution state to the data group corresponding to the execution state in the form of a label so as to obtain a data path diagram of the data to be detected;
And detecting the data to be detected based on the data path diagram.
2. The method according to claim 1, wherein adding each execution state to the data group corresponding to the execution state in the form of a tag, thereby obtaining a data path diagram of the data to be detected, comprises:
marking the data sets corresponding to each execution state according to the execution states to obtain a plurality of marked data sets;
and constructing a data path diagram of the data to be detected according to the plurality of marked data sets and the path diagram.
3. The method according to claim 2, wherein labeling the data set corresponding to each execution state according to the plurality of execution states, to obtain a plurality of labeled data sets, includes:
determining label information corresponding to the execution state;
and labeling the data sets corresponding to the execution state based on the label information corresponding to the execution state, and obtaining a plurality of labeled data sets.
4. The method according to claim 3, wherein labeling the data set corresponding to the execution state based on the tag information corresponding to the execution state, to obtain a plurality of labeled data sets, includes:
Extracting the color corresponding to the label information;
and according to the extracted colors, coloring the data sets corresponding to the execution states to obtain a plurality of marked data sets.
5. A method according to claim 3, further comprising:
setting tag information;
constructing a mapping relation between an execution state and the tag information;
the determining the tag information corresponding to the execution state includes: and determining the label information corresponding to the execution state based on the mapping relation.
6. The method according to any one of claims 1 to 5, wherein the data to be detected includes a plurality of functional data packets, a plurality of request data packets, and a response data packet corresponding to each request data packet, the grouping the data to be detected based on a preset rule to obtain a plurality of data groups and an association relationship between each data group includes:
grouping data to be detected according to the plurality of functional data packets to obtain a plurality of data groups;
determining an execution state corresponding to each data group and an association relation between each data group according to the plurality of request data packets and response data packets corresponding to each request data packet;
The execution state is added to a data set corresponding to the execution state.
7. The method according to any one of claims 1 to 5, wherein the detecting the data to be detected based on the data path diagram comprises:
and displaying a detection result corresponding to the detection data operation according to the data detection operation of the user on the data path diagram.
8. The method of claim 7, wherein the displaying the detection result corresponding to the detection data operation according to the data detection operation of the data path diagram by the user comprises:
when detecting a selection operation of a user on a data path diagram, determining a target data group in the data path diagram corresponding to the selection operation;
and when the clicking operation of the user on the target data set is detected, displaying the parameter information of the target data set.
9. A data detection apparatus, comprising:
the acquisition module is used for acquiring data to be detected;
the grouping module is used for grouping the data to be detected based on a preset rule to obtain a plurality of data groups;
the extraction module is used for extracting the execution state corresponding to each data group and the association relation between each data group;
The first construction module is configured to construct and display a data path diagram of the data to be detected according to a plurality of execution states and an association relationship between each data group, and includes: determining a signal transmission path between the data groups according to the association relation between each data group, constructing a path diagram of a plurality of data groups based on the signal transmission path, and adding each execution state to the data group corresponding to the execution state in the form of a label so as to obtain a data path diagram of the data to be detected;
and the detection module is used for detecting the data to be detected based on the data path diagram.
10. The apparatus of claim 9, wherein the build module comprises:
a first construction unit for constructing a path diagram of a plurality of data groups based on an association relationship between each data group;
the labeling unit is used for labeling the data sets corresponding to each execution state according to the execution states to obtain a plurality of labeled data sets;
and the second construction unit is used for constructing the data path diagram of the data to be detected according to the plurality of marked data groups and the path diagram.
11. A terminal comprising a processor and a memory, the memory storing an application, the processor being configured to run the application in the memory to implement the method of any one of claims 1 to 8.
12. A storage medium storing a plurality of instructions that can be loaded by a processor to perform the steps of the method of any one of claims 1 to 8.
CN201910979042.7A 2019-10-15 2019-10-15 Data detection method and device Active CN112667868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910979042.7A CN112667868B (en) 2019-10-15 2019-10-15 Data detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910979042.7A CN112667868B (en) 2019-10-15 2019-10-15 Data detection method and device

Publications (2)

Publication Number Publication Date
CN112667868A CN112667868A (en) 2021-04-16
CN112667868B true CN112667868B (en) 2023-11-24

Family

ID=75399951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910979042.7A Active CN112667868B (en) 2019-10-15 2019-10-15 Data detection method and device

Country Status (1)

Country Link
CN (1) CN112667868B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460109A (en) * 2022-11-11 2022-12-09 广州粤芯半导体技术有限公司 Connection state detection method and device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897397A (en) * 2017-02-06 2017-06-27 广东欧珀移动通信有限公司 Associated with processing method, device and computer equipment
CN109142279A (en) * 2018-06-29 2019-01-04 努比亚技术有限公司 A kind of spectral method of detection, mobile terminal and computer readable storage medium
US20190188595A1 (en) * 2017-12-20 2019-06-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Preloading Application, Storage Medium, and Terminal Device
CN110019271A (en) * 2017-12-21 2019-07-16 中国移动通信集团重庆有限公司 Data consistency detection, device, equipment and computer storage medium
CN110263827A (en) * 2019-05-31 2019-09-20 中国工商银行股份有限公司 Abnormal transaction detection method and device based on transaction rule identification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897397A (en) * 2017-02-06 2017-06-27 广东欧珀移动通信有限公司 Associated with processing method, device and computer equipment
US20190188595A1 (en) * 2017-12-20 2019-06-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Preloading Application, Storage Medium, and Terminal Device
CN110019271A (en) * 2017-12-21 2019-07-16 中国移动通信集团重庆有限公司 Data consistency detection, device, equipment and computer storage medium
CN109142279A (en) * 2018-06-29 2019-01-04 努比亚技术有限公司 A kind of spectral method of detection, mobile terminal and computer readable storage medium
CN110263827A (en) * 2019-05-31 2019-09-20 中国工商银行股份有限公司 Abnormal transaction detection method and device based on transaction rule identification

Also Published As

Publication number Publication date
CN112667868A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN108959000B (en) Server pressure testing method, system and terminal
CN107094294B (en) Network connection method and device
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN106708676B (en) Interface test method and device
CN104852885B (en) Method, device and system for verifying verification code
CN111078556B (en) Application testing method and device
CN106603740B (en) It is connected to the network abnormal processing method and terminal device
CN112749074B (en) Test case recommending method and device
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN111359210B (en) Data processing method and device, electronic equipment and storage medium
CN112667868B (en) Data detection method and device
CN116303085A (en) Test reason analysis method, device, equipment and storage medium
CN115981798A (en) File analysis method and device, computer equipment and readable storage medium
CN108234275B (en) Method and device for releasing communication information
CN109799994B (en) Terminal component generation method and device
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN114518718A (en) Device control method, device, storage medium and electronic device
CN114095585B (en) Data transmission method, device, storage medium and electronic equipment
CN114189436B (en) Multi-cluster configuration deployment method and device, electronic equipment and storage medium
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN111405649B (en) Information transmission method and device and mobile terminal
CN114064447B (en) Interface testing method and device, storage medium and terminal
CN107066116B (en) Character string generation method, character analysis method and device
CN106020617B (en) Display method and device
CN116069382A (en) Transaction device configuration method, device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40042944

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant