CN115484189A - Data compliance testing method and device, electronic equipment and storage medium - Google Patents

Data compliance testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115484189A
CN115484189A CN202211052763.1A CN202211052763A CN115484189A CN 115484189 A CN115484189 A CN 115484189A CN 202211052763 A CN202211052763 A CN 202211052763A CN 115484189 A CN115484189 A CN 115484189A
Authority
CN
China
Prior art keywords
data
compliance
information
channel information
channel
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.)
Pending
Application number
CN202211052763.1A
Other languages
Chinese (zh)
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.)
Future Tv Co ltd
Original Assignee
Future Tv 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 Future Tv Co ltd filed Critical Future Tv Co ltd
Priority to CN202211052763.1A priority Critical patent/CN115484189A/en
Publication of CN115484189A publication Critical patent/CN115484189A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a data compliance testing method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: sending a data acquisition message to the acquired equipment; receiving original behavior data and original channel data sent by an acquisition device; screening user behavior data from the original behavior data, and screening channel information from the original channel data; and determining whether the user behavior data and the channel information are in compliance according to the preset compliance behavior information and the preset compliance channel information, and obtaining and outputting a compliance test result. By testing according to the preset compliance behavior information and the preset compliance channel information and the screened user behavior data and channel information, the user behavior data and channel information can be quickly tested, the test result is obtained, and the test complexity is reduced.

Description

