CN112532747B - Method, apparatus, device and storage medium for outputting information - Google Patents

Method, apparatus, device and storage medium for outputting information Download PDF

Info

Publication number
CN112532747B
CN112532747B CN202011539425.1A CN202011539425A CN112532747B CN 112532747 B CN112532747 B CN 112532747B CN 202011539425 A CN202011539425 A CN 202011539425A CN 112532747 B CN112532747 B CN 112532747B
Authority
CN
China
Prior art keywords
test
target program
backtracking
request
time period
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
CN202011539425.1A
Other languages
Chinese (zh)
Other versions
CN112532747A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011539425.1A priority Critical patent/CN112532747B/en
Publication of CN112532747A publication Critical patent/CN112532747A/en
Application granted granted Critical
Publication of CN112532747B publication Critical patent/CN112532747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code

Abstract

The application discloses a method, a device, equipment and a storage medium for outputting information, and relates to the field of cloud computing. The specific implementation scheme is as follows: in response to receiving a flow backtracking request for a target program, determining a backtracking time period and a file of the target program; obtaining historical logs in a backtracking time period, analyzing the historical logs, and determining request parameters in the backtracking time period; in a test environment, operating a target program according to a file of the target program, generating a test request according to a request parameter, and determining test data generated by the target program in the processing process of the test request; based on the test data, push information is output. The realization mode can trace back the flow of the program, completely simulate the on-line real flow during tracing back, and provide a favorable simulation environment for development and optimization.

Description

