CN114039879A - Performance test method and device of management system, electronic equipment and storage medium - Google Patents

Performance test method and device of management system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114039879A
CN114039879A CN202111309035.XA CN202111309035A CN114039879A CN 114039879 A CN114039879 A CN 114039879A CN 202111309035 A CN202111309035 A CN 202111309035A CN 114039879 A CN114039879 A CN 114039879A
Authority
CN
China
Prior art keywords
file
sub
management system
package
transmitted
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
CN202111309035.XA
Other languages
Chinese (zh)
Other versions
CN114039879B (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN202111309035.XA priority Critical patent/CN114039879B/en
Publication of CN114039879A publication Critical patent/CN114039879A/en
Application granted granted Critical
Publication of CN114039879B publication Critical patent/CN114039879B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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

Abstract

The invention discloses a performance testing method and device of a management system, electronic equipment and a storage medium. The performance test method of the management system comprises the following steps: determining a target address and a file identifier for carrying out a file transmission test, wherein the file transmission test refers to testing the transmission performance when a file is transmitted from a product management system, and the type of the transmitted file comprises the following steps: uploading and downloading files; determining a target folder to be written based on the target address; transmitting at least one file sub-package from the product management system to a target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted; and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter. The invention solves the technical problem that the file transmission performance of the system cannot be tested due to the lack of a file subpackage processing mode.

Description

Performance test method and device of management system, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a performance testing method and device of a management system, electronic equipment and a storage medium.
Background
In the related technology, a product life cycle management system PLM system is mainly oriented to discrete manufacturing enterprises, and data security management and data sharing are realized on electronic documents and drawings of products. In order to ensure the performance quality of product release, many enterprises can adopt concurrent performance tests to ensure the product quality and verify whether a software system can reach performance indexes, when the current PLM system is used for concurrent performance test, the correct protocol is selected to record the script according to the protocol of the product, the line number of the recorded script code can reach hundreds of thousands of lines, when the file uploading or downloading performance test is carried out, the sizes of the file sub-packets are not consistent, the sub-packet processing is required to be carried out on the program, the file stream is randomly sub-packaged, that is, the file stream is returned by dividing a plurality of packets at random, which easily causes the messy codes of the length message of the file, the messy codes of the size message of the packet head, the PLM system of the current C/S framework, due to the lack of a specific file sub-package processing mode in the application layer, concurrent performance tests during file transmission cannot be executed.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a performance testing method and device of a management system, electronic equipment and a storage medium, which at least solve the technical problem that the file transmission performance of the system cannot be tested due to lack of a file subpackaging processing mode.
According to an aspect of an embodiment of the present invention, a performance testing method for a management system is provided, including: determining a target address and a file identifier for performing a file transfer test, wherein the file transfer test is used for testing the transfer performance of a file transferred from a product management system, and the type of the transferred file comprises: uploading and downloading files; determining a target folder to be written based on the target address; transmitting at least one file sub-package from the product management system to the target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted; and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
Optionally, the step of transmitting at least one sub-package of files from the product management system to the target folder based on the file identification comprises: determining a preset file stream to be transmitted based on the file identification; dividing the preset file stream into at least one file sub-packet; acquiring at least one file sub-package transmitted from the product management system and file parameters corresponding to each file sub-package; combining the file sub-packets based on the file parameters to form a complete preset file stream; and writing the preset file stream into the target folder.
Optionally, the file parameter includes at least one of: the method comprises the steps of data packet length, packet type, data packet sequence identification, writing position and file stream size, current packet end identification and file stream transmission end identification.
Optionally, the step of combining the file sub-packets based on the file parameters to form a complete preset file stream includes: filtering non-data sub-packets occurring in the transmission process based on a sub-packet type in the file parameters, wherein the sub-packet type comprises: data sub-packets and heartbeat packets; extracting data streams in the data sub-packets based on the data occupation space in the file parameters; determining the writing position of each data sub-packet based on the data sub-packet sequence identification in the file parameter; and combining the file sub-packets based on the writing position of each data sub-packet to form the complete preset file stream.
Optionally, after obtaining at least one file sub-package transmitted from the product management system and a file parameter corresponding to each file sub-package, the performance testing method of the management system further includes: and determining a combination completion rule of the preset file stream to be written based on the file stream size in the file parameter, wherein the combination completion rule is used for indicating a standard of file stream transmission end.
Optionally, after obtaining at least one file sub-package transmitted from the product management system and a file parameter corresponding to each file sub-package, the performance testing method of the management system further includes: and acquiring the data sub-package containing the data stream based on the data package length in the file parameter.
According to another aspect of the embodiments of the present invention, there is also provided a performance testing apparatus for a management system, including: a first determining unit, configured to determine a target address and a file identifier for performing a file transfer test, where the file transfer test is to test transfer performance when a file is transferred from a product management system, and a type of the transferred file includes: uploading and downloading files; a second determining unit, configured to determine, based on the target address, a target folder to be written; the transmission unit is used for transmitting at least one file sub-package from the product management system to the target folder based on the file identification, and acquiring file transmission parameters and network parameters when the at least one file sub-package is transmitted; and the third determining unit is used for determining the performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
Optionally, the transmission unit includes: the first determining module is used for determining a preset file stream to be transmitted based on the file identifier; the dividing module is used for dividing the preset file stream into at least one file sub-packet; the first acquisition module is used for acquiring at least one file sub-package transmitted from the product management system and file parameters corresponding to each file sub-package; the first combination module is used for combining the file sub-packets based on the file parameters to form a complete preset file stream; and the writing module is used for writing the preset file stream into the target folder.
Optionally, the file parameter includes at least one of: the method comprises the steps of data packet length, packet type, data packet sequence identification, writing position and file stream size, current packet end identification and file stream transmission end identification.
Optionally, the first assembly module comprises: a first filtering module, configured to filter non-data packets occurring during transmission based on a packet type in the file parameter, where the packet type includes: data sub-packets and heartbeat packets; the first extraction module is used for extracting the data stream in the data sub-package based on the data occupation space in the file parameters; the first determining module is used for determining the writing position of each data sub-packet based on the data sub-packet sequence identification in the file parameter; and the second combination module is used for combining the file sub-packets based on the writing position of each data sub-packet to form the complete preset file stream.
Optionally, the performance testing apparatus of the management system further includes: a fourth determining unit, configured to determine, after obtaining at least one file sub-packet transmitted from the product management system and a file parameter corresponding to each file sub-packet, a combination completion rule of the preset file stream to be written based on a file stream size in the file parameter, where the combination completion rule is used to indicate a criterion for ending file stream transmission.
Optionally, the performance testing apparatus of the management system further includes: and the second acquisition module is used for acquiring the data sub-packets containing the data streams based on the data packet length in the file parameters after acquiring at least one file sub-packet transmitted from the product management system and the file parameters corresponding to each file sub-packet.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the performance testing method of the management system of any one of the above via execution of the executable instructions.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the performance test methods of the management system described above.
In the embodiment of the invention, a target address and a file identifier for carrying out file transmission test are determined firstly, wherein the file transmission test is used for testing the transmission performance when a file is transmitted from a product management system, a target folder to be written is determined based on the target address, at least one file sub-package is transmitted from the product management system to the target folder based on the file identifier, and file transmission parameters and network parameters when the at least one file sub-package is transmitted are collected; and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter. In this embodiment, when performing a file transmission performance test of the product management system, the file stream sub-packets may be combined based on file parameters of the file sub-packets to complete a performance test of the entire file transmission process, thereby solving the technical problem that the file transmission performance of the system cannot be tested due to lack of a file sub-packet processing mode.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method for performance testing of a management system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a performance testing apparatus of an alternative management system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method can be applied to various product management systems, the PLM (product lifecycle management) of the product lifecycle management system (which is in butt joint with a product database and drawing software to carry out full lifecycle management on drawing data) is taken as an optimal product management system, and the performance test of the subpackage transmission of the files can be realized for the PLM system with the C/S architecture.
The purpose of the system performance test is to verify whether the PLM system can reach the performance index, and meanwhile, find out the existing performance bottleneck. The difficulty of the performance test of the C/S architecture is that the generated message has many file codes, the internal logic is complex, the file codes are obscure and difficult to understand, the code processing is difficult, especially the flow operation codes, and the processing of data association and interaction in the data packet codes is also included. For PLM systems, if these points are not handled well, performance testing may not be performed. For the same file transmission request, the number of the file sub-packets is random each time, and the size of the file sub-packets is also changed, so that the complete data stream can be correctly obtained from the randomly generated return text, and then written into the file, the receiving or uploading of the whole file transmission process is completed, the return of the file sub-packets is processed, and the whole process of downloading the file to the local is completed.
Example one
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for performance testing of a management system, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that illustrated herein.
Fig. 1 is a flowchart of an alternative performance testing method for a management system according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, determining a target address and a file identification for carrying out a file transmission test, wherein the file transmission test refers to testing the transmission performance when a file is transmitted from a product management system, and the type of the transmitted file comprises: uploading and downloading files;
step S104, determining a target folder to be written based on the target address;
step S106, transmitting at least one file sub-package from the product management system to a target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted;
step S108, determining the performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
Through the steps, a target address and a file identifier for carrying out a file transmission test can be determined firstly, wherein the file transmission test is used for testing the transmission performance when a file is transmitted from a product management system, a target folder to be written is determined based on the target address, at least one file sub-package is transmitted from the product management system to the target folder based on the file identifier, and file transmission parameters and network parameters when the at least one file sub-package is transmitted are collected; and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter. In this embodiment, when performing a file transmission performance test of the product management system, the file stream sub-packets may be combined based on file parameters of the file sub-packets to complete a performance test of the entire file transmission process, thereby solving the technical problem that the file transmission performance of the system cannot be tested due to lack of a file sub-packet processing mode.
The pre-collecting of the characteristics of each file sub-package in the PLM system in the embodiment includes: the data transmission method comprises a packet header identification, a packet data length of the current time, a character string, a data packet sequence label, a file length of the current time, file contents, a packet ending identification of the current time, cycle times and a file transmission completion identification.
The following describes embodiments of the present invention in detail with reference to the above-mentioned respective implementation steps.
Step S102, determining a target address and a file identification for carrying out a file transmission test, wherein the file transmission test refers to testing the transmission performance when a file is transmitted from a product management system, and the type of the transmitted file comprises: uploading files and downloading files.
In the present embodiment, the destination address may refer to a link address or a storage area address.
The file transfer operation related in this embodiment includes: uploading files and downloading files. In this embodiment, downloading a file is schematically illustrated, and for uploading a file, operations opposite to downloading a file may be understood, which are not described in detail in this application.
And step S104, determining a target folder to be written in based on the target address.
Optionally, in this embodiment, a dos command may be called to create an ex-library folder (i.e., a target folder to be written); and then calling a fopen function to open a file to be transmitted in the PLM system.
And step S106, transmitting at least one file sub-package from the product management system to a target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted.
In this embodiment, a randomly generated return message may be obtained from the product management system through the file identifier, where the return message includes at least one file sub-package.
Optionally, the step of transmitting at least one sub-package of files from the product management system to the target folder based on the file identifier includes: determining a preset file stream to be transmitted based on the file identification; dividing a preset file stream into at least one file sub-packet; acquiring at least one file sub-package transmitted from a product management system and file parameters corresponding to each file sub-package; combining the file sub-packets based on the file parameters to form a complete preset file stream; and writing the preset file stream into the target folder.
The file information to be downloaded can be determined through the file identification, and the file information comprises: file name and file address. Since the files are often transmitted in a sub-package manner when being downloaded, different file parameters need to be considered, and the purpose of the present application is to obtain the data sub-package in each transmitted file sub-package, and obtain the content of the data part (i.e. the content of the file in the PLM sub-package).
When downloading files, the sizes of the downloaded file sub-packets are different (the sizes of the transmission sub-packets are adjusted according to the network communication rate), and the sub-packet data are different (the file streams are randomly sub-packaged), so that the data combination in the file sub-packets is realized by considering the file parameters of different file sub-packets, and the final file stream is obtained.
Alternatively, the file parameter includes at least one of: the method comprises the steps of data packet length, packet type, data packet sequence identification, writing position and file stream size, current packet end identification and file stream transmission end identification.
Optionally, the step of combining the file sub-packets based on the file parameters to form a complete preset file stream includes: filtering non-data sub-packets occurring in the transmission process based on the sub-packet type in the file parameter, wherein the sub-packet type comprises: data sub-packets and heartbeat packets; extracting data streams in the data sub-packets based on the data occupation space in the file parameters; determining the writing position of each data sub-packet based on the data sub-packet sequence identification in the file parameter; and combining the file sub-packets based on the writing position of each data sub-packet to form a complete preset file stream.
In this embodiment, when filtering non-data packets occurring in the transmission process based on the packet type in the file parameter, the heartbeat packet in the non-data packets is mainly filtered, and since the heartbeat packet reports the network communication state and the thread condition and is not associated with file transmission, the non-data packets such as the heartbeat packet do not need to be considered.
Through the data sub-package sequence identification in the file parameter, the writing position of the data sub-package corresponding to the sequence identification can be known, and after all the data sub-packages and the writing position of each data sub-package are obtained, the data sub-package arrangement can be completed, and the file stream to be transmitted is obtained.
In this embodiment, after obtaining at least one file sub-package transmitted from the product management system and a file parameter corresponding to each file sub-package, the method for testing performance of the management system further includes: and determining a combination completion rule of the preset file stream to be written based on the size of the file stream in the file parameter, wherein the combination completion rule is used for indicating the standard of the transmission end of the file stream.
Optionally, after obtaining at least one file sub-package transmitted from the product management system and a file parameter corresponding to each file sub-package, the performance testing method of the management system further includes: and acquiring the data sub-package containing the data stream based on the data package length in the file parameter.
The method and the device can correctly acquire the complete data stream from the randomly generated return message, write the complete data stream into the file, complete the receiving of the whole file transmission process, process the sub-packet return of the file stream, and complete the whole process of downloading the file to the local.
Step S108, determining the performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
The performance test results in this embodiment include: whether the downloaded file is correct or not, and testing response time and throughput of downloading.
Embodiments of the invention are described below in conjunction with another specific embodiment.
1) Calling a dos command to create an ex-warehouse folder;
2) calling fopen function to open a file;
3) acquiring the size of the fi _ s size of the returned file (judging whether the file content is acquired completely) to judge the cycle number;
4) acquiring the length of a data packet for receiving a return message;
5) acquiring data packet sequence labels, and judging a writing position by combining the PLM fixed packet size;
6) acquiring the file length (the length of a file byte in a data packet) to acquire the file content;
7) calling a fwrite function, and writing a file which is opened in advance;
8) repeatedly executing 4), 5), 6) and 7) according to the cycle times;
9) fclose closes the file.
By the embodiment, the performance test is carried out on the file transmission condition of the product management system (namely the product life cycle management system), the file content/data content of different file sub-packages can be obtained based on the characteristics of the file sub-packages, the file receiving is realized, the file stream sub-packages are returned to be processed, the whole process of downloading the file to the local is completed, and the performance test of the concurrent file sub-package transmission of the PLM system is realized.
Example two
The embodiment provides a performance testing device of a management system, and the implementation device comprises a plurality of implementation units which respectively correspond to the implementation steps in the first embodiment.
Fig. 2 is a schematic diagram of an alternative performance testing apparatus for a management system according to an embodiment of the present invention, and as shown in fig. 2, the apparatus may include: a first determining unit 21, a second determining unit 23, a transmitting unit 25, a third determining unit 27, wherein,
a first determining unit 21, configured to determine a target address and a file identifier for performing a file transfer test, where the file transfer test is to test transfer performance when a file is transferred from a product management system, and the type of the transferred file includes: uploading and downloading files;
a second determining unit 23, configured to determine, based on the target address, a target folder to be written;
the transmission unit 25 is used for transmitting at least one file sub-package from the product management system to a target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted;
a third determining unit 27 for determining a result of the performance test when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
The performance testing device of the management system may first determine, by the first determining unit 21, a target address and a file identifier for performing a file transmission test, where the file transmission test is to test transmission performance when a file is transmitted from the product management system, determine, by the second determining unit 23, a target folder to be written based on the target address, transmit, by the transmitting unit 25, at least one file sub-package from the product management system to the target folder based on the file identifier, and acquire a file transmission parameter and a network parameter when the at least one file sub-package is transmitted; the result of the performance test when the file is transmitted from the product management system is determined by the third determination unit 27 based on the file transmission parameter and the network parameter. In this embodiment, when performing a file transmission performance test of the product management system, the file stream sub-packets may be combined based on file parameters of the file sub-packets to complete a performance test of the entire file transmission process, thereby solving the technical problem that the file transmission performance of the system cannot be tested due to lack of a file sub-packet processing mode.
Optionally, the transmission unit includes: the first determining module is used for determining a preset file stream to be transmitted based on the file identifier; the dividing module is used for dividing the preset file stream into at least one file sub-packet; the first acquisition module is used for acquiring at least one file sub-package transmitted from the product management system and file parameters corresponding to each file sub-package; the first combination module is used for combining the file sub-packets based on the file parameters to form a complete preset file stream; and the writing module is used for writing the preset file stream into the target folder.
Optionally, the file parameter comprises at least one of: the method comprises the steps of data packet length, packet type, data packet sequence identification, writing position and file stream size, current packet end identification and file stream transmission end identification.
Optionally, the first assembly module comprises: the first filtering module is used for filtering non-data sub-packets occurring in the transmission process based on the sub-packet type in the file parameters, wherein the sub-packet type comprises: data sub-packets and heartbeat packets; the first extraction module is used for extracting data streams in the data sub-packets based on the data occupation space in the file parameters; the first determining module is used for determining the writing position of each data sub-packet based on the data sub-packet sequence identification in the file parameter; and the second combination module is used for combining the file sub-packets based on the writing position of each data sub-packet to form a complete preset file stream.
Optionally, the performance testing apparatus of the management system further includes: and the fourth determining unit is used for determining a combination completion rule of the preset file stream to be written based on the file stream size in the file parameters after acquiring at least one file sub-packet transmitted from the product management system and the file parameters corresponding to each file sub-packet, wherein the combination completion rule is used for indicating the standard of the end of the file stream transmission.
Optionally, the performance testing apparatus of the management system further includes: and the second acquisition module is used for acquiring the data sub-package containing the data stream based on the length of the data package in the file parameters after acquiring at least one file sub-package transmitted from the product management system and the file parameters corresponding to each file sub-package.
The performance testing device of the management system may further include a processor and a memory, where the first determining unit 21, the second determining unit 23, the transmitting unit 25, the third determining unit 27, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more, and the performance test result when the file is transmitted from the product management system is determined based on the file transmission parameter and the network parameter by adjusting the kernel parameter.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the performance testing method of the management system of any one of the above via execution of the executable instructions.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the performance test methods of the management system.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: determining a target address and a file identifier for carrying out a file transmission test, wherein the file transmission test refers to testing the transmission performance when a file is transmitted from a product management system, and the type of the transmitted file comprises the following steps: uploading and downloading files; determining a target folder to be written based on the target address; transmitting at least one file sub-package from the product management system to a target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted; and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A performance testing method of a management system is characterized by comprising the following steps:
determining a target address and a file identifier for performing a file transfer test, wherein the file transfer test is used for testing the transfer performance of a file transferred from a product management system, and the type of the transferred file comprises: uploading and downloading files;
determining a target folder to be written based on the target address;
transmitting at least one file sub-package from the product management system to the target folder based on the file identification, and collecting file transmission parameters and network parameters when the at least one file sub-package is transmitted;
and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
2. The method of claim 1, wherein transmitting at least one sub-package of files from the product management system to the target folder based on the file identification comprises:
determining a preset file stream to be transmitted based on the file identification;
dividing the preset file stream into at least one file sub-packet;
acquiring at least one file sub-package transmitted from the product management system and file parameters corresponding to each file sub-package;
combining the file sub-packets based on the file parameters to form a complete preset file stream;
and writing the preset file stream into the target folder.
3. The method of claim 2, wherein the file parameters include at least one of: the method comprises the steps of data packet length, packet type, data packet sequence identification, writing position and file stream size, current packet end identification and file stream transmission end identification.
4. The method of claim 3, wherein the step of combining the file sub-packets to form the complete predetermined file stream based on the file parameters comprises:
filtering non-data sub-packets occurring in the transmission process based on a sub-packet type in the file parameters, wherein the sub-packet type comprises: data sub-packets and heartbeat packets;
extracting data streams in the data sub-packets based on the data occupation space in the file parameters;
determining the writing position of each data sub-packet based on the data sub-packet sequence identification in the file parameter;
and combining the file sub-packets based on the writing position of each data sub-packet to form the complete preset file stream.
5. The method of claim 3, wherein after obtaining at least one of the document sub-packages transmitted from the product management system and the document parameters corresponding to each of the document sub-packages, the method for testing the performance of the management system further comprises:
and determining a combination completion rule of the preset file stream to be written based on the file stream size in the file parameter, wherein the combination completion rule is used for indicating a standard of file stream transmission end.
6. The method of claim 3, wherein after obtaining at least one of the document sub-packages transmitted from the product management system and the document parameters corresponding to each of the document sub-packages, the method for testing the performance of the management system further comprises:
and acquiring the data sub-package containing the data stream based on the data package length in the file parameter.
7. A performance testing apparatus for a management system, comprising:
a first determining unit, configured to determine a target address and a file identifier for performing a file transfer test, where the file transfer test is to test transfer performance when a file is transferred from a product management system, and a type of the transferred file includes: uploading and downloading files;
a second determining unit, configured to determine, based on the target address, a target folder to be written;
the transmission unit is used for transmitting at least one file sub-package from the product management system to the target folder based on the file identification, and acquiring file transmission parameters and network parameters when the at least one file sub-package is transmitted;
and the third determining unit is used for determining the performance test result when the file is transmitted from the product management system based on the file transmission parameter and the network parameter.
8. The apparatus of claim 7, wherein the transmission unit comprises:
the first determining module is used for determining a preset file stream to be transmitted based on the file identifier;
the dividing module is used for dividing the preset file stream into at least one file sub-packet;
the first acquisition module is used for acquiring at least one file sub-package transmitted from the product management system and file parameters corresponding to each file sub-package;
the first combination module is used for combining the file sub-packets based on the file parameters to form a complete preset file stream;
and the writing module is used for writing the preset file stream into the target folder.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of performance testing of the management system of any of claims 1 to 6 via execution of the executable instructions.
10. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls a device to execute the performance testing method of the management system according to any one of claims 1 to 6.
CN202111309035.XA 2021-11-05 2021-11-05 Performance test method and device of management system, electronic equipment and storage medium Active CN114039879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111309035.XA CN114039879B (en) 2021-11-05 2021-11-05 Performance test method and device of management system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111309035.XA CN114039879B (en) 2021-11-05 2021-11-05 Performance test method and device of management system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114039879A true CN114039879A (en) 2022-02-11
CN114039879B CN114039879B (en) 2023-05-05

