[go: up one dir, main page]

CN107894951A - The automated testing method and system of flat panel detector software - Google Patents

The automated testing method and system of flat panel detector software Download PDF

Info

Publication number
CN107894951A
CN107894951A CN201711055983.9A CN201711055983A CN107894951A CN 107894951 A CN107894951 A CN 107894951A CN 201711055983 A CN201711055983 A CN 201711055983A CN 107894951 A CN107894951 A CN 107894951A
Authority
CN
China
Prior art keywords
test
flat panel
panel detector
series
test case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711055983.9A
Other languages
Chinese (zh)
Other versions
CN107894951B (en
Inventor
李培
宁海涛
潘力平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yirui Electronic Technology Group Co.,Ltd.
Original Assignee
Shanghai Yi Ruiguang Electronic Polytron Technologies Inc
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 Shanghai Yi Ruiguang Electronic Polytron Technologies Inc filed Critical Shanghai Yi Ruiguang Electronic Polytron Technologies Inc
Priority to CN201711055983.9A priority Critical patent/CN107894951B/en
Publication of CN107894951A publication Critical patent/CN107894951A/en
Application granted granted Critical
Publication of CN107894951B publication Critical patent/CN107894951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

The present invention provides the automated testing method and system of flat panel detector software.Methods described includes:Obtain test input;Test input includes:A series of test case files or a series of listed files of test case files write in advance;Wherein, a series of various mode of operations write respectively with flat panel detector of test case files correspond, optionally to trigger the X-ray emitter communicated to connect with flat panel detector according to corresponding mode of operation when executed;Perform a series of test case files;Wherein, belonging to a series of test case files of listed files can be performed simultaneously;After a series of execution of test case files, exported the return information of flat panel detector software as test.The present invention solves the problems such as automatization testing technique flexibility deficiency of current flat panel detector software, engaged test resource is excessive, simplifies the requirement to test environment, improves the automatic test efficiency to flat panel detector software.

Description

平板探测器软件的自动化测试方法及系统Automated testing method and system for flat panel detector software

技术领域technical field

本发明涉及医疗器械的软件测试领域,特别是涉及平板探测器软件的自动化测试方法及系统。The invention relates to the field of software testing of medical equipment, in particular to an automatic testing method and system for flat panel detector software.

背景技术Background technique

目前,平板探测器广泛应用于光学医疗诊断,X射线在穿过人体后投射到平板探测器上,通过实时图像处理,直接获得图像数字信号,然后传送给工作站,工作站以计算机为主体,应用计算机技术将数字图像采集、处理、传输及显示在显示器上,供医务人员观察图像,进行医疗诊断。At present, flat-panel detectors are widely used in optical medical diagnosis. X-rays are projected onto flat-panel detectors after passing through the human body. Through real-time image processing, image digital signals are directly obtained, and then transmitted to workstations. The workstations use computers as the main body. The technology collects, processes, transmits and displays digital images on a monitor for medical personnel to observe the images and perform medical diagnosis.

平板探测器SDK(Software Development Kit,软件开发包)的测试对测试环境依赖程度较高,除平板探测器以外,通常还需要X光发生装置、软件界面等的配合,测试人员通过操作软件界面来对SDK进行测试,在此过程中会存在两个缺点:The test of flat panel detector SDK (Software Development Kit, software development kit) has a high degree of dependence on the test environment. In addition to flat panel detectors, it usually requires the cooperation of X-ray generators and software interfaces. Testers operate the software interface to There are two shortcomings in the process of testing the SDK:

1.灵活性不足,覆盖不充分,不便于快速回归和迭代。软件界面流程相对固定,不容易对流程进行定制化,界面没有的流程则测试不到,并且,自行开发的软件界面使用SDK的方式可能与DR客户集成SDK时的使用方式不尽相同。通常,实现自动化测试需要借助第三方商业软件。1. Insufficient flexibility, insufficient coverage, and inconvenient rapid regression and iteration. The process of the software interface is relatively fixed, and it is not easy to customize the process. If there is no process in the interface, it cannot be tested. Moreover, the way the self-developed software interface uses the SDK may be different from the way the DR customer integrates the SDK. Usually, the implementation of automated testing requires the help of third-party commercial software.

2.占用测试资源较多。对于平板探测器SDK测试来说,较多场景并不需要采集亮场图,但因为有些触发模式平板需要高压信号触发采图,往往就不必要地占用了铅房、高压发生器和球管,而铅房和X射线发生装置往往都是紧缺的资源。2. Occupies more test resources. For flat-panel detector SDK tests, many scenes do not need to collect bright-field images, but because some trigger modes require high-voltage signals to trigger image acquisition, lead rooms, high-voltage generators and bulbs are often occupied unnecessarily. The lead room and the X-ray generator are often scarce resources.

发明内容Contents of the invention

鉴于以上所述现有技术的缺点,本发明的目的在于提供平板探测器SDK的自动化测试方法及系统,解决了目前平板探测器SDK的自动化测试技术灵活性不足、占用测试资源过多等问题,简化了对测试环境的要求,提高了对平板探测器SDK的自动化测试效率。In view of the above-mentioned shortcomings of the prior art, the object of the present invention is to provide an automated testing method and system for the flat panel detector SDK, which solves the problems of insufficient flexibility of the automated testing technology of the flat panel detector SDK and excessive occupancy of test resources. Simplifies the requirements for the test environment and improves the efficiency of automated testing of the flat panel detector SDK.

为实现上述目的及其他相关目的,本发明提供一种平板探测器软件的自动化测试方法,包括:获取测试输入;所述测试输入包括:预先编写的一系列测试用例文件、或所述一系列测试用例文件的文件列表;其中,所述一系列测试用例文件的编写分别与平板探测器的各种工作模式一一对应,以在被执行时根据相应的工作模式选择性地触发与所述平板探测器通信连接的X射线发生器;执行所述一系列测试用例文件;其中,属于所述文件列表的一系列测试用例文件会被同时执行;待所述一系列测试用例文件执行后,将所述平板探测器软件的返回信息作为测试输出。In order to achieve the above purpose and other related purposes, the present invention provides an automated testing method for flat panel detector software, including: obtaining test input; the test input includes: a series of test case files written in advance, or the series of test A file list of use case files; wherein, the preparation of the series of test case files corresponds to the various working modes of the flat panel detectors, so that when executed, they are selectively triggered with the flat panel detectors according to the corresponding working modes The X-ray generator that device communication connects; Execute described a series of test case files; Wherein, the series of test case files belonging to described file list can be executed simultaneously; After the execution of described a series of test case files, the described The return information from the flat panel detector software is used as test output.

于本发明一实施例中,所述平板探测器的工作模式包括:software模式、prep模式、out模式、sync in模式、inner模式、及freesync模式中的一种或多种组合;其中:所述software模式的测试用例中不包括向所述X射线发生器发送指令的步骤;所述prep模式的测试用例中包括向所述X射线发生器发送第一指令的步骤,从而令所述X射线发生器向所述平板探测器发送准备曝光的电平信号,以供所述平板探测器根据该电平信号向所述X射线发生器返回准备就绪的响应信号,并在固定时长后自行采图;所述out模式的测试用例中包括向所述X射线发生器发送第二指令的步骤,从而令所述X射线发生器向所述平板探测器发送准备曝光的电平信号,以供所述平板探测器根据该电平信号向所述X射线发生器返回准备就绪的响应信号,并在收到所述X射线发生器发送的曝光完成通知后进行采图;所述syncin模式的测试用例中包括向所述X射线发生器发送第三指令的步骤,从而令所述X射线发生器向所述平板探测器发送准备曝光的电平信号,并周期性地通知所述平板探测器曝光完成,从而触发所述平板探测器周期性地采图;所述inner模式、或所述freesync模式的测试用例中包括向所述X射线发生器发送第四指令的步骤,从而令所述X射线发生器发送X射线,以供所述平板探测器的X光检测部件检测到所述X射线后进行采图。In an embodiment of the present invention, the working mode of the flat panel detector includes: one or more combinations of software mode, prep mode, out mode, sync in mode, inner mode, and freesync mode; wherein: the The test case of the software mode does not include the step of sending an instruction to the X-ray generator; the test case of the prep mode includes the step of sending the first instruction to the X-ray generator, so that the X-ray occurs The device sends a level signal ready for exposure to the flat panel detector, so that the flat panel detector returns a ready response signal to the X-ray generator according to the level signal, and takes pictures by itself after a fixed period of time; The test case of the out mode includes the step of sending a second instruction to the X-ray generator, so that the X-ray generator sends a level signal ready for exposure to the flat panel detector for the flat panel The detector returns a ready response signal to the X-ray generator according to the level signal, and takes pictures after receiving the exposure completion notification sent by the X-ray generator; the test case of the syncin mode includes The step of sending a third instruction to the X-ray generator, so that the X-ray generator sends a level signal ready for exposure to the flat panel detector, and periodically notifies the flat panel detector that the exposure is completed, so that Triggering the flat panel detector to take pictures periodically; the inner mode or the test case of the freesync mode includes the step of sending a fourth instruction to the X-ray generator, so that the X-ray generator sends X-rays are used for image acquisition after the X-ray detection component of the flat panel detector detects the X-rays.

于本发明一实施例中,还包括:通过执行预先编写的解释程序文件对所述一系列测试用例文件的执行流程进行解释。In an embodiment of the present invention, it further includes: interpreting the execution flow of the series of test case files by executing a pre-written interpreter file.

于本发明一实施例中,还包括:在多次执行测试流程之后,将当前测试结果与上一次测试结果进行比较,并根据比较结果给出差异统计信息。In an embodiment of the present invention, it also includes: after executing the test process for multiple times, comparing the current test result with the last test result, and giving difference statistical information according to the comparison result.

于本发明一实施例中,还包括:在多次执行测试流程之后,通过分析各次测试的测试结果,推荐下一次执行测试所采用的测试用例文件。In an embodiment of the present invention, it further includes: after executing the test process for multiple times, by analyzing the test results of each test, recommending the test case file used for the next test execution.

于本发明一实施例中,所述一系列测试用例文件基于xml语言编写。In an embodiment of the present invention, the series of test case files are written based on xml language.

为实现上述目的及其他相关目的,本发明提供一种平板探测器软件的自动化测试系统,包括:输入模块,用于获取测试输入;所述测试输入包括:预先编写的一系列测试用例文件、或所述一系列测试用例文件的文件列表;其中,所述一系列测试用例文件的编写分别与平板探测器的各种工作模式一一对应,以在被执行时根据相应的工作模式选择性地触发与所述平板探测器通信连接的X射线发生器;测试模块,用于执行所述一系列测试用例文件;其中,属于所述文件列表的一系列测试用例文件会被同时执行;输出模块,用于待所述一系列测试用例文件执行后,将所述平板探测器软件的返回信息作为测试输出。In order to achieve the above purpose and other related purposes, the present invention provides an automated testing system for flat panel detector software, including: an input module for obtaining test input; the test input includes: a series of pre-written test case files, or The file list of the series of test case files; wherein, the writing of the series of test case files corresponds to the various working modes of the flat panel detector, so as to be selectively triggered according to the corresponding working modes when being executed An X-ray generator connected in communication with the flat panel detector; a test module for executing the series of test case files; wherein, a series of test case files belonging to the file list will be executed simultaneously; an output module for After the series of test case files are executed, the return information of the flat panel detector software is used as the test output.

于本发明一实施例中,所述测试模块还用于:通过执行预先编写的解释程序文件对所述一系列测试用例文件的执行流程进行解释。In an embodiment of the present invention, the test module is further configured to: interpret the execution flow of the series of test case files by executing a pre-written interpreter file.

于本发明一实施例中,所述测试模块还用于:在多次执行测试流程之后,将当前测试结果与上一次测试结果进行比较,并根据比较结果给出差异统计信息。In an embodiment of the present invention, the test module is further used for: comparing the current test result with the last test result after multiple executions of the test process, and giving difference statistical information according to the comparison result.

于本发明一实施例中,所述测试模块还用于:在多次执行测试流程之后,通过分析各次测试的测试结果,推荐下一次执行测试所采用的测试用例文件。In an embodiment of the present invention, the test module is further used for: after executing the test process for multiple times, by analyzing the test results of each test, recommending the test case file used for the next test execution.

如上所述,本发明的平板探测器软件的自动化测试方法及系统,具有以下有益效果:As mentioned above, the automatic testing method and system of the flat panel detector software of the present invention have the following beneficial effects:

1.使用XML(也可以是其他格式的文本)定义流程,扩展性好,可以对客户使用场景进行模拟,提高测试覆盖率。1. Use XML (or text in other formats) to define the process, which has good scalability and can simulate customer usage scenarios to improve test coverage.

2.可重复、自动化执行,减少测试人员工作量,提升测试效率。2. Repeatable and automated execution reduces the workload of testers and improves test efficiency.

3.测试输入输出标准化,自动连续执行,自动输出测试结果,便于快速进行回归测试,减少故障泄露率。3. Standardization of test input and output, automatic continuous execution, and automatic output of test results facilitate rapid regression testing and reduce failure leakage rates.

4.使用测试程序驱动的硬件设备替代高压发生装置,降低测试成本。4. Replace the high-voltage generating device with the hardware device driven by the test program to reduce the test cost.

5.一定程度的自学习功能:对于测试结果进行自动分析,给出测试建议,如推荐优先执行的测试用例等。5. A certain degree of self-learning function: automatically analyze the test results and give test suggestions, such as recommending priority test cases, etc.

附图说明Description of drawings

图1显示为本发明一实施例中的平板探测器软件的自动化测试场景架构示意图。FIG. 1 is a schematic diagram of an automated test scene architecture of flat panel detector software in an embodiment of the present invention.

图2显示为本发明一实施例中的平板探测器软件的自动化测试方法的流程示意图。FIG. 2 is a schematic flowchart of an automated testing method for flat panel detector software in an embodiment of the present invention.

图3显示为本发明一实施例中的平板探测器软件的自动化测试系统的模块示意图Fig. 3 shows the module schematic diagram of the automatic test system of the flat panel detector software in an embodiment of the present invention

图4显示为本发明一实施例中的平板探测器软件的自动化测试系统的组件示意图。FIG. 4 is a schematic diagram of components of an automated testing system for flat panel detector software in an embodiment of the present invention.

具体实施方式Detailed ways

以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the diagrams provided in the following embodiments are only schematically illustrating the basic ideas of the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the components in actual implementation. Dimensional drawing, the type, quantity and proportion of each component can be changed arbitrarily during actual implementation, and the component layout type may also be more complicated.

请参阅图1,本实施例提供一种平板探测器软件的自动化测试方法,应用于图1所示的测试工具,用于对平板探测器的软件(SDK)进行自动化测试。该测试工具作为一种软件程序,搭载于台式机、便携式电脑等电子设备中或自制设备中(通常是使用一块单片机开发板,上面安装可以接收串口通讯命令,根据不同的命令控制输出不同的电平信号的程序),并能够通过串口(或其它连接方式)向所搭载的电子设备发送控制指令,从而让该电子设备向X射线发生器发送相应的触发信号,以及接收平板探测器发送的反馈信息等。Please refer to FIG. 1 . This embodiment provides an automated testing method for flat panel detector software, which is applied to the testing tool shown in FIG. 1 and used for automated testing of flat panel detector software (SDK). As a software program, the test tool is installed in electronic equipment such as desktop computers, portable computers, or self-made equipment (usually using a single-chip microcomputer development board, installed on it to receive serial communication commands, and output different electrical signals according to different commands. flat signal program), and can send control commands to the electronic equipment carried by the serial port (or other connection methods), so that the electronic equipment can send corresponding trigger signals to the X-ray generator and receive feedback from the flat panel detector information etc.

如图2所示,本实施例的平板探测器软件的自动化测试方法主要包括如下步骤:As shown in Figure 2, the automatic testing method of the flat panel detector software of the present embodiment mainly comprises the following steps:

S201:获取测试输入。所述测试输入包括:预先编写的一系列测试用例文件、或所述一系列测试用例文件的文件列表,其中,属于所述文件列表的测试用例文件会被同时执行。S201: Obtain a test input. The test input includes: a series of test case files written in advance, or a file list of the series of test case files, wherein the test case files belonging to the file list will be executed simultaneously.

可选的,所述一系列测试用例文件基于xml语言编写。使用XML语言编写测试流程,流程中的步骤可以是对SDK接口的调用,也可以是任意自定义的动作,如驱动外设(X射线发生器的高压发生器)等。进一步地,还可以基于XML自定义流程设计解释引擎,从而对自定义流程进行解释。Optionally, the series of test case files are written based on xml language. Use the XML language to write the test process. The steps in the process can be calls to the SDK interface, or any custom actions, such as driving peripherals (high-voltage generators for X-ray generators), etc. Furthermore, an interpretation engine can also be designed based on the XML custom process, so as to explain the custom process.

一般的,平板探测器的工作模式包括:software模式、prep模式、out模式、sync in模式、inner模式、freesync模式等。具体的:Generally, the working modes of the flat panel detector include: software mode, prep mode, out mode, sync in mode, inner mode, freesync mode, etc. specific:

1)对于测试software模式来说,由于无需其它外设即可执行测试,所以测试用例中无需包含控制该测试工具所搭载的电子设备的测试步骤即可采集到图像,也即,测试用例中不需要编写向X射线发生器发送触发信号的步骤;1) For the test software mode, since the test can be performed without other peripherals, the test case does not need to include the test steps to control the electronic equipment carried by the test tool to collect images, that is, there is no test case in the test case. Need to write the steps to send the trigger signal to the X-ray generator;

