CN114780404A - Performance test method, apparatus, storage medium and program product for archiving system - Google Patents

Performance test method, apparatus, storage medium and program product for archiving system Download PDF

Info

Publication number
CN114780404A
CN114780404A CN202210427626.5A CN202210427626A CN114780404A CN 114780404 A CN114780404 A CN 114780404A CN 202210427626 A CN202210427626 A CN 202210427626A CN 114780404 A CN114780404 A CN 114780404A
Authority
CN
China
Prior art keywords
medical image
image retrieval
retrieval requests
feedback information
filing
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.)
Pending
Application number
CN202210427626.5A
Other languages
Chinese (zh)
Inventor
夏先富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan United Imaging Healthcare Co Ltd
Original Assignee
Wuhan United Imaging Healthcare Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan United Imaging Healthcare Co Ltd filed Critical Wuhan United Imaging Healthcare Co Ltd
Priority to CN202210427626.5A priority Critical patent/CN114780404A/en
Publication of CN114780404A publication Critical patent/CN114780404A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The present application relates to a performance testing method, apparatus, storage medium and program product for an archiving system. The method comprises the following steps: generating a plurality of medical image retrieval requests based on a preset test frame, and sending the plurality of medical image retrieval requests to a filing device; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the performance test of the filing equipment according to the feedback information. By adopting the method, the accuracy of the performance test of the medical image archiving system can be improved.

Description

