CN113742224A - Test system, method, device, computer equipment and storage medium - Google Patents

Test system, method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113742224A
CN113742224A CN202110995467.4A CN202110995467A CN113742224A CN 113742224 A CN113742224 A CN 113742224A CN 202110995467 A CN202110995467 A CN 202110995467A CN 113742224 A CN113742224 A CN 113742224A
Authority
CN
China
Prior art keywords
test
target
library
type
information
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
CN202110995467.4A
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 Zhirong Medical Technology Co Ltd
Original Assignee
Wuhan United Imaging Zhirong Medical 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 Wuhan United Imaging Zhirong Medical Technology Co Ltd filed Critical Wuhan United Imaging Zhirong Medical Technology Co Ltd
Priority to CN202110995467.4A priority Critical patent/CN113742224A/en
Publication of CN113742224A publication Critical patent/CN113742224A/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
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a test system, a method, a device, a computer device and a storage medium. The test system comprises a start script library, a test function library, a test case library and a test log library; the starting script library is used for starting a test program, cleaning an operating environment and calling a mail; the test function library is used for providing test functions, test operations and test tools; the test case library is used for storing test cases; and the test log library is used for storing test logs. By adopting the test system provided by the application, the maintenance difficulty and the maintenance cost of the test program can be reduced.

Description

Test system, method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of testing technologies, and in particular, to a testing system, a testing method, a testing apparatus, a computer device, and a storage medium.
Background
With the rapid development of medicine, applications for medical image analysis and applications for operating medical equipment have emerged. Before the application of the application programs, a plurality of tests are required to ensure the stable and reliable operation of the programs.
Currently, programmers develop a test program for a test task. Because different programmers use different development languages and different development logics, the maintenance difficulty and the maintenance cost of the test program are high.
Disclosure of Invention
In view of the above, it is necessary to provide a test system, a method, an apparatus, a computer device, and a storage medium capable of reducing the maintenance difficulty and the maintenance cost of a test program.
In a first aspect, an embodiment of the present disclosure provides a test system, where the test system includes a start script library, a test function library, a test case library, and a test log library;
the starting script library is used for starting a test program, cleaning an operating environment and calling a mail;
the test function library is used for providing test functions, test operations and test tools;
the test case library is used for storing test cases;
and the test log library is used for storing the test logs.
In a second aspect, embodiments of the present disclosure provide a testing method,
starting a test program;
importing target test data;
loading a target license from a test function library according to preset license information;
selecting a target test type according to the target test type;
and executing the target test case to obtain a target test result.
In a third aspect, an embodiment of the present disclosure provides a testing apparatus, including:
the program starting module is used for starting a test program;
the test data import module is used for importing target test data;
the license loading module is used for loading the target license from the test function library according to the preset license information;
the test case selection module is used for selecting a target test case according to the target test type;
and the test case execution module is used for executing the target test case to obtain a target test result.
In a fourth aspect, the present disclosure provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the second aspect when executing the computer program.
In a fifth aspect, the disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the second aspect described above.
The test system, the test method, the test device, the computer equipment and the storage medium provide a unified startup script library, a test function library, a test case library and a test log library, namely, codes used for testing are modularized, so that the problems of using different development languages and development logics do not exist when a programmer develops a test program, and therefore the maintenance difficulty and the maintenance cost of the test program can be reduced.
Drawings
FIG. 1 is a schematic diagram of a test system in one embodiment;
FIG. 2 is one of the flow diagrams of the testing method in one embodiment;
FIG. 3 is a schematic diagram of a mode setting interface in one embodiment;
FIG. 4 is a flowchart illustrating the step of setting target test data in one embodiment;
FIG. 5 is a schematic diagram of a test data setup interface in one embodiment;
FIG. 6 is a flowchart illustrating the step of setting a target test type in one embodiment;
FIG. 7 is a schematic diagram of a test type setup interface in one embodiment;
FIG. 8 is a flowchart illustrating the steps of setting target test cases in one embodiment;
FIG. 9 is a diagram of a test case setup interface in one embodiment;
FIG. 10 is a flowchart illustrating one of the steps of setting installation package information in one embodiment;
FIG. 11 is a schematic diagram of an installation information setting interface in one embodiment;
FIG. 12 is a diagram of a package pick-up parameter set interface in accordance with one embodiment;
FIG. 13 is a second flowchart illustrating the step of setting the installation package information according to an embodiment;
FIG. 14 is a schematic illustration of a spatial detection interface in one embodiment;
FIG. 15 is a third flowchart illustrating the step of setting the installation package information according to an embodiment;
FIG. 16 is a schematic diagram of a parameter backup interface in one embodiment;
FIG. 17 is a fourth flowchart illustrating the step of setting the installation package information according to one embodiment;
FIG. 18 is a schematic diagram of an overlay document settings interface in one embodiment;
FIG. 19 is a fifth flowchart illustrating the step of setting the installation package information according to one embodiment;
FIG. 20 is a schematic diagram of a modality setting interface in accordance with an embodiment;
FIG. 21 is a schematic diagram of a workflow setup interface in one embodiment;
FIG. 22 is a diagram illustrating a package interface as to whether installation is required, in one embodiment;
FIG. 23 is a schematic illustration of an installation triggering interface in one embodiment;
FIG. 24 is a block diagram showing the structure of a test apparatus according to one embodiment;
FIG. 25 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The present application provides a test system, as shown in fig. 1, the test system includes a startup script library 101, a test function library 102, a test case library 103, and a test log library 104. The starting script library 101 is used for starting a test program, cleaning an operating environment and calling an email; a test function library 102 for providing test functions, test operations and test tools; the test case library 103 is used for storing test cases; and the test log library 104 is used for storing the test logs.
The startup script library is compiled by CMD language and provides a uniform parameter template.
In one embodiment, the test function library 102 includes a general function library, a business function library, and a tool library; the universal function library is used for providing at least one test function of mouse, keyboard, screenshot, control searching and input and output; the business function library is used for providing at least one test operation of version installation, data import, license loading, test type selection, information search, workflow circulation, log recording and interrupt processing; and the tool library is used for providing at least one testing tool of screenshot, analysis, performance test, test case configuration, data reading and writing and mail.
The test system provides a unified startup script library, a test function library, a test case library and a test log library, namely codes used for testing are modularized, so that the problems of using different development languages and development logics do not exist when a programmer develops a test program, and the maintenance difficulty and the maintenance cost of the test program can be reduced.
The application provides a testing method, as shown in fig. 2, the method can be applied to a server, a terminal, and a system in which the server interacts with the terminal. The server may be implemented by an independent server or a server cluster composed of a plurality of servers, and the terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers. The embodiment of the present disclosure is described as being applied to a server, and may include the following steps:
step 201, a test program is started.
In conducting the test, the server may initiate the test program using the startup script library.
Step 202, importing target test data.
The server is pre-configured with test data information. The test data information is used for indicating target test data to be used. The test data information may include a test data identification and a test data type.
After the server starts the test program, the target test data can be determined according to the test data identification and the test data type indicated by the test data information, and the target test data is imported.
For example, if the test data identifier is the image data 1 of the object a, and the image data is a CT image, the server imports the image data 1 of the object a according to the test data identifier and the test data type.
Step 203, loading the target license from the test function library according to the preset license information.
Wherein the license information is used to indicate a target license to be used. The licensing information may include a license identification. The test function library comprises a business function library, and the business function library provides test operation of license loading.
The server is configured with permission information in advance. And when testing, the server calls a function in the service function library according to the license identifier indicated by the license information and loads the target license. Thereafter, the server may remove the license restriction in the test according to the target license.
And 204, selecting a target test case according to the target test type.
The server is pre-configured with test type information. Wherein the test type information is used for indicating a target test type to be used. And when testing, the server calls the function loading target test type in the service function library according to the test type information. And then, the server selects the target test case from the test case library according to the target test type. The test case library stores at least one test case.
For example, the server calls a function loading smoking test in the service function library according to the test type information, and selects a target test case corresponding to the smoking test from the test case library according to the smoking test. Or the server calls a function loading interface test in the service function library according to the test type information, and selects a target test case corresponding to the interface test from the test case library according to the interface test.
And step 205, executing the target test case to obtain a target test result.
And after the server imports the target test data, selects the target test case and releases the test limit, executing the target test case, so that the target test case can use the target test data to carry out the test corresponding to the target test type.
For example, the server executes a target test case, and the target test case performs an interface test using the image data 1 of the medical object a.
In one embodiment, in the process of executing the target test case, a test process screenshot, a process log and a system log are recorded.
In one embodiment, after the target test result is obtained, a test report may be generated according to the target test result, and the test report may be stored in the test log library. Wherein the test report includes a test log.
In the test system method, a test program is started; importing target test data; loading a target license from a test function library according to preset license information; selecting a target test type of a target test case according to the target test type; and executing the target test case to obtain a target test result. In the embodiment of the disclosure, the test system is used for realizing automatic test, and the test system provides a unified startup script library, a test function library, a test case library and a test log library, namely, codes used for testing are modularized, so that a programmer does not have the problems of using different development languages and development logics when developing a test program, and the maintenance difficulty and the maintenance cost of the test program can be reduced. Moreover, the automatic test can improve the test efficiency.
In one embodiment, before starting the test program, an embodiment of the present disclosure may further include: a parameter setting mode is determined. Wherein the parameter setting mode comprises manual setting and configuration file setting.
In practical application, the server may first display the mode setting interface. As shown in FIG. 3, the mode setting interface is shown with a plurality of mode setting options; wherein the mode setting options include a manual setting option or a profile setting option.
And then, the server receives the selection operation aiming at the mode setting option based on the mode setting interface, and determines the parameter setting mode according to the selection operation aiming at the mode setting option.
For example, the user may select a manual setting in the mode setting interface, and the server receives a selection operation based on the mode setting interface and determines the parameter setting mode as the manual setting according to the selection operation.
The manual setting can provide a test data setting interface, a test type setting interface and an installation information setting interface for a user, and the user can set parameters such as test data information, test type information and installation information only by simple selection operation and input operation.
In the above embodiment, the server determines the parameter setting mode. Through the embodiment of the disclosure, a mode setting interface is provided for a user, and in a manual setting mode, the user only needs to perform simple selection operation and input operation to realize parameter setting. Therefore, not only the program development threshold but also the development cost of the test program can be reduced.
When the configuration file setting option is selected, the related information required to be set on the test data setting interface, the test type setting interface and the installation information setting interface is provided in a configuration file mode for the test system to automatically read and complete the related configuration, and the setting of parameters such as the test data information, the test type information and the installation information is automatically realized without manual setting.
In one embodiment, if the parameter setting mode is manual setting, the target test data, the target test type, the target test case, and the installation information of the installation package are set according to user operation. The target test type comprises at least one of smoking test, performance test, interface test, stability test, reliability test and host test.
In one embodiment, as shown in FIG. 4, a process involving setting target test data may include:
step 206, displaying a test data setting interface.
The server may present a test data setup interface. As shown in FIG. 5, the test data setup interface is presented with a data path input box.
And step 207, receiving an input operation aiming at the data path input box based on the test data setting interface, and determining target test data according to the input operation aiming at the data path input box to obtain test data information.
The user can input the storage path of the target test data in the data path input box of the test data setting interface, the server receives input operation based on the test data setting interface, determines the target test data according to the storage path input in the data path input box, and generates test data information according to the test data identification of the target test data.
In the above embodiment, the test data setting interface is displayed, the input operation for the data path input box is received based on the test data setting interface, and the target test data is determined according to the input operation for the data path input box, so as to obtain the test data information. Through the embodiment of the disclosure, a test data setting interface is provided for a user, and the user can set test data and develop a test program more conveniently, so that not only can a program development threshold be reduced, but also the development cost of the test program can be reduced.
In one embodiment, as shown in FIG. 6, a process involving setting a target test type may include:
and step 208, displaying a test type setting interface.
The server may present a test type setting interface. As shown in fig. 7, at least one test type option is shown in the test type setting interface; the testing type options comprise at least one of smoking testing options, performance testing options, interface testing options, stability testing options, reliability testing options and host testing options.
Step 209, receiving a selection operation for the test type option based on the test type setting interface, and determining a target test type according to the selection operation for the test type option to obtain test type information.
And if the user can input the selection operation in the test type setting interface, the server receives the selection operation based on the test type setting interface, determines the target test type according to the selection operation, and then generates test type information according to the target test type.
As shown in fig. 7, when the user clicks a dot before the smoking test option in the test type setting interface, the server may determine that the target test type is the smoking test according to the click operation, and generate test type information according to the smoking test. The selection operation may also adopt other manners, and the selection operation is not limited in the embodiment of the present disclosure.
In the above embodiment, the test type setting interface is displayed; and receiving a selection operation aiming at the test type option based on the test type setting interface, and determining a target test type according to the selection operation aiming at the test type option to obtain test type information. Through the embodiment of the disclosure, a test type setting interface is provided for a user, and the user can set the test type and develop the test program more conveniently, so that not only can the program development threshold be reduced, but also the development cost of the test program can be reduced.
In one embodiment, as shown in fig. 8, a process related to setting a target test case may include:
and step 210, displaying a test case setting interface.
The server may present a test case setup interface. As shown in FIG. 9, the test case setup interface exposes a case path input box.
And step 211, receiving an input operation aiming at the case path input box based on the test case setting interface, and determining a target test case according to the input operation aiming at the case path input box.
The user can input the storage path of the target test case in the case path input box of the test case setting interface, and the server receives input operation based on the test case setting interface and determines the target test case according to the storage path input in the case path input box.
In the above embodiment, the test case sets up the interface; and receiving an input operation aiming at the case path input box based on the test case setting interface, and determining a target test case according to the input operation aiming at the case path input box. Through the embodiment of the disclosure, a test case setting interface is provided for a user, and the user can set a test case and develop a test program more conveniently, so that not only can a program development threshold be reduced, but also the development cost of the test program can be reduced.
In one embodiment, as shown in fig. 10, a process related to setting installation package information may include:
and step 212, displaying an installation information setting interface.
Before installing the target installation package, the server needs to configure installation information. Thus, the server can expose an installation information setting interface. As shown in fig. 11, a plurality of installation package type options and installation package path input boxes are displayed in the installation information setting interface.
And step 213, receiving a selection operation aiming at the installation package type option and an input operation aiming at the installation package path input box based on the installation information setting interface, and determining a target installation package type and a target installation package path according to the selection operation aiming at the installation package type and the input operation aiming at the installation package path input box.
The user can select the type of the installation package in the installation information setting interface and input the storage path of the target installation package in the installation package path input box. And the server receives selection operation of the type of the installation package and input operation of the storage path of the installation package based on the installation information setting interface. And then, the server determines the type of the target installation package according to the selection operation and determines the path of the target installation package according to the input operation.
And step 214, displaying a package taking parameter setting interface.
And after determining the type and the path of the target installation package, the server displays a package-taking parameter setting interface. As shown in fig. 12, a plurality of package parameter input boxes are shown in the package parameter setting interface.
Step 215, receiving an input operation aiming at the package taking parameter input box based on the package taking parameter setting interface, and determining a target package taking parameter according to the input operation aiming at the package taking parameter input box.
The user can input the target package taking parameters in a package taking parameter input box of the package taking parameter setting interface, the server receives input operation based on the package taking parameter setting interface, and the target package taking parameters are determined according to the input operation.
Wherein the target packet fetching parameter comprises at least one of packet fetching time, a packet fetching repeating pattern, a cycle number of trying to fetch packets and a time interval. For example, the packet fetching time is 8 hours, 0 minutes, 0 seconds; the packet taking repetition mode is repeated every day; the cycle number of trying to fetch the package is 3 times, the time interval is 30 minutes, namely the maximum number of trying is 3 times when the installation package is obtained, the package fetching interval is 30 minutes each time, and if the installation package is not obtained after trying for 3 times, the package fetching operation is not performed.
And step 216, obtaining installation information according to the type of the target installation package, the path of the target installation package and the target package taking parameter.
And after determining the target package taking parameters, the server generates installation information according to the type of the target installation package, the path of the target installation package and the target package taking parameters. In this way, the server can acquire and install the target installation package according to the installation information when determining that the installation package is required.
In the above embodiment, the installation information setting interface is displayed; receiving selection operation aiming at the installation package type option and input operation aiming at the installation package path input box based on an installation information setting interface, and determining a target installation package type and a target installation package path according to the selection operation aiming at the installation package type and the input operation aiming at the installation package path input box; displaying a package taking parameter setting interface; and receiving input operation aiming at the package taking parameter input box based on the package taking parameter setting interface, and determining target package taking parameters according to the input operation aiming at the package taking parameter input box. Through the embodiment of the disclosure, an installation information setting interface and a package taking parameter setting interface are provided for a user, and the user can conveniently set installation information, package taking parameters and develop a test program, so that not only can a program development threshold be reduced, but also the development cost of the test program can be reduced.
In an embodiment, as shown in fig. 13, before the step of displaying the installation information setting interface, an embodiment of the present disclosure may further include:
and step 217, detecting the space size of the packaged disk.
Before configuring the installation information, the server performs space size detection on the packaged disk, and detects whether the packaged disk has enough packaging space as shown in fig. 14.
And step 218, displaying the installation information interface under the condition that the space for packaging the disk is larger than a preset space threshold value.
And under the condition that the space of the packaging disk is larger than a preset space threshold value, the packaging disk is large enough to install the target installation package, and at the moment, the server displays an installation information interface and configures installation information.
In the above embodiment, the space size of the packaged disk is detected, and the installation information interface is displayed when the space of the packaged disk is greater than the preset space threshold. Through this disclosed embodiment, guarantee to install the information setting under the sufficient condition in dress package space, avoid the not enough problem that leads to the dress package failure in dress package space.
In one embodiment, as shown in fig. 15, an embodiment of the present disclosure may further include:
step 219, the parameter backup interface is displayed.
In the process of configuring the installation information, the server can also display a parameter backup interface. As shown in fig. 16, the parameter backup interface is shown with at least one backup-able parameter option; the backupable parameter options include UIH at least one of a file option, a source data option, and an image option.
Step 220, receiving a selection operation for the backup-available parameter option based on the parameter backup interface, and determining the target backup-available parameter according to the selection operation for the backup-available parameter option.
The user can select the parameters to be backed up from the parameter backup interface, the server receives selection operation based on the parameter backup interface, and the target backupable parameters are determined according to the selection operation.
Correspondingly, the step 216 may include: and obtaining the installation information according to the type of the target installation package, the path of the target installation package, the target package taking parameter and the target backup parameter.
And after obtaining the target backup parameters, the server generates installation information according to the type of the target installation package, the path of the target installation package, the target package taking parameters and the target backup parameters. Thereafter, the server may perform installation of the target installation package according to the installation information.
In the above embodiment, the parameter backup interface is displayed; and receiving a selection operation aiming at the backup parameter option based on the parameter backup interface, and determining a target backup parameter according to the selection operation aiming at the backup parameter option. By the aid of the method and the device, the backup parameters are determined, so that the parameters can be backed up in the test process, and subsequent checking is facilitated.
In one embodiment, as shown in fig. 17, an embodiment of the present disclosure may further include:
step 221, displaying the overlay file setting interface.
In the process of configuring the installation information, the server can also display an overlay file setting interface. As shown in fig. 18, a plurality of file path input boxes are displayed in the overlay file setting interface.
Step 222, receiving an input operation for the file path input box based on the overlay file setting interface, and obtaining at least one storage path of the target configuration file to be overlaid after packaging according to the input operation for the file path input box.
The configuration file to be covered after packaging comprises at least one of an archive source file, an archive destination file, a print source file, a print destination file, a license source file and a license destination file.
The user can perform an input operation in a file path input box covering the file setting interface. For example, the user inputs a storage path of the archive source file, a storage path of the archive destination file, a storage path of the print source file, a storage path of the print destination file, a storage path of the license source file, and a storage path of the license destination file.
And the server receives the input operation of a user based on the overlay file setting interface, and determines the storage path of the target configuration file to be overlaid after the package is packaged according to the input operation. After packaging, at least one target configuration file of the archive source file, the archive destination file, the print source file, the print destination file, the license source file and the license destination file can be subjected to overlay processing according to the storage paths.
Correspondingly, step 216 may include: and obtaining the installation information according to the type of the target installation package, the path of the target installation package, the target package taking parameter and the storage path of the target configuration file to be covered after the package is installed.
After the storage path of the target configuration file which needs to be covered after the package is obtained, the server generates installation information according to the type of the target installation package, the path of the target installation package, the target package fetching parameter and the storage path of the target configuration file which needs to be covered after the package is obtained.
In the above embodiment, the overlay file setting interface is displayed; and receiving an input operation aiming at the file path input box based on the overlay file setting interface, and acquiring at least one storage path of the target configuration file to be overlaid after packaging according to the input operation aiming at the file path input box. Through the embodiment of the disclosure, a coverage file setting interface is provided for a user, and the user can set a target configuration file to be covered after packaging and develop a test program more conveniently, so that not only can a program development threshold be reduced, but also the development cost of the test program can be reduced.
In one embodiment, as shown in fig. 19, an embodiment of the present disclosure may further include:
step 223, displaying the modality setting interface.
Before determining the storage path of the target configuration file to be covered after the packaging, the target configuration file to be covered after the packaging needs to be generated, so that the server can display the modal setting interface. As shown in FIG. 20, the modality setting interface is exposed with a modality path input box.
The modalities include CT (Computed Tomography), MR (Magnetic Resonance), PET (Positron Emission Computed Tomography), and the like. The mode is not limited in the embodiment of the disclosure.
And 224, receiving an input operation aiming at the modal path input box based on the modal setting interface, and determining a target modal according to the input operation aiming at the modal path input box.
The user can input a target modality in a modality path input box of the modality setting interface, the server receives input operation based on the modality setting interface, and the target modality is determined according to the input operation.
Step 225, displaying the workflow setting interface.
Since the workflow of different medical imaging devices is different, the workflow needs to be set. The server displays the workflow setting interface, and as shown in fig. 21, the workflow setting interface displays the workflow path input box.
Step 226, receiving an input operation for the workflow path input box based on the workflow setting interface, and determining a target workflow according to the input operation for the workflow path input box.
The user can input the storage path of the target workflow in the workflow path input box of the workflow setting interface, and the server receives input operation based on the workflow setting interface and determines the target workflow according to the input operation.
And 227, obtaining a target configuration file according to the target mode and the target workflow.
After the server obtains the target modality and the target workflow, a target configuration file can be generated according to the target modality and the target workflow.
In the above embodiment, a modality setting interface is displayed; receiving an input operation aiming at the modal path input box based on the modal setting interface, and determining a target modal according to the input operation aiming at the modal path input box; displaying a workflow setting interface; receiving an input operation aiming at the workflow path input box based on the workflow setting interface, and determining a target workflow according to the input operation aiming at the workflow path input box; and obtaining a target configuration file according to the target mode and the target workflow. Through the embodiment of the disclosure, a mode setting interface and a workflow setting interface are provided for a user, and the user can conveniently set the mode and the workflow and develop the test program, so that not only can the program development threshold be reduced, but also the development cost of the test program can be reduced.
In one embodiment, the disclosed embodiments may further include: and installing the target installation package according to the preset installation information.
The installation information comprises a target installation package type, a target installation package path and modal configuration information corresponding to the target installation package type.
Before starting the test program, the user may select whether the package needs to be installed, as shown in fig. 22, if the package needs to be installed, the server obtains the pre-configured installation information, obtains the target installation package according to the installation package type and the installation package storage path in the installation information, and then installs the target installation package.
In one embodiment, as shown in FIG. 23, after configuring the installation information, the configuration information is saved and the task of installing the target installation package at regular times is triggered.
In the above embodiment, the target installation package is installed according to the pre-configured installation information. Through the embodiment of the disclosure, the installation package of the test program is provided for the user, and the test program can be automatically installed, so that the test is automatically performed, and the test efficiency is improved.
It should be understood that, although the respective steps in the flowcharts of fig. 2 to 23 are sequentially shown as indicated by arrows, the steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 to 23 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 order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 24, there is provided a test apparatus comprising:
a program starting module 301, configured to start a test program;
a test data import module 302, configured to import target test data;
a license loading module 303, configured to load a target license from the test function library according to preconfigured license information;
a test case selection module 304, configured to select a target test case according to a target test type;
the test case execution module 305 is configured to execute the target test case to obtain a target test result.
In one embodiment, the apparatus further comprises:
and the mode determining module is used for determining a parameter setting mode, and the parameter setting mode comprises manual setting and configuration file setting.
In one embodiment, the apparatus further comprises:
the parameter setting module is used for setting target test data, a target test type, a target test case and installation information of the installation package according to user operation if the parameter setting mode is manual setting;
the target test type comprises at least one of smoking test, performance test, interface test, stability test, reliability test and host test.
In one embodiment, the apparatus further comprises:
the installation module is used for installing the target installation package according to the configured installation information; the installation information comprises a target installation package type, a target installation package path and modal configuration information corresponding to the target installation package type.
In one embodiment, the apparatus further comprises:
and the test recording module is used for recording a test process screenshot, a process log and a system log in the process of executing the target test case.
In one embodiment, the apparatus further comprises:
and the report generating module is used for generating a test report according to the target test result and storing the test report into the test log library.
For the specific definition of the testing device, reference may be made to the above definition of the testing method, which is not described herein again. The modules in the testing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 25. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing test data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a testing method.
Those skilled in the art will appreciate that the architecture shown in fig. 25 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
starting a test program;
importing target test data;
loading a target license from a test function library according to preset license information;
selecting a target test case according to the target test type;
and executing the target test case to obtain a target test result.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
in one embodiment, the processor, when executing the computer program, further performs the steps of:
and determining a parameter setting mode, wherein the parameter setting mode comprises manual setting and configuration file setting.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the parameter setting mode is manual setting, setting target test data, a target test type, a target test case and installation information of the installation package according to user operation;
the target test type comprises at least one of smoking test, performance test, interface test, stability test, reliability test and host test.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
installing a target installation package according to the configured installation information; the installation information comprises a target installation package type, a target installation package path and modal configuration information corresponding to the target installation package type.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and recording a test process screenshot, a process log and a system log in the process of executing the target test case.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
generating a test report according to the target test result, and storing the test report into a test log library; wherein the test report includes a test log.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
starting a test program;
importing target test data;
loading a target license from a test function library according to preset license information;
selecting a target test case according to the target test type;
and executing the target test case to obtain a target test result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and determining a parameter setting mode, wherein the parameter setting mode comprises manual setting and configuration file setting.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the parameter setting mode is manual setting, setting target test data, a target test type, a target test case and installation information of the installation package according to user operation;
the target test type comprises at least one of smoking test, performance test, interface test, stability test, reliability test and host test.
In one embodiment, the computer program when executed by the processor further performs the steps of:
installing a target installation package according to the configured installation information; the installation information comprises a target installation package type, a target installation package path and modal configuration information corresponding to the target installation package type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and recording a test process screenshot, a process log and a system log in the process of executing the target test case.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a test report according to the target test result, and storing the test report into a test log library; wherein the test report includes a test log.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A test system is characterized by comprising a start script library, a test function library, a test case library and a test log library;
the starting script library is used for starting a test program, cleaning an operating environment and calling a mail;
the test function library is used for providing test functions, test operations and test tools;
the test case library is used for storing test cases;
and the test log library is used for storing test logs.
2. The system of claim 1, wherein the start-up script library is written in CMD language to provide a unified parameter template.
3. The system of claim 1, wherein the library of test functions comprises a general purpose function library, a business function library, and a tool library.
4. A testing method, characterized in that the testing method is performed based on the testing system of any one of claims 1 to 3, the method comprising:
starting a test program;
importing target test data;
loading a target license from a test function library according to preset license information;
selecting a target test case according to the target test type;
and executing the target test case to obtain a target test result.
5. The method of claim 4, wherein prior to said initiating a test procedure, the method further comprises:
determining a parameter setting mode, wherein the parameter setting mode comprises manual setting and configuration file setting.
6. The method of claim 5, further comprising:
if the parameter setting mode is manual setting, setting the target test data, the target test type, the target test case and the installation information of the installation package according to user operation;
wherein the target test type comprises at least one of a smoking test, a performance test, an interface test, a stability test, a reliability test and a host test.
7. The method of claim 6, further comprising:
installing a target installation package according to the configured installation information; the installation information comprises a target installation package type, a target installation package path and modal configuration information corresponding to the target installation package type.
8. The method of claim 4, further comprising:
and recording a test process screenshot, a process log and a system log in the process of executing the target test case.
9. The method of claim 8, wherein after the executing the target test case to obtain a target test result, the method further comprises:
and generating a test report according to the target test result, and storing the test report into a test log library.
10. A test apparatus, the apparatus comprising:
the program starting module is used for starting a test program;
the test data import module is used for importing target test data;
the license loading module is used for loading the target license from the test function library according to the preset license information;
the test case selection module is used for selecting a target test case according to the target test type;
and the test case execution module is used for executing the target test case to obtain a target test result.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 4 to 9 when executing the computer program.
12. 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 4 to 9.
CN202110995467.4A 2021-08-27 2021-08-27 Test system, method, device, computer equipment and storage medium Pending CN113742224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110995467.4A CN113742224A (en) 2021-08-27 2021-08-27 Test system, method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110995467.4A CN113742224A (en) 2021-08-27 2021-08-27 Test system, method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113742224A true CN113742224A (en) 2021-12-03

Family

ID=78733413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110995467.4A Pending CN113742224A (en) 2021-08-27 2021-08-27 Test system, method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113742224A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679402A (en) * 2022-03-25 2022-06-28 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN115543715A (en) * 2022-12-02 2022-12-30 江苏华存电子科技有限公司 Performance test method and system for semiconductor storage products
CN114679402B (en) * 2022-03-25 2024-05-14 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488085A (en) * 2008-01-17 2009-07-22 中兴通讯股份有限公司 Software interface test method and apparatus
US20140121509A1 (en) * 2012-10-31 2014-05-01 Volcano Corporation Dependency-Based Startup In A Multi-Modality Medical System
US20140181590A1 (en) * 2012-12-20 2014-06-26 Sap Ag Automated end-to-end testing via multiple test tools
CN104794049A (en) * 2014-01-20 2015-07-22 腾讯科技(深圳)有限公司 Application program test method and device
CN109408391A (en) * 2018-11-06 2019-03-01 北京京航计算通讯研究所 Software System Integrated Testing system based on continuous integrating technology
CN111522738A (en) * 2020-03-30 2020-08-11 拉扎斯网络科技(上海)有限公司 Test method and device of micro-service system, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488085A (en) * 2008-01-17 2009-07-22 中兴通讯股份有限公司 Software interface test method and apparatus
US20140121509A1 (en) * 2012-10-31 2014-05-01 Volcano Corporation Dependency-Based Startup In A Multi-Modality Medical System
US20140181590A1 (en) * 2012-12-20 2014-06-26 Sap Ag Automated end-to-end testing via multiple test tools
CN104794049A (en) * 2014-01-20 2015-07-22 腾讯科技(深圳)有限公司 Application program test method and device
CN109408391A (en) * 2018-11-06 2019-03-01 北京京航计算通讯研究所 Software System Integrated Testing system based on continuous integrating technology
CN111522738A (en) * 2020-03-30 2020-08-11 拉扎斯网络科技(上海)有限公司 Test method and device of micro-service system, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679402A (en) * 2022-03-25 2022-06-28 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN114679402B (en) * 2022-03-25 2024-05-14 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN115543715A (en) * 2022-12-02 2022-12-30 江苏华存电子科技有限公司 Performance test method and system for semiconductor storage products

Similar Documents

Publication Publication Date Title
US10303490B2 (en) Apparatus and method for optimizing startup of embedded system
US9213625B1 (en) Method and apparatus for performing automated user-interface layout testing
CN114168222B (en) Method and device for acquiring time consumption during starting, terminal equipment and storage medium
CN114879939A (en) Method, system, electronic device and storage medium for generating micro service
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
US20110029953A1 (en) System and Method for Scalable Handling of Debug Information
CN116166525A (en) Method and device for generating test script
US20210026756A1 (en) Deriving software application dependency trees for white-box testing
CN113742224A (en) Test system, method, device, computer equipment and storage medium
CN112181388B (en) Initializing method and device of SDK (software development kit) component, storage medium and control terminal
CN110806891B (en) Method and device for generating software version of embedded device
CN114328168A (en) Anomaly detection method and device, computer equipment and storage medium
CN111176653B (en) Program compiling and packaging method and device, electronic equipment and storage medium
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
CN114691496A (en) Unit testing method, unit testing device, computing equipment and medium
CN111367796B (en) Application program debugging method and device
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN111209197B (en) Application continuous integration test method, system, equipment and storage medium
CN113031964A (en) Management method, device, equipment and storage medium for big data application
CN111008131B (en) Automated testing method, apparatus, computer device and storage medium
CN113094052A (en) Application construction method and device, computer equipment and storage medium
CN113076084A (en) Resource file processing method, device, equipment and storage medium
CN104572199A (en) Method and device for inhibiting starting items from starting
CN113139190A (en) Program file detection method and device, electronic equipment and storage medium
CN113377613B (en) Hard disk test monitoring method and device based on Windows system and computer equipment

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