2)对于测试prep模式、out模式、sync in模式的用例来说,如果要采集图像就需要包含控制该测试工具所搭载的电子设备的步骤,从而控制该电子设备通过X射线发生器给平板探测器发送硬件电信号来触发采图,也即:2) For the use cases of testing prep mode, out mode, and sync in mode, if you want to collect images, you need to include the steps of controlling the electronic equipment carried by the test tool, so as to control the electronic equipment to detect the flat panel through the X-ray generator The transmitter sends a hardware electrical signal to trigger image acquisition, that is:

在所述prep模式的测试用例中包括向所述X射线发生器发送第一指令的步骤,从而令所述X射线发生器向所述平板探测器发送准备曝光的电平信号,以供所述平板探测器根据该电平信号向所述X射线发生器返回准备就绪的响应信号,并在固定时长后自行采图;The test case of the prep mode includes a step of sending a first instruction to the X-ray generator, so that the X-ray generator sends a level signal for preparing exposure to the flat panel detector for the The flat panel detector returns a ready response signal to the X-ray generator according to the level signal, and collects a picture by itself after a fixed period of time;

在所述out模式的测试用例中包括向所述X射线发生器发送第二指令的步骤,从而令所述X射线发生器向所述平板探测器发送准备曝光的电平信号,以供所述平板探测器根据该电平信号向所述X射线发生器返回准备就绪的响应信号,并在收到所述X射线发生器发送的曝光完成通知后进行采图;The test case of the out mode includes the step of sending a second instruction to the X-ray generator, so that the X-ray generator sends a level signal ready for exposure to the flat panel detector for the The flat panel detector returns a ready response signal to the X-ray generator according to the level signal, and takes pictures after receiving the exposure completion notification sent by the X-ray generator;

