CN114039879B - 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
CN114039879B
CN114039879B CN202111309035.XA CN202111309035A CN114039879B CN 114039879 B CN114039879 B CN 114039879B CN 202111309035 A CN202111309035 A CN 202111309035A CN 114039879 B CN114039879 B CN 114039879B
Authority
CN
China
Prior art keywords
file
sub
management system
stream
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111309035.XA
Other languages
Chinese (zh)
Other versions
CN114039879A (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 test 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 identification for performing a file transfer test, wherein 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 comprises: uploading files 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 transmitting the at least one file sub-package; based on the file transfer parameters and the network parameters, performance test results are determined when the file is transferred from the product management system. The invention solves the technical problem that the file transmission performance of the system cannot be tested due to the lack of a file sub-packaging processing mode.

Description

Performance test method and device of management system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a performance testing method and apparatus for a management system, an electronic device, and a storage medium.
Background
In the related technology, for a product life cycle management system PLM system, the system is mainly oriented to a discrete manufacturing enterprise, and data security management and data sharing of electronic documents and drawings of products are realized. In order to ensure the performance quality of product release, many enterprises can adopt concurrent performance test to ensure the quality of the product, the purpose of the concurrent performance test verifies whether a software system can reach performance indexes, when the current PLM system performs the concurrent performance test, a correct protocol is selected to record scripts according to a protocol of the product, the number of lines of recorded script codes can reach hundreds of thousands of lines, when the performance test is performed on file uploading or downloading, the size of the file sub-packets is inconsistent, the program needs to perform sub-packet processing, and the file stream is randomly sub-packet-packaged, namely, a plurality of packets are randomly divided and returned to the file stream, so that messy codes of file length messages and messy codes of packet header size messages are easily caused, and the PLM system of the current C/S architecture cannot execute the concurrent performance test when the file is transmitted due to the fact that the application layer lacks a specific file sub-packet processing mode.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a performance test 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 the lack of a file sub-packaging processing mode.
According to an aspect of an embodiment of the present invention, there is provided a performance test method of a management system, including: determining a target address and a file identification for performing a file transfer test, wherein 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 comprises: uploading files 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 transmitting the at least one file sub-package; and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameters and the network parameters.
Optionally, the step of transmitting at least one file sub-package from the product management system to the target folder based on the file identification includes: 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; based on the file parameters, combining the file sub-packets to form a complete preset file stream; and writing the preset file stream into the target folder.
Optionally, the file parameters include at least one of: the data packet length, the packetization type, the data packetization sequence identifier, the writing position and the file stream size, the packetization ending identifier of this time and the file stream transmission ending identifier.
Optionally, based on the file parameters, the step of combining the file sub-packets to form the complete preset file stream includes: filtering non-data packetization occurring during transmission based on the packetization type in the file parameter, wherein the packetization type comprises: data packet and heartbeat packet; extracting a data stream in the data sub-packet based on the data occupation space in the file parameter; determining the writing position of each data sub-packet based on the data sub-packet sequence identifier 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 acquiring at least one sub-package of the file transmitted from the product management system and the file parameter corresponding to each sub-package of the file, the performance test 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 the standard of ending file stream transmission.
Optionally, after acquiring at least one sub-package of the file transmitted from the product management system and the file parameter corresponding to each sub-package of the file, the performance test method of the management system further includes: and acquiring the data package containing the data stream based on the data package length in the file parameter.
According to another aspect of the embodiment of the present invention, there is also provided a performance test apparatus of 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 a transfer performance when a file is transferred from a product management system, and a type of the transferred file includes: uploading files and downloading files; a second determining unit configured to determine a target folder to be written based on the target address; a transmission unit, configured to transmit at least one file sub-package from the product management system to the target folder based on the file identifier, and collect file transmission parameters and network parameters when transmitting the at least one file sub-package; and a third determining unit for 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 transmission unit includes: the first determining module is used for determining a preset file stream to be transmitted based on the file identification; 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 parameters include at least one of: the data packet length, the packetization type, the data packetization sequence identifier, the writing position and the file stream size, the packetization ending identifier of this time and the file stream transmission ending identifier.
Optionally, the first combining module includes: the first filtering module is configured to filter non-data packetization occurring in a transmission process based on a packetization type in the file parameter, where the packetization type includes: data packet and heartbeat packet; the first extraction module is used for extracting a data stream in the data sub-packet based on the data occupied space in the file parameter; 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: and a fourth determining unit, configured to determine, after acquiring at least one sub-packet of a file transmitted from the product management system and a file parameter corresponding to each sub-packet of the file, 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 for indicating a standard 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-package containing the data stream based on the data packet length in the file parameters after acquiring at least one file sub-package and the file parameters corresponding to each file sub-package transmitted from the product management system.
According to another aspect of the embodiment 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 embodiment of the present invention, there is further provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, a device where the computer readable storage medium is controlled to execute the performance test method of the management system described in any one of the foregoing.
In the embodiment of the invention, a target address and a file identification for carrying out a file transmission test are determined, wherein the file transmission test is to test 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 identification, and file transmission parameters and network parameters when the at least one file sub-package is transmitted are acquired; based on the file transfer parameters and the network parameters, performance test results are determined when the file is transferred from the product management system. In the embodiment, when the file transmission performance test of the product management system is performed, the file stream sub-packets are combined based on the file parameters of the file sub-packets to complete the performance test of the whole file transmission process, so that the technical problem that the file transmission performance of the system cannot be tested due to the lack of a file sub-packet processing mode is solved.
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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of performance testing of a management system according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative management system performance testing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 and the device can be applied to various product management systems, a product life cycle management system PLM (interfacing with a product database and drawing software, carrying out full life cycle management on drawing data) is used as a preferable product management system, and a schematic description is provided, so that the performance test of file sub-package transmission can be realized for the PLM system of a C/S architecture.
The purpose of the system performance test is to verify whether the PLM system is able to reach performance metrics while discovering the performance bottlenecks that exist. The performance test of the C/S architecture has the problems that the file code generated by the message has a plurality of lines, the internal logic is complex and obscure, the code processing is difficult, and particularly, the flow operation code also comprises the processing of data association and interaction in the data packet code. For PLM systems, these points, if not handled well, can result in performance testing not being performed. For the same file transmission request, the number of the file sub-packets is random, and the size of the file sub-packets is also changed.
Example 1
According to an embodiment of the present invention, there is provided a performance testing method embodiment of a management system, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
FIG. 1 is a flow chart of an alternative method of testing performance of a management system according to an embodiment of the invention, as shown in FIG. 1, the method comprising the steps of:
step S102, determining a target address and a file identifier for performing a file transfer test, wherein 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 comprises: uploading files 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 the target folder based on the file identification, and collecting file transmission parameters and network parameters when transmitting the at least one file sub-package;
step S108, based on the file transmission parameters and the network parameters, determining the performance test result when the file is transmitted from the product management system.
Through the steps, the target address and the file identification of the file transmission test can be determined, wherein the file transmission test is to test the transmission performance when the file is transmitted from the product management system, the 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 identification, and the file transmission parameters and the network parameters when the at least one file sub-package is transmitted are acquired; based on the file transfer parameters and the network parameters, performance test results are determined when the file is transferred from the product management system. In the embodiment, when the file transmission performance test of the product management system is performed, the file stream sub-packets are combined based on the file parameters of the file sub-packets to complete the performance test of the whole file transmission process, so that the technical problem that the file transmission performance of the system cannot be tested due to the lack of a file sub-packet processing mode is solved.
The feature of pre-collecting each sub-package of the files in the PLM system in this embodiment includes: the method comprises the steps of packet header identification, current packet data length, character strings, data packet sequence labels, current file length, file content, current packet end identification, circulation times and file transmission completion identification.
Embodiments of the present invention will be described in detail below with reference to the foregoing steps.
Step S102, determining a target address and a file identifier for performing a file transfer test, wherein 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 comprises: uploading files and downloading files.
In this embodiment, the destination address may refer to a link address or a storage area address.
The file transfer operation involved in the present embodiment includes: uploading files and downloading files. The downloading file is schematically illustrated in this embodiment, and for uploading the file, the operation opposite to the downloading file may be understood, which is not described in detail in this application.
Step S104, determining a target folder to be written based on the target address.
Alternatively, in this embodiment, a library folder (i.e., a target folder to be written) may be created by calling a dos command; then call the fopen function and open a file to be transferred in the PLM system.
Step S106, 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 transmitting the at least one file sub-package.
In this embodiment, the randomly generated return message may be obtained from the product management system by the file identifier, where the return message includes at least one file sub-packet.
Optionally, the step of transmitting at least one file sub-package from the product management system to the target folder based on the file identification 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-package; acquiring at least one file sub-package transmitted from a product management system and file parameters corresponding to each file sub-package; based on the file parameters, combining the file sub-packets 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 file is often transferred in packets during downloading, different file parameters need to be considered, and the purpose of the present application is to obtain the data packets in each transferred file packet, and obtain the content of the data portion (i.e. the file content in the PLM packet).
When downloading the file, the downloaded file sub-packets are different in size (the transmission sub-packet size is adjusted according to the network communication rate), and the sub-packet data are also different (the file stream is randomly sub-packet), so that the file parameters of different file sub-packets need to be considered, the data combination in the file sub-packets is realized, and the final file stream is obtained.
Alternatively, the file parameters include at least one of: the data packet length, the packetization type, the data packetization sequence identifier, the writing position and the file stream size, the packetization ending identifier of this time and the file stream transmission ending identifier.
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 packetization occurring during transmission based on packetization types in the file parameters, wherein the packetization types include: data packet and heartbeat packet; extracting data flow in 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; based on the writing position of each data sub-packet, the file sub-packets are combined to form a complete preset file stream.
In this embodiment, when filtering non-data packets occurring during transmission based on the packet type in the file parameter, heartbeat packets in the non-data packets are filtered, and because the heartbeat packets are reported in a network communication state and a thread condition, and are not associated with file transmission, the non-data packets such as heartbeat packets do not need to be considered.
By means of the data sub-packet sequence identification in the file parameters, the writing position of the data sub-packet corresponding to the sequence identification can be known, and after all the data sub-packets and the writing position of each data sub-packet are obtained, data sub-packet arrangement can be completed, and the file stream to be transmitted is obtained.
In this embodiment, after obtaining at least one file sub-packet and a file parameter corresponding to each file sub-packet transmitted from the product management system, the performance test 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 the standard of ending the file stream transmission.
Optionally, after acquiring at least one file sub-packet and a file parameter corresponding to each file sub-packet transmitted from the product management system, the performance test method of the management system further includes: based on the packet length in the file parameters, a data packet containing the data stream is obtained.
The method and the device can accurately acquire complete data flow from the randomly generated return message, write the complete data flow into the file, finish the receiving of the whole file transmission process, process the return of the file flow subpackage and finish the downloading of the file to the local whole process.
Step S108, based on the file transmission parameters and the network parameters, determining the performance test result when the file is transmitted from the product management system.
The performance test results in this embodiment include: whether the downloaded file is correct, testing the response time and throughput of the download.
An embodiment of the present invention will be described with reference to another specific embodiment.
1) Invoking dos command to create a library folder;
2) Calling a fopen function, and opening a file;
3) Acquiring the size of fi le_s ize of the returned file (judging whether the file content is acquired or not) for judging the cycle times;
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 sub-packet size;
6) Acquiring file length (file byte length in a data packet) for acquiring file content;
7) Calling an fwrite function, and writing a file which is opened in advance;
8) Repeating 4), 5), 6), 7) according to the number of the loops;
9) Fclose closes the file.
Through the embodiment, the performance test is performed 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 solved.
Example two
The present embodiment provides a performance test apparatus for a management system, where the performance test apparatus includes a plurality of implementation units corresponding to the implementation steps in the first embodiment.
FIG. 2 is a schematic diagram of an alternative management system performance testing apparatus according to an embodiment of the invention, as shown in FIG. 2, which may include: a first determination unit 21, a second determination unit 23, a transmission unit 25, a third determination unit 27, wherein,
a first determining unit 21 for determining a destination address and a file identification for performing a file transfer test, wherein the file transfer test is a test of transfer performance when a file is transferred from the product management system, and the type of the transferred file includes: uploading files and downloading files;
a second determining unit 23 for determining a target folder to be written based on the target address;
a transmission unit 25 for 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 at the time of transmitting the at least one file sub-package;
a third determining unit 27 for determining a performance test result when the file is transferred from the product management system based on the file transfer parameter and the network parameter.
The performance test device of the management system may first determine, by using the first determining unit 21, a target address and a file identifier for performing a file transfer test, where the file transfer test is to test a transfer performance when a file is transferred from the product management system, determine, by using the second determining unit 23, a target folder to be written based on the target address, transfer, by using the transferring unit 25, at least one file packet from the product management system to the target folder based on the file identifier, and collect a file transfer parameter and a network parameter when the at least one file packet is transferred; the performance test result at the time of transferring the file from the product management system is determined by the third determination unit 27 based on the file transfer parameter and the network parameter. In the embodiment, when the file transmission performance test of the product management system is performed, the file stream sub-packets are combined based on the file parameters of the file sub-packets to complete the performance test of the whole file transmission process, so that the technical problem that the file transmission performance of the system cannot be tested due to the lack of a file sub-packet processing mode is solved.
Optionally, the transmission unit includes: the first determining module is used for determining a preset file stream to be transmitted based on the file identification; the division 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-packet transmitted from the product management system and file parameters corresponding to each file sub-packet; 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 parameters include at least one of: the data packet length, the packetization type, the data packetization sequence identifier, the writing position and the file stream size, the packetization ending identifier of this time and the file stream transmission ending identifier.
Optionally, the first combining module includes: the first filtering module is configured to filter non-data packetization occurring during a transmission process based on a packetization type in the file parameter, where the packetization type includes: data packet and heartbeat packet; the first extraction module is used for extracting data streams in the data sub-packets based on the data occupied 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 test device of the management system further includes: and a fourth determining unit, configured to determine a combination completion rule of a preset file stream to be written, based on a file stream size in the file parameters, after acquiring at least one file sub-packet transmitted from the product management system and the file parameter corresponding to each file sub-packet, where the combination completion rule is used for indicating a standard for ending file stream transmission.
Optionally, the performance test device 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 data packet length in the file parameters after acquiring at least one file sub-package and the file parameters corresponding to each file sub-package transmitted from the product management system.
The performance test apparatus of the management system may further include a processor and a memory, wherein 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 the corresponding functions.
The processor includes a kernel, and the kernel fetches a corresponding program unit from the memory. The kernel may be configured with one or more kernel parameters to determine performance test results when transferring files from the product management system based on file transfer parameters and network parameters by adjusting the kernel parameters.
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), which includes at least one memory chip.
According to another aspect of the embodiment 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 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, including a stored computer program, where the computer program when executed controls a device in which the computer readable storage medium is located to execute the performance test method of the management system of any one of the above.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: determining a target address and a file identification for performing a file transfer test, wherein 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 comprises: uploading files 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 transmitting the at least one file sub-package; based on the file transfer parameters and the network parameters, performance test results are determined when the file is transferred from the product management system.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the 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, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (9)