Data compliance testing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of testing, and in particular, to a data compliance testing method and apparatus, an electronic device, and a storage medium.
Background
In order to obtain more user behavior information, a common operation of a product developer is to bury points in actions generating user behaviors, so that the operation behaviors of users are recorded, the recorded user behaviors provide basic data for product analysts, the preference of the user behaviors is obtained through analysis of the basic data, in order to better attract the users, the product developer introduces multiple service sources, in order to provide correct user behavior basic data for the product analysts, a tester needs to test whether the user behavior bury points and the service sources of each application program are in compliance or not, and therefore the correctness of the basic data is guaranteed.
In the prior art, the user behavior embedded point and service source test is always a manual test, and the embedded point test is more and more frequent along with the iteration of application program versions and the change of functions.
The test problem can not be accurately found in the manual test process, the service source test data volume is large, errors are easy to occur in the manual test, and the test is complicated.
Disclosure of Invention
An object of the present application is to provide a method and an apparatus for testing data compliance, an electronic device and a storage medium, which improve the convenience of use.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a data compliance testing method, where the method includes:
sending a data acquisition message to an acquired device, wherein the data acquisition message is used for instructing the acquired device to acquire user behavior data and channel information on the acquired device, the user behavior data is generated by a buried point program deployed on the acquired device, and the channel information is used for instructing a service source of the acquired device;
receiving original behavior data and original channel data sent by the acquired equipment;
screening user behavior data from the original behavior data, and screening channel information from the original channel data;
and determining whether the user behavior data and the channel information are in compliance according to preset compliance behavior information and preset compliance channel information, and obtaining and outputting a compliance test result.
Optionally, the determining, according to preset compliance behavior information and preset compliance channel information, whether the user behavior data and the channel information are compliant, and obtaining and outputting a compliance test result includes:
traversing a behavior compliance information base, matching the user behavior data with a plurality of compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and extracting non-compliance data in the user behavior data when the user behavior data is not compliant;
matching the channel information with compliance channel information corresponding to the channel information in a channel compliance information base, determining whether the channel information is in compliance according to a matching result, and extracting non-compliance data in the channel information when the channel information is not in compliance;
outputting non-compliance data in the user behavior data and non-compliance data in the channel information.
Optionally, the traversing the behavior compliance information base, matching the user behavior data with the compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and outputting non-compliant data when the user behavior data is not compliant, where the method includes:
analyzing the user behavior data to obtain a behavior sequence corresponding to the user behavior data, wherein the behavior sequence comprises a plurality of behaviors;
and traversing a behavior compliance information base, if the behavior sequence is not matched with the currently traversed compliance behavior information, determining that the user behavior data is not compliant, and extracting the behavior data which is not matched with the currently traversed compliance behavior information in the behavior sequence as non-compliant data, otherwise, continuously traversing the next compliance behavior information until the traversal of the behavior compliance information base is finished.
Optionally, the matching the channel information with compliant channel information corresponding to the channel information in the channel compliance information base, determining whether the channel information is compliant according to a matching result, and extracting non-compliant data in the channel information when the channel information is not compliant includes:
determining target compliance channel information corresponding to the channel information according to the channel address of the channel information;
and if the service source in the channel information is not matched with the service source in the target compliance channel information, determining that the channel information is not compliant, and extracting the service source in the channel information as non-compliant data.
Optionally, outputting the non-compliance data in the user behavior data and the non-compliance data in the channel information includes:
displaying the non-compliance data in the user behavior data and the non-compliance data in the channel information in a form of a graph or a list.
Optionally, the method of screening user behavior data from the original behavior data and screening channel information from the original channel data includes:
screening out the user behavior data corresponding to the target user behavior from the original behavior data according to the target user behavior to be tested;
and screening the channel information corresponding to the target channel from the original channel data according to the target channel to be tested.
Optionally, the sending a data acquisition message to the acquired device includes:
acquiring equipment information of an acquired device, wherein the equipment information comprises an equipment address and a port number of the device;
matching the acquired equipment information with preset equipment information, and judging whether the acquired equipment is correctly connected test equipment or not;
and if so, sending a data acquisition message to the acquired equipment.
In a second aspect, an embodiment of the present application further provides a data compliance testing device, where the device includes:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a data acquisition message to an acquired device, the data acquisition message is used for indicating the acquired device to acquire user behavior data and channel information on the acquired device, the user behavior data is generated by a buried point program deployed on the acquired device, and the channel information is used for indicating a service source of the acquired device;
the receiving module is used for receiving the original behavior data and the original channel data sent by the acquired equipment;
the screening module is used for screening user behavior data from the original behavior data and screening channel information from the original channel data;
the determining module is used for determining whether the user behavior data and the channel information are in compliance or not according to preset compliance behavior information and preset compliance channel information, and obtaining and outputting a compliance test result.
Optionally, the determining module is specifically configured to:
traversing a behavior compliance information base, matching the user behavior data with a plurality of compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and extracting non-compliance data in the user behavior data when the user behavior data is not compliant;
matching the channel information with the compliance channel information corresponding to the channel information in the channel compliance information base, determining whether the channel information is in compliance according to a matching result, and extracting non-compliance data in the channel information when the channel information is not in compliance;
outputting non-compliance data in the user behavior data and non-compliance data in the channel information.
Optionally, the determining module is specifically configured to:
analyzing the user behavior data to obtain a behavior sequence corresponding to the user behavior data, wherein the behavior sequence comprises a plurality of behaviors;
and traversing a behavior compliance information base, if the behavior sequence is not matched with the currently traversed compliance behavior information, determining that the user behavior data is not compliant, and extracting the behavior data which is not matched with the currently traversed compliance behavior information in the behavior sequence as non-compliant data, otherwise, continuously traversing the next compliance behavior information until the traversal of the behavior compliance information base is finished.
Optionally, the determining module is specifically configured to:
determining target compliance channel information corresponding to the channel information according to the channel address of the channel information;
and if the service source in the channel information is not matched with the service source in the target compliance channel information, determining that the channel information is not compliant, and extracting the service source in the channel information as non-compliant data.
Optionally, the determining module is specifically configured to:
displaying the non-compliance data in the user behavior data and the non-compliance data in the channel information in a form of a graph or a list.
Optionally, the screening module is specifically configured to:
screening out the user behavior data corresponding to the target user behavior from the original behavior data according to the target user behavior to be tested;
and screening the channel information corresponding to the target channel from the original channel data according to the target channel to be tested.
Optionally, the sending module is specifically configured to:
acquiring equipment information of an acquired device, wherein the equipment information comprises an equipment address and a port number of the device;
matching the acquired equipment information with preset equipment information, and judging whether the acquired equipment is correctly connected test equipment or not;
and if so, sending a data acquisition message to the acquired equipment.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when an application program runs, the processor and the storage medium communicate with each other through the bus, and the processor executes the program instructions to execute the steps of the data compliance testing method according to the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is read and executes the steps of the data compliance testing method according to the first aspect.
The beneficial effect of this application is:
according to the data compliance testing method and device, the electronic equipment and the storage medium, the data acquisition message is sent to the acquired equipment; receiving original behavior data and original channel data sent by the acquisition equipment; screening user behavior data from the original behavior data, and screening channel information from the original channel data; and determining whether the user behavior data and the channel information are in compliance according to the preset compliance behavior information and the preset compliance channel information, and obtaining and outputting a compliance test result. By testing according to the preset compliance behavior information and the preset compliance channel information and the screened user behavior data and channel information, the user behavior data and channel information can be quickly tested, the test result is obtained, and the test complexity is reduced.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram of an exemplary scenario provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a data compliance testing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a preset library provided in an embodiment of the present application;
fig. 4 is a schematic diagram of an apparatus for data compliance testing according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
With the rapid development of mobile technology, various application software on mobile terminals are layered endlessly, and in order to research user behaviors and functional effects of the application software, a plurality of buried points are usually set in the application program before the application software is released. When a user uses application software, if the user triggers a preset embedded point function module, application program software generates corresponding user behavior embedded point data and sends the generated embedded point data to a server for analysis, and the user behavior embedded point data is analyzed to obtain the quality of the application software function, so that the application software function is adjusted or improved.
In order to provide correct user behavior basic data for product analysts, testers need to test whether user behavior buried point data and service sources of each application program are in compliance or not to ensure the correctness of the basic data.
In the prior art, user behavior embedded point data and service source testing are generally manual testing, and embedded point testing is more and more frequent along with application program version iteration and function change. Due to the fact that information of products, development and testers is asynchronous, changes of application functions affect user behavior buried points, testers do not know that specific changes affect some user behavior buried points and service sources, testing problems cannot be accurately found in the testing process, testing data of the service sources is large, manual testing is prone to errors, and manual testing is complicated due to frequent version iteration.
Fig. 1 is a schematic view of an exemplary scenario provided by an embodiment of the present application, and as shown in fig. 1, the method is applied to a test system, and the test system is connected with an acquired device. The test system can be installed on a test terminal, and can also be a test system connected with the test terminal, and the test terminal can be a desktop computer, a tablet computer, a palm computer, a notebook computer and the like. The collected equipment provides test data for the test system, the test system analyzes the received test data by using the method of the embodiment of the application to obtain a test result, and whether the test data is in compliance is determined according to the test result.
Optionally, the test system may include a client information collection and translation test console 11, a preset library 12, a device connection 13, a device data collection 14, a data cleaning 15, channel information 16, and user behavior data 17, where the preset library 12, the device connection 13, the device data collection 14, the data cleaning 15, the channel information 16, and the user behavior data 17 are all connected to the client information collection and translation test console 11, respectively.
The client information collection and translation test console 11 is used to maintain the equipment, channels and user behavior information required by the preset library 12 and the equipment connection 13.
The preset library 12 comprises a behavior compliance information library 121 and a channel compliance information library 122; the compliance information base 121 contains all preset behaviors, and each behavior corresponds to a behavior compliance information base; the channel compliance information base 122 contains all channel source types, each corresponding to a service source rule.
The device connection module 13 contains IP addresses and port numbers of all the devices to be acquired that can be connected to the device connection module, or device names, so as to verify whether the devices to be acquired are connected correctly.
The device data acquisition module 14 is used for acquiring channel information and behavior data of the acquired device, and is used for subsequent data cleaning.
The data cleaning module 15 is configured to obtain a service source rule and behavior data of the preset library according to the obtained device channel information and the behavior data, and perform cleaning.
The channel information 16 is data for matching the service source rule in the channel compliance information base 122 according to the channel information, and obtains an unsatisfactory service source according to the corresponding service source rule.
The user behavior data 17 is data for performing behavior compliance information matching according to the behavior data, and is translated into a user behavior sequence, and the user behavior data is displayed in a graph or table manner.
Fig. 2 is a flowchart illustrating a data compliance testing method according to an embodiment of the present application, in which the execution subject of the method is the testing system described above. As shown in fig. 2, the method includes:
s201, sending a data acquisition message to the acquired device. Optionally, the device data collection 14 in the test system sends a data collection message to the collected device, where the data collection message is used to instruct the collected device to collect user behavior data and channel information on the collected device, where the user behavior data is generated by a buried point program deployed on the collected device, and the channel information is used to instruct a service source of the collected device.
The device to be acquired is a device to be detected, the device to be acquired can be a digital television, an analog television, a set top box, a mobile phone or a wearable product, and the like, and a user can perform any operation in the device to be acquired, such as operations of logging in a page, browsing the page, downloading software, playing video/music, pausing the video/music, fast forwarding the video/music, and the like; the collected device may include multiple functions, for example, function blocks such as buttons, menus, radio boxes, check boxes, and the like, an application software developer may pre-deploy multiple embedded point programs in the collected device, for example, may set an embedded point in a certain function each time, may set one embedded point in one function, or may set multiple embedded points in one function, and when a user operates a certain function in the collected device, the embedded point program set under the function may correspondingly produce user behavior data.
Optionally, the channel information may indicate a service source of the acquired device, and the channel information may include the channel source and the service source of the acquired device. The service source refers to which service system (such as a service website) the service comes from, the channel source refers to a channel source of the device, the channel source may have a plurality of channels, and each channel may specify the service source of the channel.
Optionally, the channel source may use a channel name as the channel identifier or an identification number of the channel as the channel identifier. For example, the channel name can be district names of Jiangsu, shaanxi, shanghai, fujian, beijing and the like, and the channel name can be from a certain channel as collected equipment; identification numbers 201, 530, 151, 721, 936, etc. may also be used as channel identifications for the captured devices, each of which may be identified using a particular identification number.
S202, receiving the original behavior data and the original channel data sent by the collected equipment.
Optionally, after the collected device receives the data collection message sent by the test system, all the user behavior data and channel data in the collected device are sent to the test system, all the user behavior data and channel data sent by the collected device are used as original behavior data and original channel data, and the device data collection 14 in the test system receives the original behavior data and original channel data sent by the collected device.
S203, user behavior data are screened out from the original behavior data, and channel information is screened out from the original channel data.
Optionally, the data washing 15 in the test system may use a preset method to screen user behavior data from the original behavior data and screen channel information from the original channel data.
S204, determining whether the user behavior data and the channel information are in compliance or not according to the preset compliance behavior information and the preset compliance channel information, and obtaining and outputting a compliance test result.
The preset compliance behavior information can be feature information of user behaviors conforming to compliance behavior rules, each compliance behavior rule contains compliance behavior information of the behaviors, and the compliance behavior information of the behaviors can indicate that the behaviors are compliance behaviors; for example, for behavior play, there may be a plurality of rules according to play behavior rules, such as: logging in and playing the file 1 and 2 if logging in is needed before playing the file; after the play action, fast forward action is needed, and then 1, play and 2, fast forward are carried out; then 1, logging in, 2, playing a kind of compliance behavior information as playing behavior.
Optionally, the compliance channel information may be a compliance service source that conforms to the device channel. Optionally, the user behavior data and preset compliance behavior information are subjected to a matching test, whether the user behavior data is compliant is determined, and a compliance test result is obtained and output, where the test result may include non-compliant user behavior data and compliant user behavior data.
Specifically, the user behavior data is the acquired actual user behavior data of the acquired device, the actual user behavior data in the acquired device may be used to perform matching comparison with the preset features conforming to the compliance behavior, and if the actual user behavior data is consistent with the preset features conforming to the compliance behavior, the actual user behavior data is compliant user behavior data; and if the actual user behavior data is deviated from the preset characteristics conforming to the compliance behaviors, determining that the actual user behavior data is the non-compliance user behavior data.
Optionally, the channel information and preset compliant channel information are subjected to a matching test, whether the channel information is compliant is determined, and a compliance test result is obtained and output, where the test result may include compliant channel information or non-compliant channel information.
Specifically, the channel information is actual channel information of the acquired device, and may include a service source of the acquired device, and if the compliant service source conforming to the device channel includes a service source in the acquired device, the service source in the acquired device is compliant channel information; and if the compliant service sources conforming to the equipment channels do not comprise the service sources in the acquired equipment, the service sources in the acquired equipment are the information of the non-compliant channels.
In the embodiment, a data acquisition message is sent to the acquired equipment; receiving original behavior data and original channel data sent by an acquisition device; screening user behavior data from the original behavior data, and screening channel information from the original channel data; and determining whether the user behavior data and the channel information are in compliance according to the preset compliance behavior information and the preset compliance channel information, and obtaining and outputting a compliance test result. By testing according to the preset compliance behavior information and the preset compliance channel information and the screened user behavior data and channel information, the user behavior data and the channel information can be quickly tested, the test result is obtained, and the test complexity is reduced.
Optionally, the determining, in the step S204, whether the user behavior data and the channel information are compliant according to the preset compliance behavior information and the preset compliance channel information, and obtaining and outputting a compliance test result may include:
optionally, the behavior compliance information base is traversed, the user behavior data is matched with the plurality of compliance behavior information in the behavior compliance information base one by one, whether the user behavior data is compliant or not is determined according to a matching result, and the non-compliance data in the user behavior data is extracted when the user behavior data is not compliant.
Optionally, the user behavior data may include a plurality of user behaviors, such as types of behaviors of logging in, playing, browsing, fast forwarding, pausing, and the like, each behavior includes a compliance behavior information base, each compliance behavior information base may also include a plurality of compliance behavior information, that is, each compliance behavior information base may include a plurality of different compliance characteristics; e.g., whether there is a play action during play, but not other actions; for another example, there is a context for the play action with other actions, such as a login action that must precede the play action.
Optionally, the channel information is matched with compliant channel information corresponding to the channel information in the channel compliance information base, whether the channel information is compliant is determined according to a matching result, and non-compliant data in the channel information is extracted when the channel information is not compliant.
Optionally, each channel in the channel compliance information base corresponds to compliance channel information, and the compliance channel information may be service sources that can be allowed for the channel, that is, devices that can allow a specific service source to access the channel, where the specific service source is compliance channel information corresponding to the channel.
Illustratively, for channel 1, for example, if the service sources allowed in channel 1 can be a service and B service, while the non-compliant C service cannot access channel 1; the service sources that may be allowed in channel 2 may be C-services as well as D-services, while non-compliant a-services may not access channel 2.
Optionally, the non-compliance data in the user behavior data and the non-compliance data in the channel information are output.
It should be noted that the behavior compliance information base and the channel compliance information base may be arranged in the preset base 12, fig. 3 is a schematic diagram of a preset base provided in the embodiment of the present application, as shown in fig. 3, the preset base includes a behavior compliance information base 121 and a channel compliance information base 122, where the behavior compliance information base 121 includes compliance behavior bases of a plurality of different behaviors, and each behavior may include a compliance behavior information base, such as a behavior 1 compliance behavior information base, a behavior 2 compliance behavior information base, and a behavior N compliance behavior information base; each channel may include compliant channel information for the channel, the rules being the sources of services allowed by the channel, such as channel 1 compliant channel information, channel 2 compliant channel information, channel N compliant channel information.
In this embodiment, the preset behavior rules and the preset channel rules are stored by using the behavior compliance information base and the channel compliance information base, so that the test system can process different products, service sources of different channels and various user behavior data, and has expansibility.
Optionally, traversing the behavior compliance information base, matching the user behavior data with the compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and extracting non-compliance data in the user behavior data when the user behavior data is not compliant may include:
optionally, the user behavior data is analyzed to obtain a behavior sequence corresponding to the user behavior data, where the behavior sequence may include multiple behaviors, each behavior may include a behavior sequence number, and the behavior sequence number may indicate an execution sequence of the behavior.
Optionally, the behavior compliance information base is traversed, if the behavior sequence is not matched with the currently traversed compliance behavior information, it is determined that the user behavior data is not compliant, and the behavior data in the behavior sequence, which is not matched with the currently traversed compliance behavior information, is extracted as non-compliant data, otherwise, the next compliance behavior information is continuously traversed until the traversal of the behavior compliance information base is completed.
Optionally, if the behavior sequence is not matched with the compliance behavior information traversed currently, where the compliance behavior information traversed currently includes compliance execution sequences of the tasks, and if the analyzed behavior sequence and the task corresponding to the behavior sequence are not consistent with the compliance sequence of the behaviors in the compliance behavior information, the analyzed behavior sequence and the task corresponding to the behavior sequence are non-compliant user behavior data.
For example, if the resolved row sequence is 1: fast forward, 2: play, 3, pause, and compliance behavior information is 1: and (2) playing: fast forward, 3: and pausing, wherein 1, 2 and 3 are specified behavior execution sequences, and playing, fast forwarding and pausing user behaviors corresponding to sequence numbers of each behavior execution sequence, the compliance behavior information is according to 1: and (2) playing: fast forward, 3: and executing the user behaviors corresponding to the sequence numbers of the sequences according to the paused behavior sequence, wherein the user behavior corresponding to the sequence 1 in the analyzed behaviors is fast forward, the user behavior corresponding to the sequence 2 is play, and the play is matched with the sequence 1: and (2) playing: and if the fast forwarding is inconsistent, the sequence of the analyzed row is 1: fast forward, 2: and playing the user behavior data which are not compliant, and analyzing 1: fast forward, 2: and playing and extracting.
Optionally, in the above step, matching the channel information with compliant channel information corresponding to the channel information in the channel compliance information base, determining whether the channel information is compliant according to a matching result, and extracting non-compliant data in the channel information when the channel information is not compliant may include:
optionally, the target compliant channel information corresponding to the channel information is determined according to the channel address of the channel information, and each channel address has its own target compliant channel information.
Optionally, if the service source in the channel information is not matched with the service source in the target compliance channel information, determining that the channel information is not compliant, and extracting the service source in the channel information as non-compliant data.
For example, if the channel of the collected device is shanghai, the compliance channel information of the device of the shanghai channel is that the Tencent service address is allowed to access the device of the channel, the Baidu service address cannot access the device of the channel, and if a certain service source is the Baidu service source, the Baidu service source is the non-compliance data of the device of the shanghai channel; if a certain service source is a google service source, the google service source is the non-compliance data of the Shanghai channel device, and the Baidu service source and the google service source are taken as the non-compliance data to be extracted.
In the embodiment, the service source in the channel information is directly matched with the service source in the target compliance channel information in the channel compliance information base for testing, so that the testing process can be simplified, and the testing complexity is reduced.
Optionally, the outputting of the non-compliance data in the user behavior data and the non-compliance data in the channel information may include:
optionally, the non-compliance data in the user behavior data and the non-compliance data in the channel information are displayed in a form of a graph or a list.
Optionally, for the non-compliance data in the user behavior data, for example, the following 1: fast forward, 2: playing, namely identifying behavior fast forward and behavior playing by using a red triangle mark; or the yellow rectangle can also be used to identify the behavior fast forward and the behavior play. Non-compliance data in the user behavior data may be highlighted.
Optionally, for the non-compliant data in the channel information, for example, a plurality of non-compliant service sources, the plurality of non-compliant service sources may be presented in a form of a list.
In the embodiment, the test results which are not in compliance are displayed in a list and graph mode, so that the test results can be displayed quickly, developers are helped to extract relevant problems quickly, and the test period is shortened.
Optionally, the screening user behavior data from the original behavior data and the screening channel information from the original channel data in step S203 may include:
optionally, according to the target user behavior to be tested, screening user behavior data corresponding to the target user behavior from the original behavior data; and screening channel information corresponding to the target channel from the original channel data according to the target channel to be tested.
The original behavior data is all the user behavior data in the collected equipment, and the data cleaning 15 in the test system screens out the user behavior data corresponding to the target user behavior from the original behavior data according to the target user behavior.
Optionally, the test system may be connected to a plurality of collected devices, the channel data of each collected device may be different or the same, the original channel data acquired by the test system may include a plurality of channel data, and the data cleaning 15 in the test system screens out channel information corresponding to the target channel from the original data according to the target channel.
Optionally, in the above step, sending the data acquisition message to the acquired device may include:
optionally, device information of the acquired device is obtained, where the device information may include a device address and a port number of the device. The Address of the device may be a local area network Address (Medium Access Control, MAC Address for short), or an Internet Protocol Address (Internet Protocol Address, IP Address for short).
Optionally, the acquired device information is matched with preset device information, and whether the acquired device is a correctly connected test device is judged. The preset device information can be preset and stored in the device connection 13, the device connection 13 matches the acquired device information with the device information prestored in the device connection, and if the acquired device information exists in the preset device information, the acquired device corresponding to the acquired device information is a testing device correctly connected with the testing system; if the preset device information does not include the acquired device information, the acquired device corresponding to the acquired device information is not a test device correctly connected with the test system.
Optionally, if the acquired device is a test device to which the test system is correctly connected, the test system may send a data acquisition message to the acquired device; if the collected equipment is not the test equipment which is correctly connected with the test system, the test system cannot send data collection information to the collected equipment.
Fig. 4 is a schematic diagram of an apparatus for a data compliance testing method according to an embodiment of the present application, and as shown in fig. 4, the apparatus includes:
a sending module 301, configured to send a data acquisition message to an acquired device, where the data acquisition message is used to instruct the acquired device to acquire user behavior data and channel information on the acquired device, the user behavior data is generated by a buried point program deployed on the acquired device, and the channel information is used to instruct a service source of the acquired device;
a receiving module 302, configured to receive original behavior data and original channel data sent by the acquired device;
the screening module 303 is configured to screen user behavior data from the original behavior data, and screen channel information from the original channel data;
the determining module 304 is configured to determine whether the user behavior data and the channel information are compliant according to preset compliance behavior information and preset compliance channel information, and obtain and output a compliance test result.
Optionally, the determining module 304 is specifically configured to:
traversing a behavior compliance information base, matching the user behavior data with a plurality of compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and extracting non-compliance data in the user behavior data when the user behavior data is not compliant;
matching the channel information with compliant channel information corresponding to the channel information in the channel compliance information base, determining whether the channel information is compliant according to a matching result, and extracting non-compliant data in the channel information when the channel information is not compliant;
outputting non-compliance data in the user behavior data and non-compliance data in the channel information.
Optionally, the determining module 304 is specifically configured to:
analyzing the user behavior data to obtain a behavior sequence corresponding to the user behavior data, wherein the behavior sequence comprises a plurality of behaviors;
and traversing a behavior compliance information base, if the behavior sequence is not matched with the currently traversed compliance behavior information, determining that the user behavior data is not compliant, and extracting the behavior data which is not matched with the currently traversed compliance behavior information in the behavior sequence as non-compliant data, otherwise, continuously traversing the next compliance behavior information until the traversal of the behavior compliance information base is finished.
Optionally, the determining module 304 is specifically configured to:
determining target compliance channel information corresponding to the channel information according to the channel address of the channel information;
and if the service source in the channel information is not matched with the service source in the target compliance channel information, determining that the channel information is not compliant, and extracting the service source in the channel information as non-compliant data.
Optionally, the determining module 304 is specifically configured to:
displaying the non-compliance data in the user behavior data and the non-compliance data in the channel information in a form of a graph or a list.
Optionally, the screening module 303 is specifically configured to:
screening out the user behavior data corresponding to the target user behavior from the original behavior data according to the target user behavior to be tested;
and screening the channel information corresponding to the target channel from the original channel data according to the target channel to be tested.
Optionally, the sending module 301 is specifically configured to:
acquiring equipment information of an acquired device, wherein the equipment information comprises an equipment address and a port number of the device;
matching the acquired equipment information with preset equipment information, and judging whether the acquired equipment is correctly connected test equipment or not;
and if so, sending a data acquisition message to the acquired equipment.
Fig. 5 is a block diagram of an electronic device 400 according to an embodiment of the present disclosure, and as shown in fig. 5, the electronic device may include: a processor 401, a memory 402.
Optionally, a bus 403 may be further included, where the memory 402 is configured to store machine-readable instructions executable by the processor 401 (for example, execution instructions corresponding to the sending module, the receiving module, the screening module, and the determining module in the apparatus in fig. 4, and the like), when the electronic device 400 runs, the processor 401 and the memory 402 store and communicate through the bus 403, and the machine-readable instructions are executed by the processor 401 to perform the method steps in the foregoing method embodiments.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program executes the method steps in the data compliance testing method embodiment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall cover the scope of the present application.

Claims (10)

1. A method of data compliance testing, the method comprising:
sending a data acquisition message to an acquired device, wherein the data acquisition message is used for instructing the acquired device to acquire user behavior data and channel information on the acquired device, the user behavior data is generated by a buried point program deployed on the acquired device, and the channel information is used for instructing a service source of the acquired device;
receiving original behavior data and original channel data sent by the acquired equipment;
screening user behavior data from the original behavior data, and screening channel information from the original channel data;
and determining whether the user behavior data and the channel information are in compliance according to preset compliance behavior information and preset compliance channel information, and obtaining and outputting a compliance test result.
2. The data compliance testing method of claim 1, wherein the determining whether the user behavior data and the channel information are compliant according to preset compliance behavior information and preset compliance channel information, and obtaining and outputting a compliance testing result comprises:
traversing a behavior compliance information base, matching the user behavior data with a plurality of compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and extracting non-compliance data in the user behavior data when the user behavior data is not compliant;
matching the channel information with compliant channel information corresponding to the channel information in a channel compliance information base, determining whether the channel information is compliant according to a matching result, and extracting non-compliant data in the channel information when the channel information is not compliant;
and outputting non-compliance data in the user behavior data and non-compliance data in the channel information.
3. The data compliance testing method of claim 2, wherein traversing the behavior compliance information base, matching the user behavior data with a plurality of compliance behavior information in the behavior compliance information base one by one, determining whether the user behavior data is compliant according to a matching result, and outputting non-compliant data when the user behavior data is not compliant, comprises:
analyzing the user behavior data to obtain a behavior sequence corresponding to the user behavior data, wherein the behavior sequence comprises a plurality of behaviors;
and traversing a behavior compliance information base, if the behavior sequence is not matched with the currently traversed compliance behavior information, determining that the user behavior data is not compliant, and extracting the behavior data which is not matched with the currently traversed compliance behavior information in the behavior sequence as non-compliant data, otherwise, continuously traversing the next compliance behavior information until the traversal of the behavior compliance information base is finished.
4. The data compliance testing method of claim 2, wherein the matching the channel information with compliant channel information corresponding to the channel information in a channel compliance information base, determining whether the channel information is compliant according to a matching result, and extracting non-compliant data in the channel information when the channel information is not compliant comprises:
determining target compliance channel information corresponding to the channel information according to the channel address of the channel information;
and if the service source in the channel information is not matched with the service source in the target compliance channel information, determining that the channel information is not compliant, and extracting the service source in the channel information as non-compliance data.
5. The data compliance testing method of claim 2, wherein outputting non-compliance data in the user behavior data and non-compliance data in the channel information comprises:
displaying the non-compliance data in the user behavior data and the non-compliance data in the channel information in a graph or list mode.
6. The data compliance testing method of any of claims 1-5, wherein screening user behavior data from the raw behavior data and screening channel information from the raw channel data comprises:
screening out the user behavior data corresponding to the target user behavior from the original behavior data according to the target user behavior to be tested;
and screening the channel information corresponding to the target channel from the original channel data according to the target channel to be tested.
7. The data compliance testing method of claim 1, wherein said sending a data collection message to a collected device comprises:
acquiring equipment information of an acquired device, wherein the equipment information comprises an equipment address and a port number of the device;
matching the acquired equipment information with preset equipment information, and judging whether the acquired equipment is correctly connected test equipment or not;
and if so, sending a data acquisition message to the acquired equipment.
8. A data compliance testing device, comprising:
the device comprises a sending module and a receiving module, wherein the sending module is used for sending a data acquisition message to an acquired device, the data acquisition message is used for instructing the acquired device to acquire user behavior data and channel information on the acquired device, the user behavior data is generated by a buried point program deployed on the acquired device, and the channel information is used for instructing a service source of the acquired device;
the receiving module is used for receiving the original behavior data and the original channel data sent by the acquired equipment;
the screening module is used for screening user behavior data from the original behavior data and screening channel information from the original channel data;
and the determining module is used for determining whether the user behavior data and the channel information are in compliance according to preset compliance behavior information and preset compliance channel information, and obtaining and outputting a compliance test result.
9. An electronic device comprising a memory and a processor, the memory storing a computer program executable by the processor, the processor implementing the steps of the data compliance testing method of any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program for performing, when being executed by a processor, the steps of the data compliance testing method according to any one of claims 1 to 7.
CN202211052763.1A 2022-08-31 2022-08-31 Data compliance testing method and device, electronic equipment and storage medium Pending CN115484189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211052763.1A CN115484189A (en) 2022-08-31 2022-08-31 Data compliance testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211052763.1A CN115484189A (en) 2022-08-31 2022-08-31 Data compliance testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115484189A true CN115484189A (en) 2022-12-16