Method, apparatus, device and storage medium for outputting information
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of cloud computing, and in particular, to a method, an apparatus, a device, and a storage medium for outputting information.
Background
The applet application is widely popular with users once it is launched due to the characteristics of installation-free and easy use. Platforms such as hundred-degree APP, weChat and Paibao continuously perfect small program development processes, and provide rich access functions for individual and enterprise developers. Meanwhile, a third-party development platform is provided for enterprises which do not have development capacity originally, and a third-party service provider provides applet generation development service in an authorized mode.
Currently, each developer can only locally start engineering to verify newly introduced logic codes or optimize previous logic codes, and the logic is verified on a single online platform after verification is completed. Once a problem occurs, the problem can be solved by rolling back immediately.
Disclosure of Invention
A method, apparatus, device, and storage medium for outputting information are provided.
According to a first aspect, there is provided a method for outputting information, comprising: in response to receiving a traffic backtracking request for a target program, determining a backtracking time period and a file of the target program; acquiring a historical log in a backtracking time period, analyzing the historical log, and determining a request parameter in the backtracking time period; in a test environment, operating a target program according to a file of the target program, generating a test request according to a request parameter, and determining test data generated by the target program in the processing process of the test request; based on the test data, push information is output.
According to a second aspect, there is provided an apparatus for outputting information, comprising: a request receiving unit configured to determine a backtracking time period and a file of a target program in response to receiving a traffic backtracking request for the target program; the log analysis unit is configured to acquire the historical logs in the backtracking time period, analyze the historical logs and determine request parameters in the backtracking time period; the test unit is configured to run the target program according to the file of the target program and generate a test request according to the request parameter in a test environment, and determine test data generated by the target program in the processing process of the test request; an output unit configured to output the push information based on the test data.
According to a third aspect, there is provided an electronic device for outputting information, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in the first aspect.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described in the first aspect.
According to a fifth aspect, a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the first aspect.
According to the technology of the application, the flow of the program can be traced back, the on-line real flow can be completely simulated during tracing back, and a favorable simulation environment is provided for development and optimization.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be considered limiting of the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for outputting information, in accordance with the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for outputting information according to the present application;
FIG. 4 is a flow diagram of another embodiment of a method for outputting information according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of an apparatus for outputting information in accordance with the present application;
fig. 6 is a block diagram of an electronic device for implementing a method for outputting information according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application to assist in understanding, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for outputting information or the apparatus for outputting information of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is the medium used to provide communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a code editing application, an applet development application, and the like, may be installed on the terminal devices 101, 102, and 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, car computers, laptop portable computers, desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a backend server providing tests for applets developed by the terminal devices 101, 102, 103. The background server can perform flow backtracking on the applet in the test environment by using the online real flow, and feed back a backtracking result to the terminal devices 101, 102, and 103.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for outputting information provided in the embodiment of the present application is generally performed by the server 105. Accordingly, a device for outputting information is generally provided in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for outputting information in accordance with the present application is shown. The method for outputting information of the embodiment comprises the following steps:
step 201, in response to receiving a traffic backtracking request for a target program, determining a backtracking time period and a file of the target program.
In this embodiment, an execution subject of the method for outputting information (e.g., the server 105 shown in fig. 1) may receive the traffic backtracking request in various ways. The flow backtracking request is used for performing flow backtracking on a certain program, and can be specifically applied before program development is online or before program optimization is online. The program may be an applet (i.e., a program hosted in a host application), or may be various native applications.
After receiving the traffic backtracking request, the execution main body may analyze the traffic backtracking request to determine a backtracking time period. The backtracking period refers to a period of time that the user wants to test. The backtracking period may be set according to an application scenario of the target program. For example, the application scenario of the target program is live tape, and the time period of the important concern is 8 pm to 12 pm, the user may set the backtracking time period to 8 pm to 12 pm.
The execution subject may also determine the files of the target program, which may include code files, authentication files, etc. of the program. The user can upload the file of the target program on a preset website and send a flow backtracking request after the file is successfully uploaded.
Step 202, obtaining the history log in the backtracking time period, analyzing the history log, and determining the request parameter in the backtracking time period.
After determining the backtracking time period, the execution subject may obtain a history log within the backtracking time period. Specifically, the execution subject may obtain the history log by accessing a database for storing the history log. The execution body may then analyze the historical log to determine the request parameters during the backtracking period. The request parameters may include parameters in various requests sent by a large number of users (e.g., statements in search requests, links in access requests, etc.), and storage paths of files generated in the access process.
Step 203, in the test environment, according to the file of the target program, operating the target program and generating the test request according to the request parameter, and determining the test data generated by the target program in the process of processing the test request.
After determining the request parameters, the execution agent may build a test environment. The execution subject may set up the test environment in a variety of existing ways. It will be appreciated that existing test environments may be utilized if they currently already exist. The test environment is used to facilitate the reproduction of bugs that cannot be reproduced in the development environment, so that development can repair bugs in parallel.
The execution subject may run the target program according to the file of the target program in the test environment. It is understood that the files of the target program need to include various files required for running the target program. The execution agent may also generate a test request based on the request parameters. For example, if the request parameter is a statement in a search request, the execution body may generate a test request for searching according to the request.
After generating the test request, the execution agent may determine test data generated by the target program during processing of the test request. For example, the test request includes a search request, and the execution subject may collect files generated by the target program for the search request in the processing of the search request. The test data may include logs generated by programs, requests for processing, requests for external transmission, and the like.
And step 204, outputting pushing information based on the test data.
After obtaining the test file, the execution subject may directly output the test data as push information. Optimization suggestions for the target program can also be further given based on the test data. And outputting the optimization suggestion as push information.
With continued reference to fig. 3, a schematic illustration of one application scenario of the method for outputting information according to the present application is shown. In the application scenario of fig. 3, a server 301 receives a traffic backtracking request for a live applet sent by a terminal 302. The server 301 determines that the backtracking time period is from 8 o 'clock to 12 o' clock on tuesday night according to the traffic backtracking request, and acquires the file of the live applet. The server 301 may also have access to a smart applet platform 303 that may provide an applet development platform for various third party developers. The platform also stores logs generated by various applets. Server 301 obtains a history log of the backtracking period from the platform. And analyzing the request parameters in the history log. And building a test environment, running the live broadcast applet in the test environment, generating a test request according to the request parameters, and collecting test data generated by the live broadcast applet in the process of processing the test request. And generating an optimization suggestion aiming at the live small program according to the test data. Finally, the test data is output to the terminal 302 along with the optimization recommendations.
The method for outputting the information provided by the embodiment of the application can trace back the flow of the program, completely simulate the on-line real flow during tracing back, and provide a favorable test environment for development and optimization.
With continued reference to FIG. 4, a flow 400 of another embodiment of a method for outputting information in accordance with the present application is shown. As shown in fig. 4, the method for outputting information of the present embodiment may include the steps of:
step 401, in response to receiving a traffic backtracking request for a target program, determining a backtracking time period and a file of the target program.
Step 402, obtaining the history log in the backtracking time period, analyzing the history log, and determining the request parameter in the backtracking time period.
Step 403, in the testing environment, according to the file of the target program, running the target program and generating a testing request according to the request parameter, and determining the testing data generated by the target program in the processing process of the testing request.
Step 404, backup data generated after the backtracking period as comparison data before testing.
In this embodiment, the execution main body may further back up data generated after the backtracking time period before the test as the comparison data. For example, the executing agent may start backing up the data since receiving the traffic backtracking request. The data can be stored in a certain database in a centralized way, so that the execution main body only needs to back up the database.
In some optional implementations of this embodiment, the execution subject may back up data generated after the backtracking period at intervals of a preset duration. Here, the preset duration may be a unit duration of the traffic backtracking task, and the execution main body generates one traffic backtracking task every time it receives one traffic backtracking request. The backtracking time period for each traffic backtracking task includes at least one unit duration. Here, the unit time period may be 1 hour. Data generated after the backtracking time period is backed up at preset time intervals can be compared with different time periods in the testing process, and therefore the obtained data are more accurate and comprehensive.
In some optional implementation manners of this embodiment, if a preset time period elapses from the time of the backup of the data, the backed-up data may be deleted, so that hard disk resources may be saved.
In some optional implementations of this embodiment, the method may further include the following steps not shown in fig. 4: in response to receiving a pause request or a stop request during the test, the test is paused or stopped.
In this implementation, the user may also select whether to suspend or stop the flow backtracking by himself, and if necessary, may send a suspension request or a stop request to the execution main body. The execution agent may suspend or stop the test after receiving the suspend or stop request.
In some optional implementations of this embodiment, the method may further include the following steps not shown in fig. 4: in response to receiving the time period modification request, modifying the backtracking time period according to the time period modification request.
In this implementation, the user may also choose to extend or shorten the backtracking time period. The execution subject may modify the backtracking time period upon receiving the time period modification request. Accordingly, the execution principal needs to obtain the history log within the modified backtracking period.
Step 405, based on the test data, outputting the push information.
When determining the push information, the execution subject may specifically be determined in steps 4051 and/or 4052:
step 4051, comparing the test data with the comparison data, and determining push information according to the comparison result; and outputting the push information.
The execution subject may compare the test data with the comparison data, determine a difference therebetween, and output the difference as a comparison result as push information.
In some optional implementations of this embodiment, the execution subject may further generate an optimization suggestion for the target program according to the comparison result. And the optimization suggestions are used as push information. For example, if the comparison result shows that some junk files are generated in the test data, the clear junk files can be pushed as optimization suggestions.
Step 4052, determining a performance index of the target program according to the test file; and outputting the performance index as push information.
The execution subject can also determine the performance index of the target program according to the test file. The performance indicators may include average response time, maximum QPS (query-per-second), and the like. The performance index can be calculated according to the existing calculation mode. And directly outputting the performance index as push information.
Step 406, in response to determining that the target program test is completed, recording the start-stop time of the test, and releasing the test resources.
In this embodiment, the execution main body may further record the start-stop time of the test after the target program test is completed, so as to provide for subsequent query. Meanwhile, the test resources can be released for executing the subsequent flow backtracking task.
In some optional implementations of this embodiment, the execution agent may also record the status of each test, i.e., success or failure. And updates the state after the test is completed. Success and failure times may also be counted. Therefore, technicians can update and maintain the test environment conveniently.
The method for outputting the information provided by the embodiment of the application can trace back the flow of the program, completely simulate the on-line real flow during tracing back, and provide a favorable test environment for development and optimization.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for outputting information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for outputting information of the present embodiment includes: a request receiving unit 501, a log analyzing unit 502, a testing unit 503, and an output unit 504.
A request receiving unit 501 configured to determine a backtracking time period and a file of a target program in response to receiving a traffic backtracking request for the target program.
A log analysis unit 502 configured to obtain a history log in the backtracking period, analyze the history log, and determine a request parameter in the backtracking period.
The test unit 503 is configured to run the target program according to the file of the target program and generate a test request according to the request parameter in the test environment, and determine test data generated by the target program during processing of the test request.
An output unit 504 configured to output the push information based on the test data.
In some optional implementations of this embodiment, the apparatus 500 may further include a backup unit, not shown in fig. 5, configured to: data generated after the backtracking period is backed up as comparison data before testing.
In some optional implementations of the present embodiment, the output unit 504 may be further configured to: comparing the test data with the comparison data, and determining push information according to the comparison result; and outputting the push information.
In some optional implementations of this embodiment, the output unit 504 may be further configured to: generating an optimization suggestion for the target program according to the comparison result; and taking the optimization suggestion as push information.
In some optional implementations of this embodiment, the output unit 504 may be further configured to: determining the performance index of the target program according to the test file; and outputting the performance index as push information.
In some optional implementations of this embodiment, the backup unit is further configured to: and backing up data generated after the backtracking time period at preset time intervals to serve as comparison data.
In some optional implementations of this embodiment, the apparatus 500 may further include a recording unit, not shown in fig. 5, configured to: in response to determining that the target program test is complete, recording a start-stop time for the test, and releasing the test resources.
It should be understood that the units 501 to 504, which are recorded in the apparatus 500 for outputting information, correspond to the respective steps in the method described with reference to fig. 2, respectively. Thus, the operations and features described above for the method for outputting information are equally applicable to the apparatus 500 and the units included therein and will not be described again here.
According to the embodiment of the application, the application also provides an electronic device, a readable storage medium and a computer program product.
Fig. 6 shows a block diagram of an electronic device 600 that performs a method for outputting information according to an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the device 600 comprises a computing unit 601, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I/O interface (input/output interface) 605 is also connected to the bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, and the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 performs the respective methods and processes described above, such as a method for outputting information. For example, in some embodiments, the method for outputting information may be implemented as a computer software program tangibly embodied in a machine-readable storage medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method for outputting information described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g., by means of firmware) to perform the method for outputting information.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. The program code described above may be packaged as a computer program product. These program code or computer program products may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the computing unit 601, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable storage medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable storage medium may be a machine-readable signal storage medium or a machine-readable storage medium. A machine-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual private server", or simply "VPS").
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions of the present application can be achieved.
The above-described embodiments are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (11)

