CN116320586A - Operation video generation method and device - Google Patents

Operation video generation method and device Download PDF

Info

Publication number
CN116320586A
CN116320586A CN202310354355.XA CN202310354355A CN116320586A CN 116320586 A CN116320586 A CN 116320586A CN 202310354355 A CN202310354355 A CN 202310354355A CN 116320586 A CN116320586 A CN 116320586A
Authority
CN
China
Prior art keywords
video
abnormal
user operation
screen recording
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310354355.XA
Other languages
Chinese (zh)
Inventor
崔小艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shangyin Microchip Technology Co ltd
Original Assignee
Beijing Shangyin Microchip Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shangyin Microchip Technology Co ltd filed Critical Beijing Shangyin Microchip Technology Co ltd
Priority to CN202310354355.XA priority Critical patent/CN116320586A/en
Publication of CN116320586A publication Critical patent/CN116320586A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23109Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion by placing content in organized collections, e.g. EPG data repository
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Abstract

The invention provides an operation video generation method and device, which are used for monitoring any business module after a business process is started; when the starting identifier exists in the service module, starting screen recording operation, and monitoring front-end and back-end service interfaces in real time; when the front-end or back-end service interface is monitored to be abnormal, stopping screen recording operation, generating user operation video and abnormal video information, uploading the user operation video and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation video to the front-end server after receiving the user operation video and the abnormal video information, and storing the abnormal video information and the identification number ID in a database. In the scheme, when the front-end or back-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or back-end service interface is abnormal, the video of the user operation step exists, and a tester can conveniently position the problem during the testing process.

Description