在所述sync in模式的测试用例中包括向所述X射线发生器发送第三指令的步骤,从而令所述X射线发生器向所述平板探测器发送准备曝光的电平信号,并周期性地通知所述平板探测器曝光完成,从而触发所述平板探测器周期性地采图。In the test case of the sync in mode, the step of sending a third instruction to the X-ray generator is included, so that the X-ray generator sends a level signal for preparing exposure to the flat panel detector, and periodically Notify the flat panel detector that the exposure is complete, thereby triggering the flat panel detector to take pictures periodically.

此时,测试工具可通过串口(或其它连接方式)给电子设备发送指令,电子设备通过X射线发生器向平板探测器输出指定控制信号,触发平板探测器采图;At this time, the test tool can send instructions to the electronic device through the serial port (or other connection methods), and the electronic device outputs a specified control signal to the flat panel detector through the X-ray generator to trigger the flat panel detector to take pictures;

3)对于测试inner模式、freesync模式的测试用例来说,由于平板探测器需要感知到x光才能上图,所以这两种模式与前述1)和2)的情况不同,必须使用X射线发生器才能触发上图。因此,在测试用例文件中需要定义控制该测试工具所搭载的电子设备的步骤,从而控制该电子设备给X射线发生器发送电信号,进一步触发平板探测器上图,也即,在所述inner模式、或所述freesync模式的测试用例中包括向所述X射线发生器发送第四指令的步骤,从而令所述X射线发生器发送X射线,以供所述平板探测器的X光检测部件检测到所述X射线后进行采图。此时,由于需要有X射线发生器支持,所述测试工具通过串口(或其它连接方式)给电子设备发送指令,电子设备向X射线发生器发送手闸信号,命令高压发生器高压放线,并触发平板探测器采图。3) For the test cases of testing inner mode and freesync mode, since the flat panel detector needs to perceive X-rays to upload images, these two modes are different from the previous 1) and 2), and an X-ray generator must be used to trigger the image above. Therefore, in the test case file, it is necessary to define the steps to control the electronic equipment carried by the test tool, so as to control the electronic equipment to send electrical signals to the X-ray generator, and further trigger the above picture of the flat panel detector, that is, in the inner mode, or the test case of the freesync mode includes the step of sending a fourth instruction to the X-ray generator, so that the X-ray generator sends X-rays for the X-ray detection part of the flat panel detector After the X-rays are detected, the pictures are taken. At this time, due to the need for the support of the X-ray generator, the test tool sends instructions to the electronic device through the serial port (or other connection methods), and the electronic device sends a hand switch signal to the X-ray generator to command the high-voltage generator to discharge the wire at high voltage. And trigger the flat panel detector to take pictures.

S202:执行所述一系列测试用例文件。S202: Execute the series of test case files.

在一较佳的实施方式中,所述方法还包括:通过执行预先编写的解释程序文件对所述一系列测试用例文件的执行流程进行解释。In a preferred embodiment, the method further includes: interpreting the execution flow of the series of test case files by executing a pre-written interpreter file.

S203:将所述平板探测器软件的返回信息作为测试输出。其中,返回信息包括:从SDK返回的调用结果,以及收到的各种消息和消息内容等。收到返回信息后保存到文件。S203: Output the information returned by the flat panel detector software as a test. Among them, the returned information includes: the call result returned from the SDK, and various received messages and message content, etc. After receiving the return information, save it to a file.

在另一实施例中,所述方法还包括:多次执行S201~S203的步骤,并将测试用例和用例执行结果保存归档。将每次执行完毕所获得的测试结果与上一次执行测试的测试结果进行比较,根据比较结果给出差异信息、及对差异信息的统计分析数据。进一步地,通过分析各次测试的测试结果,推荐下一次执行测试所采用的测试用例文件。In another embodiment, the method further includes: executing steps S201-S203 multiple times, and saving and archiving the test case and the execution result of the use case. The test results obtained after each execution are compared with the test results of the last execution test, and the difference information and statistical analysis data for the difference information are given according to the comparison results. Further, by analyzing the test results of each test, the test case file used for the next test execution is recommended.

