Data processing method and device, electronic equipment and computer readable medium

By performing playback logic and comparing data in software testing and determining the noise field, the problem of dynamically changing noise affecting the problem of discovery efficiency and accuracy is solved, and the accuracy and efficiency of noise processing are improved.

CN119088666APending Publication Date: 2024-12-06BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310661694.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, when processing traffic data of software systems, dynamically changing noise fields lead to an increase in the number of differences found, affecting the efficiency and accuracy of problem discovery.

Method used

By responding to the start of the playback task, the traffic data and interface identification to be tested are obtained, the playback logic of the preset number of times is executed, the execution result data and traffic data are compared, the noise field is determined, and the accuracy and efficiency of noise processing are improved.

Benefits of technology

It effectively improves the accuracy and efficiency of determining noise in traffic data, and reduces the possibility that real problems are masked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088666A_ABST
    Figure CN119088666A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, electronic equipment and a computer readable medium, and relates to the technical field of software tests.The specific implementation mode comprises the steps that in response to playback task starting, corresponding flow data and a to-be-tested interface identifier are obtained; based on the flow data and the to-be-tested interface identifier, executing playback logic of a preset number of times to obtain execution result data corresponding to the preset number of times; comparing the execution result data corresponding to a preset number of times to obtain a first difference field set; comparing the execution result data with the flow data to obtain a second difference field set; a noise field is determined based on the first set of difference fields and the second set of difference fields. Therefore, the accuracy and the efficiency of determining the noise in the flow data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software testing technology, and in particular to a data processing method, device, electronic device and computer-readable medium. Background Art

[0002] At present, with the development of business, software systems are becoming more and more huge, and business logic is only increasing, resulting in more and more interfaces and parameters. Each system regression verification is a huge challenge for the personnel responsible for testing. Random numbers, timestamps, Internet Protocol Address (IP) and other dynamically changing fields are often used in programs. The changes in these fields do not affect the accuracy of business logic, and it is normal to have differences, which is called "noise". Dynamically changing noise fields will lead to an increase in the number of differences found, which makes it difficult to find the real problem, resulting in low efficiency and accuracy in noise processing. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a data processing method, device, electronic device and computer-readable medium, which can solve the problem that the dynamically changing noise fields in the existing traffic data will lead to an increase in the number of differences found, which makes the real problem difficult to be found, thereby resulting in low efficiency and accuracy of noise processing.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present application, a data processing method is provided, including:

[0005] In response to the playback task being started, obtaining corresponding traffic data and an identifier of the interface to be tested;

[0006] Based on the traffic data and the interface identifier to be tested, the playback logic is executed for a preset number of times to obtain execution result data corresponding to the preset number of times;

[0007] Comparing the execution result data corresponding to the preset number of times to obtain a first difference field set;

[0008] Comparing the execution result data with the traffic data to obtain a second difference field set;

[0009] Based on the first set of difference fields and the second set of difference fields, a noise field is determined.

[0010] Optionally, comparing the execution result data corresponding to a preset number of times to obtain a first difference field set includes:

[0011] The intersection of each execution result data corresponding to the preset number of times is taken, and the intersection is determined as the first difference field set.

[0012] Optionally, the execution result data and the traffic data are compared to obtain a second difference field set, including:

[0013] The execution result data corresponding to the first playback logic and the traffic data are intersected, and the intersection is determined as the second difference field set.

[0014] Optionally, the execution result data corresponding to the first playback logic and the traffic data are intersected, including:

[0015] Dividing the flow data based on the interface identifier to be tested to obtain divided flow data;

[0016] A preset number of traffic data pieces are extracted from the divided traffic data to take an intersection with the execution result data corresponding to the first playback logic.

[0017] Optionally, executing the playback logic for a preset number of times includes:

[0018] Determine playback traffic data based on the divided traffic data and a preset number of traffic data pieces;

[0019] Execute the replay logic a preset number of times based on the replay traffic data.

[0020] Optionally, determine playback traffic data, including:

[0021] The flow data other than a preset number of flow data pieces in the divided flow data are determined as playback flow data.

[0022] Optionally, determining the noise field based on the first difference field set and the second difference field set includes:

[0023] The first difference field set and the second difference field set are intersected, and a field corresponding to the intersection is determined as a noise field.

[0024] In addition, the present application also provides a data processing device, including:

[0025] An acquisition unit, configured to acquire corresponding traffic data and an identification of an interface to be tested in response to the start of a playback task;

[0026] An execution unit is configured to execute the playback logic for a preset number of times based on the traffic data and the interface identifier to be tested, so as to obtain execution result data corresponding to the preset number of times;

[0027] A first comparison unit is configured to compare the execution result data corresponding to a preset number of times to obtain a first difference field set;

[0028] a second comparing unit, configured to compare the execution result data and the traffic data to obtain a second difference field set;

[0029] The noise field determination unit is configured to determine the noise field based on the first difference field set and the second difference field set.

[0030] Optionally, the first comparison unit is further configured to:

[0031] The intersection of each execution result data corresponding to the preset number of times is taken, and the intersection is determined as the first difference field set.

[0032] Optionally, the second comparison unit is further configured to:

[0033] The execution result data corresponding to the first playback logic and the traffic data are intersected, and the intersection is determined as the second difference field set.

[0034] Optionally, the second comparison unit is further configured to:

[0035] Dividing the flow data based on the interface identifier to be tested to obtain divided flow data;

[0036] A preset number of traffic data pieces are extracted from the divided traffic data to take an intersection with the execution result data corresponding to the first playback logic.

[0037] Optionally, the execution unit is further configured to:

[0038] Determine playback traffic data based on the divided traffic data and a preset number of traffic data pieces;

[0039] Execute the replay logic a preset number of times based on the replay traffic data.

[0040] Optionally, the execution unit is further configured to:

[0041] The flow data other than a preset number of flow data pieces in the divided flow data are determined as playback flow data.

[0042] Optionally, the noise field determination unit is further configured to:

[0043] The first difference field set and the second difference field set are intersected, and a field corresponding to the intersection is determined as a noise field.

[0044] In addition, the present application also provides a data processing electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the data processing method as described above.

[0045] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the data processing method as described above is implemented.

[0046] An embodiment of the above invention has the following advantages or beneficial effects: the application obtains the corresponding flow data and the interface identifier to be tested in response to the start of the playback task; based on the flow data and the interface identifier to be tested, executes the playback logic for a preset number of times to obtain the execution result data corresponding to the preset number of times; compares the execution result data corresponding to the preset number of times to obtain a first difference field set; compares the execution result data with the flow data to obtain a second difference field set; and determines the noise field based on the first difference field set and the second difference field set. Thus, the accuracy and efficiency of determining the noise in the flow data are improved.

[0047] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application.

[0049] Figure 1 It is a schematic diagram of the main process of a data processing method provided according to an embodiment of the present application;

[0050] Figure 2 It is a schematic diagram of the main process of a data processing method provided according to an embodiment of the present application;

[0051] Figure 3 is a schematic diagram of the noise reduction principle of a data processing method provided according to an embodiment of the present application;

[0052] Figure 4 is a flowchart of a data processing method provided according to an embodiment of the present application;

[0053] Figure 5 is a schematic diagram of main units of a data processing device according to an embodiment of the present application;

[0054] Figure 6 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;

[0055] Figure 7 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0056] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0057] Figure 1 is a schematic diagram of the main flow of a data processing method provided according to an embodiment of the present application, such as Figure 1 As shown, the data processing method includes:

[0058] Step S101, in response to the start of the playback task, obtaining corresponding traffic data and the identification of the interface to be tested.

[0059] In this embodiment, the execution subject of the data processing method (for example, it can be a server) can detect whether the playback task is started by means of a wired connection or a wireless connection. When the execution subject detects that the playback task is started, the corresponding traffic data and the interface identifier to be tested can be obtained. Specifically, the embodiment of the present application can be applied to the recording and playback scenario. The interface identifier to be tested, for example, can be the number or name corresponding to each interface to be tested for traffic data transmission in the software system to be tested. The embodiment of the present application does not specifically limit the form of expression of the interface identifier to be tested.

