[go: up one dir, main page]

CN112069011B - Information acquisition method and device and electronic equipment - Google Patents

Information acquisition method and device and electronic equipment Download PDF

Info

Publication number
CN112069011B
CN112069011B CN202010937315.4A CN202010937315A CN112069011B CN 112069011 B CN112069011 B CN 112069011B CN 202010937315 A CN202010937315 A CN 202010937315A CN 112069011 B CN112069011 B CN 112069011B
Authority
CN
China
Prior art keywords
event
events
time point
time delay
operation event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010937315.4A
Other languages
Chinese (zh)
Other versions
CN112069011A (en
Inventor
朱小航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202010937315.4A priority Critical patent/CN112069011B/en
Publication of CN112069011A publication Critical patent/CN112069011A/en
Application granted granted Critical
Publication of CN112069011B publication Critical patent/CN112069011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an information acquisition method and device and electronic equipment. The information acquisition method comprises the following steps: receiving an operation event set to be tested from event generating equipment, wherein each operation event in the operation event set carries an event identifier and an event sending time point; transmitting each operation event to the image source device, wherein a reception time point is recorded when the image source device receives the operation event; determining event transmission delay of each operation event based on the sending time point and the receiving time point; an event information set is generated based at least on the event transmission delay and the operational event set. The invention solves the technical problem that the accuracy of the test result is affected by the manual input operation event in the related technology, so that the test requirement of the actual processing performance of the reverse operation cannot be met.

Description

Information acquisition method and device and electronic equipment
Technical Field
The invention relates to the technical field of testing, in particular to an information acquisition method and device and electronic equipment.
Background
In the related art, the image transmission system includes: the system comprises image source equipment, an acquisition end and a receiving end. The acquisition end (S end) acquires desktop images of the image source equipment, codes the acquired desktop images (corresponds to the display after decoding of the R end) and sends the coded desktop images to the receiving end (R end), and the receiving end decodes the received desktop image data and displays the decoded desktop image data on a connected display.
The data processing in the image transmission system mainly comprises two aspects: on the one hand, the S end collects desktop pictures of the image source equipment and sends the collected image data to the R end, the R end restores and displays the image data on a display, on the other hand, the R end sends a reverse operation event generated by operation actions of a user on the input equipment to the image source equipment, and the image source equipment executes the reverse operation event.
It should be noted that, the real-time performance and stability of the reverse operation event have a great influence on the user experience. For example, a user clicking a mouse at an R endpoint expects to be able to see the execution effect resulting from clicking the mouse immediately; if the transmission delay of the reverse control data is larger, or the transmission and the processing of the reverse control data are failed, the user cannot see the execution effect or the delay of the execution effect is obvious at the R end, and the user experience is poor.
During the research, development and operation of the product, the current reverse operation event is manually input by a tester through an input device at the R end, so that the real-time performance and the stability of the reverse operation event of the image transmission system are measured. However, due to the limited variety of manually input operation events, the input duration is limited, and each time the input operation events are unlikely to be identical, the accuracy of the test result of the reverse operation event is affected. In particular, the test requirements for processing performance contrast of reverse operation events between the same device but different versions, or the same version but different devices, or the same version but different networks cannot be satisfied.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides an information acquisition method and device and electronic equipment, which at least solve the technical problems that the accuracy of a test result is affected by an artificial input operation event in the related technology, so that the test requirement of the actual processing performance of reverse operation cannot be met.
According to an aspect of an embodiment of the present invention, there is provided an information acquisition method applied to a receiving terminal, the receiving terminal and an event generating device establishing a connection in advance, the information acquisition method including: receiving an operation event set to be tested from the event generating device, wherein each operation event in the operation event set carries an event identifier and an event sending time point; transmitting each operation event to an image source device, wherein a reception time point is recorded when the image source device receives the operation event; determining an event transmission delay of each operation event based on the sending time point and the receiving time point; an event information set is generated based at least on the event transmission delay and the operational event set.
Optionally, before receiving the set of operation events to be tested from the event generating device, the information acquisition method further includes: the event generating device establishes connection with the receiving end through a preset port; and the event generating equipment sends an operation event set to the receiving end according to a preset output rule after receiving the test instruction.
Optionally, the preset output rule includes at least one of the following: output time point, stop output time point, sequence of output operation events, number of output operation events, output frequency, duration of output.
Optionally, the operation event set includes the following types of operation events: keyboard events, mouse events, touch screen events, gesture events, and gravity sensing events.
Optionally, the step of generating an event information set based at least on the event transmission delay and the operational event set includes: determining a preset time delay threshold, wherein the time delay threshold is used for evaluating the stability of the transmission time delay of an event; comparing the event transmission delay with the delay threshold to obtain a comparison result; determining the number of operation events in the sent operation event set; and generating the event information set based on the comparison result and the operation event number.
Optionally, if the delay threshold is multiple, after generating the event information set, the information acquisition method further includes: determining a time delay threshold interval to which each time delay threshold belongs; based on the event information set, determining the number of operation events in each time delay threshold interval and the proportion value of all operation events and event sums in each time delay threshold interval; and analyzing the stability of the target image transmission system based on the number of the operation events in each time delay threshold interval and the proportion value of the total of all the operation events and the events in each time delay threshold interval.
Optionally, a monitoring application APP is preset on the image source device, where the monitoring application APP is configured to monitor a receiving time point when an operating system on the image source device receives an operation event.
According to another aspect of the embodiment of the present invention, there is also provided an information acquisition apparatus applied to a receiving terminal, the receiving terminal and an event occurrence device establishing a connection in advance, the information acquisition apparatus including: the receiving unit is used for receiving an operation event set to be tested from the event generating equipment, wherein each operation event in the operation event set carries an event identifier and an event sending time point; a transmitting unit configured to transmit each of the operation events to an image source device, wherein a reception time point is recorded when the image source device receives the operation event; a determining unit configured to determine an event transmission delay of each of the operation events based on the emission time point and the reception time point; and the generating unit is used for generating an event information set at least based on the event transmission delay and the operation event set.
Optionally, the information acquisition device further includes: the connection unit is used for establishing connection between the event generating equipment and the receiving end through a preset port before receiving the operation event set to be tested from the event generating equipment; the first sending module is used for controlling the event generating device to send an operation event set to the receiving end according to a preset output rule after receiving the test instruction.
Optionally, the preset output rule includes at least one of the following: output time point, stop output time point, sequence of output operation events, number of output operation events, output frequency, duration of output.
Optionally, the operation event set includes the following types of operation events: keyboard events, mouse events, touch screen events, gesture events, and gravity sensing events.
Optionally, the generating unit includes: the first determining module is used for determining a preset time delay threshold, wherein the time delay threshold is used for evaluating the stability of the transmission time delay of the event; the first comparison module is used for comparing the event transmission time delay with the time delay threshold value to obtain a comparison result; a second determining module, configured to determine a number of operation events in the sent operation event set; and the generation module is used for generating the event information set based on the comparison result and the operation event number.
Optionally, if the delay threshold is multiple, the information obtaining device further includes: the third determining module is used for determining a time delay threshold interval to which each time delay threshold belongs after generating the event information set; a fourth determining module, configured to determine, based on the event information set, a number of operation events in each time delay threshold interval and a ratio value of all operation events and an event sum in each time delay threshold interval; and the analysis module is used for analyzing the stability of the target image transmission system based on the number of the operation events in each time delay threshold interval and the proportion value of all the operation events and the event sum in each time delay threshold interval.
Optionally, a monitoring application APP is preset on the image source device, where the monitoring application APP is configured to monitor a receiving time point when an operating system on the image source device receives an operation event.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the information acquisition method of any one of the above via execution of the executable instructions.
According to another aspect of the embodiment of the present invention, there is also provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, a device where the computer readable storage medium is controlled to execute the information acquiring method described in any one of the foregoing.
In the embodiment of the invention, when the processing performance of the reverse operation event is tested, an operation event set to be tested is received in an event generating device, wherein each operation event in the operation event set carries an event identifier and an emission time point of the event, each operation event is sent to an image source device, the receiving time point is recorded when the image source device receives the operation event, the event transmission time delay of each operation event is determined based on the emission time point and the receiving time point, and an event information set is generated based on at least the event transmission time delay and the operation event set. In this embodiment, a plurality of operation events may be preset in the event generating device, after receiving the plurality of operation events transmitted by the event generating device, the receiving end sends each operation event to the image source device, and by comparing the operation event received by the image source device with the operation event output by the generating device, an event information set of a reverse operation event is generated, where the event information set can embody stability and instantaneity of the operation event, and can implement test automation operation, and improve test accuracy and stability, so as to solve the technical problem that in the related art, the accuracy of a test result is affected, and the test requirement of the actual processing performance of the reverse operation cannot be met.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an alternative information acquisition method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative image transmission system according to an embodiment of the invention;
fig. 3 is a schematic diagram of an alternative information acquisition device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention can preset various operation events and the output rules of the operation events in the event generating equipment in advance, and output the plurality of operation events to the receiving end (R end) through the event generating equipment according to the preset output rules; meanwhile, monitoring a plurality of operation events received by the image source equipment; and comparing the operation event received by the image source equipment with the operation event output by the event generating equipment to generate an event information set of the reverse operation event, wherein the event information set can reflect the stability and instantaneity of the operation event.
In the invention, a plurality of operation events can be output to the R end through the event generating device, and the operation events input by the user at the input device of the R end can be simulated. Because the operation event output by the event generating device has singleness and stability, the information acquisition method can meet the test requirement of processing performance comparison of the reverse operation event between different versions of the same device or between different devices or networks of the same version, and the test result is accurate.
According to an embodiment of the present invention, there is provided an information acquisition method embodiment, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
The information acquisition method provided by the embodiment of the invention is applied to the receiving end, the receiving end is pre-connected with the event generating equipment, and the receiving end can be connected with a display and an input device (keyboard, mouse and touch screen).
Fig. 1 is a flowchart of an alternative information acquisition method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, receiving an operation event set to be tested from event generating equipment, wherein each operation event in the operation event set carries an event identifier and an event sending time point;
Step S104, each operation event is sent to the image source equipment, wherein the receiving time point is recorded when the image source equipment receives the operation event;
Step S106, determining the event transmission delay of each operation event based on the sending time point and the receiving time point;
Step S108, generating an event information set at least based on the event transmission delay and the operation event set.
Through the steps, when the processing performance of the reverse operation event is tested, the operation event set to be tested is received from the event generating device, wherein each operation event in the operation event set carries an event identifier and an emission time point of the event, each operation event is sent to the image source device, the receiving time point is recorded when the image source device receives the operation event, the event transmission time delay of each operation event is determined based on the emission time point and the receiving time point, and the event information set is generated based on at least the event transmission time delay and the operation event set. In this embodiment, a plurality of operation events may be preset in the event generating device, after receiving the plurality of operation events transmitted by the event generating device, the receiving end sends each operation event to the image source device, and by comparing the operation event received by the image source device with the operation event output by the generating device, an event information set of a reverse operation event is generated, where the event information set can embody stability and instantaneity of the operation event, and can implement test automation operation, and improve test accuracy and stability, so as to solve the technical problem that in the related art, the accuracy of a test result is affected, and the test requirement of the actual processing performance of the reverse operation cannot be met.
The image transmission system according to the embodiment of the present invention may include an image source device, a collecting end, a transit server, a receiving end and an event generating device, and fig. 2 is a schematic diagram of an alternative image transmission system according to an embodiment of the present invention, where, as shown in fig. 2, the image source device, the collecting end, the transit server, the receiving end and the event generating device are sequentially connected, the image transmission system is applicable to a test scenario, the event generating device and the receiving end may be connected through a preset port (for example, a USB port), and the event generating device is a device capable of simulating an output operation event through a port connected to the receiving end.
The invention will be described in connection with the various implementation steps described above.
Optionally, before receiving the set of operation events to be tested in the event generating device, the information obtaining method further includes: the event generating device establishes connection with the receiving end through a preset port; and after receiving the test instruction, the event generating device sends an operation event set to the receiving end according to a preset output rule.
In an embodiment of the present invention, the preset output rule includes at least one of the following: output time point, stop output time point, sequence of output operation events, number of output operation events, output frequency, duration of output.
The event generating device determines a preset output rule to be used, and after receiving the start output instruction, outputs an operation event to a connected receiving end (R end), wherein the operation event carries an event identifier (e.g., an event) of the operation event, and an emission time point of the operation event. In the embodiment of the invention, the time point when the event generating device sends out the operation event is the event sending point of the operation event.
Step S102, a set of operation events to be tested is received from the event generating device, wherein each operation event in the set of operation events carries an event identifier and an emission time point of the event.
Optionally, the operation event set includes the following types of operation events: keyboard events, mouse events, touch screen events, gesture events, and gravity sensing events. And presetting various operation events in the event generating device, wherein the operation events comprise multiple types, and specifically comprise a mouse event, a touch screen event, a gesture event, a gravity sensing event and the like. Each type of operational event may include a plurality of operational events with different parameter settings. For example, the displacement, sensitivity and other parameters of the mouse event are set differently; the gravity sensing event has different parameter settings such as action amplitude, action direction and the like.
The event generating device may preset not only a plurality of operation events but also various output rules. The preset output rules include the sequence of output operation events, the number of output operation events, the output frequency, the duration of output, etc. When the event generating device is required to output the operation event, the preset output rule is set, so that the event generating device can output the preset operation event to the receiving end according to the event output rule.
In an alternative embodiment, the operation may be performed directly on the event generating device, and the output operation event may be controlled, specifically, the control starts output, the control stops output, the output rule is set, and the like. The event generating device may be connected to a computer, and the event generating device may be controlled by the computer.
When the real-time performance of the reverse operation event is tested, the output frequency can be set to be higher, and the output operation event is more in variety and number, so that the operation event with more number and variety can be output in a short time in the generating device. If the real-time performance of the processing flow of the reverse operation event in the system is defective, faults such as system breakdown, link congestion and the like may occur.
When the stability of the reverse operation event is tested, the duration of the output can be set longer, so that the occurrence equipment can keep the output of the reverse operation event for a long time, and if the stability of the processing flow of the reverse operation event in the system is defective, the system breakdown may occur, and the reverse operation event cannot be normally transmitted.
Step S104, each operation event is transmitted to the image source device, wherein the reception time point is recorded when the image source device receives the operation event.
After the receiving end receives the operation event from the event generating device, the operation event can be sent to the collecting end, and then the operation event received by the collecting end is forwarded to the image source device.
After receiving the operation event, the image source equipment determines a receiving time point of the operation event; acquiring an emission time point of the operation event and an identification of the operation event from the operation event; and determining the time delay of the operation event in the image transmission system according to the receiving time point and the sending time point, wherein each time delay corresponds to the identification of one operation event.
Optionally, a monitoring application APP is preset on the image source device, where the monitoring application APP is configured to monitor a receiving time point when the operating system on the image source device receives the operation event. An APP can be preset in the image source equipment and can be used for monitoring the time point when an operation system on the image source equipment acquires an operation event and recording the time point as a receiving time point, meanwhile, the sending time point of the operation event can also be acquired from the operation event, and the transmission time delay of the operation event in a target image transmission system is determined according to the receiving time point and the sending time point of the operation event.
Step S106, determining the event transmission delay of each operation event based on the sending time point and the receiving time point.
Step S108, generating an event information set at least based on the event transmission delay and the operation event set.
In an embodiment of the present invention, the step of generating the event information set based at least on the event transmission delay and the operation event set includes: determining a preset time delay threshold, wherein the time delay threshold is used for evaluating the stability of the transmission time delay of the event; comparing the event transmission delay with a delay threshold to obtain a comparison result; determining the number of operation events in the transmitted operation event set; based on the comparison result and the number of operational events, an event information set is generated.
Optionally, if the delay threshold is multiple, after generating the event information set, the information acquisition method further includes: determining a time delay threshold interval to which each time delay threshold belongs; based on the event information set, determining the number of operation events in each time delay threshold interval and the proportion value of all operation events and event sums in each time delay threshold interval; and analyzing the stability of the target image transmission system based on the number of the operation events in each time delay threshold interval and the proportion value of all the operation events and the event sum in each time delay threshold interval.
For example, the event information set includes a preset time delay threshold, the number of operation events greater than the time delay threshold in the event information set, and the proportion of the operation events to the total event of the operation events.
Normally, the event transmission delay should be smaller than a preset delay threshold, that is, when the delay is smaller than or equal to the preset delay threshold, the user experience is better. When the system fails in the test process, the time delay is increased, even the image source equipment cannot receive the phenomenon of the operation event, in this case, the event transmission time delay of the operation event is usually greater than a preset time delay threshold, and when the time delay of the operation event is greater than the preset time delay threshold, the system can be considered to fail to the processing flow of the reverse operation event.
If the total event is greater than the number of time delays, the part of the operation events are lost, and the image source equipment does not receive the part of the operation events. Of course, a plurality of delay thresholds may be set, and the number and the proportion of the sum of the operation events in each delay threshold interval may be counted. From these data, the processing capabilities of the target mapping system for the reverse operation event can be seen, including the stability and real-time nature of the process flow.
In the embodiment of the invention, the event generating device sends out the operation event according to the set output rule, and can repeatedly execute the operation event in multiple times and completely same, namely, the operation event is single and stable. Compared with the prior art that the single performance and stability of the operation event cannot be strictly ensured by manual input, the embodiment of the invention can test the test requirements of different versions, or the same version but different devices, or the same version but different networking on the same device, can test by using the same output rule for multiple times based on the information acquisition method of the invention, and can obtain accurate test results.
Fig. 3 is a schematic diagram of an alternative information acquisition apparatus according to an embodiment of the present invention, applied to a receiving end, where the receiving end establishes a connection with an event generating device in advance, as shown in fig. 3, the information acquisition apparatus includes: a receiving unit 31, a transmitting unit 33, a determining unit 35, a generating unit 37, wherein,
A receiving unit 31, configured to receive a set of operation events to be tested from an event generating device, where each operation event in the set of operation events carries an event identifier and an issue time point of the event;
a transmitting unit 33 configured to transmit each operation event to the image source device, wherein a reception time point is recorded when the image source device receives the operation event;
A determining unit 35 for determining an event transmission delay of each operation event based on the emission time point and the reception time point;
A generating unit 37 for generating a set of event information based at least on the event transmission delay and the set of operational events.
The above-mentioned information obtaining apparatus may first receive, when testing the processing performance of the reverse operation event, the operation event set to be tested from the event generating device through the receiving unit 31, where each operation event in the operation event set carries an event identifier and an emission time point of the event, send each operation event to the image source device through the sending unit 33, record the receiving time point when the image source device receives the operation event, determine, through the determining unit 35, an event transmission delay of each operation event based on the emission time point and the receiving time point, and generate, through the generating unit 37, an event information set based on at least the event transmission delay and the operation event set. In this embodiment, a plurality of operation events may be preset in the event generating device, after receiving the plurality of operation events transmitted by the event generating device, the receiving end sends each operation event to the image source device, and by comparing the operation event received by the image source device with the operation event output by the generating device, an event information set of a reverse operation event is generated, where the event information set can embody stability and instantaneity of the operation event, and can implement test automation operation, and improve test accuracy and stability, so as to solve the technical problem that in the related art, the accuracy of a test result is affected, and the test requirement of the actual processing performance of the reverse operation cannot be met.
Optionally, the information acquisition device further includes: the connection unit is used for establishing connection between the event generating equipment and the receiving end through a preset port before the operation event set to be tested is received in the event generating equipment; the first sending module is used for controlling the event generating equipment to send the operation event set to the receiving end according to a preset output rule after receiving the test instruction.
Optionally, the preset output rule includes at least one of the following: output time point, stop output time point, sequence of output operation events, number of output operation events, output frequency, duration of output.
Alternatively, the operation event set includes the following types of operation events: keyboard events, mouse events, touch screen events, gesture events, and gravity sensing events.
In an embodiment of the present invention, the generating unit includes: the first determining module is used for determining a preset time delay threshold, wherein the time delay threshold is used for evaluating the stability of the transmission time delay of the event; the first comparison module is used for comparing the event transmission delay with a delay threshold value to obtain a comparison result; the second determining module is used for determining the number of the operation events in the sent operation event set; and the generation module is used for generating an event information set based on the comparison result and the number of the operation events.
Optionally, if the delay threshold is multiple, the information obtaining device further includes: the third determining module is used for determining a time delay threshold interval to which each time delay threshold belongs after the event information set is generated; the fourth determining module is used for determining the number of the operation events in each time delay threshold interval and the proportion value of all the operation events and the event sum in each time delay threshold interval based on the event information set; the analysis module is used for analyzing the stability of the target image transmission system based on the number of the operation events in each time delay threshold interval and the proportion value of the total of all the operation events in each time delay threshold interval.
Optionally, a monitoring application APP is preset on the image source device, where the monitoring application APP is configured to monitor a receiving time point when the operating system on the image source device receives the operation event.
The information acquisition apparatus may further include a processor and a memory, and the receiving unit 31, the transmitting unit 33, the determining unit 35, the generating unit 37, and the like may be stored in the memory as program units, and the processor may execute the program units stored in the memory to realize the respective functions.
The processor includes a kernel, and the kernel fetches a corresponding program unit from the memory. The kernel may set one or more kernel parameters to generate a set of event information based at least on the event transmission delay and the set of operational events.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), which includes at least one memory chip.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the information retrieval method of any of the above via execution of executable instructions.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, including a stored computer program, where the computer program when executed controls a device in which the computer-readable storage medium is located to perform the information acquiring method of any one of the above.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: receiving an operation event set to be tested from event generating equipment, wherein each operation event in the operation event set carries an event identifier and an event sending time point; transmitting each operation event to the image source device, wherein a reception time point is recorded when the image source device receives the operation event; determining event transmission delay of each operation event based on the sending time point and the receiving time point; an event information set is generated based at least on the event transmission delay and the operational event set.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (9)