请参阅图3,与上述方法实施例原理对应的是,本发明提供平板探测器软件的自动化测试系统300,包括:输入模块301、测试模块302、输出模块303。由于前述方法实施例中的技术特征可以应用于本系统实施例,因而不再重复赘述。Please refer to FIG. 3 . Corresponding to the principles of the above method embodiments, the present invention provides an automated testing system 300 for flat panel detector software, including: an input module 301 , a testing module 302 , and an output module 303 . Since the technical features in the aforementioned method embodiments can be applied to this system embodiment, they are not repeated here.

输入模块301用于获取测试输入;所述测试输入包括:预先编写的一系列测试用例文件、或所述一系列测试用例文件的文件列表;其中,所述一系列测试用例文件的编写分别与平板探测器的各种工作模式一一对应,以在被执行时根据相应的工作模式选择性地触发与所述平板探测器通信连接的X射线发生器。测试模块302用于执行所述一系列测试用例文件;其中,属于所述文件列表的一系列测试用例文件会被同时执行。输出模块302用于待所述一系列测试用例文件执行后,将所述平板探测器软件的返回信息作为测试输出。The input module 301 is used to obtain test input; the test input includes: a series of test case files written in advance or a file list of the series of test case files; wherein, the writing of the series of test case files is respectively related to the tablet Various working modes of the detector correspond to each other, so as to selectively trigger the X-ray generator communicatively connected with the flat panel detector according to the corresponding working mode when executed. The test module 302 is used to execute the series of test case files; wherein, a series of test case files belonging to the file list will be executed simultaneously. The output module 302 is configured to use the returned information of the flat panel detector software as a test output after the series of test case files are executed.