[0060] Step S102, based on the traffic data and the interface identifier to be tested, execute the playback logic for a preset number of times to obtain execution result data corresponding to the preset number of times.

[0061] The flow data is replayed to the interface corresponding to the interface identifier to be tested for a preset number of times (eg, 2 times), and the execution result data of each time (eg, R1, R2) is recorded respectively.

[0062] Step S103: compare the execution result data corresponding to the preset number of times to obtain a first difference field set.

[0063] In the embodiment of the present application, DIFF is the abbreviation of difference in English, and the program logic is verified by comparing whether there are differences, and this is done by recording and playback.

[0064] For example, the execution result data of each time is compared, for example, R1 and R2 are compared, to obtain a difference field set of R1 and R2, such as DIFF (R1, R2), that is, a first difference field set.

[0065] Step S104: compare the execution result data and the traffic data to obtain a second difference field set.

[0066] For example, the execution result data R1 corresponding to the first playback is compared with the initially acquired traffic data (for example, a subset Tn' of the initially acquired traffic data) to obtain a second difference field set, such as DIFF (Tn', R1).

[0067] Step S105: determine a noise field based on the first difference field set and the second difference field set.

[0068] For example, the intersection of the first difference field set and the second difference field set, that is, the intersection of DIFF(R1, R2) and DIFF(Tn', R1), can be taken to obtain the noise field of the traffic data and output it in a preset manner. The preset manner can be through email, SMS, or instant software push, and the present embodiment of the application does not specifically limit the preset manner.

[0069] In this embodiment, in response to the start of the playback task, the corresponding flow data and the interface identifier to be tested are obtained; based on the flow data and the interface identifier to be tested, the playback logic is executed for a preset number of times to obtain the execution result data corresponding to the preset number of times; the execution result data corresponding to the preset number of times is compared to obtain a first difference field set; the execution result data is compared with the flow data to obtain a second difference field set; and the noise field is determined based on the first difference field set and the second difference field set. Thus, the accuracy and efficiency of determining the noise in the flow data are improved.

[0070] Figure 2 is a schematic diagram of the main flow of a data processing method provided according to an embodiment of the present application, such as Figure 2 As shown, the data processing method includes:

[0071] Step S201, in response to the start of the playback task, obtain corresponding traffic data and the identification of the interface to be tested.

[0072] Step S202, based on the traffic data and the interface identifier to be tested, execute the playback logic for a preset number of times to obtain execution result data corresponding to the preset number of times.

[0073] In the embodiment of the present application, UUID is a randomly generated random number. The execution result data may include user PIN, order ID, price, timestamp, randomly generated UUID and other data. The embodiment of the present application does not specifically limit the execution result data.

[0074] Step S203: taking the intersection of each execution result data corresponding to the preset number of times, and determining the intersection as the first difference field set.

[0075] For example, when the preset number of times is 2 times, the user PIN, order ID, price, timestamp, and randomly generated UUID in the execution result data obtained by the 2 playbacks are compared respectively to obtain a first difference field set. For example, the first difference field set may include a timestamp and a randomly generated UUID data, for example, it may be: DIFF(R1, R2) = (timestamp, UUID). Among them, R1 and R2 are the execution result data of the first playback and the execution result data of the second playback, respectively. Among them, timestamp is a timestamp, and UUID is a randomly generated random number.

[0076] Step S204: Take the intersection of the execution result data corresponding to the first playback logic and the traffic data, and determine the intersection as the second difference field set.

[0077] The execution result data corresponding to the first playback logic, for example, R1, is intersected with the traffic data Tn' to obtain a second difference field set. For example, the second difference field set may be: DIFF(Tn', R1) = (timestamp, UUID, price).

[0078] Specifically, the execution result data corresponding to the first playback logic is intersected with the traffic data, including: dividing the traffic data based on the interface identifier to be tested to obtain divided traffic data; extracting a preset number of traffic data (for example, Tn') from the divided traffic data to intersect with the execution result data corresponding to the first playback logic.

[0079] For example, after the application under test in the test environment loads all recorded traffic, the traffic is divided into T1, T2, ..., Tn according to the interface under test. From the divided traffic, 1-3 traffics (for example, Tn') are randomly selected for noise identification, and the intersection is taken with the execution result data corresponding to the first playback logic.

[0080] Specifically, executing the playback logic for a preset number of times includes: determining playback traffic data based on the divided traffic data and a preset number of traffic data pieces; and executing the playback logic for a preset number of times based on the playback traffic data.

[0081] Specifically, determining the playback traffic data includes: determining the traffic data except for a preset number of traffic data pieces in the divided traffic data as the playback traffic data.

[0082] Traffic selected as noise identification (for example, Tn') does not participate in the playback test to avoid playback errors caused by the idempotent design of the interface.

[0083] The flow data other than the flow data identified as noise selected from the flow data is determined as playback flow data. The playback logic processing is performed a preset number of times (for example, 2 times) on the determined playback flow data.

[0084] Step S205: Take the intersection of the first difference field set and the second difference field set, and determine the field corresponding to the intersection as a noise field.

[0085] In an embodiment of the present application, after the application to be tested in the test environment has loaded all the recorded traffic, the traffic is divided into T1, T2, ..., Tn according to the interface to be tested; from the divided traffic, 1-3 traffics are randomly selected for noise identification (Tn'). The traffic selected for noise identification does not participate in the playback test to avoid playback errors due to the idempotence design of the interface; the selected traffic (Tn') is replayed to the corresponding interface twice, and the first and second execution results R1 and R2 are recorded respectively; the difference between R1 and R2 is compared to obtain a first difference field set DIFF(R1, R2), for example, DIFF(R1, R2) = (timestamp, UUID); the difference between R1 and the recorded traffic is compared to obtain a second difference field set DIFF(Tn' , R1), for example, DIFF(Tn', R1) = (timestamp, UUID, price); take the intersection of the second difference field DIFF(Tn', R1) and the first difference field DIFF(R1, R2), and get the noise field set Tn'(N) of (Tn'). Since Tn' is a subset of Tn, Tn'(N) is equivalent to Tn(N); start replaying the traffic Tn, and compare the playback result of each traffic with the recorded traffic to get the difference field set DIFF(Tn, R). Take the difference set with the noise field set Tn(N) composed of the noise field to get the difference field after removing the noise.

[0086] For example, assume that an interface parameter has the following definition:

[0087]

[0088] In OrderParam, pin and orderId should theoretically remain unchanged; price should not change if the business logic is correct; timestamp is the timestamp, and the current system time is used each time the interface is executed; the uuid field is randomly generated each time the interface is called.

[0089] Therefore, when replaying the interface, assuming that the business logic is correct, the pin, orderId, and price fields will not change, but the timestamp and uuid fields will definitely change. However, this change has no effect on verifying whether the business logic is correct, so we need to find a way to remove it.

[0090] Assume that in a certain recording request, the interface parameter is, for example, Tn'.

[0091] In the noise identification stage, the request is replayed twice to obtain new parameters R1 and R2 of the interface.

[0092] Comparing the difference between the two playback results R1 and R2, we can get:

[0093] DIFF(R1,R2)=(timestamp,UUID).

[0094] Comparing the difference between R1 and the recorded data Tn', we can get:

[0095] DIFF(Tn', R1)=(timestamp, UUID, price).

[0096] The calculated value of the price field is inconsistent with the recorded value due to changes in business logic. The timestamp and UUID are noise, and their values ​​are inconsistent in the three copies of data. By taking the intersection of these two results, we can get the noise set:

[0097] DIFF(Tn', R1)∩DIFF(R1, R2)=(timestamp, UUID)

[0098] The obtained interface noise set is recorded, and the noise field is automatically ignored in the subsequent difference comparison, so that a more accurate difference report can be obtained. Multiple noise identification actions can be performed by increasing the selected Tn' sample size to obtain a more comprehensive noise set.

[0099] In the embodiment of the present application, DIFF test: DIFF is the English word difference. DIFF test verifies the program logic by comparing whether there are differences, and is generally performed by recording and playback.

[0100] Figure 3 This is a schematic diagram of the noise removal principle of the data processing method provided according to an embodiment of the present application. Among them, A: the interface field of the recording record; B: the interface field returned by the first playback; C: the interface field returned by the second playback; D: the field where the first playback is different from the recording; E: the field where the second playback is different from the first playback; F: the noise field.

[0101] Figure 4 DIFF is an abbreviation of difference in English, and the program logic is verified by comparing whether there is a difference, and the recording and playback method is used. Figure 4 As shown, the execution subject responds to the start of the playback task, loads the traffic data, and determines whether it is an entry service, wherein the entry service can be a lightweight operation service, maintenance service, consulting and design service, etc., and the embodiment of the present application does not specifically limit the entry service. If it is determined that it is not an entry service, the playback process is started based on the traffic data, DIFF is calculated, and then based on the calculation result, it is determined whether there is a noise record. If not, it is reported to the management end and the playback task is stopped. If there is a noise record, the logical step of removing noise is executed, and the data after the noise is removed is reported to the management end, and the playback task is stopped. If it is an entry service, it continues to determine whether to run denoising. If the judgment result is to run denoising, it randomly selects traffic, calls and executes the denoising service, and records the noise, starts playback, calculates DIFF, removes noise when there is a noise record, and reports the traffic data after the noise is removed to the management end, and stops the playback task. If it is an entry service and denoising is not running, playback starts, calculates DIFF, and when the calculation result corresponds to the existence of a noise record, removes noise, and then reports the traffic data after the noise is removed to the management end, and stops the playback service.

[0102] Figure 5 Schematic diagram of the main units of the data processing device according to an embodiment of the present application. Figure 5 As shown, the data processing device 500 includes an acquisition unit 501 , an execution unit 502 , a first comparison unit 503 , a second comparison unit 504 and a noise field determination unit 505 .

[0103] The acquisition unit 501 is configured to acquire corresponding traffic data and an identifier of the interface to be tested in response to the start of the playback task.

[0104] The execution unit 502 is configured to execute the playback logic for a preset number of times based on the traffic data and the interface identifier to be tested, so as to obtain execution result data corresponding to the preset number of times.

[0105] The first comparison unit 503 is configured to compare the execution result data corresponding to a preset number of times to obtain a first difference field set.

[0106] The second comparing unit 504 is configured to compare the execution result data and the traffic data to obtain a second difference field set.

[0107] The noise field determining unit 505 is configured to determine the noise field based on the first difference field set and the second difference field set.

[0108] In some embodiments, the first comparison unit 503 is further configured to: take the intersection of each execution result data corresponding to a preset number of times, and determine the intersection as the first difference field set.

[0109] In some embodiments, the second comparison unit 504 is further configured to: take the intersection of the execution result data corresponding to the first playback logic and the traffic data, and determine the intersection as the second difference field set.

[0110] In some embodiments, the second comparison unit 504 is further configured to: divide the traffic data based on the interface identifier to be tested to obtain divided traffic data; extract a preset number of traffic data from the divided traffic data to intersect with the execution result data corresponding to the first playback logic.

[0111] In some embodiments, the execution unit 502 is further configured to: determine the playback traffic data based on the divided traffic data and a preset number of traffic data; and execute the playback logic a preset number of times based on the playback traffic data.

[0112] In some embodiments, the execution unit 502 is further configured to: determine the traffic data other than a preset number of traffic data pieces in the divided traffic data as playback traffic data.

[0113] In some embodiments, the noise field determination unit 505 is further configured to: take the intersection of the first difference field set and the second difference field set, and determine the field corresponding to the intersection as the noise field.

[0114] It should be noted that the data processing method and the data processing device of the present application have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.

[0115] Figure 6 An exemplary system architecture 600 to which the data processing method or data processing device according to the embodiment of the present application can be applied is shown.

[0116] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0117] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0118] The terminal devices 601 , 602 , and 603 may be various electronic devices having a data processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0119] Server 605 may be a server that provides various services, such as a background management server that provides support for playback tasks started by users using terminal devices 601, 602, and 603 (for example only). In response to the playback task being started, the background management server may obtain the corresponding traffic data and the interface identifier to be tested; based on the traffic data and the interface identifier to be tested, execute the playback logic for a preset number of times to obtain the execution result data corresponding to the preset number of times; compare the execution result data corresponding to the preset number of times to obtain a first difference field set; compare the execution result data with the traffic data to obtain a second difference field set; and determine the noise field based on the first difference field set and the second difference field set. This improves the accuracy and efficiency of determining the noise in the traffic data.

[0120] It should be noted that the data processing method provided in the embodiment of the present application is generally executed by the server 605 , and accordingly, the data processing device is generally set in the server 605 .

[0121] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0122] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present application. Figure 7 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0123] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0124] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0125] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present application are executed.