1. The information acquisition method is characterized by being applied to a receiving end, wherein the receiving end is pre-connected with event generating equipment, a plurality of operation events and preset output rules of the operation events are preset in the event generating equipment, the operation events input by an input device of the receiving end of a user are simulated through the event generating equipment, and a plurality of reverse operation events are output to the receiving end according to the preset output rules, and the information acquisition method comprises the following steps:
Receiving an operation event set to be tested from the event generating device, wherein each operation event in the operation event set carries an event identifier and an event sending time point;
Transmitting each operation event to an image source device, wherein a receiving time point is recorded when the image source device receives the operation event, and the sending time point of the operation event and the identification of the operation event are obtained from the operation event;
Determining the event transmission time delay of each operation event based on the sending time point and the receiving time point, wherein each event transmission time delay corresponds to an identification of one operation event;
Generating an event information set based at least on the event transmission delay and the operational event set, comprising:
determining a preset time delay threshold, wherein the time delay threshold is used for evaluating the stability of the event transmission time delay; comparing the event transmission delay with the delay threshold to obtain a comparison result; determining the number of operation events in the sent operation event set; and generating the event information set based on the comparison result and the operation event number.
2. The information acquisition method according to claim 1, characterized in that before receiving the set of operation events to be tested from the event generating device, the information acquisition method further comprises:
the event generating device establishes connection with the receiving end through a preset port;
And the event generating equipment sends an operation event set to the receiving end according to a preset output rule after receiving the test instruction.
3. The information acquisition method according to claim 2, wherein the preset output rule includes at least one of: output time point, stop output time point, sequence of output operation events, number of output operation events, output frequency, duration of output.
4. The information acquisition method according to any one of claims 1 to 3, wherein the operation event set includes the following types of operation events: keyboard events, mouse events, touch screen events, gesture events, and gravity sensing events.
5. The information acquisition method according to claim 1, wherein if the delay threshold is plural, after generating the event information set, the information acquisition method further comprises:
determining a time delay threshold interval to which each time delay threshold belongs;
Based on the event information set, determining the number of operation events in each time delay threshold interval and the proportion value of all operation events and event sums in each time delay threshold interval;
And analyzing the stability of the target image transmission system based on the number of the operation events in each time delay threshold interval and the proportion value of the total of all the operation events and the events in each time delay threshold interval.
6. The information acquisition method according to claim 1, wherein a monitoring application APP is preset on the image source device, wherein the monitoring application APP is configured to monitor a reception time point at which an operation event is received by an operating system on the image source device.
7. An information acquisition device, which is applied to a receiving end, wherein the receiving end and an event generating device are pre-connected, a plurality of operation events and preset output rules of the operation events are preset in the event generating device, the operation events input by an input device of the receiving end of a user are simulated through the event generating device, and a plurality of reverse operation events are output to the receiving end according to the preset output rules, and the information acquisition device comprises:
the receiving unit is used for receiving an operation event set to be tested from the event generating equipment, wherein each operation event in the operation event set carries an event identifier and an event sending time point;
A transmitting unit, configured to transmit each operation event to an image source device, where a receiving time point is recorded when the image source device receives the operation event, and an issue time point of the operation event and an identifier of the operation event are obtained from the operation event;
The determining unit is used for determining the event transmission time delay of each operation event based on the sending time point and the receiving time point, and each event transmission time delay corresponds to an identification of one operation event;
A generating unit, configured to generate an event information set based at least on the event transmission delay and the operation event set, where the generating unit includes: the first determining module is used for determining a preset time delay threshold, wherein the time delay threshold is used for evaluating the stability of the event transmission time delay; the first comparison module is used for comparing the event transmission time delay with the time delay threshold value to obtain a comparison result; a second determining module, configured to determine a number of operation events in the sent operation event set; and the generation module is used for generating the event information set based on the comparison result and the operation event number.
8. An electronic device, comprising:
a processor; and
A memory for storing executable instructions of the processor;
Wherein the processor is configured to perform the information acquisition method of any one of claims 1 to 6 via execution of the executable instructions.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the information acquisition method according to any one of claims 1 to 6.
CN202010937315.4A 2020-09-08 2020-09-08 Information acquisition method and device and electronic equipment Active CN112069011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010937315.4A CN112069011B (en) 2020-09-08 2020-09-08 Information acquisition method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010937315.4A CN112069011B (en) 2020-09-08 2020-09-08 Information acquisition method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112069011A CN112069011A (en) 2020-12-11
CN112069011B true CN112069011B (en) 2024-09-13