1. A performance testing method of a management system, comprising:
determining a target address and a file identification for performing a file transfer test, wherein 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 comprises: uploading files and downloading files;
determining a target folder to be written based on the target address;
transmitting at least one sub-package of a file from the product management system to the target folder based on the file identification, and collecting file transmission parameters and network parameters when transmitting the at least one sub-package of a file, wherein the step of transmitting the at least one sub-package of a file 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 identifier, dividing the preset file stream into at least one file sub-packet, acquiring at least one file sub-packet transmitted from the product management system and file parameters corresponding to each file sub-packet, 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;
and determining a performance test result when the file is transmitted from the product management system based on the file transmission parameters and the network parameters.
2. The method of claim 1, wherein the file parameters include at least one of: the data packet length, the packetization type, the data packetization sequence identifier, the writing position and the file stream size, the packetization ending identifier of this time and the file stream transmission ending identifier.
3. The method of claim 2, wherein the step of combining the sub-packets of the file to form the complete pre-set file stream based on the file parameters comprises:
filtering non-data packetization occurring during transmission based on the packetization type in the file parameter, wherein the packetization type comprises: data packet and heartbeat packet;
extracting a data stream in the data sub-packet based on the data occupation space in the file parameter;
determining the writing position of each data sub-packet based on the data sub-packet sequence identifier 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.
4. The method of claim 2, wherein after acquiring at least one sub-package of files transmitted from the product management system and file parameters corresponding to each of the sub-packages of files, the performance testing method 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 the standard of ending file stream transmission.
5. The method of claim 2, wherein after acquiring at least one sub-package of files transmitted from the product management system and file parameters corresponding to each of the sub-packages of files, the performance testing method of the management system further comprises:
and acquiring the data package containing the data stream based on the data package length in the file parameter.
6. A performance testing apparatus of 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 a transfer performance when a file is transferred from a product management system, and a type of the transferred file includes: uploading files and downloading files;
a second determining unit configured to determine a target folder to be written based on the target address;
a transmission unit for 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 at the time of transmitting the at least one file sub-package, the transmission unit comprising: the system comprises a first determining module, a dividing module, a first obtaining module, a first combining module and a writing module, wherein the first determining module is used for determining a preset file stream to be transmitted based on the file identification, the dividing module is used for dividing the preset file stream into at least one file sub-packet, the first obtaining module is used for obtaining at least one file sub-packet transmitted from the product management system and file parameters corresponding to each file sub-packet, the first combining 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;
and a third determining unit for 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.
7. The apparatus of claim 6, wherein the transmission unit comprises:
the first determining module is used for determining a preset file stream to be transmitted based on the file identification;
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.
8. An electronic device, comprising:
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 claims 1 to 5 via execution of the executable instructions.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the performance test method of the management system according to any one of claims 1 to 5.
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 CN114039879A (en) 2022-02-11
CN114039879B true 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112748877A (en) * 2020-12-30 2021-05-04 华录光存储研究院(大连)有限公司 File integration uploading method and device and file downloading method and device
CN113485921A (en) * 2021-06-30 2021-10-08 网易(杭州)网络有限公司 File system test method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838548B2 (en) * 2010-11-30 2014-09-16 Red Hat, Inc. 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
CN113132489A (en) * 2021-04-22 2021-07-16 中国工商银行股份有限公司 Method, device, computing equipment and medium for downloading file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112748877A (en) * 2020-12-30 2021-05-04 华录光存储研究院(大连)有限公司 File integration uploading method and device and file downloading method and device
CN113485921A (en) * 2021-06-30 2021-10-08 网易(杭州)网络有限公司 File system test method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114039879A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US6804796B2 (en) Method and test tool for verifying the functionality of a software based unit
CN112714047B (en) Industrial control protocol flow based test method, device, equipment and storage medium
EP2868045B1 (en) A method of and network server for detecting data patterns in an input data stream
US10802955B2 (en) Test bundling and batching optimizations
CN109743312B (en) Method, system, terminal and medium for dynamically analyzing data of configuration file
CN106649164A (en) Hardware interface management method
CN108924159B (en) Verification method and device of message feature recognition library
CN108234345A (en) A kind of traffic characteristic recognition methods of terminal network application, device and system
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN114039879B (en) Performance test method and device of management system, electronic equipment and storage medium
CN112637005B (en) Flow playback method and device, computer equipment and storage medium
CN108512889A (en) A kind of application response method for pushing and proxy server based on HTTP
CN114500348B (en) CDN gateway testing method and system
CN112269803B (en) Data set filling method and system
CN109697072A (en) Information processing method, device and equipment
CN110471830A (en) A kind of program testing method, device and electronic equipment
CN114157662A (en) Cloud platform parameter adaptation method and device, terminal equipment and storage medium
CN108712394B (en) Radio frequency identification method and label
CN112199279A (en) Full-link inspection method and device
CN114205276B (en) Performance test method and device for product management system and electronic equipment
CN116384956B (en) Message batch sending method, device, equipment and storage medium
CN107678928A (en) The processing method and server of application program
CN111355693B (en) Proxy service realization method, device, electronic equipment and storage medium
CN117743111A (en) Performance test method and device, storage medium and electronic equipment
CN117743167A (en) Test method and device based on functional interface

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