Test auxiliary method, device, equipment and storage medium
By obtaining and analyzing the content, files and operation log data displayed in the interface in software testing, detecting software exceptions, it solves the problems of difficult to detect hidden problems and difficult to locate random problems in traditional testing methods, and achieves more efficient abnormal detection and positioning. Reduced missed detection rate and communication costs.
Patent Information
- Application Number
- CN202010589838.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-12-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In software testing, traditional methods are difficult to find hidden problems that affect function or stability, and the location of occasional problems is difficult, and the lack of interface screenshots and screen recordings leads to high communication costs between developers and testers, extending the problem-solving cycle.
By obtaining the interface display content, files and operation log data generated during the operation of the object to be tested, the exception is detected according to the preset exception rules, and relevant information is presented when an exception is detected, the range of detection data is expanded to reduce the probability of abnormal miss detection .
It effectively reduces the probability of abnormal missed detection, improves problem positioning efficiency, reduces communication costs for developers and testers, and discovers performance problems in advance.
Smart Images

Figure CN111752835B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to artificial intelligence and software testing in computer technology, and in particular to a test assistance method, device, equipment and storage medium. Background Art
[0002] After the software, including applications and / or systems, is developed, its functions need to be tested by manual means to verify whether it meets the specified requirements or to clarify the difference between the expected results and the actual results. Summary of the invention
[0003] The present application provides a test assistance method, device, equipment and storage medium for reducing the probability of abnormal missed detection.
[0004] According to a first aspect of the present application, a test assistance method is provided, comprising:
[0005] Acquire relevant data generated during the operation of the object to be tested, the relevant data including at least one of the interface display content and the file, and the operation log;
[0006] According to the preset exception rules and related data, detect whether the object to be tested has any abnormality;
[0007] When an abnormality is detected in the object to be tested, relevant information corresponding to the abnormality is presented.
[0008] According to a second aspect of the present application, a test auxiliary device is provided, comprising:
[0009] An acquisition module is used to acquire relevant data generated during the operation of the object to be tested, wherein the relevant data includes at least one of the interface display content and the file, and an operation log;
[0010] The detection module is used to detect whether the object to be tested has any abnormality according to preset abnormality rules and related data;
[0011] The output module is used to present relevant information corresponding to the abnormality when an abnormality is detected in the object to be tested.
[0012] According to a third aspect, there is provided an electronic device, comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to at least one processor; wherein,
[0015] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to perform the method as described in any one of the first aspects.
[0016] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described in any one of the first aspect.
[0017] The technology of the present application can effectively reduce the probability of missed abnormal detection.
[0018] According to the fifth aspect of the present application, a computer program product is provided, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0021] Figure 1 is a schematic diagram according to the first embodiment of the present application;
[0022] Figure 2 is a schematic diagram according to a second embodiment of the present application;
[0023] Figure 3 is a schematic diagram according to a third embodiment of the present application;
[0024] Figure 4 is a schematic diagram according to a fourth embodiment of the present application;
[0025] Figure 5 is a schematic diagram according to a fifth embodiment of the present application;
[0026] Figure 6 is a block diagram of an electronic device used to implement the test assistance method of an embodiment of the present application;
[0027] Figure 7 It is a scene diagram that can implement the embodiment of the present application. DETAILED DESCRIPTION
[0028] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0029] In current software testing, traditional methods have the following problems: (1) The impact of the problem cannot be reflected immediately. Such problems often have a relatively large impact on subsequent functions or continued stability. However, since the early problems are not so obvious in the page performance, they are extremely difficult to detect; (2) In addition, for some occasional problems, when testers raise vulnerabilities (bugs), they often cannot find the test path, making it impossible for developers to see the problem site, resulting in difficulty in locating the problem; (3) After discovering the vulnerability, testers mentioned that the system needs to capture various logs to assist in locating the vulnerability. For the problem of incomplete logs and no on-site screenshots and screen recordings, the communication cost between developers and testers is greatly increased, and the problem solving cycle is prolonged.
[0030] In response to the above problems, the present application provides a test assistance method, device, equipment and storage medium, which are applied to artificial intelligence and software testing in the field of computer technology. By expanding the scope of relevant data to be tested, where the relevant data includes at least one of the interface display content and files, as well as operation logs, the purpose of reducing the probability of missed abnormalities is achieved.
[0031] The test assistance solution provided in this application is applicable to but not limited to software development testing including applications (Application, abbreviated as: APP) and new requirements.
[0032] The following detailed examples are used to illustrate how the embodiments of the present application provide test assistance.
[0033] Figure 1 is a schematic diagram according to the first embodiment of the present application. This embodiment provides a test assistance method, which can be executed by a test assistance device, wherein the test assistance device can be specifically a client or server such as a desktop computer, a tablet computer, a notebook, or the like, or the test assistance device can be a chip in the client or a chip in the server, etc. The following is an example description using the client as the execution subject.
[0034] like Figure 1 As shown, the test auxiliary method includes the following steps:
[0035] S101. Obtain relevant data generated during the operation of the object to be tested, where the relevant data includes at least one of interface display content and files, and an operation log.
[0036] The objects to be tested include, for example, newly developed apps and requirements, as well as newly developed functions. For apps, operation logs and files will be generated during operation, and the corresponding interface and icons contained in the interface may be in dynamic change. Therefore, the interface display content of the app during operation can be retained by taking screenshots or recording the screen, and the relevant data can be saved. Screen recording means recording the screen display content.
[0037] It should be noted that the relevant data involved in the embodiments of the present application are not limited to interface display content, files, and operation logs, and can also be other data that can be used by developers to locate problems. Among them, files refer to the summary of some data generated by the object to be tested during operation, and these data are recorded in the form of files, which can specifically include but are not limited to performance files, etc.
[0038] For example, the above-mentioned relevant data may be saved in a public data pool of the client for easy retrieval.
[0039] Normally, in the process of testing the object to be tested, only the operation log is used, but some anomalies are not reflected in the operation log, so the probability of missed detection of anomalies is high. Based on this consideration, this application adds interface display content and / or files on the basis of the operation log to detect whether the object to be tested is abnormal. By expanding the scope of relevant data, the probability of missed detection of anomalies is reduced.
[0040] S102: Detect whether the object to be tested has any abnormality according to the preset abnormality rules and the related data.
[0041] Among them, the preset exception rules are pre-set according to the historical experience or actual needs of the tester or developer, and their purpose is to ensure that the object to be tested operates normally under the premise of achieving the requirements. When the relevant data appears to meet the preset exception rules, it is considered an exception. Alternatively, the preset exception rules are obtained through machine learning.
[0042] Detecting an abnormality in the object to be tested may include: an abnormal phenomenon occurs in the object to be tested during operation; or an expected normal phenomenon does not occur in the object to be tested during operation.
[0043] S103: When an abnormality is detected in the object to be tested, relevant information corresponding to the abnormality is presented.
[0044] If a situation that meets / complies with the preset abnormality rules is detected in the relevant data, it is considered that an abnormality has been detected in the object to be tested. At this time, relevant information corresponding to the abnormality is presented, and the relevant information is used to indicate what the abnormality is.
[0045] For example, when presenting relevant information corresponding to an exception, PYQT5 can be used to implement it. Among them, PYQT5 can be used to write an application interface of a Python script.
[0046] In the embodiment of the present application, firstly, relevant data generated during the operation of the object to be tested is obtained, and the relevant data includes at least one of the interface display content and the file, and the operation log; then, according to the preset exception rules and relevant data, whether the object to be tested has an exception is detected; and when the object to be tested has an exception, relevant information corresponding to the exception is presented. Since the basis for detecting whether the object to be tested has an exception is the relevant data generated during the operation of the object to be tested, and the relevant data includes at least one of the interface display content and the file, and the operation log, therefore, compared with the scheme of detecting whether the object to be tested has an exception based solely on the operation log, the embodiment of the present application expands the scope of the relevant data to be detected, so that even if the exception is not easily detected in the operation log, it can be detected based on the interface display content and / or the file, or the combination of the interface display content and / or the file and the operation log, thereby reducing the probability of missed detection of the exception.
[0047] The embodiments of the present application can be used to assist manual testing to effectively avoid the omission of abnormalities without obvious phenomena.
[0048] Optionally, the above-mentioned files may include performance files, so that performance data can be obtained by real-time analysis of the performance files, and whether there are any abnormalities can be further determined by detecting the performance data, thereby advancing the performance problem discovery stage from the initial stress test after the functional test to the functional test.
[0049] Based on the above embodiment, in one implementation, S103, when an abnormality is detected in the object to be tested, presenting relevant information corresponding to the abnormality may include: when an abnormality is detected in the object to be tested, classifying the abnormality to obtain the category information of the abnormality; presenting the abnormality and its category information. For example, a multi-process communication method may be used to collect the processing results of each background process, and after the collected processing results are classified and processed, they are pushed to the UI thread by means of a signal to realize the display of the abnormality and its category information, so as to achieve the purpose of alarm.
[0050] In addition, those skilled in the art can understand that anomalies can correspond to multiple categories, and different categories of anomalies can be displayed in different presentation methods. For example, when the category corresponding to the anomaly is a common anomaly, its presentation method is a pop-up window, that is, the common anomaly is presented through a pop-up window. Therefore, the above-mentioned presentation of relevant information corresponding to the anomaly can include: presenting relevant information corresponding to the anomaly in a presentation method corresponding to the category of the anomaly. After detecting the anomaly, the client can generate relevant information corresponding to the anomaly according to the category of the anomaly to describe the anomaly.
[0051] Considering human-computer interaction, after presenting the relevant information corresponding to the exception, further processing of the exception can also be determined through human-computer interaction. Therefore, when presenting the relevant information corresponding to the exception, a virtual button indicating whether to further process the exception can also be displayed in the interface, and the exception data can be collected by triggering the virtual button. It should be emphasized that the exception data here includes the contextual information related to the exception generated by the object to be tested during operation. Figure 2 Provide explanation.
[0052] Figure 2 is a schematic diagram according to the second embodiment of the present application. Figure 2 , the test helper method may include:
[0053] S201. Obtain relevant data generated during the operation of the object to be tested, where the relevant data includes at least one of interface display content and files, and an operation log.
[0054] S202: Detect whether the object to be tested has any abnormality according to the preset abnormality rules and the related data.
[0055] S203: When an abnormality is detected in the object to be tested, relevant information corresponding to the abnormality is presented.
[0056] Among them, S201 to S203 are similar to S101 to S103 respectively, and the specific description can be referred to as follows Figure 1 The embodiments shown will not be described in detail here.
[0057] S204: An operation input by a user for collecting abnormal data is detected.
[0058] In actual applications, when presenting relevant information corresponding to an exception, the client can also display a virtual button in the interface indicating whether to further process the exception. For example, the interface includes a first virtual button and a second virtual button, wherein the first virtual button is marked with a word such as "yes" or "YES" indicating further processing of the exception, and the second virtual button is marked with a word such as "no" or "NO" indicating no further processing of the exception. For another example, the interface includes a virtual button, wherein by default, clicking the left part of the virtual button indicates further processing of the exception, and clicking the right part of the virtual button indicates no further processing of the exception, and so on.
[0059] For example, a user such as a tester inputs an operation on a virtual key, such as a click, a double click, or a long press. Correspondingly, the client detects the operation input by the user, responds to it, and executes S205.
[0060] S205 . In response to the above operation, obtain context information related to the exception generated during the operation of the object to be tested.
[0061] It should be noted that the context information here may include but is not limited to operation logs, interface display content and files, etc. In order to avoid confusion with the related information corresponding to the above exceptions, the context information and the related information corresponding to the exceptions are further explained.
[0062] Optionally, the relevant information corresponding to the exception may include at least one of the following: identification information of the exception, category of the exception, severity level of the exception, content of the exception, etc. That is, the relevant information corresponding to the exception is the exception description information related to the exception and distinguishable from other exceptions, emphasizing the exception itself.
[0063] The context information related to the exception may include data for a period of time before the exception occurs, operation logs when the exception occurs, interface screenshots and other information, and the chain reaction caused by the exception, etc. In some embodiments, the context information related to the exception may include relevant information corresponding to the exception.
[0064] As an example, this step may specifically be as follows: the client obtains, from the public data pool, context information related to the exception generated during the operation of the object to be tested.
[0065] S206: Store the context information and related information corresponding to the exception for query.
[0066] Specifically, the client stores the context information and related information corresponding to the exception to facilitate user query.
[0067] In an embodiment of the present application, firstly, relevant data generated during the operation of the object to be tested is obtained, and the relevant data includes at least one of the interface display content and the file, and the operation log; afterwards, according to the preset exception rules and relevant data, whether the object to be tested is abnormal is detected, and when the object to be tested is detected to be abnormal, the relevant information corresponding to the abnormality is presented; further, when the operation input by the user for collecting abnormal data is detected, the context information related to the abnormality generated during the operation of the object to be tested is obtained; finally, the context information and the relevant information corresponding to the abnormality are stored for query. Since the basis for detecting whether the object to be tested is abnormal is that the relevant data generated during the operation of the object to be tested is more comprehensive, and the relevant data includes at least one of the interface display content and the file, and the operation log, the embodiment of the present application can reduce the probability of missed detection of abnormalities; in addition, the embodiment of the present application not only stores the relevant information corresponding to the abnormality, but also stores the context information related to the abnormality, so that efficient discovery of abnormalities can be achieved, and the abnormal format specification reduces the communication cost of developers and testers, and is more conducive to the location and processing of abnormalities.
[0068] In some embodiments, the above-mentioned storage of context information and related information corresponding to the exception may include: the client compresses the context information and related information corresponding to the exception to obtain a compressed package; and sends the compressed package to the file server. The file server adds a URL to the compressed package, and users such as testers can download the compressed package of the corresponding exception through the URL for subsequent processing, such as exception location, exception processing, etc.
[0069] The above embodiments introduce how to assist in testing. Furthermore, considering the limited memory of the client and the large amount of relevant data generated by the object to be tested during operation, the relevant data needs to be maintained. Figure 3 illustrate.
[0070] Figure 3 is a schematic diagram according to the third embodiment of the present application. Figure 3 As shown, in Figure 2 Based on the process shown, the test auxiliary method may also include:
[0071] S301. Use a preset data maintenance algorithm to maintain relevant data generated during the operation of the object to be tested.
[0072] This step occurs after S201. As for the execution order of S301 and other steps, the embodiment of the present application does not limit it.
[0073] The preset data maintenance algorithm may include at least one of the following:
[0074] First Input First Output (FIFO) replacement algorithm, which always selects the page that has been in memory the longest (i.e. the oldest) for replacement, that is, the page that enters memory first will exit memory first;
[0075] The Least Recently Used (LRU) algorithm selects the page that has not been used for the longest time and eliminates it.
[0076] The Least Frequently Used (LFU) replacement algorithm selects the page that was least used in the previous period as the elimination page;
[0077] etc.
[0078] This embodiment provides a method of maintaining relevant data generated during the operation of the object to be tested by using a preset data maintenance algorithm to maintain the relevant data, so as to ensure the available memory space for the latest relevant data.
[0079] Figure 4 is a schematic diagram according to the fourth embodiment of the present application. This embodiment provides a test auxiliary device. Figure 4 As shown, the test auxiliary device 400 includes: an acquisition module 401, a detection module 402 and an output module 403. Among them:
[0080] The acquisition module 401 is used to acquire relevant data generated during the operation of the object to be tested, wherein the relevant data includes at least one of interface display content and files, and operation logs.
[0081] The detection module 402 is used to detect whether an abnormality occurs in the object to be tested according to preset abnormality rules and related data.
[0082] The output module 403 is used to present relevant information corresponding to the abnormality when an abnormality is detected in the object to be tested.
[0083] The test auxiliary device provided in this embodiment can be used to execute the above method embodiments. Its implementation method and technical effects are similar, and this embodiment will not be repeated here.
[0084] In some embodiments, the output module 403 may be specifically used to:
[0085] When an abnormality is detected in the object to be tested, the abnormality is classified and processed to obtain the category information of the abnormality;
[0086] Presents the exception and its category information.
[0087] Optionally, the output module 403 may be specifically configured to present relevant information corresponding to the abnormality in a presentation manner corresponding to the category of the abnormality.
[0088] Furthermore, the detection module 402 can also be used to detect the operation input by the user for collecting abnormal data. Correspondingly, the acquisition module 401 can also be used to obtain the context information related to the abnormality generated by the object to be tested during operation in response to the operation detected by the detection module 402. Figure 5 As shown, the test assisting device 500 may further include: a storage module 404, which is used to store context information and related information corresponding to the exception for query.
[0089] Furthermore, the storage module 404 can be specifically used to: compress the context information and related information corresponding to the exception to obtain a compressed package; send the compressed package to the file server so that the file server adds a URL to the compressed package, and relevant personnel can download the compressed package of the corresponding exception through the URL for subsequent processing, such as exception location, exception processing, etc.
[0090] In any embodiment of the present application, the context information may include at least one of the following: operation logs, interface display content, and files, etc. The files are, for example, performance files.
[0091] On the basis of the above, the test auxiliary device 500 may further include: a data management module 405, which is used to maintain relevant data generated by the object to be tested during operation by using a preset data maintenance algorithm.
[0092] The preset data maintenance algorithm may include at least one of the following: a first-in-first-out replacement algorithm, a least recently used algorithm, and a least recently used replacement algorithm.
[0093] Optionally, the relevant information corresponding to the exception may include at least one of the following: identification information of the exception, category of the exception, severity level of the exception, content of the exception, etc.
[0094] In addition, the functions of the above modules are relatively independent, which makes it convenient to add functional modules later and to maintain the test auxiliary device.
[0095] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0096] According to an embodiment of the present application, the present application also provides a computer program product, the program product includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0097] like Figure 6 Shown is a block diagram of an electronic device for implementing the test auxiliary method of an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described herein and / or required.
[0098] like Figure 6 As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0099] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the test assistance method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the test assistance method provided in the present application.
[0100] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the test auxiliary method in the embodiment of the present application (for example, the attached Figure 4 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the test auxiliary method in the above method embodiment is implemented.
[0101] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of an electronic device used to implement the test auxiliary method, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device executing the test auxiliary method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0102] The electronic device used to implement the test auxiliary method may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0103] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0104] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0105] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0108] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0109] Figure 7 is a scene diagram that can implement the embodiment of the present application. Figure 7As shown, the client 701 is used to execute the test auxiliary method described in any of the above method embodiments, and the server 702 interacts with the client 701. After executing the above test auxiliary method, the client 701 outputs a compressed package to the server 702 for display.
[0110] Optionally, server 702 is a file server. Figure 7 In the description, the client 701 is described by taking a computer as an example, but the embodiments of the present application are not limited to this.
[0111] According to the technical solution of the embodiment of the present application, firstly, relevant data generated during the operation of the object to be tested is obtained, and the relevant data includes at least one of the interface display content and the file, and the operation log; then, according to the preset exception rules and relevant data, whether the object to be tested has an exception is detected; and when the object to be tested has an exception, the relevant information corresponding to the exception is presented. Since the basis for detecting whether the object to be tested has an exception is the relevant data generated during the operation of the object to be tested, the relevant data includes at least one of the interface display content and the file, and the operation log, therefore, compared with the scheme of detecting whether the object to be tested has an exception based solely on the operation log, the embodiment of the present application expands the scope of the relevant data to be detected, so that even if the exception is not easily detected in the operation log, it can be detected based on the interface display content and / or the file, or the combination of the interface display content and / or the file and the operation log, thereby reducing the probability of missed detection of the exception.
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0113] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A test assistance method, include: Obtain relevant data generated during the operation of the object to be tested, and save the relevant data to a public data pool, wherein the relevant data includes interface display content and files, and operation logs; wherein the files refer to the summary of data generated during the operation of the object to be tested, and the summarized data is recorded in the form of files; the files include performance files; the interface display content is the display content of the interface during the operation of the object to be tested, which is retained by means of interface screenshots or screen recordings; Using a preset data maintenance algorithm to maintain relevant data generated during the operation of the object to be tested; According to the preset abnormality rules and the relevant data, detecting whether the object to be tested has an abnormality; When an abnormality is detected in the object to be tested, relevant information corresponding to the abnormality is presented; wherein different types of abnormalities have different presentation methods; the relevant information corresponding to the abnormality is abnormality description information related to the abnormality and distinguished from other abnormalities, and the relevant information corresponding to the abnormality includes at least one of the following: identification information of the abnormality, the type of the abnormality, the severity level of the abnormality and the content of the abnormality; After presenting the relevant information corresponding to the exception, the method further includes: Detecting an operation input by a user for collecting abnormal data; In response to the operation, context information related to the exception generated by the object to be tested during operation is obtained from the relevant data stored in the public data pool; wherein the context information includes operation logs, interface display content and files before, when and after the exception is generated; The context information and related information corresponding to the exception are stored for query.
2. The method according to claim 1, in, When an abnormality is detected in the object to be tested, presenting relevant information corresponding to the abnormality includes: When an abnormality is detected in the object to be tested, the abnormality is classified and processed to obtain category information of the abnormality; The exception and its category information are presented.
3. The method according to claim 1, in, The presenting of the relevant information corresponding to the exception includes: The relevant information corresponding to the abnormality is presented in a presentation manner corresponding to the category of the abnormality.
4. The method according to claim 1, in, The storing of the context information and the related information corresponding to the exception includes: Compressing the context information and related information corresponding to the exception to obtain a compressed package; The compressed package is sent to a file server.
5. The method according to any one of claims 1 to 4, wherein the preset data maintenance algorithm comprises at least one of the following: First-in-first-out replacement algorithm, least recently used LRU algorithm and least recently used LFU replacement algorithm.
6. A test auxiliary device, include: An acquisition module is used to acquire relevant data generated during the operation of the object to be tested, and save the relevant data to a public data pool, wherein the relevant data includes interface display content and files, and operation logs; wherein the files refer to the summary of data generated during the operation of the object to be tested, and the summarized data is recorded in the form of files; the files include performance files; the interface display content is the display content of the interface during the operation of the object to be tested, which is retained by means of interface screenshots or screen recordings; A data management module, used to maintain relevant data generated during the operation of the object to be tested using a preset data maintenance algorithm; A detection module, used to detect whether the object to be tested has an abnormality according to preset abnormality rules and the relevant data; An output module, for presenting relevant information corresponding to the abnormality when an abnormality is detected in the object to be tested; wherein different types of abnormalities have different presentation modes; the relevant information corresponding to the abnormality is abnormality description information related to the abnormality and distinguished from other abnormalities, and the relevant information corresponding to the abnormality includes at least one of the following: identification information of the abnormality, type of the abnormality, severity level of the abnormality and content of the abnormality; The detection module is further used to detect an operation input by a user for collecting abnormal data; The acquisition module is further configured to acquire, in response to the detection module detecting the operation, context information related to the exception generated by the object to be tested during operation from the relevant data stored in the public data pool; wherein the context information includes operation logs, interface display content and files before, when and after the exception is generated; The device also includes: The storage module is used to store the context information and related information corresponding to the exception for query.
7. The device according to claim 6, in, The output module is specifically used for: When an abnormality is detected in the object to be tested, the abnormality is classified and processed to obtain category information of the abnormality; The exception and its category information are presented.
8. The device according to claim 6, in, The output module is specifically used for: The relevant information corresponding to the exception is presented in a presentation manner corresponding to the category of the exception.
9. The device according to claim 6, in, The storage module is specifically used for: Compressing the context information and related information corresponding to the exception to obtain a compressed package; The compressed package is sent to a file server.
10. The device according to any one of claims 6 to 9, wherein the preset data maintenance algorithm comprises at least one of the following: First-in-first-out replacement algorithm, least recently used LRU algorithm and least recently used LFU replacement algorithm.
11. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to execute the method of any one of claims 1 to 5.
13. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.