Family

ID=84422557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211052763.1A Pending CN115484189A (en) 2022-08-31 2022-08-31 Data compliance testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115484189A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133124A (en) * 2017-04-28 2017-09-05 努比亚技术有限公司 A kind of restorative procedure, data processing equipment and storage medium for not conforming to rule data
CN107609004A (en) * 2017-07-21 2018-01-19 深圳市小牛在线互联网信息咨询有限公司 Application program buries point methods and device, computer equipment and storage medium
WO2019085084A1 (en) * 2017-11-01 2019-05-09 平安科技(深圳)有限公司 Buried point processing method and apparatus, computer device, and storage medium
CN111610928A (en) * 2020-04-27 2020-09-01 上海容易网电子商务股份有限公司 Rapid and universal buried point data acquisition method
CN112435047A (en) * 2020-10-30 2021-03-02 四川新网银行股份有限公司 Marketing outbound data recommendation method based on buried point data
WO2021051613A1 (en) * 2019-09-20 2021-03-25 平安科技(深圳)有限公司 Method and apparatus for recording user behavior links
CN113141613A (en) * 2021-04-27 2021-07-20 上海淇玥信息技术有限公司 Communication channel detection method and device and electronic equipment
CN113342825A (en) * 2021-06-30 2021-09-03 深圳前海微众银行股份有限公司 Buried point data processing method, buried point data processing device, buried point data processing equipment and computer readable storage medium
CN113448834A (en) * 2020-09-25 2021-09-28 北京新氧科技有限公司 Buried point testing method and device, electronic equipment and storage medium
CN113485889A (en) * 2021-06-29 2021-10-08 平安银行股份有限公司 Buried point data checking method and device, electronic equipment and storage medium
CN113688133A (en) * 2021-08-23 2021-11-23 泰康保险集团股份有限公司 Data processing method, system, device, medium and equipment based on compliance calculation
CN114021045A (en) * 2021-11-01 2022-02-08 深圳市思为软件技术有限公司 Method, device, equipment and storage medium for marking user source channel

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133124A (en) * 2017-04-28 2017-09-05 努比亚技术有限公司 A kind of restorative procedure, data processing equipment and storage medium for not conforming to rule data
CN107609004A (en) * 2017-07-21 2018-01-19 深圳市小牛在线互联网信息咨询有限公司 Application program buries point methods and device, computer equipment and storage medium
WO2019085084A1 (en) * 2017-11-01 2019-05-09 平安科技(深圳)有限公司 Buried point processing method and apparatus, computer device, and storage medium
WO2021051613A1 (en) * 2019-09-20 2021-03-25 平安科技(深圳)有限公司 Method and apparatus for recording user behavior links
CN111610928A (en) * 2020-04-27 2020-09-01 上海容易网电子商务股份有限公司 Rapid and universal buried point data acquisition method
CN113448834A (en) * 2020-09-25 2021-09-28 北京新氧科技有限公司 Buried point testing method and device, electronic equipment and storage medium
CN112435047A (en) * 2020-10-30 2021-03-02 四川新网银行股份有限公司 Marketing outbound data recommendation method based on buried point data
CN113141613A (en) * 2021-04-27 2021-07-20 上海淇玥信息技术有限公司 Communication channel detection method and device and electronic equipment
CN113485889A (en) * 2021-06-29 2021-10-08 平安银行股份有限公司 Buried point data checking method and device, electronic equipment and storage medium
CN113342825A (en) * 2021-06-30 2021-09-03 深圳前海微众银行股份有限公司 Buried point data processing method, buried point data processing device, buried point data processing equipment and computer readable storage medium
CN113688133A (en) * 2021-08-23 2021-11-23 泰康保险集团股份有限公司 Data processing method, system, device, medium and equipment based on compliance calculation
CN114021045A (en) * 2021-11-01 2022-02-08 深圳市思为软件技术有限公司 Method, device, equipment and storage medium for marking user source channel

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王昌贵;: "隧道监控量测手机APP客户端开发与应用", 施工技术, no. 1 *
谢名丞;: "大数据背景下的用户行为深度追踪研究与应用", 科技广场, no. 03 *