Family

ID=80143122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111309035.XA Active CN114039879B (en) 2021-11-05 2021-11-05 Performance test method and device of management system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114039879B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120136838A1 (en) * 2010-11-30 2012-05-31 Moyer Jeffrey E Mechanism for performing automated data integrity verification testing for file systems
CN106255141A (en) * 2016-08-03 2016-12-21 珠海市魅族科技有限公司 A kind of method of testing and test device
CN112748877A (en) * 2020-12-30 2021-05-04 华录光存储研究院(大连)有限公司 File integration uploading method and device and file downloading method and device
CN112953983A (en) * 2019-12-10 2021-06-11 中盈优创资讯科技有限公司 SFTP transmission method and device
CN113132489A (en) * 2021-04-22 2021-07-16 中国工商银行股份有限公司 Method, device, computing equipment and medium for downloading file
CN113485921A (en) * 2021-06-30 2021-10-08 网易(杭州)网络有限公司 File system test method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120136838A1 (en) * 2010-11-30 2012-05-31 Moyer Jeffrey E Mechanism for performing automated data integrity verification testing for file systems
CN106255141A (en) * 2016-08-03 2016-12-21 珠海市魅族科技有限公司 A kind of method of testing and test device
CN112953983A (en) * 2019-12-10 2021-06-11 中盈优创资讯科技有限公司 SFTP transmission method and device
CN112748877A (en) * 2020-12-30 2021-05-04 华录光存储研究院(大连)有限公司 File integration uploading method and device and file downloading method and device
CN113132489A (en) * 2021-04-22 2021-07-16 中国工商银行股份有限公司 Method, device, computing equipment and medium for downloading file
CN113485921A (en) * 2021-06-30 2021-10-08 网易(杭州)网络有限公司 File system test method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114039879B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US6804796B2 (en) Method and test tool for verifying the functionality of a software based unit
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
CN107436844B (en) Method and device for generating interface use case aggregate
CN104503745B (en) A kind of method and apparatus generated using channel packet
US20130232137A1 (en) Method and apparatus for analysing data packets
CN105303112B (en) The detection method and device of component call loophole
CN105787364B (en) Automatic testing method, device and system for tasks
CN107977473B (en) Logback-based distributed system log retrieval method and system
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN112822260B (en) File transmission method and device, electronic equipment and storage medium
CN106330788B (en) Message fragment transmission method and device
CN106210032A (en) The method and device reported based on terminal data batch
CN104518968B (en) The method and Transparent proxy server of a kind of Message processing
CN106953860A (en) A kind of data scanning method and scanning server
CN108076017A (en) The protocol analysis method and device of a kind of data packet
CN103986788A (en) Data fetching method and device of OTT (over the top) application
CN105227351B (en) Log acquisition system, journal obtaining method and electronic equipment
CN114039879A (en) Performance test method and device of management system, electronic equipment and storage medium
CN105094810B (en) Data processing method and device based on CGI(Common gateway interface) plug-in unit
CN111209266A (en) Auditing method and device based on Redis database and electronic equipment
CN114500348B (en) CDN gateway testing method and system
CN102624547A (en) Method, device and system for managing IM (Instant Messaging) online behavior
CN107395652A (en) A kind of integrity of data stored inspection method, apparatus and system
CN108712394B (en) Radio frequency identification method and label
CN109688043B (en) IMAP protocol multi-link association analysis method and system

Legal Events

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