CN109558331B - Application program defect detection method, device, equipment and storage medium - Google Patents
Application program defect detection method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109558331B CN109558331B CN201811535289.1A CN201811535289A CN109558331B CN 109558331 B CN109558331 B CN 109558331B CN 201811535289 A CN201811535289 A CN 201811535289A CN 109558331 B CN109558331 B CN 109558331B
- Authority
- CN
- China
- Prior art keywords
- application program
- information
- defect
- running
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/366—Software debugging using diagnostics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test 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 embodiment of the invention discloses a method, a device, equipment and a storage medium for detecting defects of an application program, wherein the method comprises the following steps: acquiring a defect detection result of an application program which is running by the local computer, wherein the defect detection result comprises an identifier of the application program and a defect identifier; acquiring current operation information of the application program according to a defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface; and sending the identification of the application program, the defect identification, the current running information of the application program and the local device information. The embodiment of the invention can realize one-key uploading of the identification and defect identification of the application program, the current running information of the application program and the equipment information of the local machine, saves time and improves the uploading efficiency of the running information and the equipment information of the local machine when the application program has defects.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for detecting defects of an application program.
Background
Software testing is the process of operating a program under specified conditions to discover bugs, or bugs (bugs), to measure software quality, and to evaluate whether it can meet design requirements.
When testing software of a mobile device, another testing device is generally used for testing. In the test of mobile software, after a defect is found, some media files (such as screenshots, videos and the like) of the mobile device are required to be used for demonstration when recording the problem. At present, the method for acquiring such information is to complete the forwarding of the file by means of a third-party communication tool, then download the file for unloading on the testing device, and finally upload the file to a corresponding recording platform, and manually acquire and record the relevant information of the mobile device where the defect is located. According to the method of the third-party tool, the process of uploading the specific information of the mobile equipment to the test equipment recording platform is complex, and the mode of supplementing the information of the mobile equipment is long in time and low in efficiency.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for detecting defects of an application program, which can solve the technical problems of complicated defect information uploading process and low efficiency in the prior art.
In a first aspect, an embodiment of the present invention provides a method for detecting a defect of an application program, including:
acquiring a defect detection result of an application program which is running by a local computer, wherein the defect detection result comprises an identifier of the application program and a defect identifier;
acquiring current operation information of the application program according to the defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface;
and sending the identifier of the application program, the defect identifier, the current operation information of the application program and the local device information.
In a second aspect, an embodiment of the present invention further provides a defect detection apparatus for an application, where the defect detection apparatus includes:
the detection result acquisition module is used for acquiring the defect detection result of the application program running by the local computer, and the defect detection result comprises the identifier of the application program and the defect identifier;
the operation information module is used for acquiring the current operation information of the application program according to the defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface;
and the sending module is used for sending the identifier of the application program, the defect identifier, the current running information of the application program and the local device information.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for detecting the defects of the application program as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the defect detection method of the application program as described above.
The method and the device for detecting the defects of the application program in the local computer acquire the defect detection result of the application program which is running in the local computer, acquire the current running information of the application program according to the defect detection result, and send the identification of the application program, the defect identification, the current running information of the application program and the equipment information of the local computer, wherein the current running information at least comprises one of the picture of the current running interface and the video of the current running interface. The embodiment of the invention can realize one-key uploading of the identification and defect identification of the application program, the current running information of the application program and the equipment information of the local machine, saves time and improves the uploading efficiency of the running information and the equipment information of the local machine when the application program has defects.
Drawings
FIG. 1 is a flowchart illustrating a method for detecting a defect of an application according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating defect detection of an application according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for detecting a defect of an application according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of scanning a two-dimensional code according to a second embodiment of the invention;
FIG. 5 is a diagram illustrating an upload interface according to a second embodiment of the present invention;
FIG. 6 is a diagram illustrating defect detection of an application according to a second embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a defect detection apparatus for an application according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a defect detection method for an application according to a first embodiment of the present invention, where the method is applicable to the case of detecting defects of an application, and the method can be executed by a defect detection apparatus for an application, and the apparatus can be implemented in a software and/or hardware manner, for example, the apparatus can be configured in a device.
The application program in this embodiment may be configured in a smart mobile device, such as a mobile phone, a computer, a tablet computer, or a wearable smart device, and the test device for implementing defect detection may be a device capable of performing defect detection on the application program, such as a computer configured with a defect detection program. Specifically, referring to fig. 2, fig. 2 is a schematic diagram of defect detection of an application program in a first embodiment of the present invention, in which detection is performed on the application program in a mobile phone, a test device in the diagram is a computer, and the mobile phone obtains a defect detection result from the computer and sends running information of the current application program and device information of the mobile phone to the test device.
As shown in fig. 1, the method may specifically include:
and S110, acquiring a defect detection result of the application program which is running by the computer.
Optionally, before obtaining the defect detection result of the application program being executed locally, the method further includes: and when the application program starts to run, sending running parameters to the testing equipment, wherein the running parameters comprise the identification of the application program. The number of the application programs running in the local computer is at least one, namely the number of the application programs currently performing defect detection is at least one, and the specific number is not limited and can be set as required. When an application program in the machine starts to run, running parameters can be sent to the testing equipment through a preset interface connected with the testing equipment, so that the testing equipment can detect the running state of the application program, and whether defects exist is determined according to the difference between a detection result and a preset detection result. The default interface may be a Serial port or a USB (Universal Serial Bus), etc. The operating parameters may include an identification of the application, an application log, or other application-related real-time information. It should be understood that the test on one application program in this embodiment may be a test on the entire application program, or a test on a certain module or a certain function in the application program, and the content of the specific test in this embodiment is not limited.
The defect detection result comprises the identifier of the application program and the defect identifier. The identifiers of the application programs are used for distinguishing the application programs, each application program corresponds to a unique identifier of one application program, for example, the identifier of each application program can be an abbreviation of an english name of the application program. The defect identifiers are defect IDs (identifiers), and each defect corresponds to a unique defect ID.
If the testing device determines that the error rate of the detection result of one application program in the local computer and the preset detection result is greater than the error rate threshold value, the testing device can determine that the defect is detected for the application program, creates a corresponding defect identifier for the defect, and sends the identifier of the application program and the defect identifier to the local computer. The machine can preset information uploading application program, the information uploading application program can directly transmit information with the test equipment, and the identifier and the defect identifier of the application program sent by the test equipment are obtained through the information uploading application program.
And S120, acquiring the current operation information of the application program according to the defect detection result.
The current operation information is a multimedia file of a current operation interface of the application program, and the current operation information at least may include one of a picture of the current operation interface and a video of the current operation interface, and may also include files such as a sound recording.
Specifically, after the local computer acquires the identifier of the application program and the identifier of the defect, the application program where the defect is located is determined according to the identifier of the application program, and the picture of the current running interface of the application program, the video of the current running interface of the application program or the audio of the current running interface of the application program can be captured through the multimedia application program built in the local computer.
And S130, sending the identification of the application program, the defect identification, the current running information of the application program and the local device information.
The local device information may include a local model, a local operating system version, a local Identification (ID), a local geographical location, a local display screen parameter, a local hardware serial number, and other various information related to the local device.
Optionally, before sending the identifier of the application, the defect identifier, the current running information of the application, and the device information of the local device, the method further includes: and acquiring the equipment information of the local equipment. In this embodiment, specific types of the acquired local device information are not limited, and the local device information may be set in a user-defined manner according to the attribute information of the defect, for example, if some personalized programs are different in program running mode and specific recommended content due to different geographic locations of the device, the local device information may be set in a user-defined manner including the geographic location of the local device. Specifically, in this embodiment, the device information of the local device may be obtained through a preset information uploading application program, and the preset information uploading application program obtains the related device information through the classes and methods of the built-in different systems, for example, in an android system, the device information may be obtained through the class "android.
Specifically, after the local computer obtains the identifier of the application program, the defect identifier, the current running information of the application program and the device information of the local computer, the identifier of the application program, the defect identifier, the current running information of the application program and the device information of the local computer can be directly uploaded to a defect detection recording platform of the testing device through the preset information uploading application program, so that the testing device stores the current running information of the application program and the device information of the local computer in association with the defect of the application program according to the identifier of the application program and the defect identifier.
In this embodiment, a defect detection result of an application program currently running on the local computer is obtained, current running information of the application program is obtained according to the defect detection result, and an identifier of the application program, a defect identifier, the current running information of the application program, and device information of the local computer are sent, where the current running information at least includes one of a picture of a current running interface and a video of the current running interface. The embodiment of the invention can realize one-key uploading of the identification and defect identification of the application program, the current running information of the application program and the equipment information of the local machine, saves time and improves the uploading efficiency of the running information and the equipment information of the local machine when the application program has defects.
Example two
Fig. 3 is a flowchart of a defect detection method of an application according to a second embodiment of the present invention. On the basis of the above embodiments, the present embodiment further optimizes the defect detection method of the application program. Correspondingly, the method of the embodiment specifically includes:
s210, when the application program starts to run, the running parameters are sent to the testing equipment.
The operation parameters may include an identification of the application program, an application program operation log, or other real-time information related to the application program. When an application program in the machine starts to run, running parameters can be sent to the testing equipment through a preset interface connected with the testing equipment, so that the testing equipment can detect the running state of the application program, and whether defects exist is determined according to the difference between a detection result and a preset detection result. The default interface may be a Serial port or a USB (Universal Serial Bus), etc.
And S220, scanning the two-dimensional code displayed on the test equipment.
The two-dimensional code is generated and displayed after the test equipment detects that the running of the application program is defective. When detecting that an application program has a defect during running, the testing device creates a corresponding defect identifier for the defect, inputs the identifier of the application program and the defect identifier into a built-in two-dimensional code generator, and generates a two-dimensional code comprising the identifier of the application program and the defect identifier. The two-dimensional code generator combines the 0 and 1 digital matrixes forming the two-dimensional code based on a two-dimensional code generation algorithm, the information input into the two-dimensional code generator is different, and the obtained 0 and 1 digital matrix combinations are also different, so that the two-dimensional code generated by the two-dimensional code generator is different in style when the application program identifier and the defect identifier input into the two-dimensional code generator are different.
A scene of a two-dimensional code displayed on the local scanning test device is shown in fig. 4, where fig. 4 is a schematic view of scanning a two-dimensional code in the second embodiment of the present invention, the test device in the figure is a computer 41, the local is a mobile phone 42, the computer 41 generates a two-dimensional code including an identifier of an application program and a defect identifier and then displays the two-dimensional code on a screen of the computer 41, the mobile phone 42 may open a preset two-dimensional code scanning interface in an information upload application program, as shown in the figure, the two-dimensional code in the computer 41 is scanned, and the identifier and the defect identifier of the application program included in the two-dimensional code may be obtained, that is, a defect detection result is obtained.
And S230, popping up an operation information uploading interface according to the two-dimensional code.
The two-dimensional code can also comprise a command for calling a running information uploading interface in the information uploading application program, so that the running information uploading interface can be popped up after the machine scans the two-dimensional code. Specifically, the two-dimensional code displayed on the local scanning test equipment can obtain a defect detection result, can also pop up a running information uploading interface in a preset information uploading application program, and can display the defect detection result in the uploading interface.
For example, referring to fig. 5, fig. 5 is a schematic diagram of an upload interface in a second embodiment of the present invention, in which a mobile phone 42 pops up an operation information upload interface after scanning a two-dimensional code, and displays an identifier of an application program and a defect identifier in the upload interface, where the identifier of the application program shown in the drawing is "ABC", and the defect identifier shown in the drawing is "1234".
In the embodiment, the machine can pop up the operation information uploading interface by scanning the two-dimensional code, so that the information uploading efficiency is further improved, and the information uploading is more conveniently realized.
And S240, intercepting the picture of the current running interface of the application program or recording the video of the current running interface of the application program according to the information displayed on the uploading interface.
Determining the application program where the defect is located according to the identifier of the application program displayed in the uploading interface, respectively intercepting the picture of the current running interface of the application program and recording the video of the current running interface of the application program by calling a screenshot control and a screen recording control in the information uploading application program, and also intercepting the picture of the current running interface of the application program and recording the video of the current running interface of the application program by a multimedia application program built in the computer.
And S250, respectively filling the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine into corresponding items of a running information uploading interface.
The local device information may include a local model, a local operating system version, a local Identification (ID), a local geographical location, a local display screen parameter, a local hardware serial number, and other various information related to the local device.
Optionally, before filling the identifier of the application program, the defect identifier, the current running information of the application program, and the device information of the local device into the corresponding items of the running information upload interface, the method further includes: and acquiring the equipment information of the local equipment. In this embodiment, specific types of the acquired local device information are not limited, and the local device information may be set in a user-defined manner according to the attribute information of the defect, for example, if some personalized programs are different in program running mode and specific recommended content due to different geographic locations of the device, the local device information may be set in a user-defined manner including the geographic location of the local device. Specifically, in this embodiment, the device information of the local device may be obtained through a preset information uploading application program, and the preset information uploading application program obtains the related device information through the classes and methods of the built-in different systems, for example, in an android system, the device information may be obtained through the class "android.
For example, referring to fig. 5, if the identifier and the defect identifier of the application program in the upload interface in the figure already exist, the obtained current operation information of the application program and the device information of the local computer only need to be filled in the corresponding operation information and device information; however, the upload interface in fig. 5 is only an example, and if the information of each corresponding item in the upload interface is not filled, the identifier of the application program, the defect identifier, the current running information of the application program, and the device information of the local device all need to be filled in the corresponding item of the upload interface respectively.
And S260, acquiring a sending instruction of the user on the running information uploading interface, and sending the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine to the testing equipment.
Specifically, if the operation of the user on the sending key on the running information uploading interface is detected, the sending instruction is determined to be obtained, and the identifier of the application program, the defect identifier, the current running information of the application program and the device information of the local machine are sent to a defect detection recording platform of the testing device, so that the testing device stores the current running information of the application program and the device information of the local machine and the defect of the application program in an associated manner according to the identifier of the application program and the defect identifier. The current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface.
In addition, a specific process of information transmission in the defect detection process of the application program is further described by an example based on the above embodiment, specifically referring to fig. 6, where fig. 6 is a schematic diagram of defect detection of the application program in the second embodiment of the present invention. The defect recording platform, the database and the file server of the test device in the figure are all configured in the test device, the database and the file server are configured in a background server, the database is a background database of the defect recording platform, the file server is a data storage platform, files in the defect recording platform can be accessed through Uniform Resource Locators (URLs), file information can be stored in the database as an independent data table, addresses of the files in the file server can be recorded in the data table, and the database and the file server are linked.
The specific process of information transmission in fig. 6 is: the test equipment defect recording platform creates a defect identifier of the defect in a database according to the detected defect, generates a corresponding piece of data in a data table of the database, sets a field 'status' in the data to record the state of the defect, and at the moment, the state of the defect is an initial state 'init'; the testing equipment defect recording platform receives the defect identification of the defect sent by the database, generates a two-dimensional code comprising the defect identification and the identification of the application program and displays the two-dimensional code; the mobile equipment obtains the defect identification and the identification of the application program and a popup running information uploading interface by scanning the two-dimensional code, and obtains the current running information of the application program and the equipment information of the mobile equipment by running the information uploading interface; the method comprises the steps that the mobile equipment obtains an uploading instruction of a user, and further associates and sends a defect identifier, an application program identifier, current operation information of the application program and equipment information of the mobile equipment to a file server; after the file server receives the information sent by the mobile device, that is, when the mobile device finishes uploading the information, the database may record a file address of the information in the file server, and modify a state in data corresponding to the defect identifier to a ready state "ready"; monitoring a field ' status ' in the data by a ' jobclass polling method in the database, judging whether the state of the defect is a ready state, and sending a display instruction to a defect recording platform of the test equipment when the state is a ready state ' ready ' by polling; the testing equipment defect recording platform acquires the received defect identification, the identification of the application program, the current running information of the application program and the equipment information of the mobile equipment according to the file address in the file server, and performs rendering display; (ii) a After the testing equipment defect recording platform shows, the database may modify the state in the data corresponding to the defect identifier to be the end state "finish".
In this embodiment, a defect detection result of an application program in operation and a running information uploading interface are obtained by scanning a two-dimensional code displayed on a test device, running information of the application program is obtained according to information displayed on the uploading interface, the current running information at least includes one of a picture of the current running interface and a video of the current running interface, and an identifier of the application program, a defect identifier, current running information of the application program and device information of a local computer are sent to the test device through the running information uploading interface. According to the embodiment, the defect detection result can be more conveniently obtained and the uploading interface can be opened by scanning the two-dimensional code, the one-key uploading of the identification of the application program, the defect identification, the current running information of the application program and the equipment information of the local machine can be realized through the uploading interface, the time is saved, and the uploading efficiency of the running information and the equipment information of the local machine when the application program has defects is improved; in addition, the device information of the device where the application program is located can be rapidly acquired and uploaded through the uploading program, manual participation is not needed, and the uploading speed and accuracy of the device information are improved.
EXAMPLE III
Fig. 7 is a schematic structural diagram of a defect detection apparatus for an application according to a third embodiment of the present invention, which is applicable to the situation of defect detection for an application. The defect detection device for the application program provided by the embodiment of the invention can execute the defect detection method for the application program provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. The device specifically comprises a detection result acquisition module 310, an operation information module 320 and a sending module 330, wherein:
a detection result obtaining module 310, configured to obtain a defect detection result of an application program running by a local computer, where the defect detection result includes an identifier of the application program and a defect identifier;
the operation information module 320 is configured to obtain current operation information of the application program according to the defect detection result, where the current operation information at least includes one of a picture of a current operation interface and a video of the current operation interface;
and the sending module 330 is configured to send the identifier of the application program, the defect identifier, the current running information of the application program, and the device information of the local device.
The method and the device for detecting the defects of the application program in the local computer acquire the defect detection result of the application program which is running in the local computer, acquire the current running information of the application program according to the defect detection result, and send the identification of the application program, the defect identification, the current running information of the application program and the equipment information of the local computer, wherein the current running information at least comprises one of the picture of the current running interface and the video of the current running interface. The embodiment of the invention can realize one-key uploading of the identification and defect identification of the application program, the current running information of the application program and the equipment information of the local machine, saves time and improves the uploading efficiency of the running information and the equipment information of the local machine when the application program has defects.
Optionally, the defect detection apparatus further includes:
and the operation parameter module is used for sending operation parameters to the test equipment before the defect detection result of the application program which is running by the local computer is obtained and the application program starts to run, and the operation parameters comprise the identification of the application program.
Optionally, the detection result obtaining module 310 is specifically configured to:
and scanning the two-dimensional code displayed on the test equipment, wherein the two-dimensional code is generated and displayed after the test equipment detects that the running of the application program has defects.
Optionally, the operation information module 320 includes:
the uploading interface unit is used for popping up an operation information uploading interface according to the two-dimensional code;
and the operation interface unit is used for intercepting the picture of the current operation interface of the application program or recording the video of the current operation interface of the application program according to the information displayed by the uploading interface.
Optionally, the sending module 330 includes:
the information filling unit is used for respectively filling the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine into corresponding items of the running information uploading interface;
and the information sending unit is used for acquiring a sending instruction of a user on the running information uploading interface and sending the identification of the application program, the defect identification, the current running information of the application program and the equipment information of the local machine to the test equipment.
The defect detection device for the application program provided by the embodiment of the invention can execute the defect detection method for the application program provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 8 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. FIG. 8 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the present invention. The device 412 shown in fig. 8 is only an example and should not impose any limitation on the functionality or scope of use of embodiments of the present invention.
As shown in fig. 8, the device 412 is in the form of a general purpose device. The components of device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal, display 424, etc.), with one or more terminals that enable a user to interact with the device 412, and/or with any terminals (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 422. Further, the device 412 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 420. As shown in FIG. 8, network adapter 420 communicates with the other modules of device 412 via bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the device 412, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by running programs stored in the storage device 428, for example, implementing a defect detection method for application programs provided by the embodiment of the present invention, the method includes:
acquiring a defect detection result of an application program which is running by the local computer, wherein the defect detection result comprises an identifier of the application program and a defect identifier;
acquiring current operation information of the application program according to a defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface;
and sending the identification of the application program, the defect identification, the current running information of the application program and the local device information.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a defect detection method for an application program provided in the fifth embodiment of the present invention, where the method includes:
acquiring a defect detection result of an application program which is running by the local computer, wherein the defect detection result comprises an identifier of the application program and a defect identifier;
acquiring current operation information of the application program according to a defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface;
and sending the identification of the application program, the defect identification, the current running information of the application program and the local device information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for detecting defects of an application program, comprising:
acquiring a defect detection result of an application program which is running by a local computer, wherein the defect detection result comprises an identifier of the application program and a defect identifier;
acquiring current operation information of the application program according to the defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface;
sending the identifier of the application program, the defect identifier, the current operation information of the application program and the equipment information of the local machine;
the acquiring a defect detection result of an application program running by the local computer comprises the following steps:
scanning a two-dimensional code displayed on test equipment, acquiring a defect detection result of the application program, wherein the two-dimensional code is generated and displayed after the test equipment detects that the running of the application program running on the machine is defective, the two-dimensional code comprises an identifier and a defect identifier of the application program, and the test equipment is provided with a defect detection program.
2. The method of claim 1, further comprising, prior to obtaining the results of detecting the defects of the application program currently running on the computer,:
and when the application program starts to run, sending running parameters to the testing equipment, wherein the running parameters comprise the identification of the application program.
3. The method according to claim 1, wherein the obtaining current running information of the application program according to the defect detection result comprises:
popping up an operation information uploading interface according to the two-dimension code;
and intercepting the picture of the current running interface of the application program or recording the video of the current running interface of the application program according to the information displayed on the uploading interface.
4. The method of claim 3, wherein sending the identification of the application, the defect identification, the current running information of the application, and the native device information comprises:
respectively filling the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine into corresponding items of the running information uploading interface;
and acquiring a sending instruction of a user on the running information uploading interface, and sending the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine to the testing equipment.
5. An apparatus for detecting a defect of an application program, comprising:
the detection result acquisition module is used for acquiring the defect detection result of the application program running by the local computer, and the defect detection result comprises the identifier of the application program and the defect identifier;
the operation information module is used for acquiring the current operation information of the application program according to the defect detection result, wherein the current operation information at least comprises one of a picture of a current operation interface and a video of the current operation interface;
the sending module is used for sending the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine;
the detection result acquisition module is specifically configured to:
scanning a two-dimensional code displayed on test equipment, acquiring a defect detection result of the application program, wherein the two-dimensional code is generated and displayed after the test equipment detects that the running of the application program running on the machine is defective, the two-dimensional code comprises an identifier and a defect identifier of the application program, and the test equipment is provided with a defect detection program.
6. The defect detection apparatus of claim 5, further comprising:
the running parameter module is used for sending running parameters to the testing equipment when the application program starts to run before the defect detection result of the application program running in the computer is obtained, wherein the running parameters comprise the identification of the application program.
7. The defect detection apparatus of claim 5, wherein the operation information module comprises:
the uploading interface unit is used for popping up an operation information uploading interface according to the two-dimensional code;
and the operation interface unit is used for intercepting the picture of the current operation interface of the application program or recording the video of the current operation interface of the application program according to the information displayed by the uploading interface.
8. The defect detection apparatus of claim 7, wherein the transmission module comprises:
the information filling unit is used for respectively filling the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine into corresponding items of the running information uploading interface;
and the information sending unit is used for acquiring a sending instruction of a user on the running information uploading interface and sending the identifier of the application program, the defect identifier, the current running information of the application program and the equipment information of the local machine to the test equipment.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for defect detection for an application as recited in any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method for defect detection of an application program as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535289.1A CN109558331B (en) | 2018-12-14 | 2018-12-14 | Application program defect detection method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535289.1A CN109558331B (en) | 2018-12-14 | 2018-12-14 | Application program defect detection method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109558331A CN109558331A (en) | 2019-04-02 |
CN109558331B true CN109558331B (en) | 2022-05-03 |
Family
ID=65870123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811535289.1A Active CN109558331B (en) | 2018-12-14 | 2018-12-14 | Application program defect detection method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558331B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306856A (en) * | 2019-08-02 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Method and device for collecting application defect information and electronic equipment |
CN111611163A (en) * | 2020-05-21 | 2020-09-01 | 携程计算机技术(上海)有限公司 | Mobile terminal and processing method of defect document in application program thereof |
CN111475423A (en) * | 2020-06-29 | 2020-07-31 | 深圳市珍爱云信息技术有限公司 | Data entry method and device, electronic equipment and readable storage medium |
CN113434406B (en) * | 2021-06-24 | 2023-06-16 | 青岛海尔科技有限公司 | Function test method and device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844204A (en) * | 2017-01-11 | 2017-06-13 | 福建星网视易信息***有限公司 | A kind of utilization mobile terminal generates the method and system of defect report |
CN107368898A (en) * | 2017-06-30 | 2017-11-21 | 佛山职业技术学院 | A kind of intelligence report barrier maintenance monitoring method |
CN108132888A (en) * | 2018-01-17 | 2018-06-08 | 北京网信云服信息科技有限公司 | The defects of mobile software, submits method, client, server-side and management system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120246623A1 (en) * | 2011-03-25 | 2012-09-27 | Creel Christopher T | Application integrated issue management |
CN105465947B (en) * | 2015-11-24 | 2018-10-19 | 珠海格力电器股份有限公司 | Air conditioner fault processing method, device and system |
-
2018
- 2018-12-14 CN CN201811535289.1A patent/CN109558331B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844204A (en) * | 2017-01-11 | 2017-06-13 | 福建星网视易信息***有限公司 | A kind of utilization mobile terminal generates the method and system of defect report |
CN107368898A (en) * | 2017-06-30 | 2017-11-21 | 佛山职业技术学院 | A kind of intelligence report barrier maintenance monitoring method |
CN108132888A (en) * | 2018-01-17 | 2018-06-08 | 北京网信云服信息科技有限公司 | The defects of mobile software, submits method, client, server-side and management system |
Also Published As
Publication number | Publication date |
---|---|
CN109558331A (en) | 2019-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109558331B (en) | Application program defect detection method, device, equipment and storage medium | |
CN108897691B (en) | Data processing method, device, server and medium based on interface simulation service | |
US10191838B2 (en) | Method and device for checking influence of deleting cache file, and mobile terminal | |
CN108920380A (en) | Test method, device, server, equipment and the storage medium of the software compatibility | |
CN113449310A (en) | Application program vulnerability detection method, device and equipment | |
CN114996103A (en) | Page abnormity detection method and device, electronic equipment and storage medium | |
CN111522749A (en) | Page testing method and device, readable storage medium and electronic equipment | |
CN111241043A (en) | Multimedia file sharing method, terminal and storage medium | |
CN111813465A (en) | Information acquisition method, device, medium and equipment | |
CN110888791A (en) | Log processing method, device, equipment and storage medium | |
CN107862035B (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
CN112988589A (en) | Interface testing method, device and system | |
CN111046393B (en) | Vulnerability information uploading method and device, terminal equipment and storage medium | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN113590564B (en) | Data storage method, device, electronic equipment and storage medium | |
CN107168648B (en) | File storage method and device and terminal | |
CN111078317A (en) | Scene data processing method and device, computer equipment and storage medium | |
CN106528658B (en) | The lookup method and device of application file | |
CN114510305B (en) | Model training method and device, storage medium and electronic equipment | |
CN107515821B (en) | Control testing method and device | |
CN104579825A (en) | Method and device for monitoring server of application in real time and computer equipment | |
CN110851313B (en) | Sensor debugging method, intelligent terminal, storage medium and electronic equipment | |
CN110262856B (en) | Application program data acquisition method, device, terminal and storage medium | |
CN110413800B (en) | Method and equipment for providing novel information | |
CN107749892B (en) | Network reading method and device for conference record, intelligent tablet and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |