Visual display unit testing method and related product
Through the combination of the image recognition algorithm and the visual display unit screen data model, automated testing is realized, which solves the problems of low efficiency and insufficient accuracy caused by manual dependence on visual display unit testing in the existing technology, and improves the accuracy and efficiency of the test. , ensuring the safety of nuclear facilities.
Patent Information
- Application Number
- CN202410803518.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, the testing of visual display units in nuclear power module digital control systems relies on manual labor, resulting in low testing efficiency and insufficient accuracy. It is especially error-prone when processing complex and rapidly changing interfaces, affecting the reliability of the overall system.
It uses image recognition algorithms and pre-built visual display unit screen data models to automatically locate and collect images, execute test instructions, and achieve automated testing by comparing feedback information with expected results to improve test accuracy and efficiency.
Through the automated testing process, the testing cycle is shortened, the misjudgment rate of manual intervention is reduced, the efficiency and accuracy of visual display unit testing is improved, and the safe operation of nuclear facilities is ensured.
Smart Images

Figure CN118678052A
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation technology, and in particular to a visual display unit testing method and related products. Background Art
[0002] Under the strict requirements of the nuclear power module digital control system (DCS), the safety-level video display unit (VDU) is a level 2 (L2) key component, and its function verification and stability test are the cornerstones to ensure the reliability of the entire system. The comprehensive testing phase of the DCS system before leaving the factory places extremely high demands on the display and operation performance of the VDU. In current testing practices, recognition operations cover a wide range, from accurate analysis of static images to instant response to dynamic interactions, and each step needs to be precise.
[0003] However, due to the complexity and diversity of the elements of the VDU interface, the change patterns vary. At present, the image recognition test schemes or equipment designed for nuclear safety-level VDUs rely heavily on manual testing. This dependence exposes two major drawbacks: First, human observers are prone to errors when processing highly intensive and rapidly changing information. It is difficult for the naked eye to continuously and accurately monitor all details. For those instantaneous changes in the screen, the human eye cannot effectively capture and analyze them, thus affecting the integrity and effectiveness of the overall test. Secondly, in the process of locating the target device icon, since there are hundreds of configuration methods for the VDU interface, a large amount of information recognition and page turning operations are required, which is prone to human errors and leads to low efficiency.
[0004] In summary, how to improve the efficiency and accuracy of visual display unit testing and ensure the safe operation of nuclear facilities is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of this, the present application provides a visual display unit testing method and related products, aiming to improve the efficiency and accuracy of visual display unit testing and ensure the safe operation of nuclear facilities.
[0006] In a first aspect, the present application provides a visual display unit testing method, the method comprising:
[0007] In response to executing a predefined test case, a first image of the visual display unit is collected; the first image of the visual display unit is a real-time image currently displayed by the visual display unit;
[0008] Performing image processing on the first image of the visual display unit by using an image recognition algorithm to determine whether the first image of the visual display unit is a target test image;
[0009] If the first image of the visual display unit is a target test screen, executing a test instruction based on the first image information of the visual display unit to obtain feedback information, and comparing the feedback information with the expected result to obtain the test result of the visual display unit;
[0010] If the first image of the visual display unit is not the target test screen, positioning the display screen of the visual display unit to the target test screen in the visual display unit, and collecting the repositioned second image of the visual display unit;
[0011] A test instruction is executed based on the second image information of the visual display unit to obtain feedback information, and the feedback information is compared with the expected result to obtain the test result of the visual display unit.
[0012] Optionally, positioning the display screen of the visual display unit to the target test screen in the visual display unit includes:
[0013] Pre-constructing a visual display unit screen data model, wherein the visual display unit model includes engineering information of the visual display unit screen, and the engineering information includes screen association information and icon information within the screen;
[0014] Pre-constructing a standardized information template for each test screen in the visual display unit; the standardized information template includes associated information corresponding to each test screen; the associated information at least includes the system, device code, panel type, label and screen display screen identifier corresponding to each test screen;
[0015] The display screen of the visual display unit is positioned to the target test screen according to the first image information of the visual display unit, the standardized information template corresponding to the target test screen and the screen data model of the visual display unit.
[0016] Optionally, the visual display unit screen data model at least includes main screen fixed associated data, engineering design screen associated data, icon static data, icon dynamic data and associated panel data of operable icons.
[0017] Optionally, positioning the display screen of the visual display unit to the target test screen based on the first image information of the visual display unit, a standardized information template corresponding to the target test screen, and a screen data model of the visual display unit includes:
[0018] Positioning the display screen of the visual display unit to a navigation page associated with the target test screen according to the first image information of the visual display unit and the screen data model of the visual display unit;
[0019] According to the standardized information template corresponding to the target test screen and the visual display unit screen data model, a step-by-step search is performed on the navigation pages associated with the target test screen until the display screen of the visual display unit is located at the target test screen.
[0020] Optionally, searching step by step on navigation pages associated with the target test screen according to the standardized information template and the visual display unit screen data model corresponding to the target test screen until the display screen of the visual display unit is located at the target test screen includes:
[0021] Positioning the display screen of the visual display unit to the target display page corresponding to the target test screen using the visual display unit screen data model according to the screen display screen identifier in the standardized information template corresponding to the target test screen;
[0022] Determine the position of the icon corresponding to the label in the standardized information template corresponding to the target test screen by using image recognition technology on the screen display screen;
[0023] In response to clicking the icon, an operation panel corresponding to the target test screen pops up, and a test instruction is executed on the operation panel corresponding to the target test screen according to the associated panel data of the operable icon in the visual display unit screen data model to obtain the target test screen.
[0024] Optionally, the predefined test cases include a display function test case, a control function test case and an uplink response time test case.
[0025] Optionally, when executing the display function test case, executing the test instruction based on the second image information of the visual display unit to obtain feedback information, comparing the feedback information with the expected result, and obtaining the visual display unit test result, includes:
[0026] Input a display function test excitation signal based on the first image information of the visual display unit or the second image information of the visual display unit, and intercept the current screen of the visual display unit within a preset time to obtain a third image of the visual display unit;
[0027] Recognize the third image of the visual display unit by using an image recognition algorithm to obtain display information of the third image of the visual display unit;
[0028] The display information of the third image of the visual display unit is compared with the expected result to obtain the test result of the visual display unit.
[0029] Optionally, when executing the control function test case, executing the test instruction based on the second image information of the visual display unit to obtain feedback information, comparing the feedback information with the expected result, and obtaining the visual display unit test result, includes:
[0030] Inputting a control function test excitation signal based on the first image information of the visual display unit or the second image information of the visual display unit, and triggering a corresponding functional graphic element according to the control function test excitation signal;
[0031] generating operation result feedback information in response to triggering the functional graphic element;
[0032] The operation result feedback information is compared with the expected result to obtain the visual display unit test result.
[0033] Optionally, when executing the uplink response time test case, executing the test instruction based on the second image information of the visual display unit to obtain feedback information, comparing the feedback information with the expected result, and obtaining the visual display unit test result, includes:
[0034] Based on the first image information of the visual display unit or the second image information of the visual display unit, a display function test excitation signal is input, and the screen of the visual display unit is continuously intercepted within a preset time period to obtain a time-series screen image set of the visual display unit;
[0035] Calculating a response time based on a set of sequential picture images of the visual display unit;
[0036] The response time is compared with the expected result to obtain the visual display unit test result.
[0037] In a second aspect, the present application provides a visual display unit testing system, the system comprising: a test management module, an IO signal processing module, an image processing module, an image acquisition and operation module, an image acquisition card and a mouse simulator;
[0038] The test management module is used to configure and execute test cases;
[0039] An IO signal processing module is used to receive the IO excitation instruction issued by the test management module and collect IO state feedback information, compare the IO state feedback information with the expected result, and obtain the visual display unit test result;
[0040] An image processing module, used for identifying and processing the real-time image of the visual display unit to obtain image feedback information, and comparing the image feedback information with the expected result to obtain the test result of the visual display unit; the real-time image of the visual display unit includes a first image of the visual display unit and a second image of the visual display unit;
[0041] An image acquisition and operation module, used for analyzing the first image of the visual display unit and the second image of the visual display unit, and sending screen operation instructions to the mouse simulator; the first image of the visual display unit is a real-time image currently displayed by the visual display unit;
[0042] An image acquisition card, used for acquiring a first image of the visual display unit and a second image of the visual display unit, and transmitting the first image of the visual display unit and the second image of the visual display unit to an image acquisition and operation module;
[0043] The mouse simulator is used to simulate the mouse to click on the screen of the visual display unit to complete the screen operation instructions issued by the image acquisition and operation module.
[0044] In a third aspect, the present application provides a device comprising a memory and a processor, wherein the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the visual display unit testing method introduced in any embodiment of the first aspect.
[0045] In a fourth aspect, the present application provides a computer storage medium storing codes. When the codes are executed, a device executing the codes implements the visual display unit testing method described in any one of the embodiments of the first aspect.
[0046] The present application provides a visual display unit test method and related products. When executing the method, first respond to the execution of a predefined test case, collect the first image of the visual display unit; the first image of the visual display unit is a real-time image displayed by the current visual display unit, and then use the image recognition algorithm to perform image processing on the first image of the visual display unit to determine whether the first image of the visual display unit is a target test screen, if the first image of the visual display unit is the target test screen, compare the first image information of the visual display unit with the expected result, and obtain the visual display unit test result, if the first image of the visual display unit is not the target test screen, locate the display screen of the visual display unit to the target test screen in the visual display unit, and collect the relocated second image of the visual display unit, and finally execute the test instruction based on the second image information of the visual display unit to obtain feedback information, compare the feedback information with the expected result, and obtain the visual display unit test result. In this way, by automatically locating the accurate test screen, the test process of the visual display unit is made more accurate and efficient, which greatly shortens the detection cycle and reduces the misjudgment rate of manual intervention. In this way, the efficiency and accuracy of the visual display unit test can be improved to ensure the safe operation of nuclear facilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A schematic diagram of a visual display unit testing system provided in an embodiment of the present application;
[0049] Figure 2 A method flow chart of a visual display unit testing method provided in an embodiment of the present application;
[0050] Figure 3 A flowchart of a possible implementation method of step S4 provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of a visual display unit screen data model structure provided in an embodiment of the present application;
[0052] Figure 5 A flowchart of a possible implementation method of step S43 provided in an embodiment of the present application;
[0053] Figure 6 A VDU display function test flow chart provided in an embodiment of the present application;
[0054] Figure 7 A VDU display function test flow chart provided in an embodiment of the present application;
[0055] Figure 8 A VDU response time test flow chart provided in an embodiment of the present application;
[0056] FIG9( a) is a schematic diagram of a first image of a visual display unit provided in an embodiment of the present application;
[0057] FIG9( b ) is a schematic diagram of a primary navigation screen provided in an embodiment of the present application;
[0058] FIG9( c ) is a schematic diagram of a secondary navigation screen provided in an embodiment of the present application;
[0059] FIG9( d ) is a schematic diagram of a target page provided in an embodiment of the present application;
[0060] FIG9( e ) is a schematic diagram of another target page provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] As mentioned above, during the control and display function test of the VDU, the feedback of the operation buttons and dynamic texts in the panel requires manual clicking or forcing, and then manual observation and recording of the panel. However, a safety-level VDU has about 70 flowchart screens (more than 500 groups of devices to be operated and dynamic displays to be observed on the screen). Due to the huge amount of information in the project being tested and the fact that all screen configurations rely on manual labor, there are many combinations of the placement of icons and corresponding names and the pages they are on. Therefore, the testers' lack of understanding of the project information leads to many errors in the process of locating icons and requires a lot of time. At the same time, long-term manual testing is prone to human errors caused by eye fatigue.
[0062] In view of this, the present application provides a visual display unit testing method and related products. When executing the method, first respond to the execution of a predefined test case, collect the first image of the visual display unit; the first image of the visual display unit is a real-time image displayed by the current visual display unit, and then use the image recognition algorithm to perform image processing on the first image of the visual display unit to determine whether the first image of the visual display unit is a target test screen, if the first image of the visual display unit is the target test screen, compare the first image information of the visual display unit with the expected result to obtain the visual display unit test result, if the first image of the visual display unit is not the target test screen, locate the display screen of the visual display unit to the target test screen in the visual display unit, and collect the relocated second image of the visual display unit, finally execute the test instruction based on the second image information of the visual display unit to obtain feedback information, compare the feedback information with the expected result, and obtain the visual display unit test result.
[0063] In this way, by automatically locating the accurate test screen, the test process of the visual display unit is made more accurate and efficient, greatly shortening the detection cycle and reducing the misjudgment rate of manual intervention. In this way, the efficiency and accuracy of the visual display unit test can be improved to ensure the safe operation of nuclear facilities.
[0064] Figure 1 A schematic diagram of a visual display unit testing system provided in an embodiment of the present application. Figure 1As shown, the system includes: a test management module 1, an IO signal processing module 2, an image processing module 3, an image acquisition and operation module 4, an image acquisition card 5 and a mouse simulator 6. The test management module 1, the IO signal processing module 2, the image processing module 3, the image acquisition and operation module 4, the image acquisition card 5 and the mouse simulator 6 realize high-speed data transmission and communication through high-speed Ethernet. Specifically, the test management module 1 sends control instructions to the IO signal processing module 2 through the network and receives status feedback. The image acquisition card 5 is directly connected to the VDU, and after collecting the video stream, it sends the data to the image acquisition and operation module 4. After processing the image data, the image acquisition and operation module 4 passes the necessary information to the image processing module 3, and at the same time controls the mouse simulator 6 to perform specific operations according to the instructions issued by the tester module 1. The IO signal processing module 2 is connected to the tester module 1 and the VDU to realize the issuance of instructions and the return of status, forming a closed-loop control.
[0065] The test management module 1 is used to configure and execute test cases. Specifically, the test management module 1 is used by testers to start, view and manage the test process, and perform test configuration.
[0066] The IO signal processing module 2 is used to receive the IO excitation instruction issued by the test management module and collect IO status feedback information, compare the IO status feedback information with the expected result, and obtain the test result of the visual display unit. Specifically, the IO signal processing module 2 can automatically receive the IO excitation instruction issued by the test management module 1 and feedback the IO status collection information, automatically parse the instruction, inject the IO excitation signal into the main control station and collect the IO signal feedback information, and compare the IO signal feedback information with the expected result to determine whether the IO signal feedback information meets the expected result.
[0067] The image processing module 3 is used to identify and process the real-time image of the visual display unit to obtain image feedback information, compare the image feedback information with the expected result, and obtain the test result of the visual display unit; the real-time image of the visual display unit includes a first image of the visual display unit and a second image of the visual display unit.
[0068] The image acquisition and operation module 4 is used to analyze the first image of the visual display unit and the second image of the visual display unit, and send screen operation instructions to the mouse simulator; the first image of the visual display unit and the second image of the visual display unit are real-time images displayed by the visual display unit. Specifically, the image acquisition and operation module 4 receives the real-time image, encodes and decodes it, and transfers the image information to the image processing station. Further, the screen operation instruction is received, analyzed and sent to the mouse simulator for execution.
[0069] The image acquisition card 5 is used to acquire the first image of the visual display unit and the second image of the visual display unit, and transmit the first image of the visual display unit and the second image of the visual display unit to the image acquisition and operation module. Specifically, it is used to acquire the real-time image output by the VDU video stream, and transmit the acquired image information to the image acquisition and operation station.
[0070] The mouse simulator 6 is used to simulate the mouse to click on the screen of the visual display unit to complete the screen operation instructions issued by the image acquisition and operation module. Specifically, the mouse simulator 6 responds to the instructions of the image acquisition and operation module, simulates the mouse operations of a real user, such as clicking, dragging, etc., and realizes non-contact control of the screen of the visual display unit.
[0071] It should be noted that the embodiment of the present application does not limit the execution subject of the visual display unit test. For example, the visual display unit test method of the embodiment of the present application can be applied to data processing devices such as terminal devices or servers. Among them, the terminal device can be a smart phone, a computer, a personal digital assistant (PDA) or a tablet computer. The server can be a stand-alone server, a cluster server or a cloud server.
[0072] In order to be able to understand the characteristics and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, in order to simplify the drawings, well-known structures and devices can be simplified for display. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0073] Figure 2 A method flow chart of the visual display unit testing method provided in the embodiment of the present application, see Figure 2 The visual display unit testing method provided in the embodiment of the present application may include:
[0074] S1, in response to executing a predefined test case, capturing a first image of a visual display unit.
[0075] The first image of the visual display unit is the real-time image currently displayed by the visual display unit. In this step, the test engineer will design a series of test scenarios based on the functional requirements of the visual display unit, such as displaying specific colors, patterns, dynamic effects, or responding to specific user interactions (such as touch, button). Each scenario is equipped with a set of clear execution steps and expected results.
[0076] When a specific test scenario or condition is triggered, such as a manual test case, the test process starts. The system automatically activates the visual display unit and uses an image acquisition device (such as an image acquisition card) to capture the first image of the current display. This image represents the actual state of the display unit when the test starts.
[0077] S2, performing image processing on the first image of the visual display unit by using an image recognition algorithm to determine whether the first image of the visual display unit is a target test image.
[0078] In this step, in order to determine whether the current page is the target test screen, image processing and recognition algorithms (such as template matching, feature point extraction, deep learning model, etc.) are applied to analyze the collected image and compare its similarity or consistency with the preset target test screen. These algorithms can extract key features from complex images and determine whether they match the preset target image.
[0079] S3, if the first image of the visual display unit is the target test screen, execute the test instruction based on the first image information of the visual display unit to obtain feedback information, compare the feedback information with the expected result, and obtain the visual display unit test result.
[0080] When it is determined in step S2 that the first image of the visual display unit, i.e., the current screen, is the target test screen, a test instruction, such as touch screen click, keyboard input, etc., is sent to the display unit through the system (such as through a serial port, a network, or simulated user input), and the response of the display unit is recorded. These responses may be screen changes, output signals, or other measurable feedback. The collected feedback information is carefully compared with the expected results defined in the test case. If the two are consistent, the test passes; otherwise, the difference is recorded as the basis for the test failure.
[0081] S4, if the first image of the visual display unit is not the target test screen, positioning the display screen of the visual display unit to the target test screen in the visual display unit, and acquiring the repositioned second image of the visual display unit.
[0082] When it is determined in step S2 that the first image of the visual display unit, i.e., the current screen, is not the target test screen, in order to ensure that the test can continue, it is necessary to adjust the display content by controlling the input source, software interface, or hardware controller of the display unit so that it switches to the target test screen. Specifically, it includes sending specific control instructions or sequences to navigate menus, select settings, etc. Then confirm again whether the display content has been adjusted correctly. Specifically, repeat the image acquisition step to verify whether the current display screen has been changed to the target test screen.
[0083] In an optional embodiment, in order to realize automatic search and page turning so as to find the correct target test picture, Figure 3 A possible implementation flow chart of step S4 provided in the embodiment of the present application. Figure 3 As shown, positioning the display screen of the visual display unit to the target test screen in the visual display unit includes:
[0084] S41, pre-constructing a visual display unit screen data model, wherein the visual display unit model includes engineering information of the visual display unit screen.
[0085] First, a detailed visual display unit screen data model needs to be constructed. This model contains the engineering information of all possible screens displayed on the visual display unit. The engineering information includes page association information and page icon information. Page association information may involve the hierarchical relationship between pages, jump logic, etc.; page icon information involves detailed information on specific icons, buttons, texts and other elements on each page.
[0086] In an alternative embodiment, Figure 4 A schematic diagram of a visual display unit screen data model structure provided in an embodiment of the present application. Figure 4 As shown, the visual display unit screen data model includes 4 sub-levels, namely, fixed association data of the main screen, engineering design screen association data, static data of icons, dynamic data of icons, and association panel data of operable icons. The fixed association data of the main screen and the engineering design screen association data are located in the page association layer, and the static data of icons, dynamic data of icons, and association panel data of operable icons are located in the icon information layer within the page. The fixed association data of the main screen supports the automatic page turning operation between the main page and the engineering navigation page, the engineering design screen association data supports the automatic page turning operation between the multi-level navigation pages of the engineering, the static data of icons supports the positioning and static comparison of icons to be observed / operated within the page, the dynamic data of icons supports the dynamic shape comparison of icons to be observed / operated within the page, and the association panel data of operable icons supports the recognition and operation of the pop-up operation panel.
[0087] Tables 1 to 5 are schematic tables of definitions of data items at various levels provided in embodiments of the present application.
[0088] Table 1
[0089]
[0090] As shown in Table 1, the main screen fixed associated data may include the main page name, button identifiers / names within the page, and the next level page name associated with the button.
[0091] Table 2
[0092]
[0093] As shown in Table 2, the engineering design page associated data may include the engineering navigation page name, the button identifier / name within the page, and the next level page name associated with the button.
[0094] Table 3
[0095]
[0096] As shown in Table 3, the static data of the symbol may include the device symbol label, the name of the page where the symbol is located, the symbol model (template model), the symbol operable category (control / display category) and the symbol corresponding device ID, that is, the symbol corresponding device identification, etc.
[0097] Table 4
[0098]
[0099] As shown in Table 4, the static data of the icon may include the icon model (template model), the name of the page where the icon is located, the dynamic form graphic template / dynamic information and the dynamic form / information meaning definition, etc.
[0100] Table 5
[0101]
[0102] As shown in Table 5, the associated panel data of the operable icon may include the device icon label, the associated operation panel name, the associated operation panel model, the associated operation panel graphic template information, and the like.
[0103] S42, pre-constructing a standardized information template for each test screen in the visual display unit.
[0104] In order to achieve fast and accurate positioning, it is necessary to build a standardized information template for each test screen in the visual display unit. These templates contain specific association information for each test screen, such as system code, device code, panel type, label (which may be a short text or symbol used to describe or identify the test page) and the display page identification of the test page on the screen (such as a unique ID or name). That is, the standardized information template includes the association information corresponding to each test screen; the association information at least includes the system, device code, panel type, label and screen display identification corresponding to each test screen.
[0105] Table 6 is a schematic diagram of the standardized information template using RIS1271VP as an example.
[0106] Table 6
[0107] Serial number system Device Code Panel Type Label The screen displays the page ID 1 RIS RIS1271VP Panel7 1271VP RIS2103YCD
[0108] S43, positioning the display screen of the visual display unit to the target test screen according to the first image information of the visual display unit, the standardized information template corresponding to the target test screen, and the screen data model of the visual display unit.
[0109] When a specific image (i.e., the first image) is displayed on the visual display unit, the system needs to recognize the image and determine the test page it corresponds to. This step is usually achieved through image recognition technology (such as OCR, template matching, etc.), by comparing the first image with images or features in a pre-built standardized information template to find matches.
[0110] Once the standardized information template corresponding to the first image is determined, the associated information in this template can be used to locate the target test page in the visual display unit. The system code, device code, etc. in the associated information can help the system determine which device or part of the system to find the target page; while the panel type, label, and display page identifier can be accurate to the specific test page. With this information, the system can find the corresponding page in the screen data model of the visual display unit and display it as the target test page.
[0111] In this embodiment, by constructing an accurate and detailed visual display unit screen data model and a standardized information template, and using efficient image recognition technology to match and recognize the first image, it is possible to ensure that the system can quickly locate the target test page, thereby improving the efficiency and accuracy of the test.
[0112] In an optional embodiment, there are multiple possible implementations of the above step S43. Figure 5 A possible implementation flow chart of step S43 provided in the embodiment of the present application. Figure 5As shown, based on the first image information of the visual display unit, the standardized information template corresponding to the target test screen and the visual display unit screen data model, the display screen of the visual display unit is positioned to the target test screen, including:
[0113] S431, positioning the display screen of the visual display unit to a navigation page associated with the target test screen according to the first image information of the visual display unit and the screen data model of the visual display unit.
[0114] In this embodiment, according to the first image information of the visual display unit, the system first identifies the content of the currently displayed screen. Using the visual display unit screen data model, the system can identify the navigation page associated with the first image information. These navigation pages may be pages containing links, buttons or other interactive elements pointing to the target test page. The system positions the display screen of the visual display unit to these navigation pages that are associated with the target test screen.
[0115] S432, searching step by step in the navigation pages associated with the target test screen according to the standardized information template corresponding to the target test screen and the screen data model of the visual display unit until the display screen of the visual display unit is located at the target test screen.
[0116] After locating the associated navigation page, the system starts searching according to the standardized information template corresponding to the target test screen. As mentioned above, the standardized information template contains key information such as the system code, device code, panel type, label, and screen display page identifier of the target test page. Based on this information, the system searches for links, buttons, or other interactive elements related to the target test page in the navigation page.
[0117] If the current navigation page directly contains an interactive element pointing to the target test page, the system directly triggers the element and jumps the display screen to the target test page. If the current navigation page does not directly contain an interactive element pointing to the target test page, but contains elements pointing to the next level navigation page, the system triggers these elements, enters the next level navigation page, and continues to search. This process will be carried out step by step until the system finds a direct interactive element pointing to the target test page and positions the display screen to the target test screen.
[0118] It should be noted that in the above process, the system will use a variety of technologies such as image recognition and text matching to ensure the accuracy of positioning. Once the target test screen is located, the system can verify whether the positioning is successful by, for example, comparing key elements or information of the target test screen.
[0119] In an optional embodiment, searching step by step on the navigation pages associated with the target test screen according to the standardized information template corresponding to the target test screen and the visual display unit screen data model until the display screen of the visual display unit is located at the target test screen may include:
[0120] The display screen of the visual display unit is positioned to the target display page corresponding to the target test screen by using the visual display unit screen data model according to the screen display screen identifier in the standardized information template corresponding to the target test screen.
[0121] In this embodiment, first, according to the "screen display screen identification" in the standardized information template corresponding to the target test screen, this identification may be a page name, a page ID or other information that can uniquely identify a display page. Then, using the visual display unit screen data model, this model contains information of all possible display pages (such as page structure, page content, jump relationship between pages, etc.). Then, on the visual display unit, by matching the "screen display screen identification" and the information in the visual display unit screen data model, the display screen is positioned to the target display page corresponding to the target test screen.
[0122] According to the label in the standardized information template corresponding to the target test screen, the icon position corresponding to the label is determined on the screen display screen using image recognition technology.
[0123] On the target display page, according to the label information in the standardized information template corresponding to the target test screen, this label may represent a button, icon or other clickable or operable interface element. Use image recognition technology (such as template matching, feature point detection, etc.) to find and determine the icon position corresponding to the label on the screen display.
[0124] In response to clicking the icon, an operation panel corresponding to the target test screen pops up, and a test instruction is executed on the operation panel corresponding to the target test screen according to the associated panel data of the operable icon in the visual display unit screen data model to obtain the target test screen.
[0125] When the automated test script clicks on the icon, an operation panel corresponding to the target test screen will pop up. This operation panel may contain more test options, parameter settings, etc. According to the "associated panel data of operable icons" in the visual display unit screen data model, this data describes the mapping relationship between each operable icon and its associated operation panel. Execute test instructions on the operation panel, such as clicking a button, entering a specific value, sliding a slider, etc. The execution of these test instructions will trigger the relevant functions or processes of the target test screen. Finally, by executing the test instructions and obtaining the corresponding feedback or results, it can be determined whether the target test screen works normally and meets expectations.
[0126] S5, executing the test instruction based on the second image information of the visual display unit to obtain feedback information, and comparing the feedback information with the expected result to obtain the visual display unit test result.
[0127] In this step, similar to step S3, when it is determined that the second image of the visual display unit, i.e., the current screen, is the target test screen, a test instruction, such as touch screen click, keyboard input, etc., is sent to the display unit through the system (such as through a serial port, a network, or simulated user input), and the response of the display unit is recorded. These responses may be screen changes, output signals, or other measurable feedback. The collected feedback information is carefully compared with the expected results defined in the test case. If the two are consistent, the test passes; otherwise, the difference is recorded as the basis for the test failure.
[0128] In this embodiment, the test efficiency and accuracy are improved by automated means, and the need for human intervention is reduced. This embodiment is suitable for performance verification of visual display units in large-scale production testing or long-term operation and maintenance.
[0129] In the embodiment of the present application, there are multiple possible testing methods for the VDU, which are introduced below. It should be noted that the implementation methods given in the following introduction are only for exemplary description and do not represent all implementation methods of the embodiment of the present application.
[0130] In the embodiment of the present application, the test of the VDU may specifically include an automatic test of the VDU display function, an automatic test of the VDU control function, and an automatic uplink response time test.
[0131] Among them, the automatic test of VDU display function is to accurately identify and verify the graphic element information (text, numbers, colors, etc.) on the VDU. The process involves image acquisition, simulation operation to navigate to the target graphic element, injection of IO signal to trigger the change, and then the image processing station captures and analyzes the display screen, compares it with the expected results, and finally displays the test results through the tester station to ensure the accuracy of the displayed content.
[0132] The automatic test of VDU control function is to check the validity of VDU buttons. The tester station is used to start and guide the simulated mouse operation. The buttons are located through image recognition, the operation is performed and the response signal of the DCS system is monitored to verify whether the feedback after the operation meets the expectations. The whole process includes operation execution, signal comparison and result reporting to ensure the reliability of the control function.
[0133] The automatic uplink response time test is designed to evaluate the timeliness of the system from receiving stimulus to VDU display response. The test calculates the response delay by issuing commands, switching screens, injecting stimulus signals, and recording VDU screens at high speed, analyzing the captured video data. The results are fed back to the tester station to verify whether the overall system response speed meets the preset standards to ensure efficient operation.
[0134] Figure 6 A VDU display function test flow chart provided in an embodiment of the present application. Figure 6 As shown, when executing the display functional test case, it can include:
[0135] S1: Send specific IO stimulus to the master station to trigger the VDU screen display change.
[0136] S2: Capture the current VDU display screen.
[0137] S3: Identify the page number and other information of the current screen to determine whether it is the target observation page. If yes, go to step S8, if not, go to step S4.
[0138] S4: Drive the virtual mouse and click the system menu.
[0139] S5: Obtain the navigation page image information and locate the button of the target page.
[0140] S6: Drive the virtual mouse and click the button on the target page.
[0141] S7: Enter the target page and obtain the current page display screen.
[0142] The specific implementation of the above VDU display function test steps S1-S7 can refer to the above steps S1-S4, which will not be repeated here.
[0143] S8: Locate the observed graphic element on the implementation screen and identify the dynamic display information.
[0144] Optionally, this step can specifically be to input a display function test excitation signal based on the first image information of the visual display unit or the second image information of the visual display unit, capture the current screen of the visual display unit within a preset time to obtain a third image of the visual display unit; and use an image recognition algorithm to identify the third image of the visual display unit to obtain display information of the third image of the visual display unit.
[0145] Specifically, combined Figure 1 The IO signal processing module 3 injects L1 IO or network excitation signals related to the VDU graphic element / image display into the DCS system. After the excitation signal of L1 is transmitted through operation, the VDU graphic element / image will have corresponding changes on the screen. The graphic element / image display screen of the VDU is obtained in real time through the image acquisition card, and after identification and analysis at the image processing station, the display status / data of the graphic element / image is fed back to the image processing module.
[0146] S9: Determine whether the dynamic display state of the graphic element is consistent with expectations.
[0147] In this step, the display information of the third image of the visual display unit is compared with the expected result to obtain the visual display unit test result. Specifically, the image processing module compares the automatically received VDU display information with the expected result, and displays the visual test result information through the test management module. The tester can view and verify the results and generate test records through the tester station.
[0148] Figure 7 A VDU display function test flow chart provided in the embodiment of the present application. Figure 7 As shown, when executing control function test cases, it can include:
[0149] S1: Capture the current VDU display screen.
[0150] S2: Identify the page number and other information of the current screen to determine whether it is the target observation page. If yes, go to step S7, if not, go to step S3.
[0151] S3: Drive the virtual mouse and click the system menu.
[0152] S4: Obtain the navigation page image information and locate the button of the target page.
[0153] S5: Drive the virtual mouse and click the button on the target page.
[0154] S6: Enter the target page and obtain the current page display screen.
[0155] The specific implementation of the above VDU control function test steps S1-S6 can refer to the above steps S1-S4, which will not be described in detail here.
[0156] S7: Locate the observed element on the implementation screen and drive the mouse to click the element.
[0157] Optionally, this step can specifically be to input a control function test excitation signal based on the first image information of the visual display unit or the second image information of the visual display unit, trigger a corresponding functional graphic element according to the control function test excitation signal; and generate operation result feedback information in response to the triggered functional graphic element.
[0158] S8: Get the pop-up operation page screen and locate the button to be operated.
[0159] Specifically, combined Figure 1 In the system, after locating the target page, the image acquisition and operation station sends the mouse operation command to guide the screen operation station to operate the VDU screen and trigger the expected button operation. After ensuring the operation is successful, the tester station sends the operation success feedback information.
[0160] S9: Collect the VDU operation signal received by the master control station and compare it with the expected one.
[0161] In this step, after the VDU button is operated, a signal will be automatically sent to the DCS system L1 cabinet device. This signal is automatically collected by the IO signal processing module and compared with the expected value. After the test is completed, the result is sent to the tester station. The test management module displays the visual test result information. The tester can view, check and generate test records through the tester station.
[0162] Figure 8 A VDU response time test flow chart provided in an embodiment of the present application. Figure 8 As shown, when executing the upstream response time test case, it can include:
[0163] S1: Start the response time test.
[0164] S2: Send operation instructions.
[0165] S3: Automatically switch to the image to be observed.
[0166] The picture to be observed is the target observation picture. The specific implementation method of the above VDU response time test steps S1-S3 can refer to the above steps S1-S4, which will not be repeated here.
[0167] S4: Inject IO excitation signal into the DCS master control station.
[0168] S5: Continuously obtain and store the real-time display images of the VDU.
[0169] S6: Wait for the target display element to complete the response.
[0170] S7: End VDU real-time image acquisition.
[0171] In this embodiment, through steps S4-S7, a response time test stimulus signal is input based on the first image information of the visual display unit or the second image information of the visual display unit, and the screen of the visual display unit is continuously intercepted within a preset time period to obtain a time-series screen image set of the visual display unit. The uplink response time refers to the time required from receiving an instruction or signal to the visual display unit (such as a display, a touch screen, etc.) to the device displaying a corresponding change.
[0172] Once the stimulus signal is sent, the test system will continuously capture the screen image of the display unit at a preset time interval. This time period needs to be long enough to cover the complete process from signal sending to screen response, usually slightly longer than the expected maximum response time.
[0173] The images captured continuously are combined to form a "sequential image set", which is a series of images arranged in chronological order. This image set records in detail every moment from the sending of the stimulus signal to the change of the screen display, and is the basic data for analyzing and calculating the response time.
[0174] S8: Perform image recognition on the stored image and calculate the time taken for the response display.
[0175] That is, the response time is calculated based on the sequential picture image set of the visual display unit. Specifically, first, it is necessary to find the image corresponding to the moment when the excitation signal is sent in the sequential picture image set as the starting reference point. Then, identify the first frame image where the change begins to appear as the end reference point of the response. For each pair of consecutive images (starting from the image after the starting point), image difference analysis is performed. Image processing techniques such as pixel-level comparison, structural similarity index (SSIM), or specific feature detection algorithms can be used to determine the degree of difference between two frames. By analyzing the differences between consecutive frames, find the frame with a sudden increase in the difference, which indicates that the response has begun. This is usually the most intuitive starting point of the change. Once the start and end frames are determined, the time difference between the two frames (frame number * frame frequency time) is calculated based on the acquisition frequency of the image set or the known timestamp information. For example, if the interval between each frame is 10 milliseconds and the change is from the 5th frame to the 15th frame, the response time is (15-5)×10(15-5)×10 milliseconds.
[0176] In an optional embodiment, the average response time and standard deviation of multiple test cycles may be further calculated to evaluate the consistency and stability of the response time.
[0177] S9: Compare with expected response time.
[0178] S10: Test result generation and storage.
[0179] A schematic diagram of an application of a visual display unit testing method provided in an embodiment of the present application.
[0180] Take searching for the device icon RIS1271VP as an example. Obtain the current VDU real-time screen. FIG9(a) is a schematic diagram of a first image of a visual display unit provided in an embodiment of the present application, which is a schematic diagram of the current VDU real-time screen. Combined with FIG9(a), identify the current page number, and obtain from the data model that the interface index where the RIS1271VP button is located is RIS2103YCD, and the page display label is 1271VP.
[0181] Since the current page is not the target page RIS2103YCD, click the main menu interface to return to the first-level navigation screen. Figure 9(b) is a schematic diagram of the first-level navigation screen provided by the embodiment of the present application. Perform OCR recognition on Figure 9(b) to determine the button position where the page index information RIS (the first three digits of RIS2103YCD) is located (as shown in the red box in Figure 9(b)).
[0182] Click the RIS button position to enter the secondary navigation page. Figure 9(c) is a schematic diagram of the secondary navigation screen provided in an embodiment of the present application. Perform OCR recognition on the entire page again to find the button position corresponding to the target page RIS2103YCD (as shown in the red box in Figure 9(c)). Click the button corresponding to RIS2103YCD to enter the target page, as shown in Figure 9(d).
[0183] Figure 9(d) is a schematic diagram of a target page provided by an embodiment of the present application. Perform full-screen device label OCR recognition on Figure 9(d), determine the location of the target icon label (1271VP), search for the icon above, and perform template matching of the icon style according to the information in the model. After successful matching, confirm the device icon location (as shown in the circle in Figure 9(d)), and perform a click operation.
[0184] Click the 1271VP device icon and the operation panel on the right side of the screen pops up, as shown in Figure 9(e). Figure 9(e) is another target page schematic diagram provided in an embodiment of the present application. According to the "associated panel data of operable symbols" in the data model, the coordinate position of the button to be operated / the symbol to be observed is automatically obtained, and the subsequent button click panel is identified according to the panel information or symbol information to complete the entire process.
[0185] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0186] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the visual display unit testing method described in any embodiment of the present application.
[0187] The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the visual display unit testing method described in any embodiment of the present application.
[0188] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0189] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0190] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0191] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A visual display unit testing method, characterized in that: The method comprises: In response to executing a predefined test case, a first image of the visual display unit is collected; the first image of the visual display unit is a real-time image currently displayed by the visual display unit; Performing image processing on the first image of the visual display unit by using an image recognition algorithm to determine whether the first image of the visual display unit is a target test image; If the first image of the visual display unit is a target test screen, executing a test instruction based on the first image information of the visual display unit to obtain feedback information, and comparing the feedback information with the expected result to obtain the test result of the visual display unit; If the first image of the visual display unit is not the target test screen, positioning the display screen of the visual display unit to the target test screen in the visual display unit, and collecting the repositioned second image of the visual display unit; A test instruction is executed based on the second image information of the visual display unit to obtain feedback information, and the feedback information is compared with the expected result to obtain the test result of the visual display unit.
2. The visual display unit testing method according to claim 1, characterized in that: Positioning the display screen of the visual display unit to the target test screen in the visual display unit includes: Pre-constructing a visual display unit screen data model, wherein the visual display unit model includes engineering information of the visual display unit screen, and the engineering information includes screen association information and icon information within the screen; Pre-constructing a standardized information template for each test screen in the visual display unit; the standardized information template includes associated information corresponding to each test screen; the associated information at least includes the system, device code, panel type, label and screen display screen identifier corresponding to each test screen; The display screen of the visual display unit is positioned to the target test screen according to the first image information of the visual display unit, the standardized information template corresponding to the target test screen and the screen data model of the visual display unit.
3. The visual display unit testing method according to claim 2, characterized in that: The visual display unit screen data model at least includes main screen fixed associated data, engineering design screen associated data, icon static data, icon dynamic data and associated panel data of operable icons.
4. The visual display unit testing method according to claim 2, characterized in that: The method of positioning the display screen of the visual display unit to the target test screen based on the first image information of the visual display unit, the standardized information template corresponding to the target test screen, and the screen data model of the visual display unit includes: Positioning the display screen of the visual display unit to a navigation page associated with the target test screen according to the first image information of the visual display unit and the screen data model of the visual display unit; According to the standardized information template corresponding to the target test screen and the visual display unit screen data model, a step-by-step search is performed on the navigation pages associated with the target test screen until the display screen of the visual display unit is located at the target test screen.
5. The visual display unit testing method according to claim 4, characterized in that: The step of searching the navigation pages associated with the target test screen in a step-by-step manner according to the standardized information template corresponding to the target test screen and the visual display unit screen data model until the display screen of the visual display unit is located at the target test screen includes: Positioning the display screen of the visual display unit to the target display page corresponding to the target test screen using the visual display unit screen data model according to the screen display screen identifier in the standardized information template corresponding to the target test screen; Determine the position of the icon corresponding to the label in the standardized information template corresponding to the target test screen by using image recognition technology on the screen display screen; In response to clicking the icon, an operation panel corresponding to the target test screen pops up, and a test instruction is executed on the operation panel corresponding to the target test screen according to the associated panel data of the operable icon in the visual display unit screen data model to obtain the target test screen.
6. The visual display unit testing method according to claim 1, characterized in that: The predefined test cases include display function test cases, control function test cases and uplink response time test cases.
7. The visual display unit testing method according to claim 6, characterized in that: When executing the display function test case, the execution of the test instruction obtains feedback information, and the feedback information is compared with the expected result to obtain the visual display unit test result, including: Input a display function test excitation signal based on the first image information of the visual display unit or the second image information of the visual display unit, and intercept the current screen of the visual display unit within a preset time to obtain a third image of the visual display unit; Recognize the third image of the visual display unit by using an image recognition algorithm to obtain display information of the third image of the visual display unit; The display information of the third image of the visual display unit is compared with the expected result to obtain the test result of the visual display unit.
8. The visual display unit testing method according to claim 6, characterized in that: When executing the control function test case, the execution of the test instruction obtains feedback information, and the feedback information is compared with the expected result to obtain the visual display unit test result, including: Inputting a control function test excitation signal based on the first image information of the visual display unit or the second image information of the visual display unit, and triggering a corresponding functional graphic element according to the control function test excitation signal; generating operation result feedback information in response to triggering the functional graphic element; The operation result feedback information is compared with the expected result to obtain the visual display unit test result.
9. The visual display unit testing method according to claim 6, characterized in that: When executing the uplink response time test case, the execution of the test instruction obtains feedback information, and the feedback information is compared with the expected result to obtain the visual display unit test result, including: Based on the first image information of the visual display unit or the second image information of the visual display unit, a response time test excitation signal is input, and the screen of the visual display unit is continuously intercepted within a preset time period to obtain a time-series screen image set of the visual display unit; Calculating a response time based on a set of sequential picture images of the visual display unit; The response time is compared with the expected result to obtain the visual display unit test result.
10. A visual display unit testing system, characterized in that: The system comprises: a test management module, an IO signal processing module, an image processing module, an image acquisition and operation module, an image acquisition card and a mouse simulator. The test management module is used to configure and execute test cases; An IO signal processing module is used to receive the IO excitation instruction issued by the test management module and collect IO state feedback information, compare the IO state feedback information with the expected result, and obtain the visual display unit test result; An image processing module, used for identifying and processing the real-time image of the visual display unit to obtain image feedback information, and comparing the image feedback information with the expected result to obtain the test result of the visual display unit; the real-time image of the visual display unit includes a first image of the visual display unit and a second image of the visual display unit; An image acquisition and operation module, used for analyzing the first image of the visual display unit and the second image of the visual display unit, and sending screen operation instructions to the mouse simulator; the first image of the visual display unit and the second image of the visual display unit are real-time images displayed by the visual display unit; An image acquisition card, used for acquiring a first image of the visual display unit and a second image of the visual display unit, and transmitting the first image of the visual display unit and the second image of the visual display unit to an image acquisition and operation module; The mouse simulator is used to simulate the mouse to click on the screen of the visual display unit to complete the screen operation instructions issued by the image acquisition and operation module.
