Project test information display method and device, electronic device, and storage medium
By generating and displaying test operation videos and related information, the problem of insufficient display of website test information in the existing technology is solved, rapid positioning and efficient troubleshooting are achieved, and costs are reduced.
Patent Information
- Application Number
- CN202310153387.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-02-17
AI Technical Summary
In the existing technology, information cannot be effectively displayed during website testing, resulting in complex troubleshooting, poor timeliness, low accuracy, and high cost.
By receiving test analysis instructions, obtain test operation information from the database, generate test operation videos and images, and simultaneously display operation-related information, including timestamps, network logs, test operator information and browser logs, to achieve intuitive display and display of the test process. Problems are quickly located.
It improves the efficiency and accuracy of troubleshooting test problems, reduces costs, and quickly locates problems by intuitively displaying test operations and page changes.
Smart Images

Figure CN116070046B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of website testing, and in particular to a method and device for displaying project testing information, an electronic device, and a storage medium. Background Art
[0002] Most websites in the prior art have their own monitoring needs, and need to understand the problems encountered by system testers in the process of testing the website, as well as how the problems are triggered, in order to count and solve the problems; however, the solutions in the prior art cannot display information and require manual troubleshooting. The troubleshooting steps are complicated, timeliness is poor, and accuracy is low, resulting in high costs. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure is proposed. The embodiments of the present disclosure provide a project test information display method and device, an electronic device, and a storage medium.
[0004] According to one aspect of an embodiment of the present disclosure, a method for displaying project test information is provided, including:
[0005] In response to receiving the test analysis instruction, obtaining at least one piece of test operation information from a database based on the project identifier corresponding to the test analysis instruction; wherein each piece of the test operation information corresponds to a timestamp;
[0006] Based on the at least one piece of test operation information, determining at least one frame of test image;
[0007] Based on the at least one piece of test operation information, determining at least one piece of operation related information; wherein each piece of the test operation information corresponds to one piece of the operation related information;
[0008] Based on the timestamp corresponding to each piece of the test operation information, the at least one piece of the test operation information is processed to obtain a test operation video corresponding to the project identifier;
[0009] The test operation video and the operation-related information corresponding to each frame of the test image in the test operation video are displayed synchronously.
[0010] Optionally, the synchronously displaying the test operation video and the operation-related information corresponding to each frame of the test image in the test operation video includes:
[0011] Associating a timestamp corresponding to each piece of the test operation information with the operation related information corresponding to the test operation information;
[0012] Based on the timestamp, each frame of the test image and the operation related information in the test operation video are synchronously displayed.
[0013] Optionally, the operation-related information includes at least one of the following: network log information, test operator information, and browser log information.
[0014] Optionally, the method further comprises:
[0015] In response to receiving a first operation instruction to move the test operation video to a first preset timestamp;
[0016] According to the first operation instruction, displaying the test operation video starting from the test image and the operation related information corresponding to the first preset timestamp; and / or,
[0017] In response to receiving a second operation instruction to display operation-related information corresponding to a second preset timestamp;
[0018] According to the second operation instruction, the test operation video is displayed starting from the test image and the operation-related information corresponding to the second preset timestamp.
[0019] Optionally, the processing of the at least one piece of test operation information based on a timestamp corresponding to each piece of the test operation information to obtain a test operation video corresponding to the project identifier includes:
[0020] Determining a connection order between the at least one frame of test images based on at least one of the timestamps;
[0021] The at least one frame of test image is connected according to the connection sequence to obtain a test operation video corresponding to the project identifier.
[0022] Optionally, before, in response to receiving the test analysis instruction, acquiring at least one piece of test operation information from a database based on the project identifier corresponding to the test analysis instruction, the method further includes:
[0023] According to the preset configuration information, at least one test item corresponding to at least one of the item identifiers is monitored; wherein each of the test items corresponds to a item identifier;
[0024] Obtain page change information of the at least one test item during the test process and a timestamp corresponding to each page change to obtain at least one piece of test operation information.
[0025] Optionally, the acquiring page change information of the at least one test item during the test process and a timestamp corresponding to each page change to obtain at least one piece of test operation information includes:
[0026] For each of the at least one test item, in response to a change in an operation page corresponding to the test item, obtaining a page element corresponding to the operation page, a response event, and a timestamp corresponding to the change sent by the operation page;
[0027] Based on the page element, the response event and the timestamp, at least one piece of the test operation information corresponding to the test item is determined; wherein each piece of the test page operation information includes a page element and a response event corresponding to a test operation page corresponding to a change of the test page.
[0028] Optionally, after acquiring the page change information of the at least one test item during the test process and the timestamp corresponding to each page change to obtain at least one piece of test operation information, the method further includes:
[0029] storing the at least one piece of test operation information in a transfer database included in the database;
[0030] In response to reaching a preset storage condition, the at least one piece of test operation information stored in the transit database is uploaded to a target database included in the database.
[0031] Optionally, the database includes a transit database and a target database;
[0032] The acquiring at least one piece of test operation information from a database based on the project identifier corresponding to the test analysis instruction includes:
[0033] At every preset time interval, synchronizing the plurality of test operation information stored in the transit database with the plurality of test operation information stored in the target database, so that the plurality of test operation information is stored in the transit database;
[0034] Based on the project identifier, at least one piece of the test operation information corresponding to the project identifier is extracted from the transfer database.
[0035] According to another aspect of an embodiment of the present disclosure, there is provided a project test information display device, comprising:
[0036] An information acquisition module, configured to, in response to receiving a test analysis instruction, acquire at least one piece of test operation information from a database based on a project identifier corresponding to the test analysis instruction; wherein each piece of the test operation information corresponds to a timestamp;
[0037] An image determination module, configured to determine at least one frame of test image based on the at least one piece of test operation information;
[0038] A related information module is used to determine at least one operation-related information based on the at least one test operation information; wherein each of the test operation information corresponds to one of the operation-related information;
[0039] A video generation module, configured to process the at least one piece of test operation information based on a timestamp corresponding to each piece of the test operation information, to obtain a test operation video corresponding to the project identifier;
[0040] A synchronous display module is used to synchronously display the test operation video and the operation related information corresponding to each frame of the test image in the test operation video.
[0041] Optionally, the relevant information module is specifically used to associate the timestamp corresponding to each piece of the test operation information with the operation related information corresponding to the test operation information; based on the timestamp, synchronously display the test image and the operation related information in each frame of the test operation video.
[0042] Optionally, the operation-related information includes at least one of the following: network log information, test operator information, and browser log information.
[0043] Optionally, the device further comprises:
[0044] A first video operation module is configured to respond to receiving a first operation instruction to move the test operation video to a first preset timestamp; according to the first operation instruction, display the test operation video starting from the test image and the operation related information corresponding to the first preset timestamp; and / or,
[0045] A second video operation module is used to respond to receiving a second operation instruction to display operation-related information corresponding to a second preset timestamp; according to the second operation instruction, display the test operation video starting from the test image and the operation-related information corresponding to the second preset timestamp.
[0046] Optionally, the video generation module is specifically used to determine a connection order between the at least one frame of test images based on at least one of the timestamps; connect the at least one frame of test images according to the connection order to obtain a test operation video corresponding to the project identifier.
[0047] Optionally, the device further comprises:
[0048] A project monitoring module, used to monitor at least one test project corresponding to at least one of the project identifiers according to preset configuration information; wherein each of the test projects corresponds to a project identifier;
[0049] The information collection module is used to obtain the page change information of the at least one test item during the test process and the timestamp corresponding to each page change, and obtain at least one piece of test operation information.
[0050] Optionally, the information collection module is specifically used to obtain, for each of the at least one test items, a page element corresponding to the operation page, a response event and a timestamp corresponding to the change sent by the operation page in response to a change in the operation page corresponding to the test item; based on the page element, the response event and the timestamp, determine at least one piece of the test operation information corresponding to the test item; wherein each piece of the test page operation information includes a page element and a response event corresponding to the test operation page corresponding to the test page change.
[0051] Optionally, the device further comprises:
[0052] The data storage module is used to store the at least one test operation information in a transit database included in the database; in response to reaching a preset storage condition, upload the at least one test operation information stored in the transit database to a target database included in the database.
[0053] Optionally, the database includes a transit database and a target database;
[0054] The information acquisition module is specifically used to synchronize the multiple test operation information stored in the transit database with the multiple test operation information stored in the target database at preset time intervals, so that the multiple test operation information is stored in the transit database; based on the project identifier, extract at least one of the test operation information corresponding to the project identifier from the transit database.
[0055] According to another aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0056] a memory for storing a computer program product;
[0057] The processor is used to execute the computer program product stored in the memory, and when the computer program product is executed, the project test information display method described in any of the above embodiments is implemented.
[0058] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the project test information display method described in any of the above embodiments is implemented.
[0059] According to another aspect of the embodiments of the present disclosure, a computer program product is provided, including computer program instructions, which, when executed by a processor, implement the project test information display method described in any of the above embodiments.
[0060] Based on a project test information display method and device, electronic device, and storage medium provided in the above-mentioned embodiments of the present disclosure, in response to receiving a test analysis instruction, at least one test operation information is obtained from a database based on the project identifier corresponding to the test analysis instruction; wherein each of the test operation information corresponds to a timestamp; based on the at least one test operation information, at least one frame of test image is determined; based on the at least one test operation information, at least one operation-related information is determined; wherein each of the test operation information corresponds to one operation-related information; based on the timestamp corresponding to each of the test operation information, the at least one test operation information is processed to obtain a test operation video corresponding to the project identifier; the test operation video and the operation-related information corresponding to each frame of the test image in the test operation video are synchronously displayed; this embodiment more intuitively reflects all operations and page changes performed during the project test process by synchronously displaying the test operation video and the corresponding operation-related information. When displaying information, problems can be quickly located, thereby improving the efficiency of troubleshooting during the test process.
[0061] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0063] Figure 1 It is a flowchart of a method for displaying project test information provided by an exemplary embodiment of the present disclosure;
[0064] Figure 2 This disclosure Figure 1 A schematic flow chart of step 110 in the embodiment shown;
[0065] Figure 3 This disclosure Figure 1 A schematic flow chart of step 108 in the embodiment shown;
[0066] Figure 4 is a flowchart of a project test information display method provided by another exemplary embodiment of the present disclosure;
[0067] Figure 5 This disclosure Figure 1 A flow chart of step 402 in the embodiment shown;
[0068] Figure 6 This disclosure Figure 1 A schematic flow chart of step 102 in the embodiment shown;
[0069] Figure 7 It is a structural schematic diagram of a project test information display device provided by an exemplary embodiment of the present disclosure;
[0070] Figure 8 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0072] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0073] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0074] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0075] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0076] In addition, the term "and / or" in this disclosure is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this disclosure generally indicates that the previous and next associated objects are in an "or" relationship. The data referred to in this disclosure may include unstructured data such as text, test images, and videos, and may also be structured data.
[0077] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0078] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0079] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0080] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0081] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0082] The disclosed embodiments can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0083] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0084] Exemplary Methods
[0085] Figure 11 is a flow chart of a method for displaying project test information provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices such as analyzers, such as Figure 1 As shown, the following steps are included:
[0086] Step 102: in response to receiving the test analysis instruction, obtaining at least one piece of test operation information from a database based on a project identifier corresponding to the test analysis instruction.
[0087] Each piece of test operation information corresponds to a timestamp; each project identifier corresponds to a test project.
[0088] The test analysis instruction is usually for a certain test item. Therefore, the test analysis instruction will have a project identifier corresponding to the test item. This embodiment obtains the test operation information of the corresponding test item through the project identifier, thereby improving the speed and accuracy of obtaining the test operation information.
[0089] Step 104: Determine at least one frame of test image based on at least one piece of test operation information.
[0090] In one embodiment, a frame of test image (for example, a test operation page, etc.) can be restored and generated based on each test operation information. The test operation information can be expressed in image form, which can realize the function of reproducing the tester's operation and realize more intuitive troubleshooting.
[0091] Step 106: Determine at least one piece of operation-related information based on the at least one piece of test operation information.
[0092] Each piece of test operation information corresponds to one piece of operation related information.
[0093] Optionally, operation-related information may include but is not limited to: test operator information, browser log information, network log information, etc.; among which, the test operator information can be captured when the test operator logs in; the browser log information can be captured from the background when obtaining the browser page, so as to facilitate troubleshooting the stage where the error occurs; the network log information can be obtained by network packet capture, which can realize interface identification of errors.
[0094] For example, in some optional embodiments, the operation-related information includes at least one of the following: network log information, test operator information, and browser log information.
[0095] Step 108: Process at least one piece of test operation information based on the timestamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the project identifier.
[0096] Optionally, the timestamp indicates the time when each test operation information is acquired or stored. Therefore, the timestamp can be used to know the sequence of the test operation information in the test process. The test operation information can be uniformly reproduced according to the test operation video determined by the timestamp, which is convenient for troubleshooting problems in the test process.
[0097] Step 110 , synchronously display the test operation video and the operation related information corresponding to each test image frame in the test operation video.
[0098] Optionally, the operation-related information can be played simultaneously with the test operation video by means of scrolling or barrage, so that the corresponding operation-related information can be viewed while the test operation video is being displayed.
[0099] In this embodiment, by testing the content in the operation video, it is possible to automatically identify whether the test item has problems such as freezing or display errors during the test process, and the problem can be accurately located, thereby improving the efficiency of problem solving.
[0100] The above-mentioned embodiment of the present disclosure provides a project test information display method, which responds to receiving a test analysis instruction, obtains at least one test operation information from a database based on the project identifier corresponding to the test analysis instruction; wherein each of the test operation information corresponds to a timestamp; based on the at least one test operation information, determines at least one frame of test image; based on the at least one test operation information, determines at least one operation-related information; wherein each of the test operation information corresponds to one operation-related information; based on the timestamp corresponding to each of the test operation information, processes the at least one test operation information to obtain a test operation video corresponding to the project identifier; synchronously displays the test operation video and the operation-related information corresponding to each frame of the test image in the test operation video; this embodiment more intuitively reflects all operations and page changes performed during the project test process by synchronously displaying the test operation video and the corresponding operation-related information, and can quickly locate problems when displaying information, thereby improving the efficiency of troubleshooting during the test process.
[0101] like Figure 2 As shown in the above Figure 1 Based on the illustrated embodiment, step 110 may include the following steps:
[0102] Step 1101: associate the timestamp corresponding to each piece of test operation information with the operation-related information corresponding to the test operation information.
[0103] Step 1102 , based on the timestamp, synchronously display each frame of the test image and operation related information in the test operation video.
[0104] In this embodiment, the operation-related information is expressed in text form (for example, the captured operation-related information is converted into text expression through code recognition and other methods in the prior art), and the operation-related information expressed in text form is integrated into strip subtitles, which are scrolled in the test operation video, or displayed in the test operation video in the form of barrage, etc., or the display interface is divided into different display areas through a split-screen method, and the test operation video and the test operation information are synchronously displayed in different display areas, and the operation information is scrolled. In addition, by associating the operation-related information with the timestamp of the corresponding test operation information, it is ensured that each subtitle information and each corresponding frame of the test image are played at the same time, and it is ensured that the scrolling (or barrage) and the video playback are corresponding events at the same time, thereby improving the accuracy of event positioning in the test operation video.
[0105] In some optional embodiments, the method provided in this embodiment may further include:
[0106] In response to receiving a first operation instruction to move the test operation video to a first preset timestamp;
[0107] According to the first operation instruction, the test operation video is displayed starting from the test image and operation related information corresponding to the first preset timestamp.
[0108] In the present embodiment, during the display of the test operation video, the tester's operation instructions can be received, for example, a first operation instruction for executing video movement. Optionally, according to a first preset timestamp corresponding to the first operation instruction (the specific timestamp is determined according to the input of the tester), a specific test image frame in the test operation video and the operation-related information corresponding to the test image can be located; based on the first operation instruction, the test operation video can be displayed starting from the test image and the operation-related information, so that the tester can start displaying the test operation video according to the moment of interest, thereby saving the tester's time and avoiding the problem of wasting time by starting from the beginning every time the test operation video is displayed.
[0109] In some optional embodiments, the method provided in this embodiment may further include:
[0110] In response to receiving a second operation instruction to display operation-related information corresponding to a second preset timestamp;
[0111] According to the second operation instruction, the test operation video is displayed starting from the test image and operation related information corresponding to the second preset timestamp.
[0112] In this embodiment, during the display of the test operation video, the tester's operation instructions can be received, for example, a second operation instruction for locating the video to a certain timestamp. Optionally, according to a second preset timestamp corresponding to the second operation instruction (the specific timestamp is determined according to the input of the tester), a specific test image frame in the test operation video and operation-related information corresponding to the test image can be located; based on the second operation instruction, the test operation video can be located to the test image and operation-related information, and the test image and operation-related information can be displayed, thereby realizing the tester's optional positioning of the test operation video. By directly locating the test operation video to the second preset timestamp, targeted display of the test image and operation-related information at a predetermined time is realized, thereby improving the efficiency of test problem troubleshooting.
[0113] like Figure 3 As shown in the above Figure 1 Based on the illustrated embodiment, step 108 may include the following steps:
[0114] Step 1081: Determine a connection order between at least one frame of test images based on at least one timestamp.
[0115] In this embodiment, each frame of test image in the same test project corresponds to a different timestamp (the moment when the test is triggered). Therefore, based on the timestamp, at least one frame of test image corresponding to at least one timestamp can be sorted in chronological order, and the connection order of at least one test image can be determined in chronological order. The connection order expresses the order of occurrence of test events corresponding to the test images during the test process.
[0116] Step 1082, connect at least one frame of test image according to the connection sequence to obtain a test operation video corresponding to the project identifier.
[0117] In this embodiment, the captured test images are integrated and connected into a video according to the recorded timestamps, and each test operation is displayed in the form of a video, wherein only the multiple frames of images that have a page reflection of the test operation are displayed, rather than the entire test process being recorded and displayed, thereby saving a lot of storage space and video playback time, and improving the efficiency of information display; optionally, in order to avoid large amounts of information processing and reporting caused by real-time high-frequency page changes, the component generation behavior is managed through redis caching, and the scheduled task is used to automatically splice and integrate into a video at each set interval (for example, every hour, etc.) to avoid high occurrences in the same time period.
[0118] Figure 4 FIG. 1 is a flow chart of a method for displaying project test information provided by another exemplary embodiment of the present disclosure. Figure 4 As shown, before step 102, the following steps may also be included:
[0119] Step 401: monitor at least one test item corresponding to at least one item identifier according to preset configuration information.
[0120] Each test item corresponds to a project ID.
[0121] Optionally, before testing the test items, a project identifier may be assigned to each test item in at least one test item to be tested to distinguish each test item; the test items are subsequently represented by the project identifiers, thereby improving the efficiency of identification and screening.
[0122] Step 402: Obtain page change information of at least one test item during the test process and a timestamp corresponding to each page change to obtain at least one piece of test operation information.
[0123] In this embodiment, when monitoring the test items, if it is monitored that the page of any one or more test items changes (the page changes due to the operation of the tester), all page change information of the page at the time of change (for example, DOM elements and response events, etc.) is captured, where DOM stands for Document Object Model, which allows scripts (js) to control Web pages, windows and documents; at the same time, the time of occurrence is recorded as the timestamp of the page change information; when the page does not change (the monitoring task does not obtain the event), the page corresponding to the current test item is not obtained, and silent processing is performed to reduce traffic consumption. In addition, by only obtaining the page change information at the time of page change, the processing time of invalid pages is reduced, and the efficiency of troubleshooting project test problems is improved.
[0124] like Figure 5 As shown in the above Figure 4 Based on the illustrated embodiment, for each test item in the at least one test item, step 402 may include the following steps:
[0125] Step 4021, in response to a change in the operation page corresponding to the test item, obtain a page element corresponding to the operation page, a response event, and a timestamp corresponding to the change sent by the operation page.
[0126] Optionally, the test project can be a wed project, etc.; by real-time monitoring of each test project, the page elements, response events and timestamps corresponding to each page change are obtained, so that each trigger operation during the test is recorded, and when no operation is performed, the page information is not obtained.
[0127] Step 4022: Determine at least one piece of test operation information corresponding to the test item based on the page element, the response event and the timestamp.
[0128] Each piece of test page operation information includes a page element and a response event corresponding to a test operation page corresponding to a test page change.
[0129] In this embodiment, page elements and response events are used as test operation information. Based on this, when test information needs to be displayed, the test image can be restored through the test operation information, and the test problem can be identified with the video obtained by connecting the images. This embodiment obtains the page operation in the form of information, and then restores the image of the operation page based on the information when the information is displayed. This improves the efficiency of information acquisition and realizes a more intuitive test information display.
[0130] Based on the above embodiment, after step 402, the following may also be included:
[0131] At least one piece of test operation information is stored in a transfer database included in the database.
[0132] In response to reaching a preset storage condition, at least one piece of test operation information stored in the transit database is uploaded to a target database included in the database.
[0133] The database provided in this embodiment includes a transit database and a target database; the captured information is temporarily stored through the transit database, and when a preset condition is met, data synchronization is performed between the transit database and the target database, wherein the preset storage condition may include but is not limited to: the time interval from the last data synchronization reaches a preset time length, the data volume reaches a preset data volume, etc.; in this embodiment, since the amount of data obtained is large, asynchronous uploading does not affect the performance of the web page, and the transit database is used for transit storage to improve the database performance. In addition, the collected data can be added, modified, deleted, checked, and other operations can be performed in the transit database and the target database.
[0134] Optionally, in some optional examples, the project test information display method includes: an automated capture process: adding an analyzer (sdk) to the test project, determining whether to turn on recording when the test starts, and after turning on, the analyzer will silently record page changes according to the configuration items registered in the test project, and at the same time generate and record the session ID for asynchronous upload to the database, thereby minimizing the performance impact on the test project page; all test operation information recorded by the test project is uniformly uploaded to the same target database through the analyzer for processing and storage, and the analyzer obtains the video visualization of the corresponding test project through the management service and displays it to the troubleshooter; storing the generated visualization component information: arranging and classifying the information collected in a test, storing the mapping relationship between the test operation information and the video, displaying the test operation process in the form of a video, and providing retrieval review based on the display; in other embodiments, the analyzer provides various extension interfaces to facilitate other extension functions to be compatible with the analyzer in a pluggable form in a modular manner, thereby realizing the expansion of other functions on the basis of test monitoring, such as retrieval review, search, etc.
[0135] like Figure 6 As shown in the above Figure 1 Based on the embodiment shown, the database includes a transit database and a target database; step 102 may include the following steps:
[0136] Step 1021 , synchronizing the plurality of test operation information stored in the transit database with the plurality of test operation information stored in the target database at every preset time interval, so that the plurality of test operation information is stored in the transit database.
[0137] Optionally, the captured test operation information is uploaded to a transit database (e.g., redis, etc.) for temporary storage, and then the transit database and the target database (e.g., MySQL, etc.) perform data synchronization at preset intervals (e.g., every hour, etc.); in an optional example, the method provided in this embodiment is applied in an analyzer device. Since the analyzer has certain requirements on the performance of the data, and the page changes frequently and the recording interval is short (at the millisecond level), the recorded data is large. Therefore, uploading in an asynchronous manner does not affect the performance of the web page. At the same time, the use of a transit database for transit improves the performance of the database.
[0138] Step 1022: based on the project identifier, extract at least one piece of test operation information corresponding to the project identifier from the transit database.
[0139] In this embodiment, one target database may correspond to multiple transit databases, and the test data of multiple test items may be acquired simultaneously through the multiple transit databases. Through information synchronization, all acquired test data may be synchronized to all transit databases regularly, so that the test data corresponding to all test items may be obtained through any transit database. Since the test data corresponds to at least one test item, all test operation information corresponding to the test item corresponding to the project identifier may be acquired from any transit database based on the project identifier as an index, and the test operation information may be acquired based on the project identifier, which is faster and more accurate.
[0140] Any project test information display method provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any project test information display method provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any project test information display method mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.
[0141] Exemplary Devices
[0142] Figure 7 Schematic diagram of the structure of a project test information display device provided by an exemplary embodiment of the present disclosure. Figure 7 As shown, the device provided in this embodiment includes:
[0143] The information acquisition module 71 is used to, in response to receiving a test analysis instruction, acquire at least one piece of test operation information from a database based on a project identifier corresponding to the test analysis instruction.
[0144] Each piece of test operation information corresponds to a timestamp.
[0145] The image determination module 72 is used to determine at least one frame of test image based on at least one piece of test operation information.
[0146] The related information module 73 is used to determine at least one operation related information based on at least one test operation information.
[0147] Each piece of test operation information corresponds to one piece of operation related information.
[0148] The video generation module 74 is used to process at least one piece of test operation information based on the timestamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the project identifier.
[0149] The synchronous display module 75 is used to synchronously display the test operation video and the operation related information corresponding to each frame of the test image in the test operation video.
[0150] The above-mentioned embodiment of the present disclosure provides a project test information display device, which, in response to receiving a test analysis instruction, obtains at least one test operation information from a database based on the project identifier corresponding to the test analysis instruction; wherein each of the test operation information corresponds to a timestamp; based on the at least one test operation information, determines at least one frame of test image; based on the at least one test operation information, determines at least one operation-related information; wherein each of the test operation information corresponds to one operation-related information; based on the timestamp corresponding to each of the test operation information, processes the at least one test operation information to obtain a test operation video corresponding to the project identifier; synchronously displays the test operation video and the operation-related information corresponding to each frame of the test image in the test operation video; this embodiment more intuitively reflects all operations and page changes performed during the project test process by synchronously displaying the test operation video and the corresponding operation-related information, and can quickly locate problems when displaying information, thereby improving the efficiency of troubleshooting during the test process.
[0151] Optionally, the related information module 73 is specifically used to associate the timestamp corresponding to each test operation information with the operation related information corresponding to the test operation information; based on the timestamp, each frame of the test image and the operation related information in the test operation video are synchronously displayed.
[0152] Optionally, the operation-related information includes at least one of the following: network log information, test operator information, and browser log information.
[0153] Optionally, the device provided in this embodiment may further include:
[0154] The first video operation module is used to respond to receiving a first operation instruction to move the test operation video to a first preset timestamp; according to the first operation instruction, display the test operation video starting from the test image and operation related information corresponding to the first preset timestamp.
[0155] Optionally, the device provided in this embodiment may further include:
[0156] The second video operation module is used to respond to receiving a second operation instruction to display operation-related information corresponding to a second preset timestamp; according to the second operation instruction, display the test operation video starting from the test image and operation-related information corresponding to the second preset timestamp.
[0157] In some optional embodiments, the video generation module 74 is specifically used to determine a connection order between at least one frame of test images based on at least one timestamp; connect at least one frame of test images according to the connection order to obtain a test operation video corresponding to the project identifier.
[0158] In some optional embodiments, the device provided in this embodiment further includes:
[0159] A project monitoring module, used to monitor at least one test project corresponding to at least one project identifier according to preset configuration information; wherein each test project corresponds to a project identifier;
[0160] The information collection module is used to obtain page change information of at least one test item during the test process and the timestamp corresponding to each page change, and obtain at least one piece of test operation information.
[0161] Optionally, the information collection module is specifically used to obtain, for each test item in at least one test item, a page element corresponding to the operation page, a response event and a timestamp corresponding to the change sent by the operation page in response to a change in the operation page corresponding to the test item; based on the page element, response event and timestamp, determine at least one test operation information corresponding to the test item; wherein each test page operation information includes a page element and a response event corresponding to the test operation page corresponding to a test page change.
[0162] In some optional embodiments, the device provided in this embodiment further includes:
[0163] The data storage module is used to store at least one piece of test operation information in a transit database included in the database; in response to reaching a preset storage condition, upload at least one piece of test operation information stored in the transit database to a target database included in the database.
[0164] In some optional embodiments, the database includes a transit database and a target database;
[0165] The information acquisition module 71 is specifically used to synchronize the multiple test operation information stored in the transit database with the target database at each preset time interval, so that the multiple test operation information is stored in the transit database; based on the project identifier, extract at least one test operation information corresponding to the project identifier from the transit database.
[0166] Exemplary Electronic Devices
[0167] Below, reference Figure 8 The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device 100 and the second device 200, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.
[0168] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is illustrated.
[0169] like Figure 8 As shown, the electronic device 80 includes one or more processors 81 and a memory 82 .
[0170] The processor 81 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 80 to perform desired functions.
[0171] The memory may store one or more computer program products, and the memory may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program products may be stored on the computer-readable storage medium, and the processor may run the computer program product to implement the project test information display method of each embodiment of the present disclosure described above and / or other desired functions.
[0172] In one example, the electronic device 80 may further include: an input device 83 and an output device 84 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0173] For example, when the electronic device is the first device 100 or the second device 200, the input device 83 may be the microphone or microphone array described above, for capturing input signals from a sound source. When the electronic device is a stand-alone device, the input device 83 may be a communication network connector, for receiving collected input signals from the first device 100 and the second device 200.
[0174] In addition, the input device 83 may also include, for example, a keyboard, a mouse, etc.
[0175] The output device 84 can output various information to the outside, including the determined distance information, direction information, etc. The output device 84 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0176] Of course, to simplify, Figure 8 Only some of the components related to the present disclosure in the electronic device 80 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 80 may also include any other appropriate components.
[0177] Exemplary computer program products and computer-readable storage media
[0178] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the project test information display method according to various embodiments of the present disclosure described in the above part of this specification.
[0179] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0180] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the project test information display method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0181] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0182] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0183] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0184] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0185] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0186] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0187] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0188] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for displaying project test information, characterized in that: include: Obtaining page change information of at least one test item during the test process and a timestamp corresponding to each page change, and obtaining at least one piece of test operation information; In response to receiving the test analysis instruction, acquiring at least one piece of test operation information from a database based on a project identifier corresponding to the test analysis instruction; Based on the at least one piece of test operation information, determining at least one frame of test image; Based on the at least one test operation information, at least one operation-related information is determined; wherein each test operation information corresponds to one operation-related information; wherein the operation-related information includes at least one of the following: network log information, test operator information, and browser log information; the test operator information is captured when the test operator logs in; the browser log information is captured from the background when the browser page is obtained, and is used to troubleshoot the stage where the error occurs; the network log information is obtained by network packet capture, and is used to perform interface identification of the error; Based on the timestamp corresponding to each piece of the test operation information, the at least one piece of the test operation information is processed to obtain a test operation video corresponding to the project identifier, wherein the test operation video is used to display multiple frames of images that respond to the test operation; Synchronously display the test operation video and the operation related information corresponding to each frame of the test image in the test operation video; wherein the operation related information is played simultaneously with the test operation video by scrolling or barrage; The synchronous display of the test operation video and the operation-related information corresponding to each frame of the test image in the test operation video includes: Associating a timestamp corresponding to each piece of the test operation information with the operation related information corresponding to the test operation information; Based on the timestamp, each frame of the test image and the operation related information in the test operation video are synchronously displayed.
2. The method according to claim 1, characterized in that: The method further comprises: In response to receiving a first operation instruction to move the test operation video to a first preset timestamp; According to the first operation instruction, displaying the test operation video starting from the test image and the operation related information corresponding to the first preset timestamp; and / or, In response to receiving a second operation instruction to display operation-related information corresponding to a second preset timestamp; According to the second operation instruction, the test operation video is displayed starting from the test image and the operation related information corresponding to the second preset timestamp.
3. The method according to claim 1, characterized in that The processing of the at least one piece of test operation information based on the timestamp corresponding to each piece of the test operation information to obtain the test operation video corresponding to the project identifier includes: Determining a connection order between the at least one frame of test images based on at least one of the timestamps; The at least one frame of test image is connected according to the connection sequence to obtain a test operation video corresponding to the project identifier.
4. The method according to any one of claims 1 to 3, characterized in that: In response to receiving the test analysis instruction, before acquiring at least one piece of test operation information from a database based on the project identifier corresponding to the test analysis instruction, the method further includes: According to preset configuration information, at least one test item corresponding to at least one of the item identifiers is monitored; wherein each of the test items corresponds to a item identifier.
5. The method according to claim 1, characterized in that: The acquiring of page change information of the at least one test item during the test process and a timestamp corresponding to each page change to obtain at least one piece of test operation information includes: For each of the at least one test item, in response to a change in an operation page corresponding to the test item, obtaining a page element corresponding to the operation page, a response event, and a timestamp corresponding to the change sent by the operation page; Based on the page element, the response event and the timestamp, at least one piece of the test operation information corresponding to the test item is determined; wherein each piece of the test operation information includes a page element and a response event corresponding to a test operation page corresponding to a test page change.
6. The method according to claim 1, characterized in that After acquiring page change information of the at least one test item during the test process and a timestamp corresponding to each page change to obtain at least one piece of test operation information, the method further includes: storing the at least one piece of test operation information in a transfer database included in the database; In response to reaching a preset storage condition, the at least one piece of test operation information stored in the transit database is uploaded to a target database included in the database.
7. The method according to any one of claims 1 to 3, characterized in that: The database includes a transit database and a target database; The acquiring at least one piece of test operation information from a database based on the project identifier corresponding to the test analysis instruction includes: At every preset time interval, synchronizing the plurality of test operation information stored in the transit database with the plurality of test operation information stored in the target database, so that the plurality of test operation information is stored in the transit database; Based on the project identifier, at least one piece of the test operation information corresponding to the project identifier is extracted from the transfer database.
8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the project test information display method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for generating test case, electronic equipment and storage medium
CN112527664A
Test process reproduction method and device thereof, equipment and storage medium
CN112988580A