Performance test method, device, storage medium and program product for archiving system
Technical Field
The present application relates to the field of medical imaging technologies, and in particular, to a method, an apparatus, a storage medium, and a program product for testing performance of an archiving system.
Background
A Picture Archiving and Communication Systems (PACS) is a system applied to hospital image departments, and is mainly used for storing various daily-generated medical images in a digital manner and facilitating subsequent retrieval. In order to ensure the efficiency of the user for retrieving the medical images, it is usually necessary to perform performance tests on the retrieval function of the medical image archiving system in advance, for example, to test the retrieval speed, retrieval stability and other performances of the medical image archiving system.
However, the performance test methods of the existing medical image archiving system have the problem of low accuracy.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, a storage medium, and a program product for testing the performance of a medical image archiving system, which can improve the accuracy of the performance test of the medical image archiving system.
In a first aspect, the present application provides a performance testing method for an archiving system, which is applied to a testing device. The method comprises the following steps:
generating a plurality of medical image retrieval requests based on a preset test frame, and sending the plurality of medical image retrieval requests to a filing device; the medical image identifiers carried in the different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying the corresponding medical image data; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the filing equipment for performing performance test according to the feedback information.
In one embodiment, the generating a plurality of medical image retrieval requests based on a preset test frame comprises:
generating a user information query request based on a preset test frame, and sending the user information query request to the filing equipment; and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information inquiry request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifiers.
In one embodiment, the generating the medical image retrieval request according to the plurality of medical image identifications correspondingly comprises:
and splicing each medical image identifier and the user information query request to obtain each medical image retrieval request.
In one embodiment, the method further includes:
and determining whether the data volume of the feedback information is consistent with a preset data volume threshold value, if so, determining that the feedback information contains the medical image data, and if not, determining that the feedback information does not contain the medical image data.
In one embodiment, the preset test framework is used for cumulatively generating a preset number of medical image retrieval requests;
sending a plurality of medical image retrieval requests to a filing device, comprising:
and if the number of the medical image retrieval requests reaches the preset number, simultaneously sending the plurality of medical image retrieval requests to the filing equipment.
In a second aspect, the application further provides a performance testing device of the filing system. The device comprises:
the sending module is used for generating a plurality of medical image retrieval requests based on a preset test frame and sending the plurality of medical image retrieval requests to the filing equipment; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data;
and the receiving module is used for receiving the feedback information generated by the filing equipment according to the medical image retrieval requests and determining a performance test result for performing performance test on the filing equipment according to the feedback information.
In a third aspect, the present application further provides a performance testing method for an archiving system, which is applied to the archiving system. The method comprises the following steps:
receiving a plurality of medical image retrieval requests sent by testing equipment; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; reading medical image data corresponding to each medical image identifier from the disk file, and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier; and returning the feedback information of each medical image retrieval request to the testing equipment.
In one embodiment, reading medical image data corresponding to each medical image identifier from a disk file includes:
and reading medical image data corresponding to each medical image identifier from the disk file by adopting an asynchronous IO mechanism.
In a fourth aspect, the present application further provides another performance testing apparatus for an archiving system. The device comprises:
the receiving module is used for receiving a plurality of medical image retrieval requests sent by the testing equipment; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data;
the generating module is used for reading medical image data corresponding to each medical image identifier from the disk file and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier;
and the return module is used for returning the feedback information of each medical image retrieval request to the test equipment.
In a fifth aspect, the application further provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the method steps in any of the first and third aspects described above when executing the computer program.
In a sixth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method steps in any of the above-described first and third aspects.
In a seventh aspect, the present application further provides a computer program product. The computer program product comprising a computer program that, when executed by a processor, performs the method steps of any of the embodiments of the first and third aspects.
According to the performance testing method, the device, the storage medium and the program product of the filing system, a plurality of medical image retrieval requests are generated based on a preset testing frame, and the plurality of medical image retrieval requests are sent to the filing device; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the filing equipment for performing performance test according to the feedback information. In the technical scheme provided by the embodiment of the application, compared with the traditional technology, because the medical image identifiers carried in the multiple medical image retrieval requests are all the same, the medical image data to be read are also the same, when the archiving device reads the medical image data in the disk file, the disk file can be locked, so that the next medical image retrieval request cannot be processed at the same time, and the performance test result is inaccurate; in the application, because the medical image identifiers carried in the different medical image retrieval requests are different and the medical image identifiers are used for uniquely identifying the corresponding medical image data, when the performance test is performed on the filing system by adopting the medical image retrieval requests containing different influence identifiers, the disk files read by the filing equipment and used for storing the medical image data are mutually independent, so that a plurality of medical image retrieval requests can be processed simultaneously, and the accuracy of the performance test on the medical image filing system is improved.
Drawings
FIG. 1 is a diagram of the internal structure of a computer device in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method for performance testing of an archiving system in accordance with an embodiment;
FIG. 3 is a schematic flow chart diagram illustrating the generation of a plurality of medical image recall requests in one embodiment;
FIG. 4 is a schematic flow chart illustrating a performance testing method of the archiving system in accordance with another embodiment;
FIG. 5 is a schematic diagram illustrating an overall flowchart of a performance testing method of the archiving system in one embodiment;
FIG. 6 is a block diagram of a performance testing apparatus of the archiving system in an embodiment;
fig. 7 is a block diagram showing a performance testing apparatus of the filing system according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The performance testing method of the filing system provided by the application can be applied to computer equipment, the computer equipment can be a server or a terminal, wherein the server can be one server or a server cluster consisting of a plurality of servers.
Taking a computer device as an example of a terminal, fig. 1 shows a block diagram of a terminal, which, as shown in fig. 1, includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of performance testing of an archiving system. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the terminal to which the present application is applied, and that the terminal may alternatively include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
It should be noted that the execution subject in the embodiments of the present application may be a computer device, or may also be a performance testing apparatus of an archiving system, and the following method embodiments are described with reference to a computer device as an execution subject.
In an embodiment, as shown in fig. 2, which shows a flowchart of a performance test of an archiving system provided in an embodiment of the present application, when applied to a test device, the method may include the following steps:
step 220, generating a plurality of medical image retrieval requests based on a preset test frame, and sending the plurality of medical image retrieval requests to a filing device; the medical image identifiers carried in the different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying the corresponding medical image data.
The preset test frame is an automatic test tool for performing performance test on the filing system, and the process of performing the performance test based on the preset test frame generally includes the processes of analyzing test requirements, making a test plan, compiling test cases, executing a test process, outputting a test report and the like. The filing apparatus is a medical image filing system (PACS) for storing, retrieving and retrieving medical images, and in order to ensure the efficiency of the user in retrieving the medical images, it is usually necessary to perform a performance test on the retrieval function of the medical image filing system in advance, for example, a performance test on the retrieval speed, retrieval stability and the like of the medical image filing system.
When the review function is subjected to performance test, corresponding parameters need to be configured in a preset test frame to generate a plurality of medical image review requests, and the parameters may include the total number of requests, the number of requests generated per second, the time length for generating a plurality of requests, and the like. When a plurality of medical image retrieval requests are generated based on the configured parameters, the respective medical image retrieval requests may be generated simultaneously or may be sequentially generated cumulatively. Each generated medical image retrieval request carries a medical image identifier, the medical image identifier is used for uniquely identifying corresponding medical image data, and the medical image identifiers carried in each medical image retrieval request are also different.
After the plurality of medical image retrieval requests are generated, the plurality of medical image retrieval requests can be sent to the filing equipment, so that the filing equipment reads corresponding medical image data based on the medical image retrieval requests. The method comprises the steps that a plurality of medical image retrieval requests need to be sent to a filing device at the same time, and the filing device can process the medical image retrieval requests at the same time, namely, the medical image data corresponding to medical image identification are read from different disk files used for storing the medical image data at the same time; it is also possible to process a plurality of medical image review requests separately at intervals of a small interval, which is an allowable interval that does not affect the final performance test result in actual operation.
Moreover, when the performance test is performed on the filing equipment, only one round of test can be performed by adopting a plurality of medical image retrieval requests, or multiple rounds of test can be performed, the number of the medical image retrieval requests in each round can be the same, and the specific number of the test rounds can be configured in advance. For example, the number of generated medical image retrieval requests is 1000, and the 1000 medical image retrieval requests may be used for one round of testing, or 10 rounds of testing, where the number of medical image retrieval requests in each round is 1000.
And 240, receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the performance test of the filing equipment according to the feedback information.
The feedback information may include medical image data corresponding to the medical image identifier in the medical image retrieval request, or may not include the medical image data when the request is abnormal. When determining the performance test result of the performance test on the filing equipment according to each piece of feedback information, under the condition that the feedback information contains medical image data, determining the medical image retrieval request corresponding to the feedback information as a request for successful performance test, and finally determining the performance test result of the performance test on the filing equipment by counting the total amount of requests completed every second, namely determining the retrieval speed and retrieval stability by the total amount of requests completed every second.
In the embodiment, a plurality of medical image retrieval requests are generated based on a preset test frame, and are sent to the filing equipment; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the filing equipment for performing performance test according to the feedback information. Compared with the prior art, the medical image identifiers carried in the multiple medical image retrieval requests are the same, so that the medical image data to be read are also the same, the situation that the disk file is locked exists when the archiving device reads the medical image data in the disk file, the next medical image retrieval request cannot be processed at the same time, and the performance test result is inaccurate; in the application, because the medical image identifiers carried in the different medical image reading requests are different and the medical image identifiers are used for uniquely identifying the corresponding medical image data, when the performance test is performed on the filing system by adopting the medical image reading requests containing different influence identifiers, the magnetic disc files read by the filing equipment and used for storing the medical image data are mutually independent, so that a plurality of medical image reading requests can be processed simultaneously, and the accuracy of the performance test on the medical image filing system is improved.
In one embodiment, as shown in fig. 3, which illustrates a flowchart of a performance test of an archiving system provided in the embodiment of the present application, and particularly relates to a possible process of generating a plurality of medical image retrieval requests, the method may include the following steps:
and 320, generating a user information query request based on a preset test frame, and sending the user information query request to the filing equipment.
The user information query request is an http request for querying the medical image identifier corresponding to the user, and the user information query request is generated by compiling a script in a preset test frame and setting attribute information parameters such as name, gender and identity identifier of the user and is sent to the filing equipment. It should be noted that, generally, the user information query request generated here is generally one, that is, a user information query request for one user.
And 340, receiving a plurality of medical image identifications returned by the filing equipment according to the user information query request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifications.
The archiving device processes the user information query request, and therefore, based on the attribute information parameters of the user, such as name, gender and identity, in the user information query request, a plurality of pre-stored medical image identifiers corresponding to the user attribute information parameters are returned to the testing device in a JSON format.
After the test equipment acquires the returned data stream, the data stream in the JSON format is analyzed, so that user attribute information and a plurality of corresponding medical image identifications are acquired. The plurality of medical image identifiers may be stored in an array form, specifically, a blank array may be preset, and the plurality of acquired medical image identifiers are sequentially written into the array.
When medical image retrieval requests are correspondingly generated based on a plurality of medical image identifiers, optionally, corresponding medical image retrieval requests can be directly and newly generated based on the medical image identifiers, and a complete http request can be obtained; preferably, the medical image identifiers and the user information query request can be spliced to obtain the medical image retrieval requests, that is, the specific request content of the medical image identifiers is added to the user information query request, so that a complete medical image retrieval http request is obtained. The medical image identifiers can be taken out from the array for storing the medical image identifiers in sequence.
In the embodiment, a user information query request is generated based on a preset test frame, and the user information query request is sent to the filing equipment; and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information query request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifiers. The mode of generating the medical image retrieval request is simple and easy to realize, and the efficiency of generating the medical image retrieval request is improved.
In one embodiment, in the case that the feedback information includes medical image data, the feedback information may be recorded as statistical data in a test file, and the statistical data in the test file may be analyzed to obtain a performance test result. Wherein, the statistical data in the test file is used for counting the one-time medical image retrieval request which is successfully tested.
Alternatively, when determining whether or not medical image data is included in the feedback information, the determination may be made according to the data amount of the feedback information. Specifically, whether the data volume of the feedback information is consistent with a preset data volume threshold value or not is determined, and if so, the feedback information is determined to contain the medical image data; if the medical image data is inconsistent with the abnormal medical image data, the fact that the requested test fails is determined, and the abnormality and the reason for the abnormality can be thrown out.
The feedback information returned by the archiving device is also a data stream in the JSON format, and the analysis result is obtained by analyzing the data stream, and since the medical image data is usually stored in a matrix form, whether the analysis result obtained by analysis contains the medical image data is judged according to the size of the matrix. Specifically, it may be determined whether the data amount in the analysis result is consistent with a preset data amount threshold, so as to determine whether the feedback information includes the medical image data.
In the embodiment, the statistical data in the test file is analyzed, so that the convenience and the efficiency of the performance test result are high, whether the medical image data is included is determined according to the data quantity of the feedback information, the method is simple and easy to implement, and the efficiency of determining whether the request test is successful is improved.
In one embodiment, the preset test framework is used for cumulatively generating a preset number of medical image retrieval requests; sending a plurality of medical image retrieval requests to a filing device, comprising: and if the number of the medical image retrieval requests reaches the preset number, simultaneously sending the plurality of medical image retrieval requests to the filing equipment.
When a preset number of medical image retrieval requests are generated in the preset test frame based on the configured parameters, the preset test frame may include, but is not limited to, a Gatling test frame, a JMeter test frame, a Locust test frame, and the like. Preferably, a preset number of medical image retrieval requests can be generated in an accumulated manner by adopting a Locust test framework, the Locust test framework is an open source performance test framework of a third party, the performance and the flexibility of the Locust test framework are good, http requests preset by a program can be accumulated to a certain extent, and then the http requests are released once and sent to a system to be tested. The Locust test framework can also provide a monitoring page, so that the total amount of requests completed per second can be displayed on the monitoring page based on the statistical data in the test file during the test process.
Therefore, after the preset number of medical image retrieval requests are cumulatively generated based on the preset test frame, the plurality of medical image retrieval requests are simultaneously sent to the filing equipment under the condition that the number of the medical image retrieval requests reaches the preset number. The preset number may be configured in advance according to the test requirement, for example, the preset number is 1000, and after 1000 medical image retrieval requests are generated cumulatively, the 1000 medical image retrieval requests may be simultaneously sent to the filing apparatus.
In the embodiment, the preset frame is adopted to accumulate and generate the plurality of medical image retrieval requests, and the medical image retrieval requests are sent to the filing equipment for performance testing at one time, so that the reliability and the authenticity of the performance testing of the filing equipment are improved.
In an embodiment, as shown in fig. 4, which illustrates a flowchart of a performance test of an archiving system provided in an embodiment of the present application, when applied to an archiving system, the method may include the following steps:
step 420, receiving a plurality of medical image retrieval requests sent by the testing equipment; the medical image identifiers carried in the different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying the corresponding medical image data.
Each medical image retrieval request carries a medical image identifier, the medical image identifiers are used for uniquely identifying corresponding medical image data, and the medical image identifiers carried in each medical image retrieval request are also different. The testing device may generate a plurality of medical image recall requests by configuring corresponding parameters in a preset testing framework, and the parameters may include the total number of requests, the number of requests generated per second, the time length for generating the plurality of requests, and the like. When a plurality of medical image retrieval requests are generated based on the configured parameters, each medical image retrieval request can be generated simultaneously or sequentially accumulated, and the plurality of medical image retrieval requests are simultaneously sent to the filing equipment, so that the filing equipment receives the plurality of medical image retrieval requests sent by the testing equipment.
Step 440, reading medical image data corresponding to each medical image identifier from the disk file, and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier.
The different disk files respectively store medical image data corresponding to the medical image identifications, and the medical image data corresponding to the medical image identifications are read from the different disk files simultaneously based on the medical image identifications in the medical image retrieval requests. When generating the feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier, the medical image data can be written into the data stream in the JSON format as a parameter.
And step 460, returning the feedback information of the medical image retrieval requests to the testing equipment.
After the feedback information of each medical image retrieval request is generated, the feedback information of each medical image retrieval request can also be returned to the test equipment in a data stream of a JSON format.
In this embodiment, the implementation principle and the beneficial effect of the performance testing method for the archiving system provided in this embodiment may refer to the above definition of each embodiment of the performance test for the archiving system applied in the testing device, and are not described herein again.
In one embodiment, reading medical image data corresponding to each medical image identifier from the disk file includes: and reading medical image data corresponding to each medical image identifier from the disk file by adopting an asynchronous IO mechanism.
When accessing a disk file, the disk has certain limitations, and specifically, if the same disk file needs to be repeatedly accessed to perform frequent reading operations, the disk file is automatically locked, and the next reading operation can be performed only after the completion of the reading of the previous task is queued. Specifically, since the medical image identifiers carried in different medical image retrieval requests are different and the medical image identifiers are used for uniquely identifying the corresponding medical image data, and the disk files read by the filing equipment and used for storing the medical image data are different, a plurality of medical image retrieval requests can be processed simultaneously, so that the medical image data corresponding to each medical image identifier can be read.
In the embodiment, the medical image data corresponding to each medical image identifier is simultaneously read from the disk file by adopting an asynchronous IO mechanism, so that the actual use scene is better met, the accuracy of determining the time for processing the medical image retrieval request is improved, and the accuracy of performing performance test on the medical image filing system is improved.
In one embodiment, as shown in fig. 5, which shows an overall flowchart of a performance test of an archiving system provided in an embodiment of the present application, the method may include the following steps:
step 501, the test equipment generates a user information query request and sends the user information query request to the PACS system.
Step 502, the PACS returns a plurality of medical image identifiers to the testing equipment in JSON format data flow.
Step 503, the testing device analyzes the data stream, and determines whether the user information query request is successful. The determination may be specifically made by determining whether the analysis result includes the medical image identifier.
Step 504, if not successful, ending the process and regenerating the user information query request.
And 505, if the medical image identification is successful, acquiring a plurality of medical image identifications and storing the medical image identifications as an array.
And step 506, splicing the medical image identifications and the user information inquiry request to obtain a plurality of medical image retrieval requests, and simultaneously sending the medical image retrieval requests to the PACS.
And 507, reading the DICOM medical image data corresponding to each medical image identifier from the disk file by the PACS system by adopting an asynchronous IO mechanism, and returning the DICOM medical image data to the testing equipment. Among them, Digital Imaging and Communications in Medicine (DICOM) is an international standard for medical images and related information, which defines a format for medical images that can be used for data exchange to meet clinical needs.
Step 508, determining whether the medical image retrieval request is successful.
Step 509, if not successful, throw exception.
And step 510, if the test is successful, recording the data as statistical data in a test file.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a performance testing device of the filing system, which is used for realizing the performance testing method of the filing system. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in the embodiment of the performance testing device for one or more archiving systems provided below can be referred to the limitations of the performance testing method for the archiving system in the above description, and details are not repeated herein.
In one embodiment, as shown in fig. 6, there is provided a performance testing apparatus 600 of an archiving system, including: a sending module 602 and a receiving module 604, wherein:
a sending module 602, configured to generate a plurality of medical image retrieval requests based on a preset test frame, and send the plurality of medical image retrieval requests to a filing device; the medical image identifiers carried in the different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying the corresponding medical image data.
The receiving module 604 is configured to receive feedback information generated by the archiving device according to each medical image retrieval request, and determine a performance test result of performing a performance test on the archiving device according to each feedback information.
In an embodiment, the sending module 602 is specifically configured to generate a user information query request based on a preset test framework, and send the user information query request to the archiving device; and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information query request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifiers.
In an embodiment, the sending module 602 is further configured to perform a stitching process on each medical image identifier and the user information query request to obtain each medical image retrieval request.
In an embodiment, the performance testing apparatus of the filing system further includes a determining module, where the determining module is configured to determine whether a data amount of the feedback information is consistent with a preset data amount threshold, if so, determine that the feedback information includes the medical image data, and if not, determine that the feedback information does not include the medical image data.
In one embodiment, the preset testing framework is used for cumulatively generating a preset number of medical image retrieval requests; the sending module 602 is further configured to send the multiple medical image retrieval requests to the filing device simultaneously if the number of the medical image retrieval requests reaches a preset number.
Based on the same inventive concept, the embodiment of the present application further provides another performance testing apparatus for an archiving system, which is used for implementing the performance testing method for the archiving system. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the method, so specific limitations in the embodiment of the performance testing apparatus for one or more archiving systems provided below can be referred to the limitations of the performance testing method for the archiving system in the foregoing, and details are not described here again.
In one embodiment, as shown in fig. 7, there is provided a performance testing apparatus 700 of an archiving system, including: a receiving module 702, a generating module 704, and a returning module 706, wherein:
a receiving module 702, configured to receive a plurality of medical image retrieval requests sent by a testing device; the medical image identifiers carried in the different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying the corresponding medical image data.
The generating module 704 is configured to read medical image data corresponding to each medical image identifier from the disk file, and generate feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier.
And a returning module 706, configured to return feedback information of each medical image retrieval request to the testing apparatus.
In an embodiment, the generating module 704 is specifically configured to read medical image data corresponding to each medical image identifier from a disk file by using an asynchronous IO mechanism.
The modules in the performance testing apparatus of the archiving system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, comprising a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of:
generating a plurality of medical image retrieval requests based on a preset test frame, and sending the plurality of medical image retrieval requests to a filing device; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the performance test of the filing equipment according to the feedback information.
In one embodiment, the processor when executing the computer program further performs the steps of:
generating a user information query request based on a preset test frame, and sending the user information query request to the filing equipment; and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information inquiry request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifiers.
In one embodiment, the processor when executing the computer program further performs the steps of:
and splicing each medical image identifier and the user information query request to obtain each medical image retrieval request.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and determining whether the data volume of the feedback information is consistent with a preset data volume threshold value, if so, determining that the feedback information contains medical image data, and if not, determining that the feedback information does not contain the medical image data.
In one embodiment, the preset test framework is used for cumulatively generating a preset number of medical image retrieval requests; the processor, when executing the computer program, further performs the steps of:
and if the number of the medical image retrieval requests reaches the preset number, simultaneously sending the plurality of medical image retrieval requests to the filing equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a plurality of medical image retrieval requests sent by testing equipment; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; reading medical image data corresponding to each medical image identifier from the disk file, and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier; and returning the feedback information of each medical image retrieval request to the testing equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and reading medical image data corresponding to each medical image identifier from the disk file by adopting an asynchronous IO mechanism.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
generating a plurality of medical image retrieval requests based on a preset test frame, and sending the plurality of medical image retrieval requests to a filing device; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the filing equipment for performing performance test according to the feedback information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a user information query request based on a preset test frame, and sending the user information query request to the filing equipment; and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information inquiry request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifiers.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and splicing each medical image identifier and the user information query request to obtain each medical image retrieval request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and determining whether the data volume of the feedback information is consistent with a preset data volume threshold value, if so, determining that the feedback information contains the medical image data, and if not, determining that the feedback information does not contain the medical image data.
In one embodiment, the preset test framework is used for cumulatively generating a preset number of medical image retrieval requests; the computer program when executed by the processor further realizes the steps of:
and if the number of the medical image retrieval requests reaches the preset number, simultaneously sending the plurality of medical image retrieval requests to the filing equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a plurality of medical image retrieval requests sent by testing equipment; the medical image identifiers carried in the different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying the corresponding medical image data; reading medical image data corresponding to each medical image identifier from the disk file, and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier; and returning the feedback information of each medical image retrieval request to the testing equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and reading medical image data corresponding to each medical image identifier from the disk file by adopting an asynchronous IO mechanism.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
In one embodiment, a computer program product is provided, comprising a computer program which when executed by a processor performs the steps of:
generating a plurality of medical image retrieval requests based on a preset test frame, and sending the plurality of medical image retrieval requests to a filing device; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the performance test of the filing equipment according to the feedback information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a user information query request based on a preset test frame, and sending the user information query request to the filing equipment; and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information inquiry request, and correspondingly generating a medical image retrieval request according to the plurality of medical image identifiers.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and splicing each medical image identifier and the user information query request to obtain each medical image retrieval request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and determining whether the data volume of the feedback information is consistent with a preset data volume threshold value, if so, determining that the feedback information contains medical image data, and if not, determining that the feedback information does not contain the medical image data.
In one embodiment, the preset test framework is used for cumulatively generating a preset number of medical image retrieval requests; the computer program when executed by the processor further realizes the steps of:
and if the number of the medical image retrieval requests reaches the preset number, simultaneously sending the plurality of medical image retrieval requests to the filing equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a plurality of medical image retrieval requests sent by testing equipment; the medical image identification carried in the different medical image retrieval requests is different, and the medical image identification is used for uniquely identifying the corresponding medical image data; reading medical image data corresponding to each medical image identifier from the disk file, and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier; and returning the feedback information of each medical image retrieval request to the testing equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and reading medical image data corresponding to each medical image identifier from the disk file by adopting an asynchronous IO mechanism.
The computer program product provided in this embodiment has similar implementation principles and technical effects to those of the method embodiments described above, and is not described herein again.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases involved in the embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims (10)