1. A method for outputting information, comprising:
in response to receiving a flow backtracking request for a target program, determining a backtracking time period and a file of the target program;
acquiring a history log in the backtracking time period, analyzing the history log, and determining a request parameter in the backtracking time period;
in a test environment, according to the file of the target program, operating the target program and generating a test request according to the request parameter, determining test data generated by the target program in the processing process of the test request, and backing up data generated after the backtracking time period before testing as comparison data;
outputting push information based on the test data, including: comparing the test data with the comparison data, and generating an optimization suggestion for the target program according to the comparison result, wherein the optimization suggestion comprises the following steps: generating an optimization suggestion for clearing the junk files in response to the fact that the comparison result is determined to be that the junk files exist in the test data; and taking the test data and the optimization suggestion as the push information, and outputting the push information.
2. The method of claim 1, wherein outputting push information based on the test data comprises:
determining the performance index of the target program according to the test file;
and outputting the performance index as push information.
3. The method of claim 1, wherein the backing up data generated after the backtracking period as comparison data comprises:
and backing up data generated after the backtracking time period at preset time intervals to serve as comparison data.
4. The method of claim 1, wherein the method further comprises:
in response to determining that the target program test is complete, recording start and stop times of the test, and releasing test resources.
5. An apparatus for outputting information, comprising:
a request receiving unit configured to determine a backtracking time period and a file of a target program in response to receiving a traffic backtracking request for the target program;
a log analysis unit configured to acquire a history log in the backtracking time period, analyze the history log, and determine a request parameter in the backtracking time period;
the test unit is configured to run the target program according to the file of the target program and generate a test request according to the request parameter in a test environment, and determine test data generated by the target program in the processing process of the test request;
a backup unit configured to: backing up data generated after the backtracking period as comparison data before testing;
an output unit configured to output push information based on the test data, including: comparing the test data with the comparison data, and generating an optimization suggestion for the target program according to the comparison result, wherein the optimization suggestion comprises the following steps: generating an optimization suggestion for clearing the junk files in response to the fact that the comparison result is determined to be that the junk files exist in the test data; and taking the test data and the optimization suggestion as the push information, and outputting the push information.
6. The apparatus of claim 5, wherein the output unit is further configured to:
determining the performance index of the target program according to the test file;
and outputting the performance index as push information.
7. The apparatus of claim 5, wherein the backup unit is further configured to:
and backing up data generated after the backtracking time period at preset time intervals to serve as comparison data.
8. The apparatus of claim 5, wherein the apparatus further comprises a recording unit configured to:
and responding to the fact that the target program is determined to be tested to be completed, recording the starting and ending time of the test, and releasing the test resources.
9. An electronic device for outputting information, comprising:
at least one computing unit; and
a storage unit communicatively coupled to the at least one computing unit; wherein the content of the first and second substances,
the storage unit stores instructions executable by the at least one computing unit to enable the at least one computing unit to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
11. A computer program product comprising a computer program which, when executed by a computing unit, implements the method according to any one of claims 1-4.
CN202011539425.1A 2020-12-23 2020-12-23 Method, apparatus, device and storage medium for outputting information Active CN112532747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011539425.1A CN112532747B (en) 2020-12-23 2020-12-23 Method, apparatus, device and storage medium for outputting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011539425.1A CN112532747B (en) 2020-12-23 2020-12-23 Method, apparatus, device and storage medium for outputting information

