[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113836013A - Embedded point testing method and device, computer equipment and computer readable storage medium - Google Patents

Embedded point testing method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN113836013A
CN113836013A CN202111093132.XA CN202111093132A CN113836013A CN 113836013 A CN113836013 A CN 113836013A CN 202111093132 A CN202111093132 A CN 202111093132A CN 113836013 A CN113836013 A CN 113836013A
Authority
CN
China
Prior art keywords
buried point
tested
data processing
application program
processing result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111093132.XA
Other languages
Chinese (zh)
Inventor
林丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111093132.XA priority Critical patent/CN113836013A/en
Publication of CN113836013A publication Critical patent/CN113836013A/en
Pending legal-status Critical Current

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
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a buried point testing method, a buried point testing device, computer equipment and a computer readable storage medium, which are used for acquiring target simulation operation of a buried point to be tested aiming at a target application program and acquiring a current abnormal event; based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested; executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event; acquiring a data processing result of response simulation operation of a buried point to be tested in an abnormal state; according to the scheme, the test result of the buried point to be tested is determined according to the data processing result of the buried point to be tested, the target simulation operation and the current abnormal event aiming at the buried point to be tested are obtained, the target application program is in the corresponding abnormal state based on the current abnormal event, the buried point test is carried out on the buried point to be tested in the abnormal state, and the test efficiency of the buried point to be tested can be improved.

Description

Embedded point testing method and device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for testing a buried point, a computer device, and a computer-readable storage medium.
Background
In the buried point testing process, abnormal scene testing is needed, whether the buried points can be correctly processed in the abnormal scene or not is tested, and the problems of acquisition missing, repeated acquisition of user operation and the like are avoided. Due to the fact that the number of abnormal scenes is large and the types of the abnormal scenes are complex, all the abnormal scenes cannot be covered when the abnormal scenes are tested. Various abnormal scenes are generally thought out by calling a plurality of testers in the form of a brainstorm, and then whether the buried point fails or not is verified, but the mode is not systematic enough and depends on the working experience of the testers.
Disclosure of Invention
The embodiment of the application provides a buried point testing method and device, computer equipment and a computer readable storage medium, which can improve the efficiency of testing buried points.
The embodiment of the application provides a buried point testing method, which comprises the following steps:
acquiring target simulation operation of a buried point to be tested aiming at a target application program, and acquiring a current abnormal event;
based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested;
executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event;
acquiring a data processing result of the to-be-tested buried point responding to the simulation operation in the abnormal state;
and determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
Correspondingly, this application embodiment still provides a buried point testing arrangement, includes:
a first acquisition unit: the method comprises the steps of obtaining target simulation operation of a buried point to be tested aiming at a target application program and obtaining a current abnormal event;
an analog operation unit: the device is used for executing corresponding simulation operation aiming at the buried point to be tested based on the target simulation operation;
an abnormal operation unit: the system comprises a terminal, a target application program and a server, wherein the terminal is used for executing corresponding abnormal operation aiming at the terminal provided with the target application program so as to enable the terminal to be in an abnormal state indicated by the current abnormal event;
a second acquisition unit: the data processing device is used for acquiring a data processing result of the to-be-tested buried point responding to the simulation operation in the abnormal state;
a determination unit: and the testing result of the buried point to be tested is determined according to the data processing result of the buried point to be tested.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute any one of the buried point testing methods provided by the embodiments of the present application.
Accordingly, embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any one of the methods for testing a buried point provided in the embodiments of the present application.
The method comprises the steps of obtaining target simulation operation of a buried point to be tested aiming at a target application program and obtaining a current abnormal event; based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested; executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event; acquiring a data processing result of response simulation operation of a buried point to be tested in an abnormal state; according to the scheme, the target simulation operation and the current abnormal event aiming at the buried point to be tested are obtained, the target application program is in an abnormal state based on the current abnormal event, the response of the buried point to be tested aiming at the target simulation operation is tested in the abnormal state, the corresponding test code does not need to be written aiming at the target application program in advance, and the test efficiency of the buried point to be tested can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a buried point testing method provided in an embodiment of the present application;
fig. 2 is another flowchart of a buried point testing method provided in an embodiment of the present application;
FIG. 3 is a schematic view of a buried point testing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a buried point testing method and device, computer equipment and a computer readable storage medium. The embedded point testing device can be integrated in computer equipment, and the computer equipment can be a server or equipment such as a terminal.
The terminal may include a mobile phone, a wearable smart device, a tablet Computer, a notebook Computer, a Personal Computer (PC), a vehicle-mounted Computer, and the like.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The present embodiment will be described from the perspective of a buried point testing device, which may be specifically integrated in a computer device. As shown in fig. 1, a specific process of the embedded point testing method provided in the embodiment of the present application may be as follows:
101. and acquiring target simulation operation of the to-be-tested buried point aiming at the target application program, and acquiring the current abnormal event.
The target application may be an application currently performing the embedded point test, such as an application (App), a sub-application (e.g., an applet), and a web client. The target application program may deploy corresponding embedded point codes to set embedded points for the target application program, where the embedded points are used to capture, process, and send relevant embedded point data for a specific user behavior or event, such as obtaining and reporting the number of times a user clicks a certain button, the duration of watching a certain video, and the like.
The embedded point to be tested can be an embedded point which needs to be tested in the target application program, and the embedded point test can be used for testing whether the execution logic of the embedded point is correct when the target application program runs in an abnormal state.
The target simulation operation may simulate a user operation on a user interface corresponding to the target application program, such as click, double click, long press, slide, and return simulation operations.
For example, the computer device may specifically obtain a target simulation operation from a database, and obtain a current abnormal event, specifically, the database may include an operation library and an abnormal event library, the operation library may include at least one simulation operation, for example, a click operation, a double click operation, a long press operation, a slide operation, and a return operation, and the abnormal event library may include at least one abnormal event, for example, an abnormal event such as insufficient storage space, insufficient access right, a network abnormality, a server failure, and a process abnormality.
Optionally, the target simulation operation and the current abnormal event of the to-be-tested buried point for the target application program may be determined from the database according to the selection operation of the user, and optionally, the target simulation operation and the current abnormal event may be sequentially obtained from the database according to the sequence.
102. And based on the target simulation operation, executing corresponding simulation operation aiming at the buried point to be tested.
For example, if the target simulation operation is clicking, and the buried point to be tested corresponds to a button of the target application program, the clicked simulation operation may be performed on the button of the target application program corresponding to the buried point to be tested, and optionally, the button may be clicked through an automatic testing tool appium simulation button.
103. And executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event.
For example, according to the current abnormal event, corresponding abnormal operation is executed for the terminal, so that the target program is in an abnormal state corresponding to the abnormal event, and an abnormality is encountered when the corresponding embedded point code is executed by the embedded point to be tested.
For example, the storage space is insufficient, the storage space of the mobile phone system can be occupied by generating a large file, the buried point to be tested is generally stored in the local terminal system first, and then is reported to the server periodically, at this time, the data cannot be stored in the local terminal system by the buried point due to the insufficient storage space of the terminal, that is, the buried point to be tested encounters an abnormality in executing the corresponding buried point code.
The buried point data is stored to a terminal and needs to be written with authority, and when the authority is not written, the execution of the buried point code of the buried point to be tested is abnormal; when the data of the buried point is reported to the server, the data can be reported only by the network authority, and if the terminal is abnormal because of no network connection authority, the authority of the terminal can be managed, and the target application program is in a corresponding abnormal state.
For another example, when the target application executes the embedded point code of the embedded point to be tested, it may encounter a popup window of another application, causing the APP to be trapped in a background mode, thereby preventing the embedded point code of the embedded point to be tested from being executed. The message popup window can be popped up by installing third-party software capable of sending the message popup window in advance, for example, mailbox software, and the message popup window for receiving the mail can be triggered by sending the mail at a specific time point to display the message popup window of the received mail.
For another example, the buried point data to be tested is reported to the cloud end, and if the cloud server has a fault, for example, refuses to accept the network connection, the buried point code to be tested is abnormal when executed. Therefore, the cloud server interface can be closed in a cloud interface mode and the like.
It is understood that the abnormal event may also include other events, such as a weak network, a low battery, an alarm, etc., without limitation.
Optionally, if the current abnormal event is that the storage space is insufficient, the file may be sent to the terminal to occupy the content of the terminal, that is, the step "execute a corresponding abnormal operation for the terminal installed with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event" may specifically include:
acquiring a memory occupation file based on the current abnormal event;
and sending a memory occupation file to the terminal so that the storage space of the terminal is occupied and the target application program is in an abnormal state.
For example, specifically, if the current abnormal event is that the storage space is insufficient, the memory occupation file is obtained based on the current abnormal event, and the memory occupation file is sent to the terminal so as to occupy the storage space of the terminal, which causes the insufficient storage space of the terminal, and the target application program on the terminal is in an abnormal state, and an abnormality is encountered when the embedded point code is executed by the embedded point to be tested.
The memory file may be obtained locally from the computer device or obtained from a server, which is not limited herein.
Optionally, if the current abnormal event is a process abnormality, that is, the target application enters the background mode due to the running of other applications in the running process, the computer device may send a message to other applications on the terminal to enable the terminal to pop up a message popup window, so that the target application enters the background mode, that is, the step "execute corresponding abnormal operation for the terminal installed with the target application, so that the target application is in an abnormal state indicated by the current abnormal event" may include:
acquiring an object identifier of a received message of an auxiliary application program on a terminal;
and sending a message to the terminal based on the object identifier, and triggering an auxiliary application program on the terminal to display a message popup window so that the target application program enters a background mode and is in an abnormal state.
The auxiliary application may be an application different from the target application on the terminal, and may be, for example, a short message application, an instant messaging application, an email application, and the like.
The object identifier may be a user account logged in the secondary application, or a contact number of the terminal, or the like.
For example, the method specifically includes acquiring an object identifier of a message received by an auxiliary application on the terminal, sending the message to the terminal according to the object identifier, and triggering the terminal to display a message popup window based on the received message, so that the target application is in an abnormal state when the target application performs a background mode, and the target application encounters an abnormality when the to-be-tested embedded point executes the embedded point code because the target application performs the background.
104. And acquiring a data processing result of the response simulation operation of the buried point to be tested in the abnormal state.
The data processing result may include buried point data corresponding to the buried point to be tested, and device status information, for example, the buried point data may include the number of times a user clicks a certain button, the duration of watching a certain video, and an operation record, and the device status information may include storage space capacity, electric quantity, an execution log, and the like.
For example, the method may specifically include acquiring buried point data generated when the buried point to be tested runs the buried point code in the abnormal state, and acquiring device state information of the terminal when the buried point to be tested executes the buried point code.
Optionally, the data processing result of the buried point to be tested may be determined according to the device state information of the terminal, that is, the step "obtaining the data processing result of the buried point to be tested responding to the simulation operation in the abnormal state" may specifically include:
acquiring equipment state information of a terminal;
and determining a data processing result of the response simulation operation of the buried point to be tested according to the equipment state information of the terminal.
For example, when the storage space of the terminal is insufficient, the correct execution logic of the buried point to be tested may be to cache the buried point data in the terminal memory, and try to write the data into the local system of the terminal continuously, and when the storage space is surplus, write the data into the local system successfully and report the buried point data successfully. The computer device may monitor device status information of the terminal, for example, data processing results of the buried point to be tested in an abnormal state through the capacity of the storage space of the terminal and the execution log of the terminal.
The device state information may also be obtained from a terminal, which is not limited herein.
105. And determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
For example, if the data processing result indicates that the buried point to be tested successfully uploads the buried point data to the server under the abnormal condition, the test result of the test buried point can be determined to be qualified according to the data processing result.
Optionally, the method may further include comparing the data processing result with a preset data processing result, and determining a test result of the buried point to be tested according to the comparison result, that is, determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested, which specifically includes:
acquiring a preset data processing result matched with a buried point to be tested;
and determining a test result of the buried point to be tested according to a preset data processing result and a data processing result of the buried point to be tested.
For example, the method may specifically include obtaining a corresponding preset data processing result for the buried point to be tested, where the preset processing result is a correct processing mode of the buried point to be tested, and comparing the preset data processing result of the buried point to be tested with the data processing result to determine a test result of the buried point to be tested.
Optionally, the step of determining the test result according to whether the preset data processing result and the data processing result are consistent, that is, "determining the test result of the buried point to be tested according to the preset data processing result and the data processing result of the buried point to be tested", may specifically include:
if the preset data processing result of the buried point to be tested is consistent with the data processing result, the test result of the buried point to be tested is qualified;
and if the preset data processing result of the buried point to be tested is inconsistent with the data processing result, the test result of the buried point to be tested is unqualified.
For example, if the preset result is consistent with the data processing result, the test result of the buried point to be tested is qualified; and if the preset data processing result of the buried point to be tested is inconsistent with the data processing result, the test result of the buried point to be tested is unqualified.
Optionally, the abnormal event library may include at least one abnormal event, the to-be-tested buried point may be tested by successively acquiring the abnormal events for the to-be-tested buried point, and the test result of the to-be-tested buried point is determined according to the test results of the plurality of abnormal events, that is, "determining the test result of the to-be-tested buried point according to the data processing result of the to-be-tested buried point", specifically, the step may include:
if the current abnormal event is not a preset abnormal event, acquiring a related abnormal event of the current abnormal event from an abnormal event library, taking the related abnormal event as the current abnormal event, returning to execute a target-based simulation operation, and executing a corresponding simulation operation aiming at the buried point to be tested;
and if the current abnormal event is a preset abnormal event, determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
For example, specifically, if the current abnormal event is not the last abnormal event in the abnormal database, a correlated abnormal event different from the current abnormal event is obtained from the abnormal event library, the embedded point test is performed on the embedded point to be tested based on four correlated abnormal events until all the abnormal events in the abnormal event library are used for performing the embedded point test on the embedded point to be tested, and the test result of the embedded point to be tested is determined according to the test result obtained by performing the embedded point test on the embedded point to be tested based on each abnormal event (the finally obtained test result may include the test result obtained based on a plurality of abnormal events).
Optionally, for each buried point to be tested in the target application program, the target simulation operation may be obtained from the operation library one by one, and for each target simulation operation, the current abnormal event may be obtained from the abnormal event library one by one to test the buried point to be tested, specifically, as shown in fig. 2, a 201 computer device determines the buried point to be tested of the target application program, for example, any buried point in the target application program, which is not tested by the buried point test, may be taken as the buried point to be tested, then step 202 is performed to obtain the target simulation operation from the operation library, 203 determines whether the test of the target simulation operation is completed for the buried point to be tested, i.e., whether the simulation operation corresponding to the target simulation operation is performed for the buried point to be tested, if yes, step 202 is returned to determine the buried point to be tested of the target application program, if no, step 204 is performed to obtain the current abnormal event, which is not tested by the buried point, in the abnormal event library, then, step 205 is executed to determine whether a buried point test has been performed on the buried point to be tested based on the current abnormal event, if so, step 204 is returned to, if not, step 206 is executed to execute an abnormal operation corresponding to the abnormal event, so that the target application program is in an abnormal state indicated by the abnormal event, step 207 is executed to determine that all the abnormal events in the abnormal event library are all equal to the completion of the test, if so, step 208 is executed to obtain a test result, and if not, step 204 is returned to.
As can be seen from the above, in the embodiment of the application, the target simulation operation of the to-be-tested embedded point for the target application program is obtained, and the current abnormal event is obtained; based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested; executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event; acquiring a data processing result of response simulation operation of a buried point to be tested in an abnormal state; according to the scheme, the target simulation operation and the current abnormal event aiming at the buried point to be tested are obtained, the target application program is in an abnormal state based on the current abnormal event, the response of the buried point to be tested aiming at the target simulation operation is tested in the abnormal state, the corresponding test code does not need to be written aiming at the target application program in advance, and the test efficiency of the buried point to be tested can be improved.
In order to better implement the buried point testing method provided by the embodiment of the present application, in an embodiment, a buried point testing apparatus is further provided. The terms are the same as those in the above-mentioned buried point test method, and the details of the implementation can be referred to the description in the method embodiment.
The buried point testing device may be specifically integrated in a computer device, as shown in fig. 3, and may include: the first acquiring unit 301, the simulated operating unit 302, the abnormal operating unit 303, the second acquiring unit 304 and the determining unit 305 are as follows:
(1) first acquisition unit 301: the method is used for obtaining target simulation operation of the buried point to be tested aiming at the target application program and obtaining the current abnormal event.
(2) The analog operation unit 302: and the simulation system is used for executing corresponding simulation operation aiming at the buried point to be tested based on the target simulation operation.
(3) The abnormal operation unit 303: and the method is used for executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event.
Optionally, the abnormal operation unit 303 may include a first obtaining subunit and a first sending subunit, specifically:
an acquisition subunit: the method comprises the steps of obtaining a memory occupation file based on a current abnormal event;
a sending subunit: the memory occupation file is used for sending the memory occupation file to the terminal, so that the storage space of the terminal is occupied, and the target application program is in an abnormal state.
Optionally, the abnormal operation unit 303 may include a second obtaining subunit and a second sending subunit, specifically:
a second acquisition subunit: the method comprises the steps of obtaining an object identifier of an auxiliary application program on a terminal;
a second transmitting subunit: the method is used for sending a message to the terminal through the object identifier and triggering an auxiliary application program on the terminal to display a message popup window so that the target application program enters a background mode and is in an abnormal state.
(4) The second acquisition unit 304: the method is used for acquiring a data processing result of the response simulation operation of the buried point to be tested in the abnormal state.
Optionally, the second obtaining unit 304 may include a monitoring subunit and a first determining subunit, specifically:
a monitoring subunit: the terminal equipment state acquisition module is used for acquiring the equipment state of the terminal;
determining a subunit: and the data processing result is used for determining the response simulation operation of the buried point to be tested according to the equipment state of the terminal.
(5) The determination unit 305: and the testing result of the buried point to be tested is determined according to the data processing result of the buried point to be tested.
Optionally, the determining unit 305 may include a third obtaining subunit and a second determining subunit, specifically:
a third acquisition subunit: the device comprises a data acquisition module, a data processing module and a data processing module, wherein the data acquisition module is used for acquiring a preset data processing result matched with a buried point to be tested;
a second determination subunit: and the testing device is used for determining the testing result of the buried point to be tested according to the preset data processing result and the data processing result of the buried point to be tested.
Optionally, the second determining subunit may include a first determining module and a second determining module, specifically:
a first judgment module: the method comprises the steps of judging whether a preset data processing result of a buried point to be tested is consistent with a data processing result or not;
a second judging module: and if the preset data processing result of the buried point to be tested is inconsistent with the data processing result, the test result of the buried point to be tested is unqualified.
Optionally, the determining unit 305 may include a first circulation sub-unit and a second circulation sub-unit, specifically:
a first cyclic sub-unit: the device is used for acquiring the related abnormal event of the current abnormal event from the abnormal event library if the current abnormal event is not the preset abnormal event, returning the related abnormal event as the current abnormal event, executing the target-based simulation operation, and executing the corresponding simulation operation aiming at the buried point to be tested;
a second circulation subunit: and if the current abnormal event is a preset abnormal event, determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
As can be seen from the above, in the embedded point testing device in the embodiment of the present application, the first obtaining unit 301 obtains the target simulation operation of the embedded point to be tested for the target application program, and obtains the current abnormal event; performing corresponding simulation operation on the buried point to be tested by the simulation operation unit 302 based on the target simulation operation; executing corresponding abnormal operation on the terminal provided with the target application program through an abnormal operation unit 303, so that the target application program is in an abnormal state indicated by the current abnormal event; acquiring a data processing result of the response simulation operation of the buried point to be tested in the abnormal state by the second acquiring unit 304; finally, the determining unit 305 determines the testing result of the buried point to be tested according to the data processing result of the buried point to be tested, and according to the scheme, the target simulation operation and the current abnormal event for the buried point to be tested are obtained, the target application program is in an abnormal state based on the current abnormal event, the response of the buried point to be tested to the target simulation operation is tested in the abnormal state, and the corresponding testing code does not need to be written for the target application program in advance, so that the testing efficiency of the buried point to be tested can be improved.
An embodiment of the present application further provides a computer device, where the computer device may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, and specifically:
the computer device may include components such as a processor 1001 of one or more processing cores, memory 1002 of one or more computer-readable storage media, a power supply 1003, and an input unit 1004. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 4 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 1001 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby monitoring the computer device as a whole. Optionally, processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor, which mainly handles operating systems, user interfaces, computer programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 1002 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 access to the memory 1002.
The computer device further includes a power source 1003 for supplying power to each component, and preferably, the power source 1003 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power source 1003 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 1004, and the input unit 1004 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 1001 in the computer device loads the executable file corresponding to the process of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 runs the computer programs stored in the memory 1002, so as to implement various functions as follows:
acquiring target simulation operation of a buried point to be tested aiming at a target application program, and acquiring a current abnormal event;
based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested;
executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event;
acquiring a data processing result of response simulation operation of a buried point to be tested in an abnormal state;
and determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the computer device according to the embodiment of the present application may obtain the current abnormal event by obtaining the target simulation operation for the to-be-tested embedded point of the target application program; based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested; executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event; acquiring a data processing result of response simulation operation of a buried point to be tested in an abnormal state; according to the scheme, the target simulation operation and the current abnormal event aiming at the buried point to be tested are obtained, the target application program is in an abnormal state based on the current abnormal event, the response of the buried point to be tested aiming at the target simulation operation is tested in the abnormal state, the corresponding test code does not need to be written aiming at the target application program in advance, and the test efficiency of the buried point to be tested can be improved.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application provides a computer-readable storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute any one of the embedded point testing methods provided by the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the computer-readable storage medium can execute any embedded point testing method provided in the embodiments of the present application, beneficial effects that can be achieved by any embedded point testing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted herein for the foregoing embodiments.
The above detailed description is provided for a buried point testing method, an apparatus, a computer device and a computer readable storage medium provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of buried point testing, comprising:
acquiring target simulation operation of a buried point to be tested aiming at a target application program, and acquiring a current abnormal event;
based on the target simulation operation, corresponding simulation operation is executed aiming at the buried point to be tested;
executing corresponding abnormal operation aiming at the terminal provided with the target application program, so that the target application program is in an abnormal state indicated by the current abnormal event;
acquiring a data processing result of the to-be-tested buried point responding to the simulation operation in the abnormal state;
and determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
2. The method according to claim 1, wherein the current exception event includes insufficient terminal storage space, and performing a corresponding exception operation on the terminal installed with the target application program so that the target application program is in an exception state indicated by the current exception event comprises:
acquiring a memory occupation file based on the current abnormal event;
and sending the memory occupation file to the terminal so that the storage space of the terminal is occupied and the target application program is in an abnormal state.
3. The method according to claim 1, wherein the current exception event includes a process exception, and performing a corresponding exception operation for the terminal installed with the target application program so that the target application program is in an exception state indicated by the current exception event includes:
acquiring an object identifier of a message received by an auxiliary application program on the terminal;
and sending a message to the terminal based on the object identifier, and triggering an auxiliary application program on the terminal to display a message popup window so that the target application program enters a background mode and is in an abnormal state.
4. The method of claim 1, wherein the current abnormal event is contained in an abnormal event library, the abnormal event library comprises at least one abnormal event, and the determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested comprises:
if the current abnormal event is not a preset abnormal event, acquiring a related abnormal event of the current abnormal event from the abnormal event library, taking the related abnormal event as the current abnormal event, returning to execute the simulation operation based on the target, and executing the corresponding simulation operation aiming at the buried point to be tested;
and if the current abnormal event is a preset abnormal event, determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested.
5. The method of claim 1, wherein said obtaining a data processing result of said buried point under test responding to said simulation operation in said abnormal state comprises:
acquiring equipment state information of the terminal;
and determining a data processing result of the to-be-tested buried point responding to the simulation operation according to the equipment state information of the terminal.
6. The method as claimed in any one of claims 1 to 5, wherein the determining the test result of the buried point to be tested according to the data processing result of the buried point to be tested comprises:
acquiring a preset data processing result matched with the buried point to be tested;
and determining the test result of the buried point to be tested according to a preset data processing result and the data processing result of the buried point to be tested.
7. The method as claimed in claim 6, wherein the determining the test result of the buried point to be tested according to the preset data processing result and the data processing result of the buried point to be tested comprises:
if the preset data processing result of the buried point to be tested is consistent with the data processing result, the test result of the buried point to be tested is qualified;
and if the preset data processing result of the buried point to be tested is inconsistent with the data processing result, the test result of the buried point to be tested is unqualified.
8. A buried point testing device, comprising:
a first acquisition unit: the method comprises the steps of obtaining target simulation operation of a buried point to be tested aiming at a target application program and obtaining a current abnormal event;
an analog operation unit: the device is used for executing corresponding simulation operation aiming at the buried point to be tested based on the target simulation operation;
an abnormal operation unit: the system comprises a terminal, a target application program and a server, wherein the terminal is used for executing corresponding abnormal operation aiming at the terminal provided with the target application program so as to enable the terminal to be in an abnormal state indicated by the current abnormal event;
a second acquisition unit: the data processing device is used for acquiring a data processing result of the to-be-tested buried point responding to the simulation operation in the abnormal state;
a determination unit: and the testing result of the buried point to be tested is determined according to the data processing result of the buried point to be tested.
9. A computer device comprising a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute the buried point testing method of any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program which is loaded by a processor to perform the buried point testing method of any one of claims 1 to 7.
CN202111093132.XA 2021-09-17 2021-09-17 Embedded point testing method and device, computer equipment and computer readable storage medium Pending CN113836013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111093132.XA CN113836013A (en) 2021-09-17 2021-09-17 Embedded point testing method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111093132.XA CN113836013A (en) 2021-09-17 2021-09-17 Embedded point testing method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113836013A true CN113836013A (en) 2021-12-24

Family

ID=78959835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111093132.XA Pending CN113836013A (en) 2021-09-17 2021-09-17 Embedded point testing method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113836013A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117347755A (en) * 2023-09-27 2024-01-05 广州致远仪器有限公司 Test method, system, equipment and storage medium based on state machine

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834590A (en) * 2014-02-11 2015-08-12 腾讯科技(深圳)有限公司 Software test method and system
CN107608896A (en) * 2017-09-26 2018-01-19 上海爱优威软件开发有限公司 The detection method and system of a kind of terminal applies
CN109783363A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 A kind of anomalous event analogy method and device and computer equipment
CN110442501A (en) * 2019-07-22 2019-11-12 阿里巴巴集团控股有限公司 The method, apparatus and electronic equipment of analog service exception
CN110704299A (en) * 2019-08-27 2020-01-17 紫光云(南京)数字技术有限公司 Android platform APP abnormity testing method and device
CN111897723A (en) * 2020-07-20 2020-11-06 腾讯科技(深圳)有限公司 Method and device for testing application
CN112269744A (en) * 2020-10-30 2021-01-26 深圳壹账通智能科技有限公司 System abnormity testing method and device, computer equipment and storage medium
CN112506773A (en) * 2020-12-03 2021-03-16 安徽听见科技有限公司 Abnormal scene testing method, device, equipment and storage medium
CN113300912A (en) * 2021-05-21 2021-08-24 湖南快乐阳光互动娱乐传媒有限公司 Equipment testing method and device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834590A (en) * 2014-02-11 2015-08-12 腾讯科技(深圳)有限公司 Software test method and system
CN107608896A (en) * 2017-09-26 2018-01-19 上海爱优威软件开发有限公司 The detection method and system of a kind of terminal applies
CN109783363A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 A kind of anomalous event analogy method and device and computer equipment
CN110442501A (en) * 2019-07-22 2019-11-12 阿里巴巴集团控股有限公司 The method, apparatus and electronic equipment of analog service exception
CN110704299A (en) * 2019-08-27 2020-01-17 紫光云(南京)数字技术有限公司 Android platform APP abnormity testing method and device
CN111897723A (en) * 2020-07-20 2020-11-06 腾讯科技(深圳)有限公司 Method and device for testing application
CN112269744A (en) * 2020-10-30 2021-01-26 深圳壹账通智能科技有限公司 System abnormity testing method and device, computer equipment and storage medium
CN112506773A (en) * 2020-12-03 2021-03-16 安徽听见科技有限公司 Abnormal scene testing method, device, equipment and storage medium
CN113300912A (en) * 2021-05-21 2021-08-24 湖南快乐阳光互动娱乐传媒有限公司 Equipment testing method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117347755A (en) * 2023-09-27 2024-01-05 广州致远仪器有限公司 Test method, system, equipment and storage medium based on state machine
CN117347755B (en) * 2023-09-27 2024-04-26 广州致远仪器有限公司 Test method, system, equipment and storage medium based on state machine

Similar Documents

Publication Publication Date Title
CN106294176B (en) The method and system that application failure positions in Mac OS systems
CN105260082B (en) A kind of test data methods of exhibiting and exploitation terminal
CN110502318A (en) Event-handling method, event processing server, storage medium and device
CN111625383B (en) Process exception event processing method and device, electronic equipment and storage medium
CN110908880B (en) Buried point code injection method, event reporting method and related equipment thereof
CN112115038A (en) Application testing method and device and storage medium
CN111611140A (en) Reporting verification method and device of buried point data, electronic equipment and storage medium
CN112737800A (en) Service node fault positioning method, call chain generation method and server
CN112817869A (en) Test method, test device, test medium, and electronic apparatus
CN114609995B (en) Fault control method, device, system, equipment, medium and product
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN113836013A (en) Embedded point testing method and device, computer equipment and computer readable storage medium
CN113849356B (en) Equipment testing method and device, electronic equipment and storage medium
CN114064435A (en) Database test method, device, medium and electronic equipment
CN108874658A (en) A kind of sandbox analysis method, device, electronic equipment and storage medium
CN115567422A (en) Basic platform testing method, testing terminal, host and testing system
CN116306429A (en) Method, device, computer storage medium and terminal for realizing state data capture
CN115061450A (en) Flash test method, device and equipment for vehicle-mounted controller and storage medium
CN113821443A (en) Application program function detection method, device, equipment and storage medium
CN114650211A (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN112711518A (en) Log uploading method and device
CN115437903A (en) Interface test method, device, apparatus, storage medium, and program
CN111563030A (en) Method and device for testing scheduling system, electronic equipment and storage medium
CN111240990A (en) ISMCLI command line testing method, system, terminal and storage medium
CN114301969B (en) Message pushing method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination