CN112559333A - Log production method and device, computer equipment and storage medium - Google Patents

Log production method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112559333A
CN112559333A CN202011435202.0A CN202011435202A CN112559333A CN 112559333 A CN112559333 A CN 112559333A CN 202011435202 A CN202011435202 A CN 202011435202A CN 112559333 A CN112559333 A CN 112559333A
Authority
CN
China
Prior art keywords
log
test
production
format
management system
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.)
Granted
Application number
CN202011435202.0A
Other languages
Chinese (zh)
Other versions
CN112559333B (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.)
Wuhan United Imaging Healthcare Co Ltd
Original Assignee
Wuhan United Imaging Healthcare 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 Wuhan United Imaging Healthcare Co Ltd filed Critical Wuhan United Imaging Healthcare Co Ltd
Priority to CN202011435202.0A priority Critical patent/CN112559333B/en
Publication of CN112559333A publication Critical patent/CN112559333A/en
Application granted granted Critical
Publication of CN112559333B publication Critical patent/CN112559333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a log production method, a log production device, computer equipment and a storage medium, wherein the computer equipment determines log production parameters according to the test requirements of an equipment management system; then, based on the corresponding relation between the preset log format and the test log, at least one test log in the log format is circularly output in each log production thread according to the log production parameters; the log production parameters include log cycle number and/or log production thread number. By adopting the method, the production efficiency of the test logs can be improved, the labor cost for obtaining the test logs is reduced, and the test cost of the equipment management system is reduced.

Description

Log production method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a log production method, an apparatus, a computer device, and a storage medium.
Background
Currently, medical devices such as Computed Tomography (CT) devices are widely used, and a plurality of different types of medical devices are usually connected to a device management system to perform unified management on the medical devices through the device management system. The device management system can receive logs generated by each accessed medical device, and the specific use condition of the medical device can be obtained through the logs. Because the log formats corresponding to different devices are different, in order to enable the device management system to operate normally, the device management system needs to be tested for various log formats, such as an interface integrity test, a throughput test, and the like.
In the traditional method, a worker can manually select a log of a specific type, and after the log is manually modified, the modified log is input into the equipment management system to complete the test of the equipment management system.
However, as the number of medical devices accessing the device management system increases, the types of logs increase, and the adoption of the method causes the test cost of the device management system to be too high.
Disclosure of Invention
In view of the above, it is necessary to provide a log production method, apparatus, computer device and storage medium for solving the above technical problems.
A method of producing logs, the method comprising:
determining log production parameters according to the test requirements of the equipment management system;
based on a preset log format and the corresponding relation of the test logs, circularly outputting at least one test log in the log format in each log production thread according to log production parameters; the log production parameters include log cycle number and/or log production thread number.
In one embodiment, the correspondence includes at least one log array, and a key-value pair of the identification information of each log array and the corresponding log format; the log arrays correspond to the log formats one to one.
In one embodiment, the outputting at least one test log in a log format according to the log production parameters includes:
creating a log production thread pool according to the number of log production threads; the number of log production threads contained in the thread pool corresponds to the number of log production threads;
and circularly outputting at least one test log in a log format in each production thread of the log production thread pool.
In one embodiment, the test requirements include at least one of interface integrity test requirements, concurrent test requirements, and throughput test requirements.
In one embodiment, the determining the log production parameter according to the test requirement of the device management system if the test requirement is an interface integrity test requirement includes:
determining the number of log circulation times as a circulation default value;
and determining the log production thread number as a thread default value.
In one embodiment, the determining the log production parameter according to the test requirement of the device management system if the test requirement is a concurrent quantity test requirement includes:
determining the number of log production line processes according to the rated concurrency of the equipment management system;
and determining the number of log loops as a loop default value.
In one embodiment, if the test requirement is a throughput test requirement, the throughput test requirement carries a throughput test mode, and determining the log production parameter according to the test requirement of the device management system includes:
determining a throughput testing mode of the equipment management system according to the throughput testing requirement; the throughput testing mode is one of single-thread testing and multi-thread testing;
and determining log production parameters according to the throughput testing mode and the rated throughput of the equipment management system.
In one embodiment, the test requirement further includes a device interface address of the device management system; the method further comprises the following steps:
and sending the test log to the equipment management system through an interface corresponding to the equipment interface address so that the equipment management system analyzes the test log to obtain a test result corresponding to the test requirement.
In one embodiment, the method further includes:
obtaining a sample test log corresponding to each log format;
respectively extracting the value of each field in each sample test log, and generating a log array corresponding to each sample test log;
constructing a key value pair between the log array and the corresponding identification information of the log format to obtain a corresponding relation; the identification information is the value of one field in the sample test log corresponding to the log format.
In one embodiment, a log production method is provided, the method comprising:
and outputting at least one test log in a log format in a log production thread based on a preset log format and the corresponding relation of the test logs according to the interface integrity test requirement of the equipment management system.
In one embodiment, a log production method is provided, the method comprising:
determining the number of log production line processes according to the concurrent quantity test requirements of the equipment management system;
and simultaneously outputting at least one test log in a log format in each log production thread corresponding to the log production thread number based on the preset log format and the corresponding relation of the test logs.
In one embodiment, a log production method is provided, the method comprising:
determining the number of log circulation times according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a single-thread test;
and circularly outputting at least one test log in the log format according to the log circulation times in the log production thread based on the corresponding relation between the preset log format and the test log.
In one embodiment, a log production method is provided, the method comprising:
determining the production line process number and the log circulation times of the log according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a multi-thread test;
and circularly outputting the logs according to the log circulation times in each log production thread corresponding to the log production thread number based on a preset log format and the corresponding relation of the test logs.
A log production apparatus comprising:
the determining module is used for determining log production parameters according to the test requirements of the equipment management system;
the production module is used for circularly outputting at least one test log in the log format in each log production thread according to log production parameters based on the preset log format and the corresponding relation of the test logs; the log production parameters include log cycle number and log production thread number.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
determining log production parameters according to the test requirements of the equipment management system;
based on a preset log format and the corresponding relation of the test logs, circularly outputting at least one test log in the log format in each log production thread according to log production parameters; the log production parameters include log cycle number and/or log production thread number.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
determining log production parameters according to the test requirements of the equipment management system;
based on a preset log format and the corresponding relation of the test logs, circularly outputting at least one test log in the log format in each log production thread according to log production parameters; the log production parameters include log cycle number and/or log production thread number.
According to the log production method, the log production device, the computer equipment and the storage medium, the computer equipment determines log production parameters according to the test requirements of the equipment management system; then, based on the corresponding relation between the preset log format and the test log, at least one test log in the log format is circularly output in each log production thread according to the log production parameters; the log production parameters include log cycle number and/or log production thread number. The computer equipment determines the log production parameters according to the test requirements of the equipment management system, so that the logs at the moment matched with the test requirements can be produced in a targeted manner; furthermore, the computer device comprises the corresponding relation between the log formats and the test logs, so that the test logs in at least one log format can be automatically output according to the obtained log production parameters, the test logs do not need to be manually modified aiming at different log formats, the production efficiency of the test logs is improved, the labor cost for obtaining the test logs is reduced, and the test cost of the device management system is further reduced.
Drawings
FIG. 1 is a diagram of an application environment of a log production method in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method for log production in one embodiment;
FIG. 3 is a flow diagram that illustrates a method for log generation in one embodiment;
FIG. 4 is a schematic flow chart diagram of a log production method in another embodiment;
FIG. 5 is a schematic flow chart diagram illustrating a log production method in accordance with another embodiment;
FIG. 6 is a flow chart illustrating a method for log production in another embodiment;
FIG. 7 is a flowchart illustrating a log production method according to another embodiment;
FIG. 8 is a block diagram showing the structure of a log producing apparatus according to an embodiment;
FIG. 9 is a block diagram showing the construction of a log producing apparatus according to an embodiment;
FIG. 10 is a block diagram showing the construction of a log producing apparatus according to an embodiment;
FIG. 11 is a block diagram showing the construction of a log producing apparatus according to an embodiment;
FIG. 12 is a block diagram showing the construction of a log producing apparatus according to an embodiment;
FIG. 13 is a block diagram showing the construction of a log producing apparatus according to one embodiment;
FIG. 14 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The log production method provided by the application can be applied to the application environment shown in fig. 1. Wherein, the computer device 100 is connected with the device management system 200, and the device management system 200 can be connected with the device 300; the apparatus 300 may be a medical apparatus, which may be, but not limited to, an X-ray diagnosis apparatus, an ultrasonic diagnosis apparatus, a functional examination apparatus, an endoscopy apparatus, a nuclear medicine apparatus, an experimental diagnosis apparatus, a pathological diagnosis apparatus, and the like. The computer device 100 is configured to output the test log, so that the device management system 200 can test the log resolution capability of the device management system 200 according to the test log. The computer device 100 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a log production method is provided, which is described by taking the example that the method is applied to the computer device in fig. 1, and includes:
s101, determining log production parameters according to the test requirements of the equipment management system.
The equipment management system is used for performing unified management on the medical equipment. The equipment management system can receive the logs generated by each medical equipment and analyze the logs to acquire the use condition of each medical equipment. Due to different types of medical devices, the formats of the logs that the device management system needs to parse are different. The device management system may be comprised of a plurality of microservices, message queues, user interfaces, and the like. In a plurality of devices connected to the device management system, the same device may output test logs of different formats, and different devices may also output test logs of the same format, which is not limited herein.
In order to make the device management system operate normally, the device management system needs to be tested for various log formats. The test requirements may be requirements for different test scenarios, or may be test requirements for different devices, which is not limited herein. For example, in the case of different test scenarios, the test requirements may include throughput test requirements, concurrent test requirements, and the like; the test requirements for different devices may include types of log formats corresponding to the devices, efficiency of log output by the devices, and the like. Optionally, the test requirement may include at least one of an interface integrity test requirement, a concurrent quantity test requirement, and a throughput test requirement.
The interface completeness test requirement is mainly used for testing whether the equipment management system supports analysis of various log formats. The concurrent testing requirement is mainly used for testing the upper limit of the number of logs which can be processed by the equipment management system. The throughput testing requirement is mainly used for testing the stability of the equipment when the equipment management system runs for a long time.
The computer equipment can determine the test requirement according to the equipment type connected with the equipment management system; the test instruction input by the user can be received to obtain the test requirement; the manner of obtaining the test requirement is not limited herein.
After the computer device obtains the test requirements of the device management system, log production parameters can be determined according to the test requirements. The log production parameters are determined based on the mode of producing logs by the computer equipment, and can comprise log circulation times and log production thread times. The log cycle number may be the number of times of repeating the log in each format in the test log produced by the computer device. The number of the log production threads can be the number of test logs output by the computer equipment at the same time, and each log production thread can output one test log at the same time. In addition, the test requirement may further include a format type of the test log to be output, or a format number of the test log to be output, and the like, which is not limited herein.
Specifically, the computer device may determine, according to a test item in the test requirement, a log production parameter matching the test item. For example, a mapping relationship between a test item and a log production parameter is preset in the computer device, and when the test requirement includes the test item a, the log production parameter corresponding to the test item a in the mapping relationship can be acquired. Or, the computer device may also analyze the test requirement, obtain parameters such as the number of test logs, the log format, the output duration, and the like required by the test requirement, and determine log production parameters corresponding to the test requirement; the determination method of the log production parameters is not limited herein.
S102, circularly outputting at least one test log in a log format in each log production thread according to log production parameters based on a preset log format and the corresponding relation of the test logs; the log production parameters include log cycle number and/or log production thread number.
On the basis of obtaining the log production parameters, the computer equipment can produce the test logs according to the preset log format and the corresponding relation of the test logs. The corresponding relation comprises log formats which can be produced by the computer equipment and test logs corresponding to each format; the computer device may output the test log corresponding to the log format based on the correspondence relationship after determining the log format of the test log to be output.
The log format in the corresponding relationship can be a log format number or a log format identifier; the format of the log format is not limited herein. For example, the above-described log format may be determined by the number of the device that outputs the log format. The log format in the correspondence may be associated with a text of the test log, may also be associated with a value in the test log, and may also be associated with a storage address of the test log, which is not limited herein. In the above correspondence, the same log format may correspond to one test log, or may correspond to different test logs, which is not limited herein.
In the above correspondence, the log format may be associated with the test log through a mapping relationship table, or the log format may be associated with the test log through a key-value pair relationship, and the association form is not limited herein. Optionally, the corresponding relationship includes at least one log array, and a key-value pair of each log array and the corresponding log format identification information; the log arrays correspond to the log formats one to one. The log array is an array formed by values of all fields in the test log; the test log may include a plurality of fields, and the fields may respectively indicate a log serial number, a device serial number, log output time, a device operation record, and the like. Each log format in the corresponding relation corresponds to a log array, and the log array and the key value pair of the identification information of the corresponding log format. For example, the correspondence relationship may include 36 log formats, each log format corresponds to one log array, the log format may be identified by a device number product number in the test log, and the key value pair may use the product number as a key and the log array corresponding to the test log as a value to establish the correspondence relationship.
The computer device can circularly output at least one test log in a log format according to the log production parameters in each log production thread based on the corresponding relation. The computer equipment can output all the log formats in the corresponding relation and also can select the log format to be output according to the test requirement; when the computer equipment outputs the test log matched with the log format, the test log matched with the log format can be directly input according to the corresponding relation, and the test log matched with the log format in the corresponding relation can also be output after being modified; the computer equipment can output the test logs according to the arrangement sequence of the log formats and can also output at least one test log in the log format at random; the production method of the test log is not limited herein. Optionally, the test log may use an xml file as a template, and the computer device may obtain a matched log array according to a log format, and then output the test log based on a preset xml log generation rule and values of each field in the log array.
After the computer device produces the test log, the test log can be sent to the device management system, so that the device management system can analyze the test log to obtain a test result of the device management system. Optionally, the computer device may further obtain a device interface address of the device management system according to the test requirement, so that the computer device may send the test log to the device management system through an interface corresponding to the device interface address, so that the device management system analyzes the test log to obtain a test result corresponding to the test requirement. The device management system may correspond to one device interface address or a plurality of device interface addresses, which is not limited herein.
According to the log production method, the computer equipment determines log production parameters according to the test requirements of the equipment management system; then, based on the corresponding relation between the preset log format and the test log, at least one test log in the log format is circularly output in each log production thread according to the log production parameters; the log production parameters include log cycle number and/or log production thread number. The computer equipment determines the log production parameters according to the test requirements of the equipment management system, so that the logs at the moment matched with the test requirements can be produced in a targeted manner; furthermore, the computer device comprises the corresponding relation between the log formats and the test logs, so that the test logs in at least one log format can be automatically output according to the obtained log production parameters, the test logs do not need to be manually modified aiming at different log formats, the production efficiency of the test logs is improved, the labor cost for obtaining the test logs is reduced, and the test cost of the device management system is further reduced.
Fig. 3 is a schematic flowchart of a log production method in another embodiment, where this embodiment relates to a manner of outputting a test log by a computer device, and on the basis of the foregoing embodiment, as shown in fig. 3, the foregoing S101 includes:
s201, creating a log production thread pool according to the number of log production threads; the number of log production threads contained in the thread pool corresponds to the number of log production threads.
The computer device may create a log production thread pool based on the log production thread count in the log production parameters. For example, if the number of log production threads is N, the computer device may generate a thread pool with a capacity of N in advance.
S202, circularly outputting at least one test log in a log format in each production thread of the log production thread pool.
The computer device may allocate a log production task to each log production thread in the log production thread pool, and specifically, different log production thread pools may output test logs in the same log format, or may respectively correspond to test logs in different log formats, which is not limited herein. The number of the test logs to be produced in different log production thread pools can be the same or different. The computer device may repeatedly perform the log output operation in each log production thread until the number of test logs of each log format output is equal to the number of log loops.
According to the log production method, the computer equipment can improve the log production efficiency by establishing the log production thread pool.
Fig. 4 is a schematic flowchart of a log production method in an embodiment, where the embodiment relates to a manner in which a computer device determines log production parameters, and on the basis of the above embodiment, the test requirement is an interface integrity test requirement, as shown in fig. 4, where S102 includes:
s301, determining the number of log circulation times as a circulation default value.
If the test requirement is an interface integrity test requirement, the test logs output by the computer equipment need to meet the analysis requirements of the equipment management system on the test logs in different log formats. Thus, the computer device may determine the number of log loops as a loop default. The loop default value may be 1, or may be other numbers, which is not limited herein.
S302, determining the number of the production threads of the log as a thread default value.
Under the interface integrity test requirement, the computer device may set the log production thread number to a thread default value. The thread default value may be 1, or may be other numbers, which is not limited herein.
For example, the computer device may output 36 logs in different log formats, and when outputting test logs according to the interface integrity test requirement of the device management system, the computer device may output 36 test logs, where each log format corresponds to 1 test log, that is, the number of log cycles is 1; the computer device can output the 36 test logs through one log production thread.
The computer device can send the test log to the device management system through the device interface address. The equipment management system can analyze the test logs respectively and return the state codes corresponding to the test logs. If the device management system analyzes the test log normally, a state code representing normal test can be returned to the computer device. If the equipment management system analyzes the test log abnormally, a state code representing the test abnormality can be returned to the computer equipment, and the computer equipment can determine that the equipment management system cannot analyze the log format corresponding to the test log according to the abnormal state code.
According to the log production method, the computer equipment sets the log cycle times and the log production thread number in the log production parameters as default values according to the interface integrity test requirements of the equipment management system, so that the computer equipment can automatically output test logs meeting the test requirements, the test efficiency of the equipment management system is improved, and the test cost of the equipment management system is reduced.
Fig. 5 is a schematic flowchart of a log production method in an embodiment, where the embodiment relates to a manner of determining log production parameters by a computer device, and on the basis of the above embodiment, the test requirement is a concurrent test requirement, as shown in fig. 5, where S102 includes:
s401, determining the number of log production line processes according to the rated concurrency of the equipment management system.
The above-mentioned rated concurrency amount may be the number of logs that can be simultaneously received in a normal operating state of the device management system. The computer device may store the rated concurrency amount of the device management system in advance, or extract the rated concurrency amount from the concurrency amount test requirement of the device management system.
For the requirement of concurrent quantity testing of the device management system, the computer device needs to output a plurality of test logs at the same time to obtain an upper limit of concurrent quantity processing of the device management system. Specifically, the computer device may determine the log production line number according to a rated concurrency of the device management system. The rated concurrency amount may be the number of logs that can be simultaneously received by the device management system in a normal operating state, and when the computer device determines the log production line number based on the rated concurrency amount, the log production line number may be greater than the rated concurrency amount or equal to the rated concurrency amount, which is not limited herein. For example, the nominal concurrency of the device management system is N, and the computer device may determine that the number of log production lines is N.
S402, determining the number of log circulation times as a circulation default value.
Under the requirement of concurrent measurement testing, the requirement of the number of logs tested by the equipment management system is low, and the number of log circulation times can be set as a circulation default value. For example, the loop default value may be 1, and the computer device may simultaneously produce N test logs in N log production threads until 36 test logs in log format are produced under each log production thread.
The computer equipment outputs a test log based on the log production parameters, sends the test log to the equipment management system and can receive a state code returned by the equipment management system based on the test log. If the normal state code returned by the equipment management system is equal to the log production line process number, the equipment management system can be considered to normally analyze a plurality of test logs, and the test requirement of the rated concurrency is met; if the equipment management system returns the abnormal state codes or the number of returned normal state codes is smaller than the production process number of the logs, the equipment management system can be considered to be incapable of analyzing a plurality of test logs normally, and the concurrent amount test of the equipment management system is failed.
In one implementation, the test logs may be output to the device management system by both computer devices simultaneously. For example, the rated concurrency of the device management system is N, N log production threads may be established in the computer device a, and N test logs are output to the device management system at the same time; in addition, the computer device B may also output the test logs to the device management system at the same time, and the number of log production threads in the computer device B may be increased step by step until the device management system returns the abnormal state codes or the number of returned normal state codes is smaller than the number of received test logs, at this time, the concurrency amount processing upper limit of the device management system may be obtained.
According to the log production method, the computer equipment determines the number of log production threads through the rated concurrency of the equipment management system, and can simultaneously output the test logs meeting the testing requirements of the concurrency, so that whether the concurrency of the equipment management system meets the requirements or not can be determined; furthermore, the computer equipment can automatically output the test log without manual participation, so that the test cost of the equipment management system is reduced.
Fig. 6 is a schematic flowchart of a log production method in an embodiment, where the embodiment relates to a manner in which a computer device determines log production parameters, and on the basis of the embodiment, a test requirement is a throughput test requirement, where the throughput test requirement carries a throughput test manner, as shown in fig. 6, the S102 includes:
s501, determining a throughput testing mode of the equipment management system according to the throughput testing requirement; the throughput testing mode is one of single-thread testing and multi-thread testing.
The throughput testing method may be carried in the throughput testing requirement of the device management system. The throughput testing mode is a single thread test or a multi-thread test. For the single-thread test mode, the computer equipment can produce a test log based on a log production thread and simultaneously output the test log to the equipment management system; for a multi-threaded test mode, the computer device may produce a test log based on multiple log production threads, while outputting multiple test logs to the device management system.
And S502, determining log production parameters according to a throughput test mode and the rated throughput of the equipment management system.
The rated throughput may be the total number of logs that can be received in a unit time length in a normal operating state of the device management system; the unit time may be 1 day, 1 week, 1 month, 1 year, etc., and is not limited herein. The rated throughput of the device management system may be stored in the computer device in advance, or the rated throughput may be extracted from the throughput test requirement of the device management system, which is not limited herein.
The computer equipment can output the test logs to the equipment management system within a preset time length, and can also determine the output time length of the test logs according to the throughput test requirement, and further, the computer equipment can determine the total number of the test logs to be output based on the output time length of the test logs and the rated throughput; the total number of the test logs can be greater than or equal to the number of logs nominally received by the device management system in the time period. For example, a nominal throughput may be receiving log M every 24 hours, and the computer device may output greater than or equal to 7M test logs when the throughput test requirement described above requires testing for a throughput within 1 week.
Specifically, if the throughput testing mode is a single-thread test, the computer device may determine that the number of production threads of the log is determined as a thread default, and determine the number of log cycles according to the rated throughput, the number of log formats, and the throughput testing duration. The thread default value may be 1. The computer equipment can determine the total number of the test logs to be output according to the rated throughput and the throughput testing duration, then determine the number of times of cyclic output required by the test logs in each log format according to the total number and the number of the log formats, and determine the number of times of cyclic output as the log cyclic number.
And if the throughput testing mode is the multi-thread testing, determining the number of log circulation times and the number of log production threads according to the rated throughput, the number of log formats and the throughput testing duration. The computer equipment can determine the number of log production threads according to the number of threads carried in the multi-thread test mode. Further, the computer device may determine the total number of the test logs to be output according to the rated throughput and the throughput test duration, then determine the number of times that the test logs in each log format need to be output in a circulating manner according to the total number and the number of the log formats, and obtain the log circulating number based on the number of times that the circulating output is divided by the log production process number.
The computer equipment can send the test log to the equipment management system within the test duration, and analyze parameters such as resource occupation condition, interface response time and the like of the equipment management system within the test duration so as to evaluate whether the throughput of the equipment management system meets the requirement or not.
According to the log production method, the computer equipment determines log production parameters through the rated throughput of the equipment management system, so that test logs are automatically produced to meet the test requirements of the throughput; because a large amount of test logs are needed for throughput test, the test logs can be automatically and continuously output by the method, and the test cost of the equipment management system is greatly reduced.
Fig. 7 is a schematic flowchart of a log production method in an embodiment, which relates to a way for a computer device to obtain a corresponding relationship between a log format and a test log, and based on the embodiment, as shown in fig. 7, the method further includes:
s601, obtaining a sample test log corresponding to each log format.
The computer device may obtain a log format corresponding to each device connected to the device management system, and obtain a sample test log output by each device. The computer device may obtain the sample test log through a storage device of the device management system, or may obtain the sample test log through a device connected to the device management system, which is not limited herein.
S602, respectively extracting the values of the fields in the sample test logs, and generating a log array corresponding to each sample test log.
Further, for each sample test log, the computer device may extract values of each field in the sample test log to form a log array corresponding to each sample test log.
S603, constructing a key value pair between the log array and the corresponding identification information of the log format to obtain a corresponding relation; the identification information is the value of one field in the sample test log corresponding to the log format.
The computer device may add log arrays to the MAP, which may be a log array container. Further, the computer device constructs a key value pair between the identification information in the log format and the log array in the MAP, and obtains a corresponding relation between the log data and the log format. The identification information is a value of one of the fields in the sample test log corresponding to the log format, for example, a value of Product Number in the sample log. The computer device may build key-value pairs with Product Number in each log array as a key and the corresponding log array as a value.
On the basis of the steps, when the type of the device connected with the device management system is increased or changed, a new sample test log can be obtained, a log array of the new sample test log is added into the MAP, and a key value pair of the new log array and the log format is further constructed, so that the computer device can output more test logs in the log format.
According to the log production method, the computer equipment can obtain the corresponding relation between the log format and the test log by constructing the key value pair between the log array and the corresponding identification information of the log format, so that the computer equipment can quickly obtain the test log according to the log format when producing the log; furthermore, the computer equipment can reduce the maintenance difficulty of the corresponding relation and realize rapid capacity expansion by adding the key value pair on the basis of obtaining a new sample test log.
For different test requirements, when the log production parameter corresponding to the test requirement is a default value, the computer device may not perform the step of determining the log production parameter as the default production parameter, for example, determine the log circulation number as the loop default value, or determine the log production thread number as the thread default value, but may directly adopt the default log production parameter to perform log production. The following examples are log production methods for different test requirements.
In an embodiment, a log production method is provided, which relates to a production method of a test log corresponding to an interface integrity test requirement, and the method includes:
and outputting at least one test log in a log format in a log production thread based on a preset log format and the corresponding relation of the test logs according to the interface integrity test requirement of the equipment management system.
In an embodiment, a log production method is provided, which relates to a production method of a test log corresponding to a concurrent quantity test demand, and the method includes:
determining the number of log production line processes according to the concurrent quantity test requirements of the equipment management system;
and simultaneously outputting at least one test log in a log format in each log production thread corresponding to the log production thread number based on the preset log format and the corresponding relation of the test logs.
In an embodiment, a log production method is provided, which relates to a production method of a test log corresponding to a throughput test requirement, and the method includes:
determining the number of log circulation times according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a single-thread test;
and circularly outputting at least one test log in the log format according to the log circulation times in the log production thread based on the corresponding relation between the preset log format and the test log.
In an embodiment, a log production method is provided, which relates to a production method of a test log corresponding to a throughput test requirement, and the method includes:
determining the production line process number and the log circulation times of the log according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a multi-thread test;
and circularly outputting the logs according to the log circulation times in each log production thread corresponding to the log production thread number based on a preset log format and the corresponding relation of the test logs.
The implementation principle and technical effect of the log production method provided in the above embodiment are similar to those of the above embodiment, and are not described herein again.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 8, there is provided a log producing apparatus including:
the determining module 10 is used for determining log production parameters according to the test requirements of the equipment management system;
the production module 20 is configured to cyclically output at least one test log in the log format according to log production parameters in each log production thread based on a preset log format and a corresponding relationship between the test logs; the log production parameters include log cycle number and/or log production thread number.
The log production device can execute the log production method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
In an embodiment, on the basis of the above embodiment, the correspondence includes at least one log array, and a key-value pair of each log array and corresponding log format identification information; the log arrays correspond to the log formats one to one.
In one embodiment, on the basis of the above embodiment, as shown in fig. 9, the above production module 20 includes:
a creating unit 201, configured to create a log production thread pool according to the number of log production threads; the number of log production threads contained in the thread pool corresponds to the number of log production threads;
an output unit 202, configured to output at least one test log in a log format in a loop in each production thread of the log production thread pool.
In one embodiment, on the basis of the above embodiment, the test requirement includes at least one of an interface integrity test requirement, a concurrent quantity test requirement, and a throughput quantity test requirement.
In an embodiment, on the basis of the foregoing embodiment, as shown in fig. 10, if the test requirement is an interface integrity test requirement, the determining module 10 includes:
a first determining unit 101, configured to determine a log loop number as a loop default value;
a second determining unit 102, configured to determine the log production thread number as a thread default value.
In one embodiment, on the basis of the above embodiment, if the test requirement is a concurrent measurement test requirement;
the first determining unit 101 is further configured to determine the number of production processes of the log according to the rated concurrency of the equipment management system;
the second determining unit 102 is further configured to determine the number of log loops as a loop default value.
In an embodiment, on the basis of the foregoing embodiment, if the test requirement is a throughput test requirement, as shown in fig. 11, the determining module further includes:
a third determining unit 103, configured to determine a throughput testing manner of the device management system according to the throughput testing requirement; the throughput testing mode is one of single-thread testing and multi-thread testing;
a fourth determining unit 104, configured to determine the log production parameter according to the throughput testing manner and the rated throughput of the device management system.
In an embodiment, on the basis of the above embodiment, as shown in fig. 12, the test requirement further includes a device interface address of the device management system; the apparatus further comprises a sending module 30, configured to: and sending the test log to the equipment management system through an interface corresponding to the equipment interface address so that the equipment management system analyzes the test log to obtain a test result corresponding to the test requirement.
In an embodiment, on the basis of the above embodiment, as shown in fig. 13, the above apparatus further includes a building module 40 for: obtaining a sample test log corresponding to each log format; respectively extracting the value of each field in each sample test log, and generating a log array corresponding to each sample test log; constructing a key value pair between the log array and the corresponding identification information of the log format to obtain a corresponding relation; the identification information is the value of one field in the sample test log corresponding to the log format.
The log production device can execute the log production method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
For the specific definition of the log production device, reference may be made to the above definition of the log production method, which is not described herein again. The respective modules in the log producing apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 14. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing log production data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of log production.
Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
determining log production parameters according to the test requirements of the equipment management system;
based on a preset log format and the corresponding relation of the test logs, circularly outputting at least one test log in the log format in each log production thread according to log production parameters; the log production parameters include log cycle number and/or log production thread number.
In one embodiment, the correspondence includes at least one log array, and a key-value pair of the identification information of each log array and the corresponding log format; the log arrays correspond to the log formats one to one.
In one embodiment, the processor, when executing the computer program, further performs the steps of: creating a log production thread pool according to the number of log production threads; the number of log production threads contained in the thread pool corresponds to the number of log production threads; and circularly outputting at least one test log in a log format in each production thread of the log production thread pool.
In one embodiment, the test requirements include at least one of interface integrity test requirements, concurrent test requirements, and throughput test requirements.
In one embodiment, if the test requirement is an interface integrity test requirement, the processor executes the computer program to further perform the following steps: determining the number of log circulation times as a circulation default value; and determining the log production thread number as a thread default value.
In one embodiment, if the test requirement is a concurrent test requirement, the processor executes the computer program to further perform the following steps: determining the number of log production line processes according to the rated concurrency of the equipment management system; and determining the number of log loops as a loop default value.
In one embodiment, if the test requirement is a throughput test requirement, the processor executes the computer program to further perform the following steps: determining a throughput testing mode of the equipment management system according to the throughput testing requirement; the throughput testing mode is one of single-thread testing and multi-thread testing; and determining log production parameters according to the throughput testing mode and the rated throughput of the equipment management system.
In one embodiment, the test requirements further include a device interface address of the device management system, and the processor when executing the computer program further performs the steps of: and sending the test log to the equipment management system through an interface corresponding to the equipment interface address so that the equipment management system analyzes the test log to obtain a test result corresponding to the test requirement.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining a sample test log corresponding to each log format; respectively extracting the value of each field in each sample test log, and generating a log array corresponding to each sample test log; constructing a key value pair between the log array and the corresponding identification information of the log format to obtain a corresponding relation; the identification information is the value of one field in the sample test log corresponding to the log format.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and outputting at least one test log in a log format in a log production thread based on a preset log format and the corresponding relation of the test logs according to the interface integrity test requirement of the equipment management system.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the number of log production line processes according to the concurrent quantity test requirements of the equipment management system; and simultaneously outputting at least one test log in a log format in each log production thread corresponding to the log production thread number based on the preset log format and the corresponding relation of the test logs.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the number of log circulation times according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a single-thread test; and circularly outputting at least one test log in the log format according to the log circulation times in the log production thread based on the corresponding relation between the preset log format and the test log.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the production line process number and the log circulation times of the log according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a multi-thread test; and circularly outputting the logs according to the log circulation times in each log production thread corresponding to the log production thread number based on a preset log format and the corresponding relation of the test logs.
The implementation principle and technical effect of the computer device provided in this embodiment are similar to those of the method embodiments described above, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining log production parameters according to the test requirements of the equipment management system;
based on a preset log format and the corresponding relation of the test logs, circularly outputting at least one test log in the log format in each log production thread according to log production parameters; the log production parameters include log cycle number and/or log production thread number.
In one embodiment, the correspondence includes at least one log array, and a key-value pair of the identification information of each log array and the corresponding log format; the log arrays correspond to the log formats one to one.
In one embodiment, the computer program when executed by the processor further performs the steps of: creating a log production thread pool according to the number of log production threads; the number of log production threads contained in the thread pool corresponds to the number of log production threads; and circularly outputting at least one test log in a log format in each production thread of the log production thread pool.
In one embodiment, the test requirements include at least one of interface integrity test requirements, concurrent test requirements, and throughput test requirements.
In one embodiment, if the test requirement is an interface integrity test requirement, the computer program when executed by the processor further performs the steps of: determining the number of log circulation times as a circulation default value; and determining the log production thread number as a thread default value.
In one embodiment, if the test requirement is a concurrent test requirement, the computer program when executed by the processor further performs the steps of: determining the number of log production line processes according to the rated concurrency of the equipment management system; and determining the number of log loops as a loop default value.
In one embodiment, if the test requirement is a throughput test requirement, the computer program when executed by the processor further performs the steps of: determining a throughput testing mode of the equipment management system according to the throughput testing requirement; the throughput testing mode is one of single-thread testing and multi-thread testing; and determining log production parameters according to the throughput testing mode and the rated throughput of the equipment management system.
In one embodiment, the test requirements further include a device interface address of the device management system, and the computer program when executed by the processor further performs the steps of: and sending the test log to the equipment management system through an interface corresponding to the equipment interface address so that the equipment management system analyzes the test log to obtain a test result corresponding to the test requirement.
In one embodiment, the computer program when executed by the processor further performs the steps of: obtaining a sample test log corresponding to each log format; respectively extracting the value of each field in each sample test log, and generating a log array corresponding to each sample test log; constructing a key value pair between the log array and the corresponding identification information of the log format to obtain a corresponding relation; the identification information is the value of one field in the sample test log corresponding to the log format.
In one embodiment, the computer program when executed by the processor further performs the steps of: and outputting at least one test log in a log format in a log production thread based on a preset log format and the corresponding relation of the test logs according to the interface integrity test requirement of the equipment management system.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the number of log production line processes according to the concurrent quantity test requirements of the equipment management system; and simultaneously outputting at least one test log in a log format in each log production thread corresponding to the log production thread number based on the preset log format and the corresponding relation of the test logs.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the number of log circulation times according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a single-thread test; and circularly outputting at least one test log in the log format according to the log circulation times in the log production thread based on the corresponding relation between the preset log format and the test log.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the production line process number and the log circulation times of the log according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a multi-thread test; and circularly outputting the logs according to the log circulation times in each log production thread corresponding to the log production thread number based on a preset log format and the corresponding relation of the test logs.
The computer storage medium provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiments, and is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method of log production, the method comprising:
determining log production parameters according to the test requirements of the equipment management system;
based on a preset log format and the corresponding relation of the test logs, circularly outputting at least one test log in the log format in each log production thread according to log production parameters; the log production parameters comprise log cycle times and/or log production thread numbers.
2. The method of claim 1, wherein the correspondence comprises at least one log array, and each log array is associated with a key-value pair of the identification information of the corresponding log format; the log arrays correspond to the log formats one to one.
3. The method of claim 2, wherein said outputting at least one test log in log format according to log production parameters comprises:
creating a log production thread pool according to the log production thread number; the number of log production threads contained in the thread pool corresponds to the number of the log production threads;
and circularly outputting at least one test log in a log format in each production thread of the log production thread pool.
4. The method of any of claims 1-3, wherein the test requirements include at least one of interface integrity test requirements, concurrency test requirements, and throughput test requirements.
5. The method of any of claims 1-3, wherein the test requirements further include a device interface address of a device management system; the method further comprises the following steps:
and sending the test log to the equipment management system through an interface corresponding to the equipment interface address so that the equipment management system analyzes the test log to obtain a test result corresponding to the test requirement.
6. The method according to any one of claims 1-3, further comprising:
obtaining a sample test log corresponding to each log format;
respectively extracting the value of each field in each sample test log, and generating a log array corresponding to each sample test log;
constructing a key value pair between the log array and the corresponding identification information of the log format to obtain the corresponding relation; the identification information is the value of one field in the sample test log corresponding to the log format.
7. A method of log production, the method comprising:
and outputting at least one test log in a log format in a log production thread based on a preset log format and the corresponding relation of the test logs according to the interface integrity test requirement of the equipment management system.
8. A method of log production, the method comprising:
determining the number of log production line processes according to the concurrent quantity test requirements of the equipment management system;
and simultaneously outputting at least one test log in a log format in each log production thread corresponding to the log production thread number based on a preset log format and the corresponding relation of the test logs.
9. A method of log production, the method comprising:
determining the number of log circulation times according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a single-thread test;
and circularly outputting at least one test log in the log format according to the log circulation times in the log production thread based on the corresponding relation between the preset log format and the test log.
10. The method of claim 12, further comprising:
determining the production line process number and the log circulation times of the log according to the throughput testing requirement of the equipment management system; the throughput testing mode corresponding to the throughput testing requirement is a multi-thread test;
and circularly outputting the logs according to the log circulation times in each log production thread corresponding to the log production thread number based on a preset log format and the corresponding relation of the test logs.
11. An apparatus for producing logs, the apparatus comprising:
the determining module is used for determining log production parameters according to the test requirements of the equipment management system;
the production module is used for circularly outputting at least one test log in the log format in each log production thread according to the log production parameters based on the corresponding relation between the preset log format and the test log; the log production parameters comprise log circulation times and/or log production thread number
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 10.
CN202011435202.0A 2020-12-10 2020-12-10 Log production method and device, computer equipment and storage medium Active CN112559333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011435202.0A CN112559333B (en) 2020-12-10 2020-12-10 Log production method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011435202.0A CN112559333B (en) 2020-12-10 2020-12-10 Log production method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112559333A true CN112559333A (en) 2021-03-26
CN112559333B CN112559333B (en) 2022-05-20

Family

ID=75060599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011435202.0A Active CN112559333B (en) 2020-12-10 2020-12-10 Log production method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112559333B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105519172A (en) * 2013-05-30 2016-04-20 是德科技新加坡(控股)私人有限公司 Method and apparatus for logging data records
CN107957940A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 A kind of test log processing method, system and terminal
CN108829802A (en) * 2018-06-06 2018-11-16 中国人民银行清算总中心 It is associated with log back method and device
CN108920377A (en) * 2018-07-16 2018-11-30 杭州安恒信息技术股份有限公司 A kind of log playback test method, system, device and readable storage medium storing program for executing
CN109446173A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 Daily record data processing method, device, computer equipment and storage medium
KR20190077676A (en) * 2017-12-26 2019-07-04 지티시스템 주식회사 Apparatus and method for analysing test log
CN110188073A (en) * 2019-04-19 2019-08-30 平安科技(深圳)有限公司 Method, apparatus, storage medium and the computer equipment of In vivo detection log parsing
CN110362473A (en) * 2019-05-31 2019-10-22 口口相传(北京)网络技术有限公司 Test optimization method and device, storage medium, the terminal of environment
CN110515832A (en) * 2019-07-25 2019-11-29 安徽易百互联科技有限公司 A kind of virtual test system of computer software exploitation
CN110727567A (en) * 2019-09-09 2020-01-24 平安证券股份有限公司 Software quality detection method and device, computer equipment and storage medium
CN111343326A (en) * 2020-04-22 2020-06-26 Oppo广东移动通信有限公司 Method and related device for acquiring test log

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105519172A (en) * 2013-05-30 2016-04-20 是德科技新加坡(控股)私人有限公司 Method and apparatus for logging data records
CN107957940A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 A kind of test log processing method, system and terminal
KR20190077676A (en) * 2017-12-26 2019-07-04 지티시스템 주식회사 Apparatus and method for analysing test log
CN108829802A (en) * 2018-06-06 2018-11-16 中国人民银行清算总中心 It is associated with log back method and device
CN108920377A (en) * 2018-07-16 2018-11-30 杭州安恒信息技术股份有限公司 A kind of log playback test method, system, device and readable storage medium storing program for executing
CN109446173A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 Daily record data processing method, device, computer equipment and storage medium
CN110188073A (en) * 2019-04-19 2019-08-30 平安科技(深圳)有限公司 Method, apparatus, storage medium and the computer equipment of In vivo detection log parsing
CN110362473A (en) * 2019-05-31 2019-10-22 口口相传(北京)网络技术有限公司 Test optimization method and device, storage medium, the terminal of environment
CN110515832A (en) * 2019-07-25 2019-11-29 安徽易百互联科技有限公司 A kind of virtual test system of computer software exploitation
CN110727567A (en) * 2019-09-09 2020-01-24 平安证券股份有限公司 Software quality detection method and device, computer equipment and storage medium
CN111343326A (en) * 2020-04-22 2020-06-26 Oppo广东移动通信有限公司 Method and related device for acquiring test log

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LUCENCECHAN: "在多线程应用程序中使用循环缓冲区高效地进行日志记录", 《HTTPS://BLOG.CSDN.NET/TONYCHAN129/ARTICLE/DETAILS/11021655》 *

Also Published As

Publication number Publication date
CN112559333B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN111143163B (en) Data monitoring method, device, computer equipment and storage medium
CN108492005B (en) Project data processing method and device, computer equipment and storage medium
CN111078910A (en) Medical image storage method, device, system, equipment and storage medium
CN110059068B (en) Data verification method and data verification system in distributed storage system
CN108228443B (en) Web application testing method and device
CN111797026A (en) Test case generation method and device, computer equipment and storage medium
CN114490419B (en) Heterogeneous architecture cross-cloud testing method, system and computer equipment
CN112905323A (en) Data processing method and device, electronic equipment and storage medium
CN112527923A (en) Unstructured data storage method and device, computer equipment and storage medium
CN112311902A (en) File sending method and device based on micro-service
CN112488745A (en) Intelligent charge control management method, device, equipment and storage medium
CN112559333B (en) Log production method and device, computer equipment and storage medium
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN112417020B (en) Service expansion realization method, device, computer equipment and storage medium
CN109800112A (en) Test method, device, computer equipment and storage medium
CN115757066A (en) Hard disk performance test method, device, equipment, storage medium and program product
CN114020822A (en) Data testing method, device, equipment and medium based on interface data number
GB2560749A (en) Trace data representation
CN112416877A (en) Medical data storage method and device, computer equipment and storage medium
CN111309623B (en) Coordinate class data classification test method and device
CN110099094B (en) Power Internet of things information interaction process analysis method and system considering resource constraints
Dong et al. fastnet: An R package for fast simulation and analysis of large-scale social networks
CN117312359A (en) Batch data generation method, device, equipment and storage medium

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