Family

ID=73664533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010937315.4A Active CN112069011B (en) 2020-09-08 2020-09-08 Information acquisition method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112069011B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396034A (en) * 2017-08-11 2017-11-24 苏睿 Image transfer method and system
CN111405218A (en) * 2020-03-26 2020-07-10 深圳市微测检测有限公司 Touch screen time delay detection method, system, device, equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103492978B (en) * 2010-10-05 2017-02-15 西里克斯系统公司 Touch support for remoted applications
CN107864084B (en) * 2016-09-22 2019-06-21 腾讯科技(深圳)有限公司 The transmission method and device of data packet
CN107577578B (en) * 2017-09-15 2022-02-18 郑州云海信息技术有限公司 Method, device and equipment for counting delay of NFS operation word and storage medium
CN107786657A (en) * 2017-10-25 2018-03-09 上海苗悦智能科技有限公司 A kind of intelligent time management system based on Internet of Things
CN109032947A (en) * 2018-07-27 2018-12-18 广州视源电子科技股份有限公司 Test method, device, equipment and storage medium for operating system
CN108989879B (en) * 2018-08-28 2021-06-15 广州视源电子科技股份有限公司 Screen projection control method, device and system
CN111061445A (en) * 2019-04-26 2020-04-24 华为技术有限公司 Screen projection method and computing device
CN111181760B (en) * 2019-09-02 2021-10-08 腾讯科技(深圳)有限公司 Network fault detection method and device, computer readable medium and electronic equipment
CN110708847A (en) * 2019-11-15 2020-01-17 深圳市元征科技股份有限公司 Event triggering method, device, equipment, system and readable storage medium
CN111124308A (en) * 2019-12-22 2020-05-08 浪潮电子信息产业股份有限公司 A performance analysis method, device, electronic device and storage medium
CN111461198B (en) * 2020-03-27 2023-10-13 杭州海康威视数字技术股份有限公司 Action determining method, system and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396034A (en) * 2017-08-11 2017-11-24 苏睿 Image transfer method and system
CN111405218A (en) * 2020-03-26 2020-07-10 深圳市微测检测有限公司 Touch screen time delay detection method, system, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112069011A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN111459794B (en) Communication network testing method, device, computer equipment and storage medium
CN106649063B (en) Method and system for monitoring time-consuming data during program operation
CN114781423B (en) Measuring instrument, measuring system and signal processing method
CN106874187B (en) Code coverage rate collection method and device
EP2590081A2 (en) Method, computer program, and information processing apparatus for analyzing performance of computer system
US20030126585A1 (en) Multiple device error management
CN102244594A (en) Network emulation in manual and automated testing tools
CN110674025B (en) Interactive behavior monitoring method and device and computer equipment
US10833921B2 (en) Information processing apparatus and abnormality diagnosis method
US9591510B2 (en) Systems and methods to create message traffic
WO2013147226A1 (en) User sensory quality estimation device, terminal bottleneck determination device, similar operation extraction device, and methods and programs therefor
CN113746665A (en) Log data processing method, apparatus, computer program product and storage medium
CN111611140A (en) Reporting verification method and device of buried point data, electronic equipment and storage medium
CN112685285B (en) User interface test case generation method and device
CN108304322B (en) Pressure testing method and terminal equipment
CN110888811B (en) Code coverage rate information processing method and device, electronic equipment and medium
CN112069011B (en) Information acquisition method and device and electronic equipment
CN113656314B (en) Pressure test processing method and device
CN111190801A (en) Recommendation system testing method and device and electronic equipment
KR20070080313A (en) Service performance analysis method and system provided to client terminal
CN115098401A (en) HTML report verification method and device, electronic equipment and storage medium
CN111611141A (en) Reporting verification method and device of buried point data, electronic equipment and storage medium
CN107748714A (en) Application program compatibility testing method, system, server, client and storage medium
CN116541263A (en) Buried point testing method and device, electronic equipment and storage medium
CN111314743B (en) Interface data playback method and device

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
GR01 Patent grant
GR01 Patent grant