图4显示了自动化测试系统300的一种具体的组件结构示意图,以下对各个组件进行介绍:FIG. 4 shows a schematic diagram of a specific component structure of the automated test system 300, and each component is introduced as follows:

TestCase:系统测试的输入,可以是一系列的xml文件,每一个xml文件代表一个测试用例;还可以将一个xml文件的列表作为测试输入,从而一次执行多个测试用例。TestCase: The input of the system test can be a series of xml files, each xml file represents a test case; a list of xml files can also be used as a test input to execute multiple test cases at a time.

执行测试时可以选取列表文件,扩展名为.list。列表文件里列出了每个case文件的全路径,依次执行每个case,对于不想执行的case,可以在行首加上分号来“注释”掉。如下例子,分号开头的行不会被执行,仅执行case1和case2各一次:The list file can be selected when executing the test, and the extension is .list. The full path of each case file is listed in the list file, and each case is executed in turn. For the case that you do not want to execute, you can add a semicolon at the beginning of the line to "comment" it out. In the following example, the lines beginning with a semicolon will not be executed, and only case1 and case2 will be executed once:

D:\code\test_tool\cases\case1\case1.xmlD:\code\test_tool\cases\case1\case1.xml

;D:\code\test_tool\cases\case2\case2.xml;D:\code\test_tool\cases\case2\case2.xml

D:\code\test_tool\cases\case2\case2.xmlD:\code\test_tool\cases\case2\case2.xml

TestEngine:系统的核心程序,负责解析TestCase,调用SDK相关API并将输出记录到文件,给Chip组件发送指令触发上图(software模式无需此功能)。TestEngine: The core program of the system, which is responsible for parsing TestCase, calling SDK-related APIs and recording the output to a file, and sending instructions to the Chip component to trigger the above picture (software mode does not need this function).

ResultAnalysis:此组件负责对TestEngine输出进行分析,如:与上次执行结果的差异,各种统计信息、报表等。ResultAnalysis: This component is responsible for analyzing the output of TestEngine, such as: the difference from the last execution result, various statistical information, reports, etc.

SDK:待测试SDK。SDK: SDK to be tested.