Publications (2)

Publication Number Publication Date
CN112532747A CN112532747A (en) 2021-03-19
CN112532747B true CN112532747B (en) 2023-04-18

Family

ID=74975923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011539425.1A Active CN112532747B (en) 2020-12-23 2020-12-23 Method, apparatus, device and storage medium for outputting information

Country Status (1)

Country Link
CN (1) CN112532747B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020012437A1 (en) * 2018-07-13 2020-01-16 Hassan Syed Danish System and method for proactively optimizing ad campaigns using data from multiple sources
CN110942625A (en) * 2019-11-06 2020-03-31 深圳市城市交通规划设计研究中心有限公司 Dynamic OD estimation method and device based on real path flow backtracking adjustment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022474A (en) * 2007-03-12 2007-08-22 华为技术有限公司 Network fault testing method and device
CN101714119B (en) * 2009-12-09 2011-11-02 北京邮电大学 Test data generating device and method based on binary program
US9946629B2 (en) * 2016-05-24 2018-04-17 International Business Machines Corporation System, method and apparatus for deriving root cause for software test failure
CN109271325B (en) * 2018-10-26 2022-11-04 携程旅游网络技术(上海)有限公司 Application testing method, system, electronic device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020012437A1 (en) * 2018-07-13 2020-01-16 Hassan Syed Danish System and method for proactively optimizing ad campaigns using data from multiple sources
CN110942625A (en) * 2019-11-06 2020-03-31 深圳市城市交通规划设计研究中心有限公司 Dynamic OD estimation method and device based on real path flow backtracking adjustment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Mu-En Wu,Chia-Hung Wang.An Empirical Comparison between Kelly Criterion and Vince's Optimal F.2015 IEEE International Conference on Smart City/SocialCom/SustainCom.2016,全文. *
于宗一.医院网络流量回溯分析系统应用实践.中国卫生信息管理杂志.2017,第14卷(第5期),全文. *