Similar Documents

Publication Publication Date Title
CN111045952B (en) Software testing method, flow playback device, terminal equipment and readable storage medium
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
JP5767471B2 (en) Apparatus and method for evaluating test completeness
CN106649063A (en) Method and system used for monitoring time consuming data when program runs
CN106326108A (en) New application testing method and device
CN110798380A (en) Data acquisition method, system, device, test equipment and test server
CN110554962A (en) Regression testing process covering method, server and computer readable storage medium
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN110806965A (en) Automatic test method, device, equipment and medium
CN111522749A (en) Page testing method and device, readable storage medium and electronic equipment
CN112615873A (en) Internet of things equipment safety detection method, equipment, storage medium and device
CN113505068A (en) Automatic test method, device, equipment and storage medium for HTTP (hyper text transport protocol) interface
CN105515909B (en) A kind of data acquisition test method and apparatus
CN109840212B (en) Function test method, device and equipment of application program and readable storage medium
CN105068926A (en) Program test method and device thereof
CN111240967A (en) Code generation method and device
CN115484189A (en) Data compliance testing method and device, electronic equipment and storage medium
CN109740074B (en) Method, device and equipment for processing parameter configuration information
CN110618846A (en) Screenshot device, screenshot method, screenshot system, computer-readable storage medium and computer
CN106547686B (en) Product test method and device
CN105391602B (en) A kind of data acquisition test method and apparatus
CN111782291B (en) Method and device for starting test page
CN114117434A (en) Detection method and device
CN113032255A (en) Response noise recognition method, model, electronic device, and computer storage medium
CN109995607B (en) Method for testing flow overhead, terminal, server and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221216