[0126] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0128] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, may be described as: a processor includes an acquisition unit, an execution unit, a first comparison unit, a second comparison unit, and a noise field determination unit. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0129] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device responds to the start of the playback task, obtains the corresponding traffic data and the interface identifier to be tested; based on the traffic data and the interface identifier to be tested, executes the playback logic for a preset number of times to obtain the execution result data corresponding to the preset number of times; compares the execution result data corresponding to the preset number of times to obtain a first difference field set; compares the execution result data and the traffic data to obtain a second difference field set; and determines the noise field based on the first difference field set and the second difference field set.

[0130] According to the technical solution of the embodiment of the present application, the accuracy and efficiency of determining the noise in the traffic data can be improved.

[0131] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A data processing method, characterized in that: include: In response to the playback task being started, obtaining corresponding traffic data and an identifier of the interface to be tested; Based on the traffic data and the interface identifier to be tested, executing the playback logic for a preset number of times to obtain execution result data corresponding to the preset number of times; Comparing the execution result data corresponding to the preset number of times to obtain a first difference field set; Comparing the execution result data with the traffic data to obtain a second difference field set; Based on the first difference field set and the second difference field set, a noise field is determined.

2. The method according to claim 1, characterized in that The comparing the execution result data corresponding to the preset number of times to obtain a first difference field set includes: The intersection of each execution result data corresponding to the preset number of times is taken, and the intersection is determined as the first difference field set.