Also Published As

Publication number Publication date
CN112532747A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US9405662B2 (en) Process for displaying test coverage data during code reviews
CN101794359A (en) Methods and systems for enabling community-tested security features for legacy applications
US11743155B2 (en) Systems and methods of monitoring and controlling remote assets
JP2017532660A (en) Automatic tenant upgrade for multi-tenant services
US10901746B2 (en) Automatic anomaly detection in computer processing pipelines
CN114546830A (en) Regression testing method, regression testing device, electronic equipment and storage medium
US9530112B2 (en) Common conditions for past projects as evidence for success causes
CN112532747B (en) Method, apparatus, device and storage medium for outputting information
WO2022022572A1 (en) Calculating developer time during development process
CN115391204A (en) Test method and device for automatic driving service, electronic equipment and storage medium
US10200271B2 (en) Building and testing composite virtual services using debug automation
US11169905B2 (en) Testing an online system for service oriented architecture (SOA) services
CN114978944A (en) Pressure testing method, device and computer program product
CN112084114A (en) Method and apparatus for testing an interface
CN113360365A (en) Flow testing method and flow testing system
CN111786828A (en) Log processing method executed in network device and network device
CN113836114B (en) Data migration method, system, equipment and storage medium
US11734144B2 (en) Maintaining workloads during performance testing
CN113626409B (en) Test data processing method, device, equipment and storage medium
CN112799933B (en) Automatic test method and device
US10656986B2 (en) Dynamically controlling runtime system logging based on end-user reviews
CN115328891A (en) Data migration method and device, storage medium and electronic equipment
CN115599682A (en) Environment availability detection method, device, equipment and storage medium
CN117539719A (en) Application operation monitoring method, device, equipment and medium
CN114138619A (en) Method and device for testing software concurrent operation quantity

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