Chip:电子设备,可以是单片机等。接收TestEngine的指令,执行相应的动作,如:产生不同的电平信号触发探测器在Prep,Outer等模式下上图。Chip: Electronic equipment, which can be a single-chip microcomputer, etc. Receive the command from TestEngine and execute corresponding actions, such as: generate different level signals to trigger the detector in Prep, Outer and other modes as shown above.

Detector:待测试平板探测器。Detector: Flat panel detector to be tested.

综上所述,本发明的平板探测器软件的自动化测试方法及系统,有效克服了现有技术中的种种缺点而具高度产业利用价值。To sum up, the automatic testing method and system of the flat panel detector software of the present invention effectively overcome various shortcomings in the prior art and have high industrial application value.

上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。The above-mentioned embodiments only illustrate the principles and effects of the present invention, but are not intended to limit the present invention. Anyone skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and technical ideas disclosed in the present invention should still be covered by the claims of the present invention.

Claims (10)

  1. A kind of 1. automated testing method of flat panel detector software, it is characterised in that including:
    Obtain test input;The test input includes:A series of test case files write in advance or a series of surveys The listed files of example text part on probation;Wherein, a series of test case files write it is various with flat panel detector respectively Mode of operation corresponds, and is led to optionally being triggered according to corresponding mode of operation when executed with the flat panel detector Believe the X-ray emitter of connection;
    Perform a series of test case files;Wherein, a series of test case files for belonging to the listed files can quilt Perform simultaneously;
    It is after a series of test case files perform, the return information of the flat panel detector software is defeated as testing Go out.
  2. 2. according to the method for claim 1, it is characterised in that the mode of operation of the flat panel detector includes: Software patterns, prep patterns, out patterns, sync in patterns, inner patterns and one kind in freesync patterns or Multiple combinations;Wherein:
    Do not include sending the step of instructing to the X-ray emitter in the test case of the software patterns;
    The test case of the prep patterns include to the X-ray emitter send first instruction the step of, so as to make State X-ray emitter and the level signal for preparing exposure is sent to the flat panel detector, so that the flat panel detector is according to this Level signal returns to ready response signal to the X-ray emitter, and voluntarily adopts figure after fixed duration;
    The test case of the out patterns include to the X-ray emitter send the second instruction the step of, it is described so as to make X-ray emitter sends the level signal for preparing exposure to the flat panel detector, so that the flat panel detector is according to the electricity Ordinary mail number returns to ready response signal to the X-ray emitter, and in the exposure for receiving the X-ray emitter transmission Carry out adopting figure after light completion notice;
    The test case of the sync in patterns include to the X-ray emitter send the 3rd instruction the step of, so as to make The X-ray emitter sends the level signal for preparing exposure to the flat panel detector, and periodically notifies the flat board Detector exposure is completed, and figure is periodically adopted so as to trigger the flat panel detector;
    The test case of the inner patterns or the freesync patterns includes sending the 4th to the X-ray emitter The step of instruction, so as to make the X-ray emitter send X ray, detected for the X-ray check part of the flat panel detector Carry out adopting figure after to the X ray.
  3. 3. according to the method for claim 1, it is characterised in that also include:By performing the interpretive program write in advance text Part explains to a series of execution flow of test case files.
  4. 4. according to the method for claim 1, it is characterised in that also include:, will be current after testing process is performed a plurality of times Test result provides Variant statistical information compared with last test result, and according to comparative result.
  5. 5. according to the method for claim 1, it is characterised in that also include:After testing process is performed a plurality of times, by dividing The test result of each test is analysed, recommends test case file used by execution test next time.
  6. 6. according to the method for claim 1, it is characterised in that a series of test case files are compiled based on xml language Write.
  7. A kind of 7. automatization test system of flat panel detector software, it is characterised in that including:
    Input module, for obtaining test input;The test input includes:A series of test case files for writing in advance, A series of or listed files of test case files;Wherein, a series of test case files write respectively with it is flat The various mode of operations of partitioned detector correspond, optionally to be triggered according to corresponding mode of operation when executed and institute State the X-ray emitter of flat panel detector communication connection;
    Test module, for performing a series of test case files;Wherein, a series of tests of the listed files are belonged to Use-case file can be performed simultaneously;
    Output module, for after a series of test case files perform, the return of the flat panel detector software to be believed Breath is as test output.
  8. 8. system according to claim 7, it is characterised in that the test module is additionally operable to:Write in advance by performing Interpretive program file a series of execution flow of test case files is explained.
  9. 9. system according to claim 7, it is characterised in that the test module is additionally operable to:Test stream is being performed a plurality of times After journey, by current test result compared with last test result, and Variant statistical information is provided according to comparative result.
  10. 10. system according to claim 7, it is characterised in that the test module is additionally operable to:Test stream is being performed a plurality of times After journey, by analyzing the test result of each test, recommend test case file used by execution test next time.
