Disclosure of Invention
The present disclosure has been made in order to solve the above technical problems. The embodiment of the disclosure provides a project test information display method and device, electronic equipment and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided a project test information display method, including:
in response to receiving a test analysis instruction, acquiring at least one piece of test operation information from a database based on an item identifier corresponding to the test analysis instruction; wherein each piece of test operation information corresponds to a time stamp;
determining at least one frame of test image based on the at least one piece of test operation information;
determining at least one piece of operation related information based on the at least one piece of test operation information; wherein each piece of test operation information corresponds to one piece of operation related information;
Processing at least one piece of test operation information based on the time stamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the item identifier;
and synchronously displaying operation related information corresponding to the test image of each frame in the test operation video.
Optionally, the synchronously displaying the test operation video and operation related information corresponding to the test image of each frame in the test operation video includes:
establishing a correlation between the time stamp corresponding to each piece of test operation information and the operation related information corresponding to the test operation information;
and synchronously displaying the test image and the operation related information of each frame in the test operation video based on the time stamp.
Optionally, the operation related information includes at least one of: web log information, test operator information, browser log information.
Optionally, the method further comprises:
responding to a first operation instruction for moving the test operation video to a first preset time stamp;
according to the first operation instruction, the test operation video is displayed from the test image corresponding to the first preset timestamp and the operation related information; and/or the number of the groups of groups,
Responding to a second operation instruction which displays operation related information corresponding to a second preset time stamp;
and according to the second operation instruction, displaying the test operation video from the test image corresponding to the second preset timestamp and the operation related information.
Optionally, the processing the 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 item identifier includes:
determining a connection order between the at least one frame of test images based on at least one of the time stamps;
and connecting the at least one frame of test image according to the connection sequence to obtain a test operation video corresponding to the item identifier.
Optionally, before the at least one piece of test operation information is obtained from the database based on the item identifier corresponding to the test analysis instruction in response to receiving the test analysis instruction, the method further includes:
monitoring at least one test item corresponding to at least one item identifier according to preset configuration information; wherein each test item corresponds to an item identifier;
and acquiring page change information of the at least one test item in the test process and a time stamp corresponding to each page change to obtain at least one piece of test operation information.
Optionally, the obtaining the page change information of the at least one test item in the test process and the timestamp corresponding to each page change to obtain at least one piece of test operation information includes:
for each test item in the at least one test item, responding to the change of an operation page corresponding to the test item, and obtaining a page element corresponding to the operation page, a response event and a time stamp corresponding to the operation page sending change;
determining at least one piece of test operation information corresponding to the test item based on the page element, the response event and the timestamp; and each piece of test page operation information comprises a page element and a response event corresponding to a test operation page corresponding to the test page change once.
Optionally, after obtaining the page change information of the at least one test item in the test process and the timestamp corresponding to each page change, obtaining at least one piece of test operation information, the method further includes:
storing the at least one piece of test operation information into a transfer database included in the database;
and in response to the preset storage condition, uploading the at least one piece of test operation information stored in the transit database to a target database included in the database.
Optionally, the database comprises a transit database and a target database;
the step of obtaining at least one piece of test operation information from a database based on the item identifier corresponding to the test analysis instruction comprises the following steps:
each time interval is preset, the transfer database and a plurality of pieces of test operation information stored in the target database are subjected to information synchronization, and the plurality of pieces of test operation information are stored in the transfer database;
and extracting at least one piece of test operation information corresponding to the item identifier from the transit database based on the item identifier.
According to another aspect of the embodiments of the present disclosure, there is provided an item test information presentation apparatus, including:
the information acquisition module is used for responding to the received test analysis instruction and acquiring at least one piece of test operation information from the database based on the item identifier corresponding to the test analysis instruction; wherein each piece of test operation information corresponds to a time stamp;
the image determining module is used for determining at least one frame of test image based on the at least one piece of test operation information;
the related information module is used for determining at least one piece of operation related information based on the at least one piece of test operation information; wherein each piece of test operation information corresponds to one piece of operation related information;
The video generation module is used for processing the at least one piece of test operation information based on the time stamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the item identifier;
the synchronous display module is used for synchronously displaying the test operation video and operation related information corresponding to the test image of each frame in the test operation video.
Optionally, the related information module is specifically configured to associate a timestamp corresponding to each piece of test operation information with the operation related information corresponding to the test operation information; and synchronously displaying the test image and the operation related information of each frame in the test operation video based on the time stamp.
Optionally, the operation related information includes at least one of: web log information, test operator information, browser log information.
Optionally, the apparatus further comprises:
the first video operation module is used for responding to a first operation instruction for moving the test operation video to a first preset time stamp; according to the first operation instruction, the test operation video is displayed from the test image corresponding to the first preset timestamp and the operation related information; and/or the number of the groups of groups,
The second video operation module is used for responding to a second operation instruction which displays operation related information corresponding to a second preset time stamp; and according to the second operation instruction, displaying the test operation video from the test image corresponding to the second preset timestamp and the operation related information.
Optionally, the video generating module is specifically configured to determine a connection sequence between the at least one frame of test images based on at least one of the timestamps; and connecting the at least one frame of test image according to the connection sequence to obtain a test operation video corresponding to the item identifier.
Optionally, the apparatus further comprises:
the item monitoring module is used for monitoring at least one test item corresponding to at least one item identifier according to preset configuration information; wherein each test item corresponds to an item identifier;
the information acquisition module is used for acquiring page change information of the at least one test item in the test process and a time stamp corresponding to each page change to obtain at least one piece of test operation information.
Optionally, the information collection module is specifically configured to, for each test item in the at least one test item, respond to a change in an operation page corresponding to the test item, and obtain a page element corresponding to the operation page, a response event, and a timestamp corresponding to the change in transmission of the operation page; determining at least one piece of test operation information corresponding to the test item based on the page element, the response event and the timestamp; and each piece of test page operation information comprises a page element and a response event corresponding to a test operation page corresponding to the test page change once.
Optionally, the apparatus further comprises:
the data storage module is used for storing the at least one piece of test operation information into a transit database included in the database; and in response to the preset storage condition, uploading the at least one piece of test operation information stored in the transit database to a target database included in the database.
Optionally, the database comprises a transit database and a target database;
the information acquisition module is specifically configured to synchronize the transfer database with a plurality of pieces of test operation information stored in the target database at preset time intervals, so that the plurality of pieces of test operation information are stored in the transfer database; and extracting at least one piece of test operation information corresponding to the item identifier from the transit database based on the item identifier.
According to still another aspect of the embodiments of the present disclosure, there is provided an electronic device including:
a memory for storing a computer program product;
and a processor, configured to execute the computer program product stored in the memory, and when the computer program product is executed, implement the project test information presentation method according to any one of the foregoing embodiments.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the project test information presentation method according to any of the above embodiments.
According to yet another aspect of the disclosed embodiments, there is provided a computer program product comprising computer program instructions which, when executed by a processor, implement the project test information presentation method according to any of the above embodiments.
Based on the method and the device for displaying project test information, the electronic equipment and the storage medium provided by the embodiments of the present disclosure, in response to receiving a test analysis instruction, at least one piece of test operation information is obtained from a database based on a project identifier corresponding to the test analysis instruction; wherein each piece of test operation information corresponds to a time stamp; determining at least one frame of test image based on the at least one piece of test operation information; determining at least one piece of operation related information based on the at least one piece of test operation information; wherein each piece of test operation information corresponds to one piece of operation related information; processing at least one piece of test operation information based on the time stamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the item identifier; synchronously displaying operation related information corresponding to each frame of the test image in the test operation video; according to the method and the device for testing the project, through synchronously displaying the test operation video and the corresponding operation related information, all operations and page changes executed in the project test process are more intuitively reflected, when information display is carried out, the problem can be rapidly located, and the problem investigation efficiency in the test process is improved.
The technical scheme of the present disclosure is described in further detail below through the accompanying drawings and examples.
Detailed Description
Hereinafter, example embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present disclosure and not all of the embodiments of the present disclosure, and that the present disclosure is not limited by the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
It will be appreciated by those of skill in the art that the terms "first," "second," etc. in embodiments of the present disclosure are used merely to distinguish between different steps, devices or modules, etc., and do not represent any particular technical meaning nor necessarily logical order between them.
It should also be understood that in embodiments of the present disclosure, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in the presently disclosed embodiments may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in this disclosure is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the front and rear association objects are an or relationship. The data referred to in this disclosure may include unstructured data, such as text, test images, video, and the like, as well as structured data.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the present disclosure may be applicable to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with the terminal device, computer system, server, or other electronic device include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments that include any of the above systems, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
Exemplary method
Fig. 1 is a flowchart illustrating a project test information presentation method according to an exemplary embodiment of the present disclosure. The embodiment can be applied to an electronic device such as an analyzer, as shown in fig. 1, and includes the following steps:
step 102, in response to receiving the test analysis instruction, at least one piece of test operation information is obtained from the database based on the item identifier corresponding to the test analysis instruction.
Wherein each piece of test operation information corresponds to a time stamp; each item identification corresponds to a test item.
The test analysis instruction is usually aimed at a certain test item, so that the test analysis instruction has an item identifier corresponding to the test item, and in the embodiment, the test operation information corresponding to the test item is obtained through the item identifier, so that the speed and accuracy of obtaining the test operation information are improved.
Step 104, determining at least one frame of test image based on at least one piece of test operation information.
In an embodiment, a frame of test image (for example, a test operation page) can be restored and generated based on each piece of test operation information, the test operation information is expressed in an image form, the function of reproducing the operation of a tester can be realized, and the problem can be more intuitively examined.
Atstep 106, at least one piece of operation related information is determined based on the at least one piece of test operation information.
Wherein each piece of test operation information corresponds to one piece of operation related information.
Alternatively, the operation-related information may include, but is not limited to: testing operator information, browser log information, web log information, etc.; the test operator information can be captured when the test operator logs in; the browser log information can be obtained from the background in a grabbing manner when the browser page is obtained, so that the error occurrence stage can be conveniently checked; the network log information can be obtained by means of network packet capturing, and interface identification of errors can be achieved.
For example, in some alternative embodiments, the operation-related information includes at least one of: web log information, test operator information, browser log information.
And step 108, processing at least one piece of test operation information based on the time stamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the item identification.
Optionally, the time stamp represents the time of acquiring or storing each piece of test operation information, so that the sequence of the test operation information in the test process can be known through the time stamp, the test operation information can be uniformly reproduced according to the test operation video determined by the time stamp, and the problem existing in the test process can be conveniently examined.
Step 110, synchronously displaying the test operation video and operation related information corresponding to each frame of test image in the test operation video.
Optionally, the operation related information can be played simultaneously with the test operation video in a scrolling or barrage mode, so that the corresponding operation related information can be viewed while the test operation video is displayed.
In the embodiment, through testing the content in the operation video, the problems of whether the test items are stuck, display errors and the like in the test process can be automatically identified, the problems can be accurately positioned, and the problem solving efficiency is improved.
According to the project test information display method provided by the embodiment of the disclosure, in response to receiving a test analysis instruction, at least one piece of test operation information is obtained from a database based on a project identifier corresponding to the test analysis instruction; wherein each piece of test operation information corresponds to a time stamp; determining at least one frame of test image based on the at least one piece of test operation information; determining at least one piece of operation related information based on the at least one piece of test operation information; wherein each piece of test operation information corresponds to one piece of operation related information; processing at least one piece of test operation information based on the time stamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the item identifier; synchronously displaying operation related information corresponding to each frame of the test image in the test operation video; according to the method and the device for testing the project, through synchronously displaying the test operation video and the corresponding operation related information, all operations and page changes executed in the project test process are more intuitively reflected, when information display is carried out, the problem can be rapidly located, and the problem investigation efficiency in the test process is improved.
As shown in fig. 2, step 110 may include the following steps, based on the embodiment shown in fig. 1, described above:
step 1101, associating the time stamp corresponding to each piece of test operation information with the operation related information corresponding to the test operation information.
Step 1102, based on the time stamp, synchronously displaying each frame of test image and operation related information in the test operation video.
In this embodiment, the operation related information is expressed in a text manner (for example, the captured operation related information is converted into a text expression manner by means of code recognition in the prior art, etc.), the operation related information expressed in the text manner is integrated into a strip subtitle, the strip subtitle is scrolled and played in a test operation video, or displayed in the test operation video in a bullet screen manner, etc., or different display areas are divided in a display interface in a split screen manner, the test operation video and the test operation information are synchronously displayed in the different display areas, the operation information is scrolled and played, and by associating the operation related information with a timestamp of the corresponding test operation information, each piece of subtitle information and each corresponding test image frame are ensured to be simultaneously played, and the corresponding event in the same time of scrolling (or bullet screen) and video playing is ensured, so that the accuracy of event positioning in the test operation video is improved.
In some optional embodiments, the method provided in this embodiment may further include:
responding to a first operation instruction for receiving the mobile test operation video to a first preset time stamp;
and according to the first operation instruction, displaying the test operation video from the test image corresponding to the first preset time stamp and the operation related information.
In this embodiment, during the process of displaying the test operation video, an operation instruction of a tester may be received, for example, a first operation instruction of video movement is executed, optionally, a specific test image of a frame in the test operation video may be located according to a first preset timestamp (a specific timestamp is determined according to an input of the tester) corresponding to the first operation instruction, and operation related information corresponding to the test image; based on the first operation instruction, the test operation video can be displayed from the test image and the operation related information, so that the problem that the test operation video can be displayed by a tester according to the interested moment, the time of the tester is saved, and the time waste caused by the fact that the test operation video is displayed from the head each time is avoided.
In some optional embodiments, the method provided in this embodiment may further include:
Responding to a second operation instruction which displays operation related information corresponding to a second preset time stamp;
and according to the second operation instruction, displaying the test operation video from the test image corresponding to the second preset time stamp and the operation related information.
In this embodiment, during the process of displaying the test operation video, an operation instruction of a tester may be received, for example, a second operation instruction for locating the video to a certain timestamp, optionally, a specific test image in the test operation video may be located according to a second preset timestamp (a specific timestamp is determined according to the input of the tester) corresponding to the second operation instruction, and operation related information corresponding to the test image; based on the second operation instruction, the test operation video can be positioned to the test image and the operation related information, the test image and the operation related information are displayed, optional positioning of a tester to the test operation video is achieved, and through directly positioning the test operation video to a second preset timestamp, targeted display of the test image and the operation related information at a preset moment is achieved, and efficiency of test problem investigation is improved.
As shown in fig. 3, step 108 may include the following steps, based on the embodiment shown in fig. 1, described above:
step 1081, determining a connection order between at least one frame of test images based on the at least one timestamp.
In this embodiment, each frame of test image in the same test item corresponds to a different time stamp (the moment of test trigger), so that at least one frame of test image corresponding to at least one time stamp can be ordered according to time sequence based on the time stamp, and the connection sequence of at least one test image is determined according to time sequence, and the connection sequence is the sequence of occurrence of test events corresponding to the test image in the expression test process.
Step 1082, connecting at least one frame of test image according to the connection sequence to obtain the test operation video corresponding to the item identifier.
In the embodiment, the captured test images are integrated and connected into videos according to the recorded time stamps, and each test operation is displayed in a video mode, wherein only multi-frame images reflecting pages of the test operation are displayed instead of screen recording display of the whole test process, a large amount of storage space and video playing time are saved, and information display efficiency is improved; optionally, in order to avoid that the real-time high-frequency page changes cause a large amount of information to be processed and reported, the management component generates a behavior in a redis cache mode, and automatically splices and integrates the video into a video at each set time interval (for example, each hour and the like) in a timing task mode, so that high transmission in the same time period is avoided.
Fig. 4 is a flowchart illustrating a project test information presentation method according to another exemplary embodiment of the present disclosure. On the basis of any of the above embodiments, as shown in fig. 4, beforestep 102, the method may further include:
step 401, monitoring at least one test item corresponding to at least one item identifier according to preset configuration information.
Wherein each test item corresponds to an item identification.
Optionally, before testing the test items, an item identifier may be allocated to each of at least one to-be-tested test item, so as to distinguish each test item; and the test items are represented through the item identifiers, so that the recognition and screening efficiency is improved.
Step 402, obtaining page change information of at least one test item in a test process and a time stamp corresponding to each page change, and obtaining at least one piece of test operation information.
In this embodiment, in the case of monitoring test items, if it is monitored that a page of any one or more test items changes (a page changes due to an operation by a tester), all page change information (for example, a dom element, a response event, etc.) of the page at the time of the change is captured, where a dom holonomy Document Object Model, that is, a document object model, which allows a script (js) to control Web pages, windows, and documents; simultaneously recording the occurrence time as a time stamp of the page change information; when the page is not changed (the monitoring task does not acquire an event), the information acquisition is not performed on the page corresponding to the current test item, the flow consumption is reduced through the silence processing, and the processing time of invalid pages is reduced by only acquiring the page change information at the page change moment, so that the investigation efficiency of the item test problem is improved.
As shown in fig. 5, based on the embodiment shown in fig. 4, thestep 402 may include the following steps for each of at least one test item:
instep 4021, in response to a change of an operation page corresponding to the test item, a page element corresponding to the operation page, a response event, and a timestamp corresponding to a change of transmission of the operation page are obtained.
Alternatively, the test item may be a wed item or the like; by monitoring each test item in real time, the page element, the response event and the time stamp corresponding to the change moment of each page are obtained, so that each trigger operation in the test is recorded, and when the test is not operated, the page information is not obtained.
Instep 4022, at least one piece of test operation information corresponding to the test item is determined based on the page element, the response event, and the timestamp.
Each piece of test page operation information comprises a page element and a response event corresponding to a test operation page corresponding to one test page change.
In the embodiment, the page element and the response event are used as the test operation information, so that when the test information is required to be displayed, the test image is restored through the test operation information, the test problem is identified through the video obtained through image connection.
On the basis of the above embodiment, afterstep 402, it may further include:
and storing at least one piece of test operation information into a transit database included in the database.
And in response to the preset storage condition being reached, uploading at least one piece of test operation information stored in the transit database to a target database included in the database.
The database provided by the embodiment comprises a transit database and a target database; temporarily storing the captured information through the transfer database, and synchronizing data between the transfer database and the target database when a preset condition is reached, wherein the preset storage condition can include but is not limited to: the time interval from the last data synchronization reaches the preset duration, the data volume reaches the preset data volume, and the like; in this embodiment, since the acquired data size is larger, the asynchronous uploading does not affect the performance of the web page, and meanwhile, the transfer database is used for transferring and storing to improve the performance of the database, and in addition, operations of adding, modifying, deleting, searching and the like can be performed on the acquired data in the transfer database and the target database.
Optionally, in some optional examples, the project test information presentation method includes: automated capture flow: an analyzer (sdk) is added to the test item, whether recording is started or not is determined when the test is started, after the recording is started, the analyzer is internally silent according to the configuration item registered in the test item, and the session id is asynchronously uploaded to a database and is generated and recorded at the same time, so that the performance influence on the test item page is reduced to the minimum; the method comprises the steps that test operation information recorded by all test items is uniformly uploaded to the same target database through an analyzer for processing and storage, and the analyzer obtains video visualization of the corresponding test items through management service and displays the video visualization to an error inspector; storing the generated visualization component information: sorting and classifying the information collected in one test, storing the mapping relation between the test operation information and the video, displaying the test operation process in the form of the video, and providing retrieval and review on the basis of display; in other embodiments, the analyzer provides various expansion interfaces, so that other expansion functions can be compatible to the analyzer in a pluggable mode in a modularized mode, and other functions can be expanded on the basis of test monitoring, for example: search review, search, etc.
As shown in fig. 6, the database includes a relay database and a target database on the basis of the embodiment shown in fig. 1; step 102 may include the steps of:
and 1021, synchronizing the information of the transfer database with the pieces of test operation information stored in the target database at preset time intervals, so that the pieces of test operation information are stored in the transfer database.
Optionally, the captured test operation information is uploaded to a relay database (e.g., redis, etc.) for temporary storage, and then the relay database and a target database (e.g., mysql, etc.) are subjected to data synchronization at intervals of a preset duration (e.g., every hour, etc.); in an alternative example, the method provided in this embodiment is applied to an analyzer device, and because the analyzer will have a certain requirement on the performance of data, and because the frequent recording interval of page variation is short (in millisecond level), the recorded data is larger, so that the performance of web pages is not affected by uploading in an asynchronous manner, and meanwhile, the performance of databases is improved by transferring the databases.
Step 1022, based on the item identifier, extracts at least one piece of test operation information corresponding to the item identifier from the intermediate database.
In this embodiment, one target database may correspond to multiple transfer databases, test data of multiple test items are obtained through the multiple transfer databases at the same time, and through information synchronization, all test data obtained can be synchronized to all transfer databases at regular intervals, so that test data corresponding to all test items can be obtained through any one transfer database conveniently.
Any of the project test information presentation methods provided by the embodiments of the present disclosure may be performed by any suitable device having data processing capabilities, including, but not limited to: terminal equipment, servers, etc. Alternatively, any of the item test information presentation methods provided by the embodiments of the present disclosure may be executed by a processor, such as the processor executing any of the item test information presentation methods mentioned by the embodiments of the present disclosure by invoking corresponding instructions stored in a memory. And will not be described in detail below.
Exemplary apparatus
Fig. 7 is a schematic structural diagram of an item test information presentation apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 7, the apparatus provided in this embodiment includes:
theinformation obtaining module 71 is configured to obtain, in response to receiving the test analysis instruction, at least one piece of test operation information from the database based on the item identifier corresponding to the test analysis instruction.
Wherein each piece of test operation information corresponds to a time stamp.
Theimage determining module 72 is configured to determine at least one frame of test image based on at least one piece of test operation information.
Therelated information module 73 is configured to determine at least one piece of operation related information based on at least one piece of test operation information.
Wherein each piece of test operation information corresponds to one piece of operation related information.
Thevideo generating module 74 is configured to process at least one piece of test operation information based on the timestamp corresponding to each piece of test operation information, so as to obtain a test operation video corresponding to the item identifier.
Thesynchronous display module 75 is configured to synchronously display the test operation video and operation related information corresponding to each frame of test image in the test operation video.
According to the project test information display device provided by the embodiment of the disclosure, in response to receiving a test analysis instruction, at least one piece of test operation information is obtained from a database based on a project identifier corresponding to the test analysis instruction; wherein each piece of test operation information corresponds to a time stamp; determining at least one frame of test image based on the at least one piece of test operation information; determining at least one piece of operation related information based on the at least one piece of test operation information; wherein each piece of test operation information corresponds to one piece of operation related information; processing at least one piece of test operation information based on the time stamp corresponding to each piece of test operation information to obtain a test operation video corresponding to the item identifier; synchronously displaying operation related information corresponding to each frame of the test image in the test operation video; according to the method and the device for testing the project, through synchronously displaying the test operation video and the corresponding operation related information, all operations and page changes executed in the project test process are more intuitively reflected, when information display is carried out, the problem can be rapidly located, and the problem investigation efficiency in the test process is improved.
Optionally, therelated information module 73 is specifically configured to associate a timestamp corresponding to each piece of test operation information with operation related information corresponding to the test operation information; based on the time stamp, each frame of test image and operation related information in the test operation video are synchronously displayed.
Optionally, the operation related information includes at least one of: web log information, test operator information, browser log information.
Optionally, the apparatus provided in this embodiment may further include:
the first video operation module is used for responding to a first operation instruction of receiving the mobile test operation video to a first preset time stamp; and according to the first operation instruction, displaying the test operation video from the test image corresponding to the first preset time stamp and the operation related information.
Optionally, the apparatus provided in this embodiment may further include:
the second video operation module is used for responding to a second operation instruction which displays operation related information corresponding to a second preset time stamp; and according to the second operation instruction, displaying the test operation video from the test image corresponding to the second preset time stamp and the operation related information.
In some alternative embodiments, thevideo generation module 74 is specifically configured to determine a connection order between at least one frame of test images based on at least one time stamp; and connecting at least one frame of test image according to the connection sequence to obtain a test operation video corresponding to the item identification.
In some optional embodiments, the apparatus provided in this embodiment further includes:
the project monitoring module is used for monitoring at least one test project corresponding to at least one project identifier according to preset configuration information; wherein each test item corresponds to an item identifier;
the information acquisition module is used for acquiring page change information of at least one test item in the test process and a time stamp corresponding to each page change to obtain at least one piece of test operation information.
Optionally, the information acquisition module is specifically configured to, for each test item in at least one test item, respond to a change in an operation page corresponding to the test item, and obtain a page element corresponding to the operation page, a response event, and a timestamp corresponding to a change in transmission of the operation page; determining at least one piece of test operation information corresponding to the test item based on the page element, the response event and the time stamp; each piece of test page operation information comprises a page element and a response event corresponding to a test operation page corresponding to one test page change.
In some optional embodiments, the apparatus provided in this embodiment further includes:
the data storage module is used for storing at least one piece of test operation information into a transfer database included in the database; and in response to the preset storage condition being reached, uploading at least one piece of test operation information stored in the transit database to a target database included in the database.
In some alternative embodiments, the databases include a staging database and a destination database;
theinformation acquisition module 71 is specifically configured to synchronize the transfer database with the pieces of test operation information stored in the target database at preset time intervals, so that the transfer database stores the pieces of test operation information; and extracting at least one piece of test operation information corresponding to the item identification from the data base based on the item identification.
Exemplary electronic device
Next, an electronic device according to an embodiment of the present disclosure is described with reference to fig. 8. The electronic device may be either or both of the first device 100 and the second device 200, or a stand-alone device independent thereof, which may communicate with the first device and the second device to receive the acquired input signals therefrom.
Fig. 8 illustrates a block diagram of an electronic device according to an embodiment of the disclosure.
As shown in fig. 8, theelectronic device 80 includes one ormore processors 81 andmemory 82.
Processor 81 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities and may control other components inelectronic device 80 to perform desired functions.
The memory may store one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or nonvolatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program products may be stored on the computer readable storage medium that can be run by a processor to implement the project test information presentation methods and/or other desired functions of the various embodiments of the present disclosure described above.
In one example, theelectronic device 80 may further include: aninput device 83 and anoutput device 84, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
For example, when the electronic device is the first device 100 or the second device 200, the input means 83 may be a microphone or a microphone array as described above for capturing an input signal of a sound source. When the electronic device is a stand-alone device, the input means 83 may be a communication network connector for receiving the acquired input signals from the first device 100 and the second device 200.
In addition, theinput device 83 may also include, for example, a keyboard, a mouse, and the like.
Theoutput device 84 may output various information to the outside, including the determined distance information, direction information, and the like. The output means 84 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of theelectronic device 80 relevant to the present disclosure are shown in fig. 8, with components such as buses, input/output interfaces, etc. omitted for simplicity. In addition, theelectronic device 80 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the present disclosure may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the project test information presentation method according to the various embodiments of the present disclosure described in the above section of the specification.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform the steps in the project test information presentation method according to the various embodiments of the present disclosure described in the above "exemplary method" section of the present description.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present disclosure have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present disclosure. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, since the disclosure is not necessarily limited to practice with the specific details described.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The block diagrams of the devices, apparatuses, devices, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices and methods of the present disclosure, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered equivalent to the present disclosure.
The previous 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 generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the disclosure to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.