3. The method according to claim 1, characterized in that: The comparing the execution result data and the traffic data to obtain a second difference field set includes: The execution result data corresponding to the first playback logic and the traffic data are intersected, and the intersection is determined as a second difference field set.

4. The method according to claim 3, characterized in that: The step of taking the intersection of the execution result data corresponding to the first playback logic and the traffic data includes: Dividing the flow data based on the interface identifier to be tested to obtain divided flow data; A preset number of traffic data pieces are extracted from the divided traffic data to take an intersection with the execution result data corresponding to the first playback logic.

5. The method according to claim 4, characterized in that The playback logic of executing a preset number of times includes: Determining playback traffic data based on the divided traffic data and the preset number of traffic data pieces; The playback logic is executed a preset number of times based on the playback traffic data.

6. The method according to claim 5, characterized in that The determining of playback traffic data includes: The flow data other than the preset number of flow data pieces in the divided flow data are determined as playback flow data.

7. The method according to claim 1, characterized in that The determining of the noise field based on the first difference field set and the second difference field set includes: An intersection is taken between the first difference field set and the second difference field set, and a field corresponding to the intersection is determined as a noise field.

8. A data processing device, characterized in that: include: An acquisition unit, configured to acquire corresponding traffic data and an identification of an interface to be tested in response to the start of a playback task; an execution unit, configured to execute the playback logic for a preset number of times based on the traffic data and the interface identifier to be tested, so as to obtain execution result data corresponding to the preset number of times; A first comparison unit is configured to compare the execution result data corresponding to the preset number of times to obtain a first difference field set; a second comparing unit, configured to compare the execution result data and the traffic data to obtain a second difference field set; The noise field determination unit is configured to determine a noise field based on the first difference field set and the second difference field set.

9. The device according to claim 8, characterized in that The first comparison unit is further configured to: The intersection of each execution result data corresponding to the preset number of times is taken, and the intersection is determined as the first difference field set.

10. The device according to claim 8, characterized in that The second comparison unit is further configured to: The execution result data corresponding to the first playback logic and the traffic data are intersected, and the intersection is determined as a second difference field set.

11. A data processing electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.