1. A method for performance testing of an archiving system, the method comprising:
generating a plurality of medical image retrieval requests based on a preset test frame, and sending the medical image retrieval requests to a filing device; different medical image identifiers carried in different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying corresponding medical image data;
and receiving feedback information generated by the filing equipment according to the medical image retrieval requests, and determining a performance test result of the performance test of the filing equipment according to the feedback information.
2. The method of claim 1, wherein generating a plurality of medical image recall requests based on a predetermined test frame comprises:
generating a user information query request based on the preset test frame, and sending the user information query request to the filing equipment;
and receiving a plurality of medical image identifiers returned by the filing equipment according to the user information inquiry request, and correspondingly generating the medical image retrieval request according to the plurality of medical image identifiers.
3. The method of claim 2, wherein generating the medical image recall request according to the plurality of medical image identification correspondences comprises:
and splicing each medical image identifier and the user information inquiry request to obtain each medical image retrieval request.
4. The method of claim 1, further comprising:
and determining whether the data volume of the feedback information is consistent with a preset data volume threshold value, if so, determining that the feedback information contains the medical image data, and if not, determining that the feedback information does not contain the medical image data.
5. The method of claim 1, wherein the preset testing framework is configured to cumulatively generate a preset number of the medical image recall requests;
the sending the plurality of medical image retrieval requests to a filing device comprises:
and if the number of the medical image retrieval requests reaches the preset number, simultaneously sending the medical image retrieval requests to the filing equipment.
6. A method for testing performance of an archiving system, the method comprising:
receiving a plurality of medical image retrieval requests sent by testing equipment; different medical image identifiers carried in different medical image retrieval requests are different, and the medical image identifiers are used for uniquely identifying corresponding medical image data;
reading medical image data corresponding to each medical image identifier from a disk file, and generating feedback information of each medical image retrieval request according to the medical image data corresponding to each medical image identifier;
and returning the feedback information of each medical image retrieval request to the testing equipment.
7. The method according to claim 6, wherein the reading the medical image data corresponding to each medical image identifier from the disk file comprises:
and reading medical image data corresponding to each medical image identifier from the disk file by adopting an asynchronous IO mechanism.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210427626.5A 2022-04-22 2022-04-22 Performance test method, apparatus, storage medium and program product for archiving system Pending CN114780404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210427626.5A CN114780404A (en) 2022-04-22 2022-04-22 Performance test method, apparatus, storage medium and program product for archiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210427626.5A CN114780404A (en) 2022-04-22 2022-04-22 Performance test method, apparatus, storage medium and program product for archiving system

Publications (1)

Publication Number Publication Date
CN114780404A true CN114780404A (en) 2022-07-22

Family

ID=82432098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210427626.5A Pending CN114780404A (en) 2022-04-22 2022-04-22 Performance test method, apparatus, storage medium and program product for archiving system

Country Status (1)

Country Link
CN (1) CN114780404A (en)

Similar Documents

Publication Publication Date Title
US12056583B2 (en) Target variable distribution-based acceptance of machine learning test data sets
CN114089921A (en) Power system data storage method and device, computer equipment and storage medium
US9405786B2 (en) System and method for database flow management
CN114780404A (en) Performance test method, apparatus, storage medium and program product for archiving system
CN115576947A (en) Data management method and device, combined library, electronic equipment and storage medium
CN111625502A (en) Data reading method and device, storage medium and electronic device
CN112420168B (en) Method, device, equipment and storage medium for writing data into database
CN117056220A (en) Batch job testing method and device, computer equipment and storage medium
CN110134572A (en) Verify the data in storage system
CN112597058B (en) Webpage testing method, device, equipment and storage medium based on volume creation
CN111414335B (en) Data file searching method and device
CN114972031A (en) Medical image processing method, computer device and storage medium
CN117172720A (en) Audit and doubt point tracking and checking method, system, computer equipment and storage medium
CN117033168A (en) System function verification method, device, computer equipment and storage medium
CN114817065A (en) Interface automation test method and device and computer equipment
CN116909684A (en) Deployment method and device of low-code application, computer equipment and storage medium
CN118467095A (en) Data verification method, device, computer equipment and storage medium
CN116094770A (en) Data consistency verification method, device, system and computer equipment
CN118200314A (en) File interaction method, device, computer equipment and storage medium
CN117150449A (en) Source code use permission monitoring method, device, computer equipment and storage medium
CN116225830A (en) Service operation log reporting method and device, computer equipment and storage medium
CN117522296A (en) Auditing flow generation method, auditing flow generation device, computer equipment and storage medium
CN117435589A (en) Data transfer method, device, computer equipment and storage medium
CN117389897A (en) Test script generation method, device, computer equipment and storage medium
CN117435651A (en) Test data processing method, device, computer equipment and storage medium

Legal Events

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