CN201711055983.9A 2017-11-01 2017-11-01 Automatic testing method and system for flat panel detector software Active CN107894951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711055983.9A CN107894951B (en) 2017-11-01 2017-11-01 Automatic testing method and system for flat panel detector software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711055983.9A CN107894951B (en) 2017-11-01 2017-11-01 Automatic testing method and system for flat panel detector software

Publications (2)

Publication Number Publication Date
CN107894951A true CN107894951A (en) 2018-04-10
CN107894951B CN107894951B (en) 2021-11-05

Family

ID=61803928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711055983.9A Active CN107894951B (en) 2017-11-01 2017-11-01 Automatic testing method and system for flat panel detector software

Country Status (1)

Country Link
CN (1) CN107894951B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030030004A1 (en) * 2001-01-31 2003-02-13 General Electric Company Shared memory control between detector framing node and processor
CN102567164A (en) * 2011-12-23 2012-07-11 中国科学院自动化研究所 Instruction set batch testing device and method for processor
CN103054594A (en) * 2012-12-12 2013-04-24 上海奕瑞光电子科技有限公司 Automatic trigger exposure circuit of flat panel detector
CN106326102A (en) * 2015-07-06 2017-01-11 阿里巴巴集团控股有限公司 Test method and apparatus
CN106551701A (en) * 2015-09-18 2017-04-05 上海奕瑞光电子科技有限公司 A kind of wireless flat detector and its method for correcting image
CN106959683A (en) * 2017-03-27 2017-07-18 傅朝阳 The autonomous method of testing of ash box and system of distributed robotic systemses

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030030004A1 (en) * 2001-01-31 2003-02-13 General Electric Company Shared memory control between detector framing node and processor
CN102567164A (en) * 2011-12-23 2012-07-11 中国科学院自动化研究所 Instruction set batch testing device and method for processor
CN103054594A (en) * 2012-12-12 2013-04-24 上海奕瑞光电子科技有限公司 Automatic trigger exposure circuit of flat panel detector
CN106326102A (en) * 2015-07-06 2017-01-11 阿里巴巴集团控股有限公司 Test method and apparatus
CN106551701A (en) * 2015-09-18 2017-04-05 上海奕瑞光电子科技有限公司 A kind of wireless flat detector and its method for correcting image
CN106959683A (en) * 2017-03-27 2017-07-18 傅朝阳 The autonomous method of testing of ash box and system of distributed robotic systemses

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曾亚斌: "平板探测器数据采集及成像性能测试方法研究", 《中国优秀硕士学位论文全文数据库 工程科技I辑》 *

Also Published As

Publication number Publication date
CN107894951B (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN108170611B (en) Automated testing method and device, storage medium, electronic equipment
CN105866575B (en) Vehicle-mounted display comprehensive testing device and testing method
CN111858318B (en) Response time testing method, device, equipment and computer storage medium
WO2016095554A1 (en) Test method, device and system for application
US10592397B2 (en) Representing a test execution of a software application using extended reality
CN103698686B (en) Signal testing method and signal testing equipment
CN112306880A (en) Test method, apparatus, electronic device, and computer-readable storage medium
CN105843734A (en) Automatic test method and device and computing device
CN111651366A (en) SDK testing method, device, equipment and storage medium
CN113190443A (en) Test method, test device, computer equipment and storage medium
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
US20160357890A1 (en) Verification Log Analysis
CN109636669A (en) A kind of substation's on-line monitoring method based on multi-process framework
CN114745313A (en) Terminal remote testing method, apparatus, electronic device and readable medium
CN103095882B (en) A kind of intelligent mobile terminal automatic field method of testing and test macro
CN115373989A (en) Automated test system, method, vehicle and storage medium for vehicle
CN106815150B (en) Server-side interface test system and method
CN112905432B (en) Performance testing method, device, storage medium and terminal
CN109522223A (en) A kind of automatic test approach and system of vehicle-mounted Android multimedia host
CN107894951A (en) The automated testing method and system of flat panel detector software
CN105138458A (en) Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal
US11223961B2 (en) Configuration method of wireless network system, configuration terminal and configuration system
CN118606211A (en) Test script generation method, device, electronic equipment and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No. 999 Huanqiao Road, Pudong New Area, Shanghai, 201315

Patentee after: Yirui Electronic Technology Group Co.,Ltd.

Country or region after: China

Address before: Room 202, 2nd Floor, Building 9, No. 590 Ruiqing Road, Pudong New Area, Shanghai

Patentee before: IRAY TECHNOLOGY Co.,Ltd.

Country or region before: China