Operation video generation method and device
Technical Field
The invention relates to the technical field of QA (quality assurance engineer) testing, in particular to an operation video generation method and device.
Background
At present, front-end monitoring records the operation of a user through a buried point technology, so as to obtain data statistics and operation logs. However, when some anomaly is monitored or detected, no video of the user operation steps exists, which is inconvenient for the tester to locate the problem during the test.
As can be seen, there is a need for a method of generating an operation video in the event of an abnormality.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and apparatus for generating an operation video, so as to achieve the purpose of facilitating the positioning of a problem on a line.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
the first aspect of the embodiment of the invention discloses an operation video generation method which is applied to a front-end server and comprises the following steps:
after the service flow is started, any service module is monitored;
when the starting identifier exists in the service module, starting screen recording operation, and monitoring front-end and back-end service interfaces in real time;
when the front end or the rear end service interface is monitored to be abnormal, stopping the screen recording operation, generating user operation video and abnormal video information, uploading the user operation video and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation video to the front end server after receiving the user operation video and the abnormal video information, and storing the abnormal video information and the identification number ID in a pre-established database.
Optionally, the method further comprises:
and stopping the screen recording operation when the stop mark exists in the service module, and destroying the generated user operation video.
Optionally, when it is detected that the service module has a start identifier, a screen recording operation is started, and front-end service interfaces and back-end service interfaces are monitored in real time, including:
when the starting identifier exists in the service module, a starting recording method in a pre-introduced screen recording plug-in is called, screen recording operation is started, and front-end and back-end service interfaces are monitored in real time.
Optionally, when it is detected that an abnormality occurs in the front end or the back end service interface, stopping the screen recording operation, generating a user operation video and abnormal video information, and uploading the user operation video and the abnormal video information to a file server, including:
when the front end or the rear end service interface is monitored to be abnormal, a recording callback stopping method in the screen recording plug-in is called, the screen recording operation is stopped, and user operation video and abnormal video information are generated;
and rewriting the recording stopping callback method, integrating a predefined file server video interface, calling a preset video uploading method, and uploading the user operation video and the abnormal video information to a file server.
Optionally, when it is detected that the service module has a stop identifier, stopping the screen recording operation, and destroying the generated user operation video, including:
and when the stop mark exists in the service module and the front end service interface and the rear end service interface are not abnormal, invoking a stop recording method in the screen recording plug-in, stopping the screen recording operation, and destroying the generated user operation video.
The second aspect of the embodiment of the invention discloses an operation video generation method which is applied to a file server and comprises the following steps:
receiving user operation video and abnormal video information uploaded by a front-end server, and returning an identification number ID corresponding to the user operation video to the front-end server;
and acquiring the abnormal information in the abnormal video information, and storing the abnormal information and the identification number ID into a pre-established database.
A third aspect of the embodiment of the present invention discloses an operation video generating apparatus, applied to a front-end server, the apparatus comprising:
the first monitoring module is used for monitoring any business module after the business process is started;
the screen recording and monitoring module is used for starting screen recording operation and monitoring front-end and rear-end service interfaces in real time when the fact that the service module has a start identifier is monitored;
the first monitoring processing module is used for stopping the screen recording operation when the front end or the rear end service interface is monitored to be abnormal, generating user operation videos and abnormal video information, uploading the user operation videos and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation videos to the front end server after receiving the user operation videos and the abnormal video information, and storing the abnormal video information and the identification number ID in a pre-established database.
Optionally, the method further comprises:
and the second monitoring processing module is used for stopping the screen recording operation and destroying the generated user operation video when the stopping mark exists in the service module.
Optionally, the screen recording and monitoring module is specifically configured to:
when the starting identifier exists in the service module, a starting recording method in a pre-introduced screen recording plug-in is called, screen recording operation is started, and front-end and back-end service interfaces are monitored in real time.
The fourth aspect of the embodiment of the invention discloses an operation video generation device, which is applied to a file server and comprises:
the receiving module is used for receiving the user operation video and the abnormal video information uploaded by the front-end server and returning an identification number ID corresponding to the user operation video to the front-end server;
and the storage module is used for acquiring the abnormal information in the abnormal video information and storing the abnormal information and the identification number ID into a pre-established database.
Based on the method and the device for generating the operation video provided by the embodiment of the invention, the method comprises the following steps: after the service flow is started, any service module is monitored; when the starting identifier exists in the service module, starting screen recording operation, and monitoring front-end and back-end service interfaces in real time; when the front end or the rear end service interface is monitored to be abnormal, stopping the screen recording operation, generating user operation video and abnormal video information, uploading the user operation video and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation video to the front end server after receiving the user operation video and the abnormal video information, and storing the abnormal video information and the identification number ID in a pre-established database. In the scheme, when the front-end or back-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or back-end service interface is abnormal, the video of the user operation step exists, and a tester can conveniently position the problem during the testing process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for generating operation video according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for generating an operation video according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an operation video generation according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an operation video generating apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another operation video generating apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein.
According to the background technology, when the existing monitoring mode is adopted for abnormal monitoring, no video of user operation steps exists, and the problem that a tester is difficult to locate in the testing process is inconvenient.
Therefore, in the scheme, when the front-end or rear-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or rear-end service interface is abnormal, the video of the user operation step exists, and the testing personnel can conveniently position the difficult problem in the testing process.
First, an operation video generation system to which the operation video generation method/apparatus of the present application is applied is described, the operation video generation system including a front end, a front end server, a file server, and a monitoring platform.
The front end refers to an application interface written in a front-end language such as JS, VUE, and the like.
Optionally, in a specific embodiment, the front end may be understood as a mobile terminal, including but not limited to a user terminal and a client terminal, which is a device having a function of displaying relevant pages, such as a mobile phone, a tablet, a computer, etc., for providing an intuitive page display for a user and facilitating the user to perform a corresponding operation.
The front-end server is used for receiving corresponding operation performed by the user through the front-end and performing operation video generation processing based on the corresponding operation.
The file server is used for receiving the user operation video and the abnormal video information uploaded by the front-end server and storing the user operation video and the abnormal video information in the database.
The monitoring platform may also be understood as a mobile terminal, including but not limited to a user terminal and a client terminal, which is a device with a display function, such as a mobile phone, a tablet, a computer, etc., and is used for querying abnormal video information in a database and displaying the abnormal video information in a form.
The process for realizing the operation video generation based on the operation video generation system disclosed above comprises the following steps:
the user logs in the operation video generation system through the front end, then enters a normal operation business flow, and carries out corresponding operation on the operation video generation system through the front end page.
It should be noted that, a plurality of service modules are disposed in the service flow.
The front-end server monitors any business module in the business process after monitoring that the user starts the corresponding business process through the front end.
When the service module is monitored to have a starting identifier, starting screen recording operation, and monitoring front-end and back-end service interfaces in real time.
When the stop mark exists in the service module and the front end service interface and the rear end service interface are not abnormal, stopping screen recording operation and destroying the generated user operation video.
When the front-end or back-end service interface is monitored to be abnormal, stopping screen recording operation, generating user operation video and abnormal video information, and uploading the user operation video and the abnormal video information to a file server.
The abnormal video information includes abnormal information.
The file server receives the user operation video and the abnormal video information uploaded by the front-end server, returns an identification number ID corresponding to the user operation video to the front-end server, and stores the abnormal video information and the identification number ID in a pre-established database.
The monitoring platform calls a preset abnormal information inquiring interface, inquires abnormal information in the database, displays the abnormal information in a form, and downloads any abnormal information according to the need so as to be checked by a user.
The query exception information interface is a searchExceptionInfo () interface.
According to the operation video generation system provided by the embodiment of the invention, when the front-end or rear-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or rear-end service interface is abnormal, the video of the user operation step exists, and a tester can conveniently position a difficult problem in the test process.
Based on the operation video generation system shown above, as shown in fig. 1, a flowchart of an operation video generation method according to an embodiment of the present invention is provided, where the operation video generation method is applied to a front-end server.
The front-end server is the front-end server described above.
The operation video generation method mainly comprises the following steps:
step S101: after the business process is started, any business module is monitored.
In step S101, a plurality of service modules are provided in the service flow.
In the specific implementation step S101, after the user logs in through the user terminal, that is, after the user logs in through the front end to operate the video generating system, the user performs corresponding operation on the operation video generating system through the front end page, firstly, the user starts a service flow through the front end, and then performs corresponding service operation on each service module in the service flow, and then, the front end server in the operation video generating system monitors any service module in the service flow after monitoring that the user starts the corresponding service flow through the front end.
In other words, the normal recording is started after the user logs in, and the operation video generating system automatically records the normal operation business flow of the user in the background.
Step S102: and judging whether the service module is monitored to have a starting identifier, if so, executing the step S103, and if not, returning to continue executing the step S101.
It should be noted that, the start identifier is the start identifier.
Preferably, the start identifier may be understood as a start tag.
In practical application, based on VUE language, burying points are carried out on Web terminal pages, specifically, burying points are carried out aiming at different service scene distinguishing service modules, starting and ending pages of each service module are clearly identified, and burying points are implemented.
In the specific implementation process of step S102, it is determined whether a start identifier exists in the service module, that is, whether a start identifier exists in a start page of the service module is monitored, if yes, step S103 is executed, and if not, step S101 is continuously executed.
Step S103: and starting screen recording operation, and monitoring front-end and back-end service interfaces in real time.
In step S103, the screen recording operation may be started by the Web recording technique.
In the specific implementation process of step S103, when it is determined that the start identifier exists in the monitored service module, that is, when it is determined that the start identifier exists in the start page of the monitored service module, the screen recording operation is started through the Web screen recording technology, and then, the front-end service interface and the rear-end service interface are monitored in real time.
Optionally, in a specific embodiment, when it is detected that the service module has a start identifier, a start recording method in a pre-introduced screen recording plug-in is invoked, a screen recording operation is started, and front-end service interfaces and back-end service interfaces are monitored in real time.
It should be noted that the screen recording plug-in is a recordrtc plug-in.
The start recording method is a startRecording () method.
That is, when a page with a start identifier is monitored, a start Recording () method in plug-in recordtc is called to start screen Recording, and then the front-end and back-end service interfaces are monitored in real time.
It should be noted that, when the presence of the stop flag in the service module is detected, step S104 is performed.
When it is detected that the front-end or back-end service interface is abnormal, step S105 is performed.
Step S104: stopping the screen recording operation, and destroying the generated user operation video.
In the specific implementation process of step S104, when it is detected that the service module has a stop identifier, stopping the screen recording operation, generating a user operation video, and destroying the generated user operation video.
That is, the stop flag is monitored to stop and destroy the recording.
It should be noted that stopping and destroying the recording refers to stopping not saving the recording.
The stop mark is the end mark.
Preferably, the end identifier is understood as an end tag.
Or, the end tag is monitored to stop and destroy the recording.
Optionally, in a specific embodiment, when it is detected that the service module has a stop identifier and no abnormal situation occurs in the front end service interface and the back end service interface, a stop recording method in the screen recording plug-in is invoked, the screen recording operation is stopped, and the generated user operation video is destroyed.
Note that the stop recording method is a stop recording () method.
Specifically, when the end identifier of the service module is identified and any abnormal condition occurs in the front-end or back-end service interface is not identified, the stop recording is stopped by calling a stop recording () method in the recordrtc plug-in, and the recording is saved without calling a video transmission interface of the file server, in other words, the generated user operation video is destroyed.
The abnormal conditions include a back-end interface abnormality and a front-end abnormality.
The back-end interface exception includes, but is not limited to, the back-end interface not returning a success code value, a timeout link occurring, or a database SQL execution exception.
Front-end exception refers to the front-end JS reporting errors, including but not limited to, not finding the corresponding attribute value, failing to set a certain attribute value, and failing to load certain resources.
In the embodiment of the invention, whether an abnormal condition is monitored or identified is judged according to whether the response code value of the back-end interface is a successful code value (generally 0).
The front end has a monitoring abnormality technology, and when an abnormality occurs, the abnormality is caught by the monitoring abnormality technology, that is, the front end abnormality is identified.
And when the back-end interface responds to the abnormal code value, determining that the server-end interface (back-end service interface) is abnormal.
Step S105: stopping screen recording operation, generating user operation video and abnormal video information, uploading the user operation video and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation video to a front-end server after receiving the user operation video and the abnormal video information, and storing the abnormal video information and the identification number ID in a pre-established database.
It should be noted that the file server is the file server described above.
In the specific implementation step S105, when it is monitored that an abnormality occurs in the front-end or back-end service interface, that is, when it is monitored that any one of the above descriptions occurs in the front-end or back-end service interface, the screen recording operation is stopped, user operation video and abnormal video information are generated, the user operation video and the abnormal video information are uploaded to the file server, the file server receives the user operation video and the abnormal video information, and after receiving the user operation video and the abnormal video information, the identification number ID corresponding to the user operation video is returned to the front-end server, and the abnormal video information and the identification number ID are stored in a pre-established database.
That is, the front-end or back-end service interface is monitored to be abnormal, or the front-end or back-end service interface is identified to be abnormal, and recording is stopped and saved.
It should be noted that stopping and saving the recording refers to stopping the recording and calling the video interface of the file server to save the recorded video.
In the embodiment of the invention, a file server uploading interface is called, and the generated user operation video and abnormal video information are stored in the file server.
Optionally, in a specific embodiment, when it is detected that an abnormality occurs in the front-end or back-end service interface, a method for stopping recording callback in the screen recording plug-in is invoked, the screen recording operation is stopped, and user operation video and abnormal video information are generated; and (3) rewriting and stopping recording callback method, integrating a video interface of the file server, calling a preset video uploading method, and uploading the user operation video and the abnormal video information to the file server.
Note that the stop recording callback method is a stopcircumdingcallback () method.
The file server video interface is a recoeveErrorMessage interface, and is used for receiving video data.
The file server defines a file server video interface, i.e. defines a recieveErrorMessage interface, for the front-end or front-end server to call.
The relevant code defining the recieveErrorMessage interface is as follows:
the interface ierteievelormessage ()// interface is provided for the user (i.e. the front end) to call the video uploading method to be an uploadvector method.
The relevant code defining the uploadvector method is as follows:
upLoadVedio (ByteVedio) Return fileid// video is uploaded to the file server and the file ID is returned
Specifically, after the front-end exception or the server-end interface (which can be understood as a back-end service interface) exception notification is identified, a stop recording is called by a stop record method of a stop record call () in a recordrtc plug-in, a stop record call () method is rewritten, a file server video interface is integrated, data is transmitted to a file server through an up load video method, in other words, the generated user operation video is transmitted.
In the embodiment of the invention, the integrated file server stores the interface of the video, and the file transmission is realized by realizing the interface.
Based on the above description, it can be understood that the key abnormal node user operation video acquisition is realized by using technologies such as a front-end embedded point technology, a Web screen recording technology, a video processing technology and the like.
According to the operation video generation method provided by the embodiment of the invention, when the front-end or rear-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or rear-end service interface is abnormal, the video with the user operation step exists, and a tester can conveniently position a difficult problem in the test process.
Based on the above-mentioned operation video generating method shown in fig. 1 according to the embodiment of the present invention, as shown in fig. 2, a flowchart of another operation video generating method according to the embodiment of the present invention is provided, and the method is applied to a file server, and the operation video generating method mainly includes the following steps:
step S201: and receiving the user operation video and the abnormal video information uploaded by the front-end server, and returning an identification number ID corresponding to the user operation video to the front-end server.
In the specific implementation process of step S201, the file server receives the user operation video and the abnormal video information uploaded by the front-end server by calling the file server video interface, and then, the file server video interface returns the identification number ID corresponding to the user operation video to the front-end server.
That is, the front-end server uploads the user operation video and the abnormal video information to the file server by calling the video interface of the file server and by the video uploading method, and the file server returns the unique identification number ID corresponding to the front-end user operation video to the front-end.
In practical application, the file server defines a video interface of the file server, that is, defines a recoieveerror message interface, for the front end to call, and is used for receiving video data.
The file server defines a Recievelogest VedioInfo method to realize the receiving of video stream, abnormal information and abnormal modules (namely abnormal business modules).
The relevant codes are as follows:
RecieveExceptionVedioInfo ()// receive anomalous video information StringExceptionInfo; information of// abnormality
stringExceptionM module; abnormality module
Bytevedio; video streaming
StringUserId; user information
Stringbrowser; user browser
getter();
setter();
An upLoadVedio method is defined for uploading video files to a file server.
The relevant codes are as follows:
UpLoadVedio (ByteVedio) Return fileid// video is uploaded to the file server and the file ID is returned
Step S202: and acquiring the abnormal information in the abnormal video information, and storing the stored abnormal information and the identification number ID into a pre-established database.
In the embodiment of the invention, a method for storing exception information, namely a SaveExceptionInfo method is designed and used for storing exception information.
The relevant codes are as follows:
SaveExceptionInfo ()// store anomaly information method StringExceptionInfo; information of// abnormality
stringExceptionM module; abnormality module
StringfileId; /(File store ID)
StringUserId; user information
Stringbrowser; user browser
gainExceptionInfo ()// obtain exception information and store it in database
In addition, a data table is designed for the user to store the abnormal information.
Wherein the table related information includes: unique primary key, anomaly information, anomaly module, file ID, user information, user browser.
In addition, a searchExceptionInfo () query interface is designed for the monitoring platform to call and query, and finally, the data is displayed on the monitoring platform.
The relevant codes are as follows:
interfaceresearch hEX-accept Info ()// query interface is provided for the monitoring platform to use
MonitorSearchExceptionInfo// query exception information class
search ()' return result// query method, return query result
In practical application, the monitoring platform calls a preset abnormal information inquiry interface, inquires abnormal information in a database, displays the abnormal information in a form, and downloads any abnormal information through an identification number ID (i.e. a file ID) according to the requirement so as to be convenient for users to check.
That is, the abnormal data information is integrated to the monitoring platform in the form of a form, and any abnormal information can be downloaded through the file ID on the monitoring platform for viewing by a user.
Alternatively, the abnormal data information may be called to the client (front end) through a query interface, and the data information is presented to the client.
In the specific implementation process of step S202, the abnormal information in the abnormal video information is obtained by using a gainExceptionInfo method, and the stored abnormal information and the identification number ID are stored in a pre-established database by using a pre-set method for storing abnormal information, namely, a SaveExceptionInfo method.
According to the operation video generation method provided by the embodiment of the invention, after the user operation video and the abnormal video information are received, the identification number ID corresponding to the user operation video is returned to the front-end server, and after the abnormal information in the abnormal video information is acquired, the stored abnormal information and the identification number ID are stored in the pre-established database, so that when the abnormal operation video exists, the user operation step video is convenient for a tester to locate the difficult problem in the test process.
For a better understanding of the foregoing, a schematic diagram of an operation video generation is provided in an embodiment of the present invention as shown in fig. 3.
In fig. 3, first, after a user logs in, normal recording is started, and the video generation system is operated to automatically record the normal operation business flow of the user in the background.
When a page with a start identifier of any module is monitored (identified), a start recording () method in a recordrtc plug-in is called, and screen recording is started.
And when the end identifier of the module is identified and any abnormal condition is not identified, calling a stop recording () method in the recordrstc plug-in to stop the recording, and not calling a video transmission interface of the file server to store the recording.
And after the front-end abnormality or the server-end interface abnormality notification is identified, calling a stop record of a stop record method in a recordrtc plugin, rewriting the stop record () method, integrating a file server video interface recoererrorMessage, and transmitting data to a file server.
The file server receives the video stream, the abnormal information and the abnormal module through the RecieveExceptionVedioInfo method, returns the file ID and stores the abnormal video information and the file ID.
The monitoring platform calls a preset abnormal information inquiring interface, inquires the abnormal information in the database, displays the abnormal information in a form, and realizes data display.
According to the operation video generation method provided by the embodiment of the invention, when the front-end or rear-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or rear-end service interface is abnormal, the video with the user operation step exists, and a tester can conveniently position a difficult problem in the test process.
Corresponding to the method for generating an operation video shown in fig. 1 in the foregoing embodiment of the present invention, the embodiment of the present invention further correspondingly provides an operation video generating device, as shown in fig. 4, where the device is applied to a front-end server, and the device includes: a first monitoring module 401, a screen recording and monitoring module 402 and a first monitoring processing module 403.
The first monitoring module 401 is configured to monitor any service module after the service flow is started.
The screen recording and monitoring module 402 is configured to start a screen recording operation and monitor front-end and back-end service interfaces in real time when it is monitored that the service module has a start identifier.
The first monitoring processing module 403 is configured to stop a screen recording operation when an abnormality occurs in the front-end or back-end service interface, generate a user operation video and abnormal video information, and upload the user operation video and the abnormal video information to the file server, so that the file server returns an identification number ID corresponding to the user operation video to the front-end server after receiving the user operation video and the abnormal video information, and store the abnormal video information and the identification number ID in a database established in advance.
Optionally, based on the operation video generating device shown in fig. 4, in conjunction with fig. 4, the operation video generating device further includes a second monitoring processing module.
And the second monitoring processing module is used for stopping screen recording operation and destroying the generated user operation video when the stop mark exists in the service module.
Optionally, based on the screen recording and monitoring module 402 shown in fig. 4, the screen recording and monitoring module 402 is specifically configured to:
when the starting identifier exists in the service module, a starting recording method in a pre-introduced screen recording plug-in is called, screen recording operation is started, and front-end and back-end service interfaces are monitored in real time.
Optionally, based on the first monitoring processing module 403 shown in fig. 4, the first monitoring processing module 403 is specifically configured to:
when the front-end or back-end service interface is monitored to be abnormal, a recording callback stopping method in the screen recording plug-in is called, screen recording operation is stopped, and user operation video and abnormal video information are generated; and (3) rewriting and stopping recording callback method, integrating a video interface of the file server, calling a preset video uploading method, and uploading the user operation video and the abnormal video information to the file server.
Optionally, based on the second monitoring processing module shown in fig. 4, the second monitoring processing module is specifically configured to:
when the fact that the service module has a stop mark and the front end service interface and the rear end service interface are not abnormal is detected, a recording stopping method in the screen recording plug-in is called, screen recording operation is stopped, and generated user operation video is destroyed.
It should be noted that, the specific principle and execution process of each module in the operation video generation device disclosed in the above embodiment of the present invention are the same as those of the operation video generation method implemented in the above embodiment of the present invention, and reference may be made to corresponding parts in the operation video generation method disclosed in the above embodiment of the present invention, and no redundant description is given here.
According to the operation video generating device provided by the embodiment of the invention, when the front-end or rear-end service interface is abnormal, the user operation video is generated and stored in the database, so that when the front-end or rear-end service interface is abnormal, the video of the user operation step exists, and a tester can conveniently position a difficult problem in the test process.
Corresponding to the method for generating an operation video shown in fig. 2 in the above embodiment of the present invention, the embodiment of the present invention further provides another operation video generating apparatus, as shown in fig. 5, where the apparatus is applied to a file server, and the apparatus includes: a receiving module 501 and a storage module 502.
The receiving module 501 is configured to receive the user operation video and the abnormal video information uploaded by the front-end server, and return an identification number ID corresponding to the user operation video to the front-end server.
The storage module 502 is configured to obtain the anomaly information in the anomaly video information, and store the stored anomaly information and the identification number ID in a pre-established database.
It should be noted that, the specific principle and execution process of each module in the operation video generation device disclosed in the above embodiment of the present invention are the same as those of the operation video generation method implemented in the above embodiment of the present invention, and reference may be made to corresponding parts in the operation video generation method disclosed in the above embodiment of the present invention, and no redundant description is given here.
According to the operation video generating device provided by the embodiment of the invention, after the user operation video and the abnormal video information are received, the identification number ID corresponding to the user operation video is returned to the front-end server, and after the abnormal information in the abnormal video information is acquired, the stored abnormal information and the identification number ID are stored in the pre-established database, so that when the abnormal operation video exists, the user operation step video is convenient for a tester to locate the difficult problem in the test process.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of operating a video generation for a front-end server, the method comprising:
after the service flow is started, any service module is monitored;
when the starting identifier exists in the service module, starting screen recording operation, and monitoring front-end and back-end service interfaces in real time;
when the front end or the rear end service interface is monitored to be abnormal, stopping the screen recording operation, generating user operation video and abnormal video information, uploading the user operation video and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation video to the front end server after receiving the user operation video and the abnormal video information, and storing the abnormal video information and the identification number ID in a pre-established database.
2. The method as recited in claim 1, further comprising:
and stopping the screen recording operation when the stop mark exists in the service module, and destroying the generated user operation video.
3. The method of claim 1, wherein when the service module is detected to have a start identifier, starting a screen recording operation, and monitoring front-end and back-end service interfaces in real time, the method comprises:
when the starting identifier exists in the service module, a starting recording method in a pre-introduced screen recording plug-in is called, screen recording operation is started, and front-end and back-end service interfaces are monitored in real time.
4. The method of claim 1, wherein stopping the screen recording operation when an abnormality in the front-end or the back-end service interface is detected, generating user operation video and abnormal video information, and uploading the user operation video and the abnormal video information to a file server, comprises:
when the front end or the rear end service interface is monitored to be abnormal, a recording callback stopping method in the screen recording plug-in is called, the screen recording operation is stopped, and user operation video and abnormal video information are generated;
and rewriting the recording stopping callback method, integrating a predefined file server video interface, calling a preset video uploading method, and uploading the user operation video and the abnormal video information to a file server.
5. The method of claim 2, wherein stopping the screen recording operation and destroying the generated user operation video when it is detected that the stop identifier exists in the service module, comprises:
and when the stop mark exists in the service module and the front end service interface and the rear end service interface are not abnormal, invoking a stop recording method in the screen recording plug-in, stopping the screen recording operation, and destroying the generated user operation video.
6. A method of operating a video generation, characterized by being applied to a file server, the method comprising:
receiving user operation video and abnormal video information uploaded by a front-end server, and returning an identification number ID corresponding to the user operation video to the front-end server;
and acquiring the abnormal information in the abnormal video information, and storing the abnormal information and the identification number ID into a pre-established database.
7. An operating video generating apparatus for use with a front-end server, the apparatus comprising:
the first monitoring module is used for monitoring any business module after the business process is started;
the screen recording and monitoring module is used for starting screen recording operation and monitoring front-end and rear-end service interfaces in real time when the fact that the service module has a start identifier is monitored;
the first monitoring processing module is used for stopping the screen recording operation when the front end or the rear end service interface is monitored to be abnormal, generating user operation videos and abnormal video information, uploading the user operation videos and the abnormal video information to a file server, enabling the file server to return an identification number ID corresponding to the user operation videos to the front end server after receiving the user operation videos and the abnormal video information, and storing the abnormal video information and the identification number ID in a pre-established database.
8. The apparatus as recited in claim 7, further comprising:
and the second monitoring processing module is used for stopping the screen recording operation and destroying the generated user operation video when the stopping mark exists in the service module.
9. The device of claim 7, wherein the screen recording and monitoring module is specifically configured to:
when the starting identifier exists in the service module, a starting recording method in a pre-introduced screen recording plug-in is called, screen recording operation is started, and front-end and back-end service interfaces are monitored in real time.
10. An operating video generating apparatus for application to a file server, the apparatus comprising:
the receiving module is used for receiving the user operation video and the abnormal video information uploaded by the front-end server and returning an identification number ID corresponding to the user operation video to the front-end server;
and the storage module is used for acquiring the abnormal information in the abnormal video information and storing the abnormal information and the identification number ID into a pre-established database.
CN202310354355.XA 2023-04-04 2023-04-04 Operation video generation method and device Pending CN116320586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310354355.XA CN116320586A (en) 2023-04-04 2023-04-04 Operation video generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310354355.XA CN116320586A (en) 2023-04-04 2023-04-04 Operation video generation method and device

