CN112905449A - Target test method, device, equipment and storage medium - Google Patents

Target test method, device, equipment and storage medium Download PDF

Info

Publication number
CN112905449A
CN112905449A CN202110113509.7A CN202110113509A CN112905449A CN 112905449 A CN112905449 A CN 112905449A CN 202110113509 A CN202110113509 A CN 202110113509A CN 112905449 A CN112905449 A CN 112905449A
Authority
CN
China
Prior art keywords
time
time stamp
test
determining
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.)
Granted
Application number
CN202110113509.7A
Other languages
Chinese (zh)
Other versions
CN112905449B (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.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network 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 Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202110113509.7A priority Critical patent/CN112905449B/en
Publication of CN112905449A publication Critical patent/CN112905449A/en
Application granted granted Critical
Publication of CN112905449B publication Critical patent/CN112905449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses a target testing method, a target testing device, target testing equipment and a storage medium. The method comprises determining at least one interaction event contained in the measurand; registering at least one of the interaction events and recording a first timestamp; triggering a triggering operation aiming at least one interaction event based on a test script; recording a second timestamp corresponding to the trigger operation; and determining the test result of the tested object based on the time difference of the first time stamp and the second time stamp and a time threshold value. By the scheme, when the tested object is subjected to relevant tests, the test script can be used for testing the function response effect of the interaction event, so that the test function integrity can be effectively improved, and the condition that the application requirements of a user cannot be met after the service application is improved is avoided.

Description

Target test method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a target testing method, a target testing device, target testing equipment and a storage medium.
Background
With the development of internet technology, in order to meet business requirements, data updating and business function updating in each business application are more and more frequent.
In practical applications, when data in a business application is updated or a business function is updated, a user cannot respond in time when using the updated application due to an increase in data volume or a change in interaction relationship. However, in the current test work, attention is usually paid to whether a function can be realized, and no attention is paid to the effect of realizing the function. Therefore, a solution capable of testing not only whether the function can be implemented but also a test solution capable of simultaneously testing the response effect of the function is required.
Disclosure of Invention
The embodiment of the invention provides a target testing method, a target testing device, equipment and a storage medium, and aims to realize a technical scheme for testing a service function response effect.
In a first aspect, an embodiment of the present invention provides a target testing method, where the method includes:
determining at least one interaction event contained in the measurand;
registering at least one of the interaction events and recording a first timestamp;
triggering a triggering operation aiming at least one interaction event based on a test script;
recording a second timestamp corresponding to the trigger operation;
and determining the test result of the tested object based on the time difference of the first time stamp and the second time stamp and a time threshold value.
Optionally, the registering at least one of the interaction events and recording a first timestamp includes:
registering at least one interactive event, and generating a first page snapshot corresponding to the interactive event;
and taking the generation time of the first page snapshot as the first timestamp.
Optionally, the recording a second timestamp corresponding to the trigger operation includes:
responding to the trigger operation, and generating a second page snapshot;
and taking the generation time of the second page snapshot as the second timestamp.
Optionally, the determining the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold includes:
if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
Optionally, the determining the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold includes:
comparing the first page snapshot with the second page snapshot, and if the comparison result meets a preset result, comparing the time difference with the time threshold;
if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
Optionally, before determining at least one interaction event included in the measured object, the method further includes:
determining at least one modified component in the front-end component;
and using the modified component as the measured object.
Optionally, the interaction event includes: at least one of a mouse event and a click event.
In a second aspect, an embodiment of the present invention provides an object testing apparatus, including:
the determination module is used for determining at least one interaction event contained in the measured object;
the registration module is used for registering at least one interactive event and recording a first time stamp;
the trigger module is used for triggering trigger operation aiming at least one interaction event based on the test script;
the recording module is used for recording a second timestamp corresponding to the trigger operation;
the determining module is further configured to determine the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, and a memory, where the memory is configured to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the target testing method according to the first aspect is implemented.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which when executed by one or more processors causes the one or more processors to perform actions comprising:
determining at least one interaction event contained in the measurand;
registering at least one of the interaction events and recording a first timestamp;
triggering a triggering operation aiming at least one interaction event based on a test script;
recording a second timestamp corresponding to the trigger operation;
and determining the test result of the tested object based on the time difference of the first time stamp and the second time stamp and a time threshold value.
In an embodiment of the present invention, after determining at least one interaction event contained in the modified measured object, the at least one interaction event is registered, and a first timestamp at which the interaction event registration is performed is recorded. Triggering a triggering operation aiming at least one interaction event by using a pre-edited test script so that the interaction event executes a corresponding interaction operation, and recording a second time stamp corresponding to the triggering operation. Furthermore, the first time stamp and the second time stamp are compared to generate a time difference, and the time difference is compared with a time threshold value, so that a test result of the measured object can be output. By the scheme, when the tested object is subjected to relevant tests, the test script can be used for testing the function response effect of the interaction event, so that the test function integrity can be effectively improved, and the condition that the application requirements of a user cannot be met after the service application is improved is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a target testing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating a target test flow according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a target testing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device corresponding to the target test apparatus provided in the embodiment of fig. 3.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
With the development of business applications, more and more users participate in business applications, so that the number of users is increased, and the service capacity of business applications needs to be further improved. To meet the demands of market and user diversity, there is also a need to continually refine and optimize business applications based on current applications. When the service application function is expanded or the capability is improved, technicians are required to make appropriate modifications on the underlying code or architecture. In order to ensure that the modified service application can be used normally, each service component in the service application is usually tested. However, existing tests are usually performed to test whether the function can be implemented, i.e., to test the functional integrity. In some cases, although the function can be realized, the user experience is not good, for example, the user is required to wait for a long time. Therefore, a solution capable of testing the response effect of the modified service application function is needed.
Fig. 1 is a schematic flowchart of a target testing method provided in an embodiment of the present application, which is applied to a server (e.g., a cloud server or a server cluster) and may also be applied to a local computer, as shown in fig. 1, the method includes the following steps:
101: at least one interaction event contained in the object under test is determined.
102: at least one of the interaction events is registered and a first timestamp is recorded.
103: triggering a triggering operation for at least one of the interaction events based on a test script.
104: and recording a second timestamp corresponding to the trigger operation.
105: and determining the test result of the tested object based on the time difference of the first time stamp and the second time stamp and a time threshold value.
It should be noted that the measured object may be a modified component, such as a component for interaction, a component for response operation or a data statistics component, etc. According to business requirements, some components need to be updated continuously with data and functions. After passing the update, the modified component needs to be tested. The tester will focus on the modified component as a focused test object, and when there are more components to be tested, each component includes various interaction events, for example, responding to a click to display data, responding to a click to send data, and the like. Although these interaction events are not in the scope of the present modification, the generation of these interaction events is to be realized depending on the underlying components. In other words, although the components can achieve the desired functions after being modified, the response speed of the interactive events is affected because the functions become complicated and diversified or the data amount increases. Therefore, in order to improve the user experience, the response speed of each interactive event needs to be tested. In particular, the present invention relates to a method for producing,
following the object under test (typically the modified component) where testing is explicitly required, at least one interaction event contained in the object under test is determined. A registration operation for an interactivity event is performed and a first timestamp for registering the interactivity event is recorded.
The test script is a pre-edited script file for testing the interaction event. After the first timestamp is recorded, a trigger operation on the interaction event is simulated by using the test script. And recording a second time stamp corresponding to the trigger operation.
And comparing the first time stamp with the second time stamp to obtain a time difference, and comparing the time difference with a time threshold. For example, the first timestamp is 1 minute 03 seconds and the second timestamp is 1 minute 05 seconds. Assume that the preset time threshold is 3 seconds. It can be seen that the time difference is smaller than the time threshold, and thus the test result of the object to be tested is a pass test.
In one or more embodiments of the present application, the registering at least one of the interaction events and recording a first timestamp includes: registering at least one interactive event, and generating a first page snapshot corresponding to the interactive event; and taking the generation time of the first page snapshot as the first timestamp.
In practical applications, a measured object may contain many interaction events at the same time. When testing is performed, individual testing needs to be performed on each interactive event, so that mutual influence among the interactive events is avoided, and the measured response effect is accurate. Of course, in some application scenarios, if testing of multiple interactivity events at the same time can be supported, interactivity events may also be registered at the same time.
For example, after a certain interaction event is registered, a UI page corresponding to the interaction event is generated as a first page snapshot, which represents a page content state before the interaction event occurs. And, when the first page snapshot is generated, the generation time is taken as the first time stamp.
Of course, if the first page snapshot is not generated, the time of registering the interactive event may also be directly obtained as the first timestamp. In practical application, the user can select according to the needs of the user.
In one or more embodiments of the present application, the recording a second timestamp corresponding to the trigger operation includes: responding to the trigger operation, and generating a second page snapshot; and taking the generation time of the second page snapshot as the second timestamp.
In practical application, when the test script is executed, a corresponding operation is triggered. And after the corresponding operation is executed, generating a second page snapshot, wherein the second page snapshot contains the page content state after the interaction event is completed. By comparing the first page snapshot with the second page snapshot, the changed part in the page can be easily seen, and whether the changed part is in accordance with the expectation or not is further judged.
And recording the time corresponding to the generated snapshot as a second timestamp while generating the second page snapshot.
In one or more embodiments of the present application, the determining the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold includes:
if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
In practical application, after the first time stamp and the second time stamp are respectively obtained, the time difference is calculated and obtained based on the first time stamp and the second time stamp, and the time difference is compared with the time threshold value, so that whether the test is passed or not is judged according to the comparison result. And if the time difference is smaller than the time threshold, the test is passed, and the corresponding interaction event is cancelled. For example, the first timestamp is 1 minute 03 seconds and the second timestamp is 1 minute 05 seconds. Assume that the preset time threshold is 3 seconds. It can be known that the time difference is smaller than the time threshold, and therefore the interaction event is mainly the result of the test of the object to be tested is passing the test.
On the contrary, if the first timestamp is 1 minute 03 seconds, the second timestamp is 1 minute 08 seconds, the time difference is 5 seconds, the corresponding time threshold is 3 seconds, and the time difference is greater than the time threshold, the test is failed, the test is terminated, and the promotion information is sent to the staff to remind the staff that the test is failed, so that the problem is solved as soon as possible.
In one or more embodiments of the present application, the determining the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold includes: comparing the first page snapshot with the second page snapshot, and if the comparison result meets a preset result, comparing the time difference with the time threshold; if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event; and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
In practical applications, both the function realization and the function effect are concerned with the test result of the tested object. That is, in some cases, the snapshot files need to be compared first. For example, the first page snapshot is compared to the second page snapshot. After comparison, if the change part in the page meets the preset result, the function is realized without problems. Further, the functional effect (functional response effect) is tested, that is, whether the test is passed or not is determined based on the comparison result of the time difference between the first time threshold and the second time threshold and the time threshold. Reference may be made in particular to the above-described embodiments.
If the first page snapshot is compared with the second page snapshot, and the changed part of the page content is found not to meet the preset result, the function cannot be normally realized, and then the test comparison of the function response effect is not necessary. Through above-mentioned target test technical scheme, not only can realize testing the function realization, can also realize the test to function response effect, on guaranteeing the available basis of function, can also effectively promote user experience effect.
In one or more embodiments of the present application, before determining at least one interaction event contained in the measured object, the method further includes: determining at least one modified component in the front-end component; and using the modified component as the measured object.
It is readily understood that, depending on business development needs, the front-end components need to be optimized, for example, to add new component functionality or to modify related component parameters. Other interaction events may be directly or indirectly affected, and the response effect of the interaction event, such as response delay, may be affected. Therefore, the modified component is preferentially used as the measured object when the test is performed.
In practical application, other components having a direct or indirect calling relationship with the component can also be used as the tested object, so that the interaction event can be tested more comprehensively. Moreover, the need for a tester to individually customize the test cases for each component's interaction events is eliminated. Through the technical scheme, the comprehensive test special for the interaction events in the components can be realized, and the problems of forgetting the test and omitting the test can be effectively avoided.
It should be noted that, in the technical solution of the present application, the interaction event includes: at least one of a mouse event and a click event. Of course, other interaction class events are also possible.
In order to better understand the technical solution of the present application, the overall flow of the target test is illustrated in the following with reference to fig. 2. Fig. 2 is a schematic diagram illustrating a target test flow according to an embodiment of the present application. As can be seen from fig. 2, a page of a tested object (e.g., a tested component) is loaded first, and a click event included in the tested object is registered. And acquiring a first time stamp after the registration work is finished. And then triggering a click event based on the JS script, and recording a second timestamp for responding based on the click event. A time difference between the first time stamp and the second time stamp is calculated. And comparing the time difference with a time threshold, if the time difference is smaller than the time threshold, the tested object passes the test, and the corresponding click event is cancelled. Otherwise, if the time difference is greater than the time threshold, the test fails.
Based on the above embodiment, after determining at least one interaction event contained in the modified measured object, the at least one interaction event is registered, and a first timestamp at which the interaction event registration is performed is recorded. Triggering a triggering operation aiming at least one interaction event by using a pre-edited test script so that the interaction event executes a corresponding interaction operation, and recording a second time stamp corresponding to the triggering operation. Furthermore, the first time stamp and the second time stamp are compared to generate a time difference, and the time difference is compared with a time threshold value, so that a test result of the measured object can be output. By the scheme, when the tested object is subjected to relevant tests, the test script can be used for testing the function response effect of the interaction event, so that the test function integrity can be effectively improved, and the condition that the application requirements of a user cannot be met after the service application is improved is avoided.
Based on the same idea, the embodiment of the application further provides a target testing device, and an execution main body of the device can be a client of a service driver. Fig. 3 is a schematic structural diagram of a target testing apparatus according to an embodiment of the present disclosure. As can be seen from fig. 3, the device comprises:
a determining module 31 for determining at least one interaction event contained in the object under test;
a registration module 32, configured to register at least one of the interaction events and record a first timestamp;
a triggering module 33, configured to trigger a triggering operation for at least one of the interaction events based on a test script;
a recording module 34, configured to record a second timestamp corresponding to the trigger operation;
the determining module 31 is further configured to determine the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold.
Optionally, the registering module 32 is further configured to register at least one interactive event, and generate a first page snapshot corresponding to the interactive event;
and taking the generation time of the first page snapshot as the first timestamp.
Optionally, the recording module 34 is further configured to generate a second page snapshot in response to the triggering operation;
and taking the generation time of the second page snapshot as the second timestamp.
Optionally, the determining module 31 is further configured to determine that the test result of the tested object is a test pass if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, and cancel at least one of the interaction events;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
Optionally, the determining module 31 is further configured to compare the first page snapshot with the second page snapshot, and if the comparison result meets a preset result, compare the time difference with the time threshold;
if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
Optionally, the determining module 31 is further configured to determine at least one modified component in the front-end component; and using the modified component as the measured object.
Optionally, the interaction event includes: at least one of a mouse event and a click event.
In a possible design, the structure of the target testing apparatus shown in fig. 3 may be implemented as an electronic device, and as shown in fig. 4, a schematic structural diagram of an electronic device corresponding to another target testing apparatus provided in the embodiment shown in fig. 3 may include: a processor 41, a memory 42, and the memory 42 is used for storing one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 41, implement the steps performed by the server in the foregoing embodiments.
Optionally, the electronic device may further include a communication interface 43 for communicating with other devices.
In addition, an embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program enables a client to implement the target testing method in the embodiment shown in fig. 3 when the computer program is executed.
Based on the above embodiment, after determining at least one interaction event contained in the modified measured object, the at least one interaction event is registered, and a first timestamp at which the interaction event registration is performed is recorded. Triggering a triggering operation aiming at least one interaction event by using a pre-edited test script so that the interaction event executes a corresponding interaction operation, and recording a second time stamp corresponding to the triggering operation. Furthermore, the first time stamp and the second time stamp are compared to generate a time difference, and the time difference is compared with a time threshold value, so that a test result of the measured object can be output. By the scheme, when the tested object is subjected to relevant tests, the test script can be used for testing the function response effect of the interaction event, so that the test function integrity can be effectively improved, and the condition that the application requirements of a user cannot be met after the service application is improved is avoided. According to the scheme, the interactive event testing process is independently carried out from the whole testing process, so that the condition that individual interactive events are missed to be tested or the test is incomplete in the whole testing process can be effectively avoided.
The above-described embodiments of the apparatus are merely illustrative, and 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 network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable resource updating apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource updating apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable resource updating apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable resource updating apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A target test method is applied to a server side, and the method comprises the following steps:
determining at least one interaction event contained in the measurand;
registering at least one of the interaction events and recording a first timestamp;
triggering a triggering operation aiming at least one interaction event based on a test script;
recording a second timestamp corresponding to the trigger operation;
and determining the test result of the tested object based on the time difference of the first time stamp and the second time stamp and a time threshold value.
2. The method of claim 1, wherein registering at least one of the interaction events and recording a first timestamp comprises:
registering at least one interactive event, and generating a first page snapshot corresponding to the interactive event;
and taking the generation time of the first page snapshot as the first timestamp.
3. The method according to claim 1 or 2, wherein the recording of the second timestamp corresponding to the trigger operation comprises:
responding to the trigger operation, and generating a second page snapshot;
and taking the generation time of the second page snapshot as the second timestamp.
4. The method of claim 1, wherein determining the subject test result based on the time difference of the first time stamp and the second time stamp and a time threshold comprises:
if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
5. The method of claim 3, wherein determining the subject test result based on the time difference of the first time stamp and the second time stamp and a time threshold comprises:
comparing the first page snapshot with the second page snapshot, and if the comparison result meets a preset result, comparing the time difference with the time threshold;
if the time difference between the first time stamp and the second time stamp is smaller than the time threshold, determining that the test result of the tested object is that the test is passed, and logging off at least one interactive event;
and if the time difference between the first time stamp and the second time stamp is greater than the time threshold, determining that the test result of the tested object is test failure.
6. The method of claim 1, wherein prior to determining at least one interaction event contained in the measurand, further comprising:
determining at least one modified component in the front-end component;
and using the modified component as the measured object.
7. The method of claim 1, wherein the interaction event comprises: at least one of a mouse event and a click event.
8. An object testing device, applied to a server, the device comprising:
the determination module is used for determining at least one interaction event contained in the measured object;
the registration module is used for registering at least one interactive event and recording a first time stamp;
the trigger module is used for triggering trigger operation aiming at least one interaction event based on the test script;
the recording module is used for recording a second timestamp corresponding to the trigger operation;
the determining module is further configured to determine the test result of the tested object based on the time difference between the first time stamp and the second time stamp and a time threshold.
9. An electronic device, comprising: a processor, a memory to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the target test method of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by one or more processors, causes the one or more processors to perform acts comprising:
determining at least one interaction event contained in the measurand;
registering at least one of the interaction events and recording a first timestamp;
triggering a triggering operation aiming at least one interaction event based on a test script;
recording a second timestamp corresponding to the trigger operation;
and determining the test result of the tested object based on the time difference of the first time stamp and the second time stamp and a time threshold value.
CN202110113509.7A 2021-01-27 2021-01-27 Target test method, device, equipment and storage medium Active CN112905449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110113509.7A CN112905449B (en) 2021-01-27 2021-01-27 Target test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110113509.7A CN112905449B (en) 2021-01-27 2021-01-27 Target test method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112905449A true CN112905449A (en) 2021-06-04
CN112905449B CN112905449B (en) 2024-04-23

Family

ID=76119125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110113509.7A Active CN112905449B (en) 2021-01-27 2021-01-27 Target test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112905449B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815966A (en) * 2022-03-30 2022-07-29 中国银行股份有限公司 Method, device and equipment for correcting timing error of operating system and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102582A (en) * 2014-07-15 2014-10-15 深圳市金立通信设备有限公司 Application program running detecting device and terminal
CN104679649A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Software fluency testing method and device
CN104731699A (en) * 2013-12-20 2015-06-24 鸿富锦精密工业(深圳)有限公司 Test file update system and method
CN104794050A (en) * 2014-01-21 2015-07-22 腾讯科技(深圳)有限公司 Application program test method, device and system
US20150269059A1 (en) * 2014-03-19 2015-09-24 International Business Machines Corporation Progressive snapshots in automated software testing
CN107562610A (en) * 2017-09-21 2018-01-09 上海谦问万答吧云计算科技有限公司 Obtain method, apparatus, terminal and the medium of page load time
CN108376117A (en) * 2018-02-07 2018-08-07 网易(杭州)网络有限公司 The test method and equipment of interaction response
US20180336258A1 (en) * 2017-05-22 2018-11-22 Sap Se Validating Query Results During Asynchronous Database Replication
CN109299000A (en) * 2018-08-22 2019-02-01 中国平安人寿保险股份有限公司 A kind of webpage response test method, computer readable storage medium and terminal device
CN109766250A (en) * 2017-11-09 2019-05-17 广东欧珀移动通信有限公司 Mobile terminal and its response performance test method, device and storage medium
CN109840206A (en) * 2018-12-26 2019-06-04 深圳壹账通智能科技有限公司 Data test method, apparatus, terminal and storage medium
CN110046101A (en) * 2019-04-15 2019-07-23 腾讯音乐娱乐科技(深圳)有限公司 Page automated testing method, device and computer storage medium
CN110750433A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Interface test method and device
CN110825456A (en) * 2019-11-01 2020-02-21 北京博睿宏远数据科技股份有限公司 Loading time calculation method and device, computer equipment and storage medium
CN110908887A (en) * 2018-09-14 2020-03-24 飞狐信息技术(天津)有限公司 Method and system for automatically testing response speed of application program
CN111104315A (en) * 2019-11-29 2020-05-05 京东数字科技控股有限公司 Test script generation method and device and computer readable storage medium
CN112000563A (en) * 2020-08-26 2020-11-27 支付宝(杭州)信息技术有限公司 User behavior recording method, device and equipment

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679649A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Software fluency testing method and device
CN104731699A (en) * 2013-12-20 2015-06-24 鸿富锦精密工业(深圳)有限公司 Test file update system and method
CN104794050A (en) * 2014-01-21 2015-07-22 腾讯科技(深圳)有限公司 Application program test method, device and system
US20150269059A1 (en) * 2014-03-19 2015-09-24 International Business Machines Corporation Progressive snapshots in automated software testing
CN104102582A (en) * 2014-07-15 2014-10-15 深圳市金立通信设备有限公司 Application program running detecting device and terminal
US20180336258A1 (en) * 2017-05-22 2018-11-22 Sap Se Validating Query Results During Asynchronous Database Replication
CN107562610A (en) * 2017-09-21 2018-01-09 上海谦问万答吧云计算科技有限公司 Obtain method, apparatus, terminal and the medium of page load time
CN109766250A (en) * 2017-11-09 2019-05-17 广东欧珀移动通信有限公司 Mobile terminal and its response performance test method, device and storage medium
CN108376117A (en) * 2018-02-07 2018-08-07 网易(杭州)网络有限公司 The test method and equipment of interaction response
CN110750433A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Interface test method and device
CN109299000A (en) * 2018-08-22 2019-02-01 中国平安人寿保险股份有限公司 A kind of webpage response test method, computer readable storage medium and terminal device
CN110908887A (en) * 2018-09-14 2020-03-24 飞狐信息技术(天津)有限公司 Method and system for automatically testing response speed of application program
CN109840206A (en) * 2018-12-26 2019-06-04 深圳壹账通智能科技有限公司 Data test method, apparatus, terminal and storage medium
CN110046101A (en) * 2019-04-15 2019-07-23 腾讯音乐娱乐科技(深圳)有限公司 Page automated testing method, device and computer storage medium
CN110825456A (en) * 2019-11-01 2020-02-21 北京博睿宏远数据科技股份有限公司 Loading time calculation method and device, computer equipment and storage medium
CN111104315A (en) * 2019-11-29 2020-05-05 京东数字科技控股有限公司 Test script generation method and device and computer readable storage medium
CN112000563A (en) * 2020-08-26 2020-11-27 支付宝(杭州)信息技术有限公司 User behavior recording method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815966A (en) * 2022-03-30 2022-07-29 中国银行股份有限公司 Method, device and equipment for correcting timing error of operating system and storage medium

Also Published As

Publication number Publication date
CN112905449B (en) 2024-04-23

Similar Documents

Publication Publication Date Title
CN106897206B (en) Service testing method and device
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
CN106487603B (en) Response testing method and device
US20130298110A1 (en) Software Visualization Using Code Coverage Information
CN110795311B (en) Event playback method and device
CN110780882B (en) Method, device, system, electronic equipment and storage medium for processing code file
US11169910B2 (en) Probabilistic software testing via dynamic graphs
CN110944231B (en) Monitoring method and device of video player
CN104298589B (en) A kind of performance test methods and equipment
CN114911706A (en) Use case recommendation method, device, equipment and storage medium
CN112905449B (en) Target test method, device, equipment and storage medium
US20180052759A1 (en) Performance metric contextualization in a distributed computing environment
EP4006725A1 (en) Virtual machine migration processing and strategy generation method, apparatus and device, and storage medium
CN110837467B (en) Software testing method, device and system
CN109933506A (en) Server big data method of evaluating performance, system and electronic equipment and storage medium
CN116010244A (en) Automatic test method, device, electronic equipment and storage medium
CN115617668A (en) Compatibility testing method, device and equipment
KR101346835B1 (en) Method and appratus for processing error of application
US9990274B2 (en) Testing integrated business systems
CN114816815A (en) Fault positioning method, log format configuration method, equipment and storage medium
CN111258873B (en) Test method and device
CN111158873A (en) System state machine implementation method and device, storage medium and processor
CN112035515A (en) Method and device for configuring query conditions, computer equipment and readable storage medium
CN114374606B (en) Method, device, electronic equipment and storage medium for detecting configuration file
CN113641644B (en) Data pushing system

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