CN112667868A - Data detection method and device - Google Patents

Data detection method and device Download PDF

Info

Publication number
CN112667868A
CN112667868A CN201910979042.7A CN201910979042A CN112667868A CN 112667868 A CN112667868 A CN 112667868A CN 201910979042 A CN201910979042 A CN 201910979042A CN 112667868 A CN112667868 A CN 112667868A
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.)
Granted
Application number
CN201910979042.7A
Other languages
Chinese (zh)
Other versions
CN112667868B (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

Images

Abstract

The embodiment of the invention discloses a data detection method and a device, wherein the data detection method comprises the following steps: the method comprises the steps of 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 incidence relation between each data group, constructing and displaying a data path diagram of the data to be detected according to the execution states and the incidence relations between the data groups, 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 science and technology, the architecture of a business system is more and more complex, and various problems may exist in the process of executing a business, so that a test case is usually adopted to test the business system.
However, because the number of calling levels of the service system is large, when an error occurs in the test process, it takes much time to locate the abnormal problem according to the calling relationship between the levels, and the test case takes much time, thereby resulting in low test efficiency.
Disclosure of Invention
The embodiment of the invention provides a data detection method and device, which can improve the data testing efficiency.
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 execution state corresponding to each data group and the incidence relation between the data groups;
constructing and displaying a data path diagram of the data to be detected according to a plurality of execution states and the incidence relation between each data group;
and detecting the data to be detected based on the data path diagram.
Correspondingly, an embodiment of the present invention further provides a data detection apparatus, including:
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 incidence relation between the data groups;
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 incidence 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:
the first construction unit is used for constructing a path diagram of a plurality of data groups based on the incidence relation between each data group;
the marking unit is used for marking the data group corresponding to each execution state according to the execution states to obtain a plurality of marked data groups;
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:
the determining subunit is used for determining the label information corresponding to the execution state;
and the labeling subunit is used for labeling the data group corresponding to the execution state based on the label information corresponding to the execution state to obtain a plurality of labeled data groups.
Optionally, in some embodiments of the present invention, the labeling subunit is specifically configured to:
extracting a color corresponding to the label information;
and according to the extracted color, painting the data group corresponding to the execution state to obtain a plurality of marked data groups.
Optionally, in some embodiments of the present invention, the system further includes a second building module, where the second building module is specifically configured to:
setting label information;
constructing a mapping relation between an execution state and the label information;
the determining subunit is specifically configured to: and determining 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 function 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 a plurality of request data packets and a response data packet corresponding to each request data packet;
and adding the execution state to a data group 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 data path diagram by the user.
Optionally, in some embodiments of the present invention, the detection module includes:
the data path graph processing device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target data group in a data path graph corresponding to a selection operation when the selection operation of a user for the data path graph is detected;
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.
After data to be detected are obtained, the data to be detected are 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 between each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the execution states and the association relations between each data group, and finally the data to be detected are 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 in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
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 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 provided in 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 provided in the embodiment of the present invention;
fig. 2d is a schematic diagram of viewing node information in the data detection method provided in the embodiment of the present invention;
fig. 2e is a schematic diagram of viewing a data packet in the data detection method provided in the embodiment of the present invention;
fig. 3a is a schematic structural diagram of a first implementation of a data detection apparatus according to an embodiment of the present invention;
fig. 3b is a schematic structural diagram of a second implementation of the data detection apparatus according to the 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a data detection method and device.
The data processing apparatus may be specifically 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), and the server may include an independently operating server or a distributed server, or may include a server cluster including a plurality of servers.
Taking the data processing device integrated in the terminal as an example, when data needs to be detected, the data can be preprocessed, for example, the data can be tested through a test case to obtain tested data, that is, the 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 the execution corresponding to each data group and the association relationship between each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the association relationships between the plurality of execution turntables and each data group, and finally the data to be detected is detected based on the data path diagram, for example, the data group with errors can be displayed on the data path diagram through a highlighted color, so that operation and maintenance personnel can conveniently detect the data.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
A method of data detection, comprising: the method comprises the steps of 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 incidence relation between each data group, constructing and displaying a data path diagram of the data to be detected according to the execution states and the incidence 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 schematic flow chart of a data detection method according to an embodiment of the present 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 is understood that the local data may be data stored in a database in advance, and the network data may be data pulled through accessing a 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 the service characteristics that the data to be detected needs to implement, that is, the data to be detected may be divided into a plurality of micro service modules, each micro service module has a different function, and each micro service module has a single function.
The method is characterized in that an original independent system is divided into a plurality of micro service modules, the micro service modules run in respective independent processes, and in the embodiment, each data group can be considered to be one micro service module.
Further, the data to be detected may include a plurality of data packets, for example, the data to be detected 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 "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) Adding the execution state 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 can be grouped according to the 5 functional data packets to obtain 5 data groups, wherein, the functions responsible for each data group are different, in addition, the signal flow relation between each data group can be determined according to the request data packet and the response data packet in the data to be detected, further determining the association relationship between each data group, and determining the corresponding execution state of each data group according to the request data packet and the response data packet, 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, etc., and finally, the execution state may be added to the data group corresponding to the execution state, as the case may be.
103. And extracting the corresponding execution state of each data group and the association relation between each data group.
For example, after the data to be detected is grouped based on the preset rule, the data group a, the data group B and the data group C are obtained, the execution states corresponding to the data group a, the data group B and the data group C and the association relationship between the data groups are respectively extracted, the execution state of the data group a is the processed state, the execution state of the data group B is the output data error state, the execution state of the data group C is the received data error state can be extracted, and the association relationship between the three data groups can 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 incidence relation among each data group.
For example, the method may determine a signal transmission path between each data group according to the association relationship between each data group, then construct a path diagram of a plurality of data groups based on the signal transmission path, and add each execution state to the data group corresponding to the execution state in the form of a tag, so as to obtain the data path diagram of the data to be detected, that is, in some embodiments, the step "construct and display 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 a path graph of a plurality of data groups based on the association relationship between each data group.
(22) According to the multiple execution states, marking the data group corresponding to each execution state to obtain multiple marked data groups;
(23) and constructing a data path diagram of the data to be detected according to the plurality of labeled data groups and the path diagram.
After the path diagrams of a plurality of data sets are constructed, the extracted execution states are labeled on the corresponding data sets, for example, when the execution state of a certain data set is a data receiving error state, an icon of the data set may be labeled with "exception", and of course, the data sets may also be labeled in another manner, that is, in some embodiments, the step "labeling the data set corresponding to each execution state according to a plurality of execution states to obtain a plurality of labeled data sets" may specifically include:
(31) and determining label information corresponding to the execution state.
(32) And labeling the data group corresponding to the execution state based on the label information corresponding to the execution state to obtain a plurality of labeled data groups.
For example, the data group corresponding to the execution state may be labeled through the tag information corresponding to the execution state, or a color corresponding to the tag information may be determined through the tag information corresponding to the execution state, then, the color corresponding to the tag information is extracted, and then, the data group corresponding to the execution state is colored according to the extracted color, that is, in some embodiments, the step "labeling the data group corresponding to the execution state based on the tag information corresponding to the execution state to obtain a plurality of labeled data groups" may specifically include:
(41) and extracting the color corresponding to the label information.
(42) And painting the data set corresponding to the execution state according to the extracted color to obtain a plurality of marked data sets.
It should be noted that, the color in the tag information is preset, for example, the "abnormal" execution state may be associated with the tag information of "red", that is, in some embodiments, the method may further include:
(51) tag information is set.
(52) And constructing a mapping relation between the execution state and the label information.
That is, in some embodiments, the tag information corresponding to the execution state may be determined based on the mapping relationship.
105. And detecting the data to be detected based on the data path diagram.
In this embodiment, the service flow is displayed through the visualized data path diagram, so that the data to be detected can be detected through the data path diagram, which is convenient for service problem inspection and daily operation and maintenance.
Specifically, when a data detection operation of the user for the data path is detected, a detection result corresponding to the detected data operation may be displayed according to the data detection operation of the user for the data path, for example, a data group with an error report is displayed on the data path diagram, and parameter information of the data group with the error report may be displayed.
In addition, it should be noted that, when a plurality of data sets with errors are displayed on the data path diagram, parameter information of the corresponding data sets may be displayed based on a selection of a user, that is, in some embodiments, the step "displaying a detection result corresponding to a data detection operation according to the data detection operation of the user on the data path" may specifically include:
(61) when a selection operation of a user for 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 group is detected, displaying the parameter information of the target data group.
When three data sets with error reports are displayed on the data path diagram, corresponding target data sets can be determined according to selection operations of a user, and when a click operation aiming at the target data sets is detected, parameter information of the target data sets 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 are obtained, the data to be detected are 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 between each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the execution states and the association relations between each data group, and finally the data to be detected are 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 multiple execution states and the incidence relation between each data group, the user can detect the data to be detected based on the data path diagram, when the calling hierarchy in the service has more stages, the request, response time and calling path in the service can be displayed, and when the data detection operation of the user aiming at 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 testing efficiency can be improved.
The method according to the examples is further described in detail below by way of example.
In the present embodiment, the data detection apparatus is specifically integrated in a terminal as an example.
Referring to fig. 2a, a specific process of a data detection method may be as follows:
201. and the terminal acquires the data to be detected.
The data to be detected may be one service data or data composed of a plurality of service data, and when the data to be detected is the service data, the terminal may process the service data 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 terminal may use the tested service data as the data to be detected.
202. And 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 to obtain micro service modules such as an access agent module, a user information search access module, a cache module, a social payment module, and a payment public logic module, as shown in fig. 2b, that is, the terminal groups the data to be detected based on a preset rule to obtain a plurality of data groups.
203. And the terminal extracts the execution state corresponding to 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 multiple execution states and the incidence relation among the data groups.
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 unpacking is successful and response is not abnormal, unpacking is successful and response is abnormal, unpacking is failed, no error code can be found after unpacking, a base container is not accessed, and the like, the terminal represents the micro service modules in different states through different colors, and constructs a data path diagram of the data to be detected according to an association relationship between the micro service modules, and may display the data path diagram 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 staff, 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, system parameters generally include common information of each module, similar to headers of a hypertext transfer protocol, and generally include service command words, account information, quality of service information, authentication information, and model modulation information; the business parameters are module full-time information, and generally provide functional characteristics for the module service, such as an order reading module, an order number, an amount, an 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 aiming at 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 stops at a certain micro service module through the mouse, the node information of the micro service module can be viewed, as shown in fig. 2 d; when the terminal detects a click operation of a user on a certain micro service module, the terminal may display a corresponding data packet, for example, at this time, the user may check a request data packet and a response data packet corresponding to the micro service module, as shown in fig. 2e, and then, the user may determine whether the micro service module is successfully invoked by using a result in the response data packet, for example, when a result of the response data packet is "-202", at this time, it may be determined that the IP of the faulty machine is "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 msec".
As can be seen from the above, after the terminal of this embodiment acquires 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, the terminal 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, the terminal displays the detection result corresponding to the data operation 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 provided by 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 calling hierarchy level in the service is more, the request, response time and calling path in the service can be displayed, and when the terminal detects the data detection operation of the user aiming at the target data in the data path diagram, the terminal can display the detection result corresponding to the data detection operation, so that the data testing efficiency can be improved.
In order to better implement the data detection method according to the embodiment of the present invention, an embodiment of the present invention further provides a data detection apparatus (referred to as a detection apparatus for short) based on the data detection method. The terms are the same as those in the above data detection method, and details of implementation can be referred to the description in the method embodiment.
Referring to fig. 3a, fig. 3a is a schematic structural diagram of a data detection apparatus according to an embodiment of the present invention, wherein the processing apparatus may include an obtaining module 301, a grouping module 302, an extracting module 303, a first constructing module 304, and a detecting module 305, which may specifically be as follows:
the acquiring module 301 is 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 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 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 the service characteristics that the data to be detected needs to implement, that is, the data to be detected may be divided into a plurality of micro service modules, each micro service module has a different function, and each micro service module has a single function.
Optionally, in some embodiments of the present invention, the data to be detected may include a plurality of function 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 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 a response data packet corresponding to each request data packet, and adding the execution state to the data group corresponding to the execution state.
The extracting module 303 is configured to extract an execution state corresponding to each data group and an association relationship between each data group.
The first building module 304 is configured to build and display a data path diagram of the data to be detected according to the multiple execution states and the association relationship between each data group.
For example, the first building module 304 may determine a signal transmission path between each data group according to the association relationship between each data group, then build a path diagram of a plurality of data groups based on the signal transmission path, and 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 the data to be detected.
Optionally, in some embodiments of the present invention, the first building module 304 may specifically include:
the first construction unit is used for constructing a path diagram of a plurality of data groups based on the incidence relation between each data group;
the marking unit is used for marking the data group corresponding to each execution state according to the execution states to obtain a plurality of marked data groups;
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:
the determining subunit is used for determining the label information corresponding to the execution state;
and the labeling subunit is used for labeling the data group corresponding to the execution state based on the label information corresponding to the execution state to obtain a plurality of labeled data groups.
Optionally, in some embodiments of the present invention, the labeling subunit may be specifically configured to: and extracting the color corresponding to the label information, and painting the data group corresponding to the execution state according to the extracted color to obtain a plurality of labeled data groups.
Optionally, in some embodiments of the present invention, referring to fig. 3b, the detection apparatus of the present invention may further include a second building module 306, where the second building module 306 may specifically be configured to: setting label information and constructing a mapping relation between the execution state and the label information. Determining the sub-unit to be specifically configured to: based on the mapping relationship constructed by the second construction module 306, the tag information corresponding to the execution state is determined.
A detecting module 305, configured to detect data to be detected based on the data path diagram.
In this embodiment, the service flow is shown by a visualized data path diagram, so that the detection module 305 can detect the data to be detected by the data path diagram, which is convenient for service problem inspection and daily operation maintenance.
Optionally, in some embodiments of the present invention, the detection module 305 may specifically be configured to: and displaying a detection result corresponding to the data detection operation according to the data detection operation of the user on the data path diagram.
Optionally, in some embodiments of the present invention, the detecting module 305 may specifically include:
a determining unit, configured to determine, when a selection operation of 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 the clicking operation of the user on the target data group is detected.
As can be seen, after the obtaining module 301 of the data detection apparatus of this embodiment obtains data to be detected, the grouping module 302 groups the data to be detected based on a preset rule to obtain a plurality of data sets, then extracts an execution state corresponding to each data set and an association relationship between each data set of the module 303, then the first constructing module 304 constructs and displays 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, 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 multiple execution states and the incidence relation between each data group, the user can detect the data to be detected based on the data path diagram, when the calling hierarchy in the service has more stages, the request, response time and calling path in the service can be displayed, and when the data detection operation of the user aiming at 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 testing efficiency can be improved.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 4, the terminal may include Radio Frequency (RF) circuits 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) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the 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) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the 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 the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the 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 by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. 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, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, 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 the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the 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 source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
the method comprises the steps of 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 execution states and the association relations between the data groups, and detecting the data to be detected based on the data path diagram.
After data to be detected are obtained, the data to be detected are 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 between each data group are extracted, then a data path diagram of the data to be detected is constructed and displayed according to the execution states and the association relations between each data group, and finally the data to be detected are 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 multiple execution states and the incidence relation between each data group, the user can detect the data to be detected based on the data path diagram, when the calling hierarchy in the service has more stages, the request, response time and calling path in the service can be displayed, and when the data detection operation of the user aiming at 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 testing efficiency can be improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the data detection methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
the method comprises the steps of 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 execution states and the association relations between the data groups, and detecting the data to be detected based on the data path diagram.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any data detection method provided in the embodiment of the present invention, the beneficial effects that can be achieved by any data detection method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The data detection method, the data detection device, the data detection terminal and the storage medium provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for data detection, 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 execution state corresponding to each data group and the incidence relation between the data groups;
constructing and displaying a data path diagram of the data to be detected according to a plurality of execution states and the incidence relation between each data group;
and detecting the data to be detected based on the data path diagram.
2. The method according to claim 1, wherein the 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 comprises:
constructing a path graph of a plurality of data groups based on the incidence relation between each data group;
according to the multiple execution states, marking the data group corresponding to each execution state to obtain multiple marked data groups;
and constructing a data path diagram of the data to be detected according to the plurality of marked data groups and the path diagram.
3. The method of claim 2, wherein the labeling the data set corresponding to each execution state according to the plurality of execution states to obtain a plurality of labeled data sets comprises:
determining label information corresponding to the execution state;
and labeling the data group corresponding to the execution state based on the label information corresponding to the execution state to obtain a plurality of labeled data groups.
4. The method according to claim 3, wherein the labeling the data group corresponding to the execution state based on the tag information corresponding to the execution state to obtain a plurality of labeled data groups comprises:
extracting a color corresponding to the label information;
and painting the data group corresponding to the execution state according to the extracted color to obtain a plurality of marked data groups.
5. The method of claim 3, further comprising:
setting label information;
constructing a mapping relation between an execution state and the label information;
the determining the tag information corresponding to the execution state includes: and determining 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, and the grouping of the data to be detected based on the 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 a plurality of request data packets and a response data packet corresponding to each request data packet;
and adding the execution state to a data group 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 data path diagram by the user.
8. The method according to claim 7, wherein the displaying, according to a data detection operation of the data path diagram by a user, a detection result corresponding to the detection data operation comprises:
when the selection operation of a user for the data path diagram is detected, 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 group is detected, displaying the parameter information of the target data group.
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 incidence relation between the data groups;
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 incidence relation between each data group;
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 building module comprises:
the first construction unit is used for constructing a path diagram of a plurality of data groups based on the incidence relation between each data group;
the marking unit is used for marking the data group corresponding to each execution state according to the execution states to obtain a plurality of marked data groups;
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.
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 true CN112667868A (en) 2021-04-16
CN112667868B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN112667868B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN108959000B (en) Server pressure testing method, system and terminal
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN104852885B (en) Method, device and system for verifying verification code
CN106708676B (en) Interface test method and device
CN108039963B (en) Container configuration method and device and storage medium
US10652287B2 (en) Method, device, and system for managing information recommendation
CN111078556B (en) Application testing method and device
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN112749074B (en) Test case recommending method and device
CN111359210B (en) Data processing method and device, electronic equipment and storage medium
WO2016019695A1 (en) Voice interaction method and terminal
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN112667868B (en) Data detection method and device
CN108234275B (en) Method and device for releasing communication information
CN106201220B (en) Display content acquisition method and device
CN109799994B (en) Terminal component generation method and 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
CN107066116B (en) Character string generation method, character analysis method and device
CN115080411A (en) Interface test case generation method and device, electronic equipment and storage medium
CN106020617B (en) Display method and device
CN115878457A (en) Test data verification method and device, electronic equipment and storage medium
CN117806942A (en) Interface element processing method and device and storage medium
CN113568602A (en) Task management method and device, storage medium and electronic equipment
CN115756293A (en) Equipment control method, device, system 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