Publications (1)

Publication Number Publication Date
CN116320586A true CN116320586A (en) 2023-06-23

Family

ID=86787029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310354355.XA Pending CN116320586A (en) 2023-04-04 2023-04-04 Operation video generation method and device

Country Status (1)

Country Link
CN (1) CN116320586A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756053A (en) * 2023-08-22 2023-09-15 青岛民航凯亚系统集成有限公司 Front-end project test problem reporting distribution method and system based on screen recording playback

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756053A (en) * 2023-08-22 2023-09-15 青岛民航凯亚系统集成有限公司 Front-end project test problem reporting distribution method and system based on screen recording playback

Similar Documents

Publication Publication Date Title
US7890959B2 (en) System and method for message lifetime management
CN105611330B (en) Smart television maintenance method and system, server and mobile terminal
US9356842B2 (en) Method and system for browser based, non-intrusive measuring of end-user perceived performance of individual third party resource requests
CN107948744B (en) Interface detection method, interface detection device, and computer-readable storage medium
US20080147592A1 (en) System and method for cross-carrier mobile device capability discovery
CN109728969B (en) Abnormal user detection method of application software, monitoring server and storage medium
US11310140B2 (en) Mitigating failure in request handling
CN116320586A (en) Operation video generation method and device
CN111737617B (en) Page resource loading method and device, electronic equipment and storage medium
CN113687974A (en) Client log processing method and device and computer equipment
US10915510B2 (en) Method and apparatus of collecting and reporting database application incompatibilities
CN111930703A (en) Automatic log file capturing method and device and computer equipment
CN107451056B (en) Method and device for monitoring interface test result
CN109978114A (en) Data processing method, device, server and storage medium
US9374437B2 (en) Schema validation proxy
CN111597091A (en) Data monitoring method and system, electronic equipment and computer storage medium
CN110674045A (en) Information tracking detection method and device, electronic equipment and storage medium
US10616306B2 (en) System and method for large-scale capture and tracking of web-based application parameters
CN114371980A (en) Call link performance monitoring method and device, computer equipment and storage medium
US10296967B1 (en) System, method, and computer program for aggregating fallouts in an ordering system
US20110295955A1 (en) Page monitoring
CN110611576B (en) Data quality monitoring method, device, equipment and storage medium
CN110008114B (en) Configuration information maintenance method, device, equipment and readable storage medium
CN110489690B (en) Method, server, device and storage medium for monitoring government affair service application system
US20100151884A1 (en) Method for Monitoring a Smart Phone and Related Apparatus and System

Legal Events

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