[go: up one dir, main page]

CN113282971B - Processing method, device, equipment and storage medium of test log - Google Patents

Processing method, device, equipment and storage medium of test log Download PDF

Info

Publication number
CN113282971B
CN113282971B CN202110566377.3A CN202110566377A CN113282971B CN 113282971 B CN113282971 B CN 113282971B CN 202110566377 A CN202110566377 A CN 202110566377A CN 113282971 B CN113282971 B CN 113282971B
Authority
CN
China
Prior art keywords
log
test
sandbox
information
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110566377.3A
Other languages
Chinese (zh)
Other versions
CN113282971A (en
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.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen 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 Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202110566377.3A priority Critical patent/CN113282971B/en
Publication of CN113282971A publication Critical patent/CN113282971A/en
Application granted granted Critical
Publication of CN113282971B publication Critical patent/CN113282971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of computers, and provides a processing method, a device, equipment and a storage medium of a test log, which are applied to the intelligent medical field and are used for improving development efficiency. The processing method of the test log comprises the following steps: storing a test log generated in the test process based on a sandbox to obtain stored log information; when the application program execution state of the system to be tested for executing the test is monitored to be running, a lightweight hypertext transfer protocol server and a hypertext markup language page are established; reading the sandbox log file and the sandbox log file catalog of the stored log information through a lightweight hypertext transfer protocol server, and storing the sandbox log file to a console; mapping the sandbox log file catalog to a hypertext markup language page, and acquiring monitoring information of a log executed by an application program in a console; and displaying the stored log information and the monitoring information. In addition, the invention also relates to a blockchain technology, and a test log can be stored in the blockchain.

Description

Processing method, device, equipment and storage medium of test log
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a test log.
Background
With the increase of traffic and performance demands, a system needs to be tested and run, and in the test process, debugging is needed to better check the execution flow of the test and the program so as to check the fault problem. At present, the fault checking method generally realizes the checking of the fault problems by reproducing the fault problems generated in the testing process through an integrated environment.
The fault checking method cannot directly check in the test process, only can reversely analyze codes according to phenomena, try to reproduce in an integrated environment, can only add logs for the problem of poor reproduction, and even if local logs are added, the process of grabbing the logs is complex because the file system of the system is relatively closed, so that a plurality of barriers are caused for checking the faults of the problems, the fault checking efficiency is reduced, and in the condition of separating from the integrated environment, when the problem is encountered, the debugging of the necessity cannot be carried out, thereby the development efficiency is low.
Disclosure of Invention
The invention provides a processing method, a device, equipment and a storage medium of a test log, which are used for improving development efficiency.
The first aspect of the present invention provides a method for processing a test log, including:
Creating a test task of a system to be tested, executing the test of the system to be tested through the test task, and storing a test log generated in the test process based on a sandbox to obtain stored log information;
monitoring the execution state of an application program of a system to be tested for executing the test, and when the execution state of the application program is monitored to be running, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page;
Reading the stored log information through the lightweight hypertext transfer protocol server to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file to a preset console, wherein the sandbox log file comprises a log executed by an application program;
Mapping the sandbox log file catalog to the hypertext markup language page, and outputting the log executed by the application program in the console for real-time monitoring to obtain monitoring information;
And displaying the stored log information and the monitoring information through the hypertext markup language page.
Optionally, in a first implementation manner of the first aspect of the present invention, the creating a test task of the system to be tested, executing a test of the system to be tested by the test task, and storing a test log generated in a test process based on a sandbox to obtain stored log information includes:
acquiring a test configuration file and a test object of a system to be tested, and generating a test task through the test configuration file and the test object;
matching an execution script corresponding to the test task from a preset script library, calling the execution script to execute the test task and generating a test log;
and redirecting the test log to a preset sandbox folder according to a preset sandbox mechanism, and updating the file directory of the redirected sandbox folder to obtain stored log information.
Optionally, in a second implementation manner of the first aspect of the present invention, the monitoring an application program execution state of the system to be tested for executing the test, when the application program execution state is monitored to be running, building a lightweight hypertext transfer protocol server and a hypertext markup language page, including:
Monitoring the application program execution state of a target application program, wherein the target application program is an application program of a system to be tested for executing the test;
when the execution state of the application program is monitored to be running, a server creation algorithm in a preset lightweight hypertext transfer protocol server library is called, and a local web server is established;
establishing a channel between the local web server and the target application program, and determining the local web server creating the channel as a lightweight hypertext transfer protocol server;
Based on the lightweight hypertext transfer protocol server, a hypertext markup language page is created.
Optionally, in a third implementation manner of the first aspect of the present invention, the creating a hypertext markup language page based on the lightweight hypertext transfer protocol server includes:
Creating an initial page of the lightweight hypertext transfer protocol server through a preset hypertext markup language, creating a file display link of the lightweight hypertext transfer protocol server, and acquiring a file display configuration file of the lightweight hypertext transfer protocol server;
and deploying the initial page through the file display link and the file display configuration file to obtain a hypertext markup language page.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the reading, by the lightweight hypertext transfer protocol server, the stored log information to obtain a sandbox log file and a sandbox log file directory, and storing the sandbox log file in a preset console, includes:
Calling an application program interface of a system to be tested for executing test through the lightweight hypertext transfer protocol server, inquiring and reading the stored log information to obtain an initial log file and an initial log file directory;
And respectively detecting the initial log file and the initial log file catalog based on safety, integrity and measurement to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file into a preset console.
Optionally, in a fifth implementation manner of the first aspect of the present invention, mapping the sandbox log file directory to the hypertext markup language page, and performing real-time monitoring on output of a log executed by the application program in the console to obtain monitoring information, where the monitoring information includes:
synchronously linking the sandbox log file directory to the hypertext markup language page;
And calling a preset monitoring interface, and monitoring the output of the log executed by the application program in the control console based on a preset monitoring pool to obtain monitoring information.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the displaying, by the hypertext markup language page, the stored log information and the monitoring information, the method for processing the test log further includes:
acquiring an application interface view level of the system to be tested for executing the test, and rendering the application interface view level to the hypertext markup language page;
and acquiring fault strategy information, and executing a fault clearing process according to the fault strategy information, wherein the fault strategy information is based on an application interface view level, stored log information and/or monitoring information displayed by the hypertext markup language page, and comprises fault matters, fault event sources and fault solutions.
The second aspect of the present invention provides a processing device for a test log, including:
The method comprises the steps of creating a storage module, wherein the storage module is used for creating a test task of a system to be tested, executing the test of the system to be tested through the test task, and storing a test log generated in a test process based on a sand box to obtain stored log information;
The monitoring and establishing module is used for monitoring the execution state of an application program of a system to be tested for executing the test, and establishing a lightweight hypertext transfer protocol server and a hypertext markup language page when the application program execution state is monitored to be running;
The reading storage module is used for reading the stored log information through the lightweight hypertext transfer protocol server to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file to a preset console, wherein the sandbox log file comprises a log executed by an application program;
The mapping monitoring module is used for mapping the sandbox log file catalog to the hypertext markup language page, and outputting real-time monitoring to the log executed by the application program in the control console to obtain monitoring information;
and the display module is used for displaying the stored log information and the monitoring information through the hypertext markup language page.
Optionally, in a first implementation manner of the second aspect of the present invention, the creating a storage module is specifically configured to:
acquiring a test configuration file and a test object of a system to be tested, and generating a test task through the test configuration file and the test object;
matching an execution script corresponding to the test task from a preset script library, calling the execution script to execute the test task and generating a test log;
and redirecting the test log to a preset sandbox folder according to a preset sandbox mechanism, and updating the file directory of the redirected sandbox folder to obtain stored log information.
Optionally, in a second implementation manner of the second aspect of the present invention, the monitoring and setting module includes:
The monitoring unit is used for monitoring the application program execution state of a target application program, wherein the target application program is an application program of a system to be tested for executing the test;
the first establishing unit is used for calling a server creating algorithm in a preset lightweight hypertext transfer protocol server library to establish a local web server when the execution state of the application program is monitored to be running;
A second establishing unit for establishing a channel between the local web server and the target application program, and determining the local web server creating the channel as a lightweight hypertext transfer protocol server;
and the creation unit is used for creating a hypertext markup language page based on the lightweight hypertext transfer protocol server.
Optionally, in a third implementation manner of the second aspect of the present invention, the creating unit is specifically configured to:
Creating an initial page of the lightweight hypertext transfer protocol server through a preset hypertext markup language, creating a file display link of the lightweight hypertext transfer protocol server, and acquiring a file display configuration file of the lightweight hypertext transfer protocol server;
and deploying the initial page through the file display link and the file display configuration file to obtain a hypertext markup language page.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the read storage module is specifically configured to:
Calling an application program interface of a system to be tested for executing test through the lightweight hypertext transfer protocol server, inquiring and reading the stored log information to obtain an initial log file and an initial log file directory;
And respectively detecting the initial log file and the initial log file catalog based on safety, integrity and measurement to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file into a preset console.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the mapping monitoring module is specifically configured to:
synchronously linking the sandbox log file directory to the hypertext markup language page;
And calling a preset monitoring interface, and monitoring the output of the log executed by the application program in the control console based on a preset monitoring pool to obtain monitoring information.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the processing device of the test log further includes:
the rendering module is used for acquiring an application interface view level of the system to be tested for executing the test and rendering the application interface view level to the hypertext markup language page;
the clearing module is used for acquiring fault strategy information, executing a fault clearing process according to the fault strategy information, wherein the fault strategy information is based on an application interface view level, stored log information and/or monitoring information displayed by the hypertext markup language page, and comprises fault matters, fault event routing and fault solutions.
A third aspect of the present invention provides a processing apparatus for a test log, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the processing device of the test log to execute the method of processing the test log described above.
A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the method of processing a test log as described above.
In the embodiment of the invention, the security of the test log is improved and the readability of the test log is enhanced by storing the test log generated in the test process based on the sandbox; the method comprises the steps of monitoring the execution state of an application program of a system to be tested for executing a test, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page when the monitored state is running, and transmitting information by utilizing the lightweight hypertext transfer protocol server to establish communication between the application program of the system to be tested and a browser, so that the problem of dependence on an integrated environment is solved; the stored log information is read through the lightweight hypertext transfer protocol server, so that the direct reading of the log file of the lightweight hypertext transfer protocol server is realized, and the problem of dependence on an integrated environment is solved; by mapping the sandbox log file directory to the hypertext markup language page and carrying out real-time monitoring on the output of the log executed by the application program in the control console, the problems of local file (namely stored log information) management, control console output and the like checking and debugging in the test process under the condition of separating from an integrated environment are realized, the stored log information can be directly checked in the test process, the process of grabbing the stored log information is convenient, the fault checking efficiency is improved, the problem that the fault checking efficiency is low is solved, and the debugging of the necessity cannot be carried out under the condition of separating from the integrated environment when the problem is encountered is solved, and the development efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for processing a test log according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a method for processing test logs according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a processing apparatus for test logs according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a processing apparatus for test logs according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an embodiment of a test log processing apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a processing method, a device, equipment and a storage medium for test logs, which improve development efficiency.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, 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. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and one embodiment of a method for processing a test log in an embodiment of the present invention includes:
101. Creating a test task of the system to be tested, executing the test of the system to be tested through the test task, and storing a test log generated in the test process based on a sandbox to obtain stored log information.
It is to be understood that the execution body of the present invention may be a processing device of a test log, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking the terminal as an execution main body as an example.
The test task may be a test task of an Application (APP) of a system to be tested, or may be a test task of a system to be tested and an APP of an application, and the system to be tested may be a mobile phone system to be tested, for example: mobile operating system iOS. The method comprises the steps that a terminal obtains test configuration information, test cases and test protocols of a system to be tested, a preset test task generating function is called, a test task of the system to be tested is created through the function based on the test configuration information, the test cases and the test protocols, the test task is triggered (the user clicks related buttons or inputs related information to trigger the test task on a preset interface), the terminal calls an execution script corresponding to the test cases through the test task, testing of the system to be tested is executed, a test log of a test process is generated, or the terminal matches a corresponding initial test module through the test task, the initial test module is spliced, a target test module is obtained, and the test process of the system to be tested is executed through the target test module and the test log is generated. The terminal stores the test log into the corresponding sandbox through a preset sandbox mechanism, so that stored log information is obtained, wherein the stored log information comprises stored log files and stored log file catalogues.
102. And monitoring the execution state of the application program of the system to be tested for executing the test, and when the application program execution state is monitored to be running, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page.
When the terminal executes the test of the system to be tested, a preset monitoring interface is called, and the execution state of the application program of the system to be tested for executing the test is monitored so as to monitor whether the application program of the system to be tested runs. When the monitoring interface monitors that the application program of the system to be tested runs, that is, the execution state of the application program is running, the terminal acquires a server creation algorithm (or a server creation function) of the system to be tested from a preset lightweight hypertext transfer protocol server library, the lightweight hypertext transfer protocol server library can be GCDWebServer library, an interface cross-domain request based on the application program of the system to be tested is generated, the interface cross-domain request is sent to the system to be tested, response information of the system to be tested based on the interface cross-domain request is received, a local web server is established based on the response information through the server creation algorithm, a communication protocol between the local web server and the local web server is created, so that a lightweight hypertext transfer protocol server is obtained, and a static page of the lightweight hypertext transfer protocol server is created based on the lightweight hypertext transfer protocol server through a preset hypertext markup language, so that a hypertext markup language page is obtained.
103. And reading the stored log information through a lightweight hypertext transfer protocol server to obtain a sandbox log file and a sandbox log file directory, and storing the sandbox log file to a preset console, wherein the sandbox log file comprises a log executed by an application program.
The method comprises the steps that a terminal sends a file reading request to a system to be tested through a lightweight hypertext transfer protocol server, after the system to be tested receives the file reading request, the file reading request is analyzed to obtain file types and data types of file reading, a sandbox path, a log file path and a log file directory path of an application program of the system to be tested are obtained, the terminal calls an application program interface through the system to be tested, enters the sandbox based on the sandbox path and inquires stored log information based on the log file path to obtain an inquiry log file, inquires the stored log information based on the log file directory path to obtain an inquiry log file directory, reads data in the inquiry log file according to the data types to obtain the sandbox log file, the sandbox log file comprises a log executed by the application program, and carries out data type conversion on the inquiry log file directory according to the data types to obtain the sandbox log file directory.
104. Mapping the sandbox log file catalog to a hypertext markup language page, and carrying out real-time monitoring on output of logs executed by application programs in a control console to obtain monitoring information.
The terminal acquires configuration information of a control console in advance, builds and deploys the control console according to the configuration information, and the control console is used for storing a sandbox log file read from a system to be tested and outputting the sandbox log file to a hypertext markup language page. The method comprises the steps that a terminal obtains a sandbox log file path of a sandbox log file, creates a mapping object of a sandbox log file directory, creates a sub-mapping object of the sandbox log file based on the mapping object, adds links to the mapping object and the sub-mapping object in the sandbox log file path to obtain a processed mapping object and the sub-mapping object, and writes the processed mapping object and the sub-mapping object into a preset position of a hypertext markup language page.
The terminal calls a monitoring interface to monitor the output of the log executed by the application program in the control console in real time, the output mode of the log executed by the application program in the control console is a text file, and when the fact that the log executed by the application program exists in the control console is monitored, the log executed by the application program is obtained, so that monitoring information is obtained.
105. And displaying the stored log information and the monitoring information through the hypertext markup language page.
The terminal displays the stored log information and the monitoring information on the hypertext markup language page according to a preset display mode, wherein the preset display mode comprises at least one of a floating window, a popup window and a view. The stored log information and the monitoring information can be checked and edited through the hypertext markup language page, so that the stored log information and the monitoring information can be managed, the output of a control console and the like can be checked and debugged, the direct check can be performed in the test process, and the convenience of the process of grabbing the log is improved.
In the embodiment of the invention, the security of the test log is improved and the readability of the test log is enhanced by storing the test log generated in the test process based on the sandbox; the method comprises the steps of monitoring the execution state of an application program of a system to be tested for executing a test, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page when the monitored state is running, and transmitting information by utilizing the lightweight hypertext transfer protocol server to establish communication between the application program of the system to be tested and a browser, so that the problem of dependence on an integrated environment is solved; the stored log information is read through the lightweight hypertext transfer protocol server, so that the direct reading of the log file of the lightweight hypertext transfer protocol server is realized, and the problem of dependence on an integrated environment is solved; by mapping the sandbox log file directory to the hypertext markup language page and carrying out real-time monitoring on the output of the log executed by the application program in the control console, the problems of local file (namely stored log information) management, control console output and the like checking and debugging in the test process under the condition of separating from an integrated environment are realized, the stored log information can be directly checked in the test process, the process of grabbing the stored log information is convenient, the fault checking efficiency is improved, the problem that the fault checking efficiency is low is solved, and the debugging of the necessity cannot be carried out under the condition of separating from the integrated environment when the problem is encountered is solved, and the development efficiency is improved. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
Referring to fig. 2, another embodiment of a method for processing a test log according to an embodiment of the present invention includes:
201. Creating a test task of the system to be tested, executing the test of the system to be tested through the test task, and storing a test log generated in the test process based on a sandbox to obtain stored log information.
Specifically, a terminal acquires a test configuration file and a test object of a system to be tested, and generates a test task through the test configuration file and the test object; matching an execution script corresponding to the test task from a preset script library, calling the execution script to execute the test task and generating a test log; redirecting the test log to a preset sandbox folder according to a preset sandbox mechanism, and updating the file directory of the redirected sandbox folder to obtain stored log information.
The method comprises the steps that a user performs test configuration on a system to be tested at a preset interface, sends information of the test configuration to a terminal, after receiving the information of the test configuration, the terminal generates a test configuration file and a test object according to the information of the test configuration, so that the test configuration file and the test object of the system to be tested are obtained, a test case is generated through the test object, a corresponding test protocol is obtained through the test configuration file, a test task is generated according to the test case and the test protocol, a script tree in a preset script library is traversed, an execution script corresponding to the test task is obtained, the execution script is executed, the system to be tested is tested, a test log is generated, automation of the test is realized, and the test efficiency is improved.
The method comprises the steps that a terminal writes a test log into a preset sandbox file according to a preset sandbox mechanism to obtain a written sandbox file, obtains a sandbox file directory path, obtains a sandbox file directory through the sandbox file directory path, writes the written sandbox file into the sandbox file directory to update the file directory of the redirected sandbox folder, and obtains stored log information, wherein the stored log information comprises a stored log file and a stored log file directory, so that the safety of the test log is improved, and the readability of the test log is enhanced.
202. And monitoring the execution state of the application program of the system to be tested for executing the test, and when the application program execution state is monitored to be running, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page.
Specifically, the terminal monitors the execution state of an application program of a target application program, wherein the target application program is an application program of a system to be tested for executing the test; when the execution state of the application program is monitored to be running, a server creation algorithm in a preset lightweight hypertext transfer protocol server library is called, and a local web server is established; establishing a channel between a local web server and a target application program, and determining the local web server for creating the channel as a lightweight hypertext transfer protocol server; a hypertext markup language page is created based on a lightweight hypertext transfer protocol server.
The method comprises the steps that a terminal monitors the execution state of an application program of a target application program (the target application program is an application program of a system to be tested for executing testing), when the execution state of the application program is monitored to be running, a preset lightweight hypertext transfer protocol server library is searched to obtain a server creation algorithm corresponding to the system to be tested for executing testing, a local web server is built through the server creation algorithm, the terminal sends a data transmission request post request based on a regular matching interface to the target application program through the local web server, and receives response information based on the data transmission request post request and sent by the target application program, wherein the response information comprises the data type transmitted by an interface, interface configuration information and interface request parameters are acquired, a channel link between the local web server and the target application program is created, cross-domain authority, configuration of the interface request parameters and the transmission data types are carried out on the channel link through the interface configuration information, the interface request parameters and the interface transmission data types are obtained, the channel link is configured, the local web server and the target application program is connected through the configuration channel link, and the channel between the local web server and the target application program is built, and the channel is established between the local web server and the target application program.
The terminal creates an initial page of the lightweight hypertext transfer protocol server through a preset hypertext markup language, creates a file display link of the lightweight hypertext transfer protocol server, and acquires a file display configuration file of the lightweight hypertext transfer protocol server; the initial page is deployed through the file display link and the file display configuration file to obtain the hypertext markup language page, so that the lightweight hypertext transfer protocol server is utilized to establish communication between the target application program and the browser (the hypertext markup language page) to transfer information, and the problem of dependence on an integrated environment is solved.
Specifically, the terminal creates an initial page of the lightweight hypertext transfer protocol server through a preset hypertext markup language, creates a file display link of the lightweight hypertext transfer protocol server, and acquires a file display configuration file of the lightweight hypertext transfer protocol server; and deploying the initial page through the file display link and the file display configuration file to obtain the hypertext markup language page.
The method comprises the steps that a terminal creates an initial page of a lightweight hypertext transfer protocol server through a preset hypertext markup language, obtains a server file path of the lightweight hypertext transfer protocol server, creates a file display link of the lightweight hypertext transfer protocol server based on the server file path, obtains a file display configuration file of the lightweight hypertext transfer protocol server, extracts configuration information from the file display configuration file to obtain file display configuration information, wherein the file display configuration information comprises a file display form and a data type, adds the file display link to the initial page, and configures parameters of file display of the initial page added with the file display link through the file display configuration file, so that the hypertext markup language page is obtained. By building lightweight hypertext transfer protocol servers and hypertext markup language pages.
203. And reading the stored log information through a lightweight hypertext transfer protocol server to obtain a sandbox log file and a sandbox log file directory, and storing the sandbox log file to a preset console, wherein the sandbox log file comprises a log executed by an application program.
Specifically, the terminal calls an application program interface of a system to be tested for executing the test through a lightweight hypertext transfer protocol server, and inquires and reads the stored log information to obtain an initial log file and an initial log file directory; and respectively detecting the initial log file and the initial log file catalog based on safety, integrity and measurement to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file into a preset console.
The method comprises the steps that a terminal obtains a log file path and a log file directory path of a log file directory stored in stored log information, a file reading request is sent to a system to be tested for executing testing through a lightweight hypertext transfer protocol server, after the system to be tested for executing testing receives the file reading request, an application program interface of the system to be tested for executing testing is called based on the file reading request, the stored log information is searched and read based on a preset sandbox path, the log file path and the log file directory path to obtain an initial log file and an initial log file directory, data transfer type conversion is conducted on the initial log file and the initial log file directory according to a data transfer type of the lightweight hypertext transfer protocol server to obtain a candidate log file and a candidate log file directory, and decryption verification is conducted on the candidate log file and the candidate log file directory by keys respectively to realize security-based detection on the initial log file and the initial log file directory; detecting null values, missing values and abnormal values of the candidate log files and the candidate log file catalogues respectively to realize integrity-based detection of the initial log files and the initial log file catalogues; and respectively detecting parameter measurement on the candidate log files and the candidate log file catalogues to realize measurement-based detection on the initial log files and the initial log file catalogues, determining the initial log files and the initial log file catalogues which are detected (completed) based on safety, integrity and measurement as sandbox log files and sandbox log file catalogues, and storing the sandbox log files to a preset console.
The stored log information is read through the lightweight hypertext transfer protocol server, and the sandbox log file is stored to the preset console, so that the sandbox log file is directly read by the lightweight hypertext transfer protocol server, and the problem of dependence on an integrated environment is solved.
204. Mapping the sandbox log file catalog to a hypertext markup language page, and carrying out real-time monitoring on output of logs executed by application programs in a control console to obtain monitoring information.
Specifically, the terminal synchronously links the sandbox log file directory to a hypertext markup language page; and calling a preset monitoring interface, and monitoring the output of the log executed by the application program in the control console based on a preset monitoring pool to obtain monitoring information.
The terminal creates a catalog sign link of the sandbox log file catalog and synchronizes the sandbox log file catalog to the hypertext markup language page through the catalog sign link and the catalog link path based on the catalog link path of the hypertext markup language page, namely links the sandbox log file catalog and the hypertext markup language page through the catalog sign link, and creates a link between the catalog link path and the linked hypertext markup language page.
The terminal calls a preset monitoring interface, real-time monitoring is carried out on the output of the log executed by the application program in the control console based on a preset monitoring pool, the output mode of the log executed by the application program in the control console is a text file, and when the fact that the log executed by the application program exists in the control console is monitored, the log executed by the application program is obtained, so that monitoring information is obtained.
205. And displaying the stored log information and the monitoring information through the hypertext markup language page.
The execution of step 205 is similar to that of step 105 described above, and will not be described again.
206. And acquiring an application interface view level of the system to be tested for executing the test, and rendering the application interface view level to the hypertext markup language page.
The terminal acquires the view type of an application program of the system to be tested, and searches and matches the view nested combination relationship in the preset view hierarchy relationship topological graph according to the view type to obtain a corresponding application interface view hierarchy. Further, the terminal acquires an application interface view root level of the system to be tested, and performs sub-heel level retrieval of layer-by-layer recursion on an application interface view nested combination tree in a preset application interface view level library based on the application interface view root level through a preset recursion algorithm, so that an interface view level is obtained. For example: the interface display of the mobile operating system iOS is based on view views, such as buttons and text and pictures are independent views, and an interface of the application program app is built through nested combination among different views, wherein the terminal can find all views and relations among all views (namely application interface view levels) through finding sub views according to root views, namely carrying out sub-heel level search of layer-by-layer recursion an application interface view nested combination tree in a preset application interface view level library.
And the terminal generates a visual chart of the application interface view level according to the level display configuration parameters in the hypertext markup language page, and sends the visual chart to the hypertext markup language page. In the testing process, the view debugging of the application interface view level is realized under the condition of being separated from the integrated environment.
207. And acquiring fault strategy information, and executing a fault clearing process according to the fault strategy information, wherein the fault strategy information is based on an application interface view level, stored log information and/or monitoring information displayed by a hypertext markup language page, and comprises fault matters, fault event routing and fault solutions.
The user refers to and edits the application interface view level, the stored log information and the monitoring information through the hypertext markup language page, inputs debugging information and/or fault strategy information of the application interface view level, the stored log information and the monitoring information, sends the debugging information and the fault strategy information to the terminal, and the terminal sends the debugging information to the system to be tested through the lightweight hypertext transfer protocol server, and the system to be tested modifies and adjusts the application program according to the debugging information. The method comprises the steps that a terminal searches a preset script library according to fault strategy information to obtain a plurality of corresponding script modules, the plurality of script modules are spliced to obtain a fault clearing script, a fault clearing process is executed through the fault clearing script to obtain log information after fault clearing, the log information after fault clearing is sent to a system to be tested through a lightweight hypertext transfer protocol server, the system to be tested updates sandbox files of an application program according to the log information after fault clearing, and corresponding debugging and trimming are carried out on the application program according to the log information after fault clearing.
By acquiring the fault strategy information based on the displayed view level, the stored log information and the monitoring information, the fault clearing process is executed according to the fault strategy information, the page level can be directly checked through a webpage, the fault guess is verified through the log, and the fault reason is confirmed, so that a solution is formulated, namely, the fault strategy information can be separated from an integrated environment in the test process, the problem is directly checked, a developer can be assisted in early stage rapid positioning, the development efficiency and the development quality are improved, the basis is provided for the feedback of the tester, the site is reserved to the maximum extent, the communication efficiency is improved, and the forward promotion effect is finally provided for the research and development process.
According to the embodiment of the invention, the safety of the test log is improved, the readability of the test log is enhanced, the problem of dependence on an integrated environment is solved, the problem of dependence on the integrated environment is solved by directly reading the log file of the lightweight hypertext transfer protocol server, the problem of dependence on the integrated environment is solved, in the test process, the local file (namely stored log information) management and the checking and debugging of console output and the like are realized under the condition of being separated from the integrated environment, the direct check can be carried out in the test process, the flow of the stored log information is convenient, the efficiency of fault check is improved, the problem of incapability of carrying out necessary debugging under the condition of being separated from the integrated environment is solved, the development efficiency is improved, in the test process, the problem of checking and debugging of an application interface view level under the condition of being separated from the integrated environment is also realized, the problem of being separated from the integrated environment is directly, the problem of being helped by a developer in early stage quick positioning, the development efficiency and the development quality are improved, the basis is provided for the feedback of the test personnel, the field communication problem is also improved, the development efficiency is improved, and the research and development process is provided for the final development is promoted. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
The method for processing the test log in the embodiment of the present invention is described above, and the device for processing the test log in the embodiment of the present invention is described below, referring to fig. 3, where an embodiment of the device for processing the test log in the embodiment of the present invention includes:
The creating and storing module 301 is configured to create a test task of a system to be tested, execute a test of the system to be tested through the test task, and store a test log generated in a test process based on a sandbox to obtain stored log information;
The monitoring and establishing module 302 is configured to monitor an application program execution state of a system to be tested for executing a test, and establish a lightweight hypertext transfer protocol server and a hypertext markup language page when the application program execution state is monitored to be running;
the reading storage module 303 is configured to read, through the lightweight hypertext transfer protocol server, the stored log information to obtain a sandbox log file and a sandbox log file directory, and store the sandbox log file to a preset console, where the sandbox log file includes a log executed by an application program;
the mapping monitoring module 304 is configured to map the sandbox log file directory to a hypertext markup language page, and perform real-time monitoring on output of a log executed by an application program in a console, so as to obtain monitoring information;
and the display module 305 is used for displaying the stored log information and the monitoring information through the hypertext markup language page.
The function implementation of each module in the processing device of the test log corresponds to each step in the processing method embodiment of the test log, and the function and the implementation process of the function implementation are not described in detail herein.
In the embodiment of the invention, the security of the test log is improved and the readability of the test log is enhanced by storing the test log generated in the test process based on the sandbox; the method comprises the steps of monitoring the execution state of an application program of a system to be tested for executing a test, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page when the monitored state is running, and transmitting information by utilizing the lightweight hypertext transfer protocol server to establish communication between the application program of the system to be tested and a browser, so that the problem of dependence on an integrated environment is solved; the stored log information is read through the lightweight hypertext transfer protocol server, so that the direct reading of the log file of the lightweight hypertext transfer protocol server is realized, and the problem of dependence on an integrated environment is solved; by mapping the sandbox log file directory to the hypertext markup language page and carrying out real-time monitoring on the output of the log executed by the application program in the control console, the problems of local file (namely stored log information) management, control console output and the like checking and debugging in the test process under the condition of separating from an integrated environment are realized, the stored log information can be directly checked in the test process, the process of grabbing the stored log information is convenient, the fault checking efficiency is improved, the problem that the fault checking efficiency is low is solved, and the debugging of the necessity cannot be carried out under the condition of separating from the integrated environment when the problem is encountered is solved, and the development efficiency is improved. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
Referring to fig. 4, another embodiment of a processing apparatus for test logs in an embodiment of the present invention includes:
The creating and storing module 301 is configured to create a test task of a system to be tested, execute a test of the system to be tested through the test task, and store a test log generated in a test process based on a sandbox to obtain stored log information;
The monitoring and establishing module 302 is configured to monitor an application program execution state of a system to be tested for executing a test, and establish a lightweight hypertext transfer protocol server and a hypertext markup language page when the application program execution state is monitored to be running;
the reading storage module 303 is configured to read, through the lightweight hypertext transfer protocol server, the stored log information to obtain a sandbox log file and a sandbox log file directory, and store the sandbox log file to a preset console, where the sandbox log file includes a log executed by an application program;
the mapping monitoring module 304 is configured to map the sandbox log file directory to a hypertext markup language page, and perform real-time monitoring on output of a log executed by an application program in a console, so as to obtain monitoring information;
The display module 305 is configured to display the stored log information and the monitoring information through a hypertext markup language page;
the rendering module 306 is configured to obtain an application interface view level of a system to be tested for executing a test, and render the application interface view level to a hypertext markup language page;
The clearing module 307 is configured to obtain fault policy information, and execute a fault clearing process according to the fault policy information, where the fault policy information is fault policy information based on an application interface view level, stored log information, and/or monitoring information displayed on a hypertext markup language page, and the fault policy information includes a fault event, a fault event cause, and a fault solution.
Optionally, the creation storage module 301 may be further specifically configured to:
acquiring a test configuration file and a test object of a system to be tested, and generating a test task through the test configuration file and the test object;
matching an execution script corresponding to the test task from a preset script library, calling the execution script to execute the test task and generating a test log;
Redirecting the test log to a preset sandbox folder according to a preset sandbox mechanism, and updating the file directory of the redirected sandbox folder to obtain stored log information.
Optionally, the monitoring establishment module 302 includes:
A monitoring unit 3021, configured to monitor an application execution state of a target application, where the target application is an application of a system to be tested that performs a test;
A first establishing unit 3022, configured to invoke a server creation algorithm in a preset lightweight hypertext transfer protocol server library to establish a local web server when it is detected that the application execution state is running;
a second establishing unit 3023 for establishing a channel between the local web server and the target application and determining the local web server that created the channel as a lightweight hypertext transfer protocol server;
a creation unit 3024 for creating a hypertext markup language page based on the lightweight hypertext transfer protocol server.
Optionally, the creating unit 3024 may be further specifically configured to:
Creating an initial page of a lightweight hypertext transfer protocol server through a preset hypertext markup language, creating a file display link of the lightweight hypertext transfer protocol server, and acquiring a file display configuration file of the lightweight hypertext transfer protocol server;
and deploying the initial page through the file display link and the file display configuration file to obtain the hypertext markup language page.
Optionally, the read storage module 303 may be further specifically configured to:
Calling an application program interface of a system to be tested for executing the test through a lightweight hypertext transfer protocol server, inquiring and reading the stored log information to obtain an initial log file and an initial log file directory;
And respectively detecting the initial log file and the initial log file catalog based on safety, integrity and measurement to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file into a preset console.
Optionally, the mapping monitor module 304 may be further specifically configured to:
synchronously linking the sandbox log file directory to a hypertext markup language page;
And calling a preset monitoring interface, and monitoring the output of the log executed by the application program in the control console based on a preset monitoring pool to obtain monitoring information.
The function implementation of each module and each unit in the processing device of the test log corresponds to each step in the processing method embodiment of the test log, and the function and the implementation process of the function implementation are not repeated here.
According to the embodiment of the invention, the safety of the test log is improved, the readability of the test log is enhanced, the problem of dependence on an integrated environment is solved, the problem of dependence on the integrated environment is solved by directly reading the log file of the lightweight hypertext transfer protocol server, the problem of dependence on the integrated environment is solved, in the test process, the local file (namely stored log information) management and the checking and debugging of console output and the like are realized under the condition of being separated from the integrated environment, the direct check can be carried out in the test process, the flow of the stored log information is convenient, the efficiency of fault check is improved, the problem of incapability of carrying out necessary debugging under the condition of being separated from the integrated environment is solved, the development efficiency is improved, in the test process, the problem of checking and debugging of an application interface view level under the condition of being separated from the integrated environment is also realized, the problem of being separated from the integrated environment is directly, the problem of being helped by a developer in early stage quick positioning, the development efficiency and the development quality are improved, the basis is provided for the feedback of the test personnel, the field communication problem is also improved, the development efficiency is improved, and the research and development process is provided for the final development is promoted. The scheme can be applied to the intelligent medical field, so that the construction of the intelligent city is promoted.
The processing device for test logs in the embodiment of the present invention is described in detail above in fig. 3 and fig. 4 from the point of view of modularized functional entities, and the processing device for test logs in the embodiment of the present invention is described in detail below from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a processing device for a test log, where the processing device 500 for the test log may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage mediums 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532 according to an embodiment of the present invention. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the processing device 500 for test logs. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the processing device 500 of the test log.
The processing device 500 of the test log may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the processing device structure of the test log shown in FIG. 5 is not limiting of the processing device of the test log and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The application also provides a test log processing device, which comprises: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; the at least one processor invokes the instructions in the memory to cause the processing device of the test log to perform the steps in the method of processing a test log described above.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the method of processing a test log.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. The processing method of the test log is characterized by comprising the following steps of:
Creating a test task of a system to be tested, executing the test of the system to be tested through the test task, and storing a test log generated in the test process based on a sandbox to obtain stored log information;
monitoring the execution state of an application program of a system to be tested for executing the test, and when the execution state of the application program is monitored to be running, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page;
Reading the stored log information through the lightweight hypertext transfer protocol server to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file to a preset console, wherein the sandbox log file comprises a log executed by an application program;
Mapping the sandbox log file catalog to the hypertext markup language page, and outputting the log executed by the application program in the console for real-time monitoring to obtain monitoring information;
Displaying the stored log information and the monitoring information through the hypertext markup language page;
Obtaining view types of application programs of a system to be tested, searching and matching view nested combination relations in a preset view hierarchy relation topological graph according to the view types to obtain corresponding application interface view hierarchies, and rendering the application interface view hierarchies to the hypertext markup language pages;
and acquiring fault strategy information, and executing a fault clearing process according to the fault strategy information, wherein the fault strategy information is based on an application interface view level, stored log information and/or monitoring information displayed by the hypertext markup language page, and comprises fault matters, fault event sources and fault solutions.
2. The method for processing a test log according to claim 1, wherein creating a test task of a system to be tested, executing a test of the system to be tested by the test task, and storing the test log generated in the test process based on a sandbox to obtain stored log information, includes:
acquiring a test configuration file and a test object of a system to be tested, and generating a test task through the test configuration file and the test object;
matching an execution script corresponding to the test task from a preset script library, calling the execution script to execute the test task and generating a test log;
and redirecting the test log to a preset sandbox folder according to a preset sandbox mechanism, and updating the file directory of the redirected sandbox folder to obtain stored log information.
3. The method for processing the test log according to claim 1, wherein the step of monitoring the execution state of the application program of the system to be tested for executing the test, and when the execution state of the application program is monitored to be running, establishing a lightweight hypertext transfer protocol server and a hypertext markup language page comprises:
Monitoring the application program execution state of a target application program, wherein the target application program is an application program of a system to be tested for executing the test;
when the execution state of the application program is monitored to be running, a server creation algorithm in a preset lightweight hypertext transfer protocol server library is called, and a local web server is established;
establishing a channel between the local web server and the target application program, and determining the local web server creating the channel as a lightweight hypertext transfer protocol server;
Based on the lightweight hypertext transfer protocol server, a hypertext markup language page is created.
4. A method of processing a test log according to claim 3, wherein creating a hypertext markup language page based on the lightweight hypertext transfer protocol server comprises:
Creating an initial page of the lightweight hypertext transfer protocol server through a preset hypertext markup language, creating a file display link of the lightweight hypertext transfer protocol server, and acquiring a file display configuration file of the lightweight hypertext transfer protocol server;
and deploying the initial page through the file display link and the file display configuration file to obtain a hypertext markup language page.
5. The method for processing test log according to claim 1, wherein the reading, by the lightweight hypertext transfer protocol server, the stored log information to obtain a sandbox log file and a sandbox log file directory, and storing the sandbox log file to a preset console, comprises:
Calling an application program interface of a system to be tested for executing test through the lightweight hypertext transfer protocol server, inquiring and reading the stored log information to obtain an initial log file and an initial log file directory;
And respectively detecting the initial log file and the initial log file catalog based on safety, integrity and measurement to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file into a preset console.
6. The method for processing test logs according to claim 1, wherein mapping the sandbox log file directory to the hypertext markup language page and performing real-time monitoring on output of the log executed by the application program in the console to obtain monitoring information comprises:
synchronously linking the sandbox log file directory to the hypertext markup language page;
And calling a preset monitoring interface, and monitoring the output of the log executed by the application program in the control console based on a preset monitoring pool to obtain monitoring information.
7. A processing apparatus for a test log, the processing apparatus for a test log comprising:
The method comprises the steps of creating a storage module, wherein the storage module is used for creating a test task of a system to be tested, executing the test of the system to be tested through the test task, and storing a test log generated in a test process based on a sand box to obtain stored log information;
The monitoring and establishing module is used for monitoring the execution state of an application program of a system to be tested for executing the test, and establishing a lightweight hypertext transfer protocol server and a hypertext markup language page when the application program execution state is monitored to be running;
The reading storage module is used for reading the stored log information through the lightweight hypertext transfer protocol server to obtain a sandbox log file and a sandbox log file catalog, and storing the sandbox log file to a preset console, wherein the sandbox log file comprises a log executed by an application program;
The mapping monitoring module is used for mapping the sandbox log file catalog to the hypertext markup language page, and outputting real-time monitoring to the log executed by the application program in the control console to obtain monitoring information;
The display module is used for displaying the stored log information and the monitoring information through the hypertext markup language page;
the rendering module is used for acquiring the view type of an application program of the system to be tested, searching and matching the view nested combination relation in the preset view hierarchy relation topological graph according to the view type to obtain a corresponding application interface view hierarchy, and rendering the application interface view hierarchy to the hypertext markup language page;
the clearing module is used for acquiring fault strategy information, executing a fault clearing process according to the fault strategy information, wherein the fault strategy information is based on an application interface view level, stored log information and/or monitoring information displayed by the hypertext markup language page, and comprises fault matters, fault event routing and fault solutions.
8. A processing apparatus of a test log, characterized in that the processing apparatus of a test log comprises: a memory and at least one processor, the memory having instructions stored therein;
The at least one processor invoking the instructions in the memory to cause the processing device of the test log to perform the method of processing a test log according to any of claims 1-6.
9. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the method of processing a test log according to any of claims 1-6.
CN202110566377.3A 2021-05-24 2021-05-24 Processing method, device, equipment and storage medium of test log Active CN113282971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110566377.3A CN113282971B (en) 2021-05-24 2021-05-24 Processing method, device, equipment and storage medium of test log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110566377.3A CN113282971B (en) 2021-05-24 2021-05-24 Processing method, device, equipment and storage medium of test log

Publications (2)

Publication Number Publication Date
CN113282971A CN113282971A (en) 2021-08-20
CN113282971B true CN113282971B (en) 2024-05-17

Family

ID=77281162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110566377.3A Active CN113282971B (en) 2021-05-24 2021-05-24 Processing method, device, equipment and storage medium of test log

Country Status (1)

Country Link
CN (1) CN113282971B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114297629A (en) * 2021-12-08 2022-04-08 阿里云计算有限公司 File detection method and device based on sandbox, electronic equipment and storage medium
CN114328134B (en) * 2022-03-16 2022-05-31 深圳超盈智能科技有限公司 Dynamic testing system for computer memory
CN114546881B (en) * 2022-03-22 2022-10-28 通号智慧城市研究设计院有限公司 Application software testing method, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294176A (en) * 2016-08-19 2017-01-04 暴风集团股份有限公司 The method and system of application failure location in Mac OS system
CN107957940A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 A kind of test log processing method, system and terminal
US10528454B1 (en) * 2018-10-23 2020-01-07 Fmr Llc Intelligent automation of computer software testing log aggregation, analysis, and error remediation
CN112379965A (en) * 2020-10-15 2021-02-19 北京奇艺世纪科技有限公司 Sandbox file mapping system, client device, mapping end device, sandbox file mapping method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294176A (en) * 2016-08-19 2017-01-04 暴风集团股份有限公司 The method and system of application failure location in Mac OS system
CN107957940A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 A kind of test log processing method, system and terminal
US10528454B1 (en) * 2018-10-23 2020-01-07 Fmr Llc Intelligent automation of computer software testing log aggregation, analysis, and error remediation
CN112379965A (en) * 2020-10-15 2021-02-19 北京奇艺世纪科技有限公司 Sandbox file mapping system, client device, mapping end device, sandbox file mapping method and electronic equipment

Also Published As

Publication number Publication date
CN113282971A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US20250061156A1 (en) Systems and methods for web content inspection
CN113282971B (en) Processing method, device, equipment and storage medium of test log
US11128652B1 (en) Dynamic vulnerability correlation
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
Kula et al. On the impact of micro-packages: An empirical study of the npm javascript ecosystem
US10169005B2 (en) Consolidating and reusing portal information
US11055365B2 (en) Mechanism for web crawling e-commerce resource pages
CN108351941B (en) Analysis device, analysis method, and computer-readable storage medium
US20130111018A1 (en) Passive monitoring of virtual systems using agent-less, offline indexing
CN112528295B (en) Vulnerability restoration method and device for industrial control system
CN113014445A (en) Operation and maintenance method, device and platform for server and electronic equipment
Chen et al. DroidCIA: A novel detection method of code injection attacks on HTML5-based mobile apps
CN114205216A (en) Root cause positioning method and device for micro-service fault, electronic equipment and medium
US20250053601A1 (en) Using discovered uniform resource identifier information to perform exploitation testing
JP2016099857A (en) Fraudulent program handling system and fraudulent program handling method
JP2016192185A (en) Spoofing detection system and spoofing detection method
US12001324B2 (en) Operation pattern generation apparatus, operation pattern generation method and program
US8140504B2 (en) Report generation system and method
CN117009911B (en) Abnormality determination method and device for target event, medium and electronic equipment
US12373570B2 (en) Artificial intelligence based security requirements identification and testing
KR20240019739A (en) Apparatus for processing cyber threat information, method for processing cyber threat information, and medium for storing a program processing cyber threat information
CN110851840A (en) WEB backdoor detection method and device based on website vulnerability
KR100614931B1 (en) Vulnerability Analysis Apparatus and Method for Web Applications
CN113378172B (en) Method, apparatus, computer system and medium for identifying sensitive web pages
CN111290870B (en) Method and device for detecting abnormality

Legal Events

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