Display software testing method, system, device, display platform and vehicle
Through the combination of batch testing, single-point testing, paging testing and automated testing, the problem of low efficiency of vehicle display software testing is solved, efficient data transmission and functional analysis are achieved, strong adaptability and labor costs are saved.
Patent Information
- Application Number
- CN202210933048.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-08-04
AI Technical Summary
Existing vehicle display software testing methods are inefficient, have long test cycles, and manual operations are prone to forget data correlation, resulting in additional time-consuming and further reduction in testing efficiency.
The batch testing function is adopted to realize batch assignment, transmission and testing of the same type of data. Combined with single-point testing, paging testing and automated testing, different testing strategies are configured to meet different page needs.
It greatly improves testing efficiency, saves labor costs, and can complete data transmission and functional analysis in a short time, which is highly adaptable and flexible.
Smart Images

Figure CN115269425B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail vehicles, and in particular to a display software testing method, system, device, display platform and vehicle. Background Art
[0002] At present, the software testing function of the intelligent display screen of a vehicle (such as an intelligent EMU) is manually tested using a testing tool. The test data set in real time at a single point is sent to the display software of the vehicle display platform through the TCP / IP protocol by the testing tool. The accuracy of the function is verified by observing whether the interface changes of the display software are consistent with expectations.
[0003] The inventors have found that most of the time of the existing testing methods is wasted on testers manually modifying the test input of the testing tool, the testing cycle is time-consuming, and the testing efficiency is low; in addition, the data to be tested is large (generally more than 10,000 items), the amount of data is large, some data have certain correlations, and some functions will only take effect when the preceding data is valid. Manual control of the setting of this type of data is prone to forgetting the related data, resulting in additional time consumption, which further reduces the testing efficiency. Summary of the invention
[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a display software testing method, system, device, display platform and vehicle, which, through the batch testing function, realizes batch assignment, transmission and testing of the same type of data, greatly improving the testing efficiency; it has the functions of single-point testing, paging testing, batch testing and automated testing, and configures different testing strategies for different pages, which is flexible and adaptable.
[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0006] In a first aspect, the present invention provides a display software testing method.
[0007] A display software testing method includes batch testing, wherein the batch testing includes:
[0008] Filter test data of set types;
[0009] For the test data obtained by batch operation screening, all the state-type test data are set to the set values, and the value-type test data are recursively assigned within the set range or assigned according to the set rules;
[0010] The test data after batch operation is sent regularly, and the same type of data is sent to the display software in sequence at the set time interval for functional testing.
[0011] As an alternative implementation, the data of the set type is: data with a consistent data structure and a difference in data bit positions within a set range in an interface, which are respectively bound to the same components for separate display.
[0012] As an alternative implementation, the functional accuracy of the corresponding type of data is judged by the change and the order of change of the same component state.
[0013] As an alternative implementation, the test data of the set type is screened by keyword search or regular matching.
[0014] As an alternative implementation, the data of the state type is data expressed as 0 and 1, and the set value is 1; the data of the numerical type is an integer or a real number within a set range.
[0015] As an alternative implementation, it also includes single-point testing, and the single-point testing includes:
[0016] Sending the test data of a pre-set single data bit or multiple sequentially set data bits to the display software so that the display software performs functional testing.
[0017] Furthermore, the test data of a single data bit or multiple sequentially set data bits is sent through a pre-configured sending strategy, and the pre-configured sending strategy includes: the order of data sending and the time interval of data sending.
[0018] As an alternative implementation, it also includes paging testing, and the paging testing includes:
[0019] Screening the test data of a certain page and sending it to the display software so that the display software performs functional testing.
[0020] Furthermore, the screened data is sent through a pre-configured sending strategy, and the pre-configured sending strategy includes: pre-configuring associated test data; sending each test data at intervals of a set time in sequence; packing the test data of one car and sending it simultaneously, and then sending the test data of other cars at intervals of a set time in sequence; packing the test data in units of train units and sending it after configuration.
[0021] As an alternative implementation, it includes automated testing, and the automated testing includes:
[0022] Comparing the expected data file with the test output file, and judging whether the function is correct according to the comparison result;
[0023] When the comparison results are the same or the differences are within a set range, the testing is completed; otherwise, after the parameters of the display software are modified, continue the comparison until the comparison results are the same or the differences are within a set range;
[0024] Among them, the expected data file stores expected data in a set format, and the expected data includes page number, vehicle number, component number, component status, and component value; the test output file stores feedback data in a set format, and the feedback data includes the page number, vehicle number, component number, and bound data generated during the software development process.
[0025] Furthermore, json text is used to save and load test data, expected data, and test output files, and a file in csv format is used to save the configuration file.
[0026] As an optional implementation, the functional test includes: determining whether the display of the display software is consistent with the expected display interface. If it is consistent or the difference is within a preset range, the test is completed; otherwise, after the parameters of the display software are modified, the functional test continues until the display of the display software is consistent with the expected display interface or the difference is within a preset range.
[0027] In a second aspect, the present invention provides a display software test system.
[0028] A display software test system includes a batch test module;
[0029] The batch test module is configured to:
[0030] Screen test data of a set type;
[0031] Perform batch operations on the screened test data. For test data of the status type, all are set to a set value. For test data of the numerical type, recursive assignment is performed within a set range or assignment is differentiated according to a set rule;
[0032] The batch-operated test data is sent regularly, and the same type of data is sent to the display software in sequence at a set time interval for functional testing.
[0033] As an optional implementation, it further includes a single-point test module, and the single-point test module is configured to:
[0034] Send test data of a single pre-set data bit or multiple sequentially set data bits to the display software to enable the display software to perform functional testing.
[0035] As an optional implementation, it further includes a paging test module, and the paging test module is configured to:
[0036] Screen the test data of a certain page and send it to the display software to enable the display software to perform functional testing.
[0037] As an optional implementation, it includes an automated testing module, and the automated testing module includes:
[0038] Compare the expected data file with the test output file, and judge whether the function is correct according to the comparison result;
[0039] When the comparison results are consistent or the differences are within the set range, the test is completed; otherwise, after the parameters of the display software are modified and displayed, continue the comparison until the comparison results are consistent or the differences are within the set range;
[0040] Among them, the expected data file stores expected data in a set format, and the expected data includes page number, vehicle number, component number, component status, and component value; the test output file stores feedback data in a set format, and the feedback data includes the page number, vehicle number, component number, and bound data generated during the display software development process.
[0041] In a third aspect, the present invention provides a display software testing device, including a processor, and the processor executes the display software testing method described in the first aspect of the present invention; or, the processor includes the display software testing system described in the second aspect of the present invention.
[0042] In a fourth aspect, the present invention provides a display platform equipped with display software, and uses the display software testing method described in the first aspect of the present invention to perform display software testing; or, uses the display software testing system described in the second aspect of the present invention to perform display software testing; or uses the display software testing device described in the third aspect of the present invention to perform display software testing.
[0043] In a fifth aspect, the present invention provides a vehicle, including the display platform described in the fourth aspect of the present invention; or, including the display software testing system described in the second aspect of the present invention; or, including the display software testing device described in the third aspect of the present invention.
[0044] The beneficial effects of the present invention are as follows:
[0045] 1. The display software testing method, system, device, display platform and vehicle of the present invention realize batch assignment, transmission and testing of the same type of data through batch testing functions, greatly improving the testing efficiency.
[0046] 2. The display software testing method, system, device, display platform and vehicle of the present invention have the functions of single-point testing, paging testing, batch testing and automated testing, and configure different testing strategies for different pages, which are flexible and more adaptable.
[0047] 3. The display software testing method, system, device, display platform and vehicle according to the present invention can perform functional testing on the display software of the intelligent multiple unit train, with high testing efficiency and saving labor costs.
[0048] 4. For the display software testing method, system, device, display platform and vehicle according to the present invention, strategies can be additionally configured for single-point testing to determine the order and time interval of data transmission, and can be saved to or read from a configuration file, greatly improving the testing efficiency.
[0049] 5. For the display software testing method, system, device, display platform and vehicle according to the present invention, the data on the set page is screened through the configuration file defined during software development and then displayed. The rule of data transmission can be configured through strategies. Through strategy configuration, multiple functions of a page can be tested at one time, improving the testing efficiency.
[0050] 6. For the display software testing method, system, device, display platform and vehicle according to the present invention, json text is used to save and load test data, expected data and test output files, with a clear structure. It can be created, modified, read and saved using software, or can also be operated manually.
[0051] 7. For the display software testing method, system, device, display platform and vehicle according to the present invention, a csv format file is used to save the software data configuration file, and the data configuration is stored in the form of a list, which is clear and easy to understand, and is also easy to perform batch operations.
[0052] 8. For the display software testing method, system, device, display platform and vehicle according to the present invention, the expected file and the output file are analyzed and compared to judge whether the function is correct, further improving the testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The specification drawings forming a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention.
[0054] Figure 1 It is a schematic flow chart of the batch testing method provided in Embodiment 1 of the present invention.
[0055] Figure 2 It is a schematic flow chart of the single-point testing method provided in Embodiment 1 of the present invention.
[0056] Figure 3 It is a schematic flow chart of the paging testing method provided in Embodiment 1 of the present invention.
[0057] Figure 4Schematic flowchart of the automated testing method provided in Embodiment 1 of the present invention.
[0058] Figure 5 Cross-sectional schematic diagram of the intelligent display screen display software testing device provided in Embodiment 2 of the present invention.
[0059] Figure 6 Schematic diagram of the test options of the testing device provided in Embodiment 2 of the present invention.
[0060] In the figure: The distances or dimensions between each part are exaggerated for showing the positions of each part, and the schematic diagram is only for illustration. Detailed implementation manners
[0061] It should be noted that the following detailed descriptions are all exemplary and are intended to provide further illustration of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.
[0062] It should be noted that the terms used herein are only for describing specific implementation manners and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the present invention clearly states otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0063] As introduced in the background art, there are problems in the prior art such as a long test cycle and low test efficiency. To solve the above technical problems, the present invention proposes a display software testing method. This method has the functions of single-point testing, paging testing, batch testing, and automated testing. It can analyze and compare the data transmission and display functions of display software in a short time, save the results, and use the analysis and comparison results as output. Developers can use this method to test and verify software functions and remotely debug the in-vehicle display screen software under this platform. This method can improve the work efficiency of software development and testing by intelligent display screen developers and reduce software debugging costs.
[0064] Specifically, in this embodiment, the batch testing function includes the following processes:
[0065] Definition: Data with a consistent data structure and similar data bit positions (the difference is within a set range) in one interface are respectively bound to the same components for separate display.
[0066] For the above types of test data (including status bits and numerical types), the batch setting function is used, including:
[0067] (1) Use the method of keyword search or regular matching to filter out this type of test data (for example, use a test device to display the filtered data on the display interface of the test device; if the test device does not have a display function, directly process the filtered test data without display).
[0068] (2) Batch operate on the given data. For status type data (i.e., data that can only be 0 and 1), batch all set to 1 (it can be understood that in some other embodiments, it can also be all set to 0, and those skilled in the art can select specific values according to the specific working conditions, which will not be elaborated here). For numerical type data (integers or real numbers within a certain range), recursively assign values within the defined range or distinguish the values of each variable according to any other arbitrarily set rules.
[0069] (3) Configure the sending interval and send data regularly, so that the same type of test data is sent to the display software in sequence at a certain interval.
[0070] By observing the changes and change order of the same component status on the interface (here, it can be observed manually or automatically by image recognition, and those skilled in the art can select according to the specific working conditions, which will not be elaborated here), determine the accuracy of the function corresponding to this type of data.
[0071] Specifically, as Figure 1 shown, the function test method is: after the display software receives the data, determine whether the display of the display software is consistent with the expected display interface. If it is consistent or the difference is within the preset range, the test is completed; otherwise, continue the function test after modifying the software parameters until the display of the display software is consistent with the expected display interface or the difference is within the preset range.
[0072] In this embodiment, the single-point test includes:
[0073] By setting a single data bit or sequentially setting multiple data bits (setting once or multiple times), and then sending the data to the display software for function testing.
[0074] The difference from the existing test function is that the single-point test described in this embodiment additionally configures a strategy to determine the order and time interval of data sending, and can save the configuration strategy to a configuration file or read it from a configuration file.
[0075] Specifically, as Figure 2 shown, the function test method is: after the display software receives the data, determine whether the display of the display software is consistent with the expected display interface. If it is consistent or the difference is within the preset range, the test is completed; otherwise, continue the function test after modifying the software parameters until the display of the display software is consistent with the expected display interface or the difference is within the preset range.
[0076] In this embodiment, the paging test includes:
[0077] The paging test refers to the test of a single display page of the display software. Through the test tool, the data variables of this page are filtered into the test tool for display through the configuration file defined during software development. The rule of data sending can be configured through policies, and the policies include:
[0078] (1) Pre-configure associated variables, and the configuration can be saved to a file for reuse later to avoid re-configuration;
[0079] (2) Each piece of data is sent sequentially at regular intervals;
[0080] (3) Pack the data of one car and send it at the same time, and then send the data of other cars sequentially at regular intervals; or, for several cars forming a car group, pack the data of each car group and send it at the same time, and then send the data of other car groups sequentially at regular intervals;
[0081] (4) Pack the data in units of train units, configure it, and then send it.
[0082] Through the above policy configuration, multiple functions of a page can be tested at one time.
[0083] Specifically, as Figure 3 shown, the function test method is: after the display software receives the data, judge whether the display of the display software is consistent with the expected display interface. If it is consistent or the difference is within the preset range, the test is completed; otherwise, wait until the software parameters are modified and then continue the function test until the display of the display software is consistent with the expected display interface or the difference is within the preset range.
[0084] In this embodiment, the automated test includes:
[0085] The automated test is based on the aforementioned test functions (single-point test, paging test, and batch test). Through the feedback data given during software development, it automatically compares whether the expected data calculated by the test tool by sending data matches the feedback data to judge whether the function is accurate.
[0086] The expected data includes the page number, car number, component number, component status (status type), and component value (value type), and is written into the test expectation file in a certain format;
[0087] The output of the feedback data is during the software development process. While binding data to the interface components, the page number, car number, component number, and the bound data are printed and output to the test output file in a specific format.
[0088] By analyzing and comparing the expected file and the output file, the correctness of the function is judged.
[0089] Specifically, the process of automated testing is as Figure 4 shown. When the comparison results are consistent or the differences are within the set range, the test is completed; otherwise, the parameters of the display software are modified and the comparison continues until the comparison results are consistent or the differences are within the set range.
[0090] In this embodiment, json text is used to save and load test data, expected data, and test output files. Its advantage is that the structure is clear and it can be created, modified, read, and saved using software, or it can also be operated manually.
[0091] In this embodiment, a csv format file is used to save the software data configuration file, and the data configuration is stored in the form of a list, which is clear and easy to understand and is also easy to perform batch operations.
[0092] Embodiment 2:
[0093] Embodiment 2 of the present invention provides a display software testing system, including a batch testing module;
[0094] The batch testing module is configured to:
[0095] Screen test data of a set type;
[0096] Batch operate the screened test data. For test data of the status type, all are set to a set value. For test data of the numerical type, recursive assignment is performed within the set range or assignment is distinguished according to a set rule;
[0097] The batch-operated test data is sent regularly, and the same type of data is sent to the display software in sequence at a set time interval for function testing.
[0098] More specifically, in the batch testing module, it is defined that data with the same data structure and similar data bit positions (differences within the set range) in one interface are respectively bound to the same components for separate display.
[0099] For the above-defined type of test data (including status bits and numerical types), the batch setting function is used, including:
[0100] (1) Use the method of keyword search or regular matching to screen out this type of test data (for example, using a test device, the screened data is displayed on the display interface of the test device; if the test device does not have a display function, the screened test data is directly processed without display);
[0101] (2) Batch - operate on the given data. For status - type data (i.e., data that can only be 0 and 1), set all of them to 1 in batch (it can be understood that in some other embodiments, all can also be set to 0. Those skilled in the art can choose specific values according to the specific working conditions, which will not be elaborated here). For numerical - type data (integers or real numbers within a certain range), recursively assign values within the defined range or distinguish the values of each variable according to any other arbitrarily set rules;
[0102] (3) Configure the sending interval and send data at regular intervals, so that the same - type test data is sent to the display software in sequence at a certain interval.
[0103] By observing the changes and change order of the same - type component states in the interface (here, it can be observed manually or automatically through image recognition. Those skilled in the art can choose according to the specific working conditions, which will not be elaborated here), determine the accuracy of the functions corresponding to this type of data.
[0104] Optionally, in some other implementation manners, it further includes a single - point test module, and the single - point test module is configured as:
[0105] Send the test data of a pre - set single data bit or multiple sequentially - set data bits to the display software so that the display software conducts function tests.
[0106] Different from the existing test functions, the single - point test module is additionally configured with a strategy to determine the order and time interval of data sending, and the configuration strategy can be saved to or read from a configuration file.
[0107] Optionally, in some other implementation manners, it further includes a paging test module, and the paging test module is configured as:
[0108] Screen the test data of a certain page and send it to the display software so that the display software conducts function tests.
[0109] Paging test refers to the test of a single display page of the display software. The data variables of this page are screened into the test tool through the configuration file defined during software development by the test tool and can be displayed. The rule of data sending can be configured through a strategy. The strategy includes:
[0110] (1) Pre - configure associated variables, and the configuration can be saved to a file for reuse later to avoid re - configuration;
[0111] (2) Send each data at regular intervals in sequence;
[0112] (3) Pack the data of one car and send it simultaneously, and then send the data of other cars sequentially at regular intervals; or, for several cars forming a car group, pack the data of each car group and send it simultaneously, and then send the data of other car groups sequentially at regular intervals;
[0113] (4) Pack the data in units of train units, configure it, and then send it.
[0114] Through the above strategy configuration, multiple functions of a page can be tested at one time.
[0115] Optionally, in some other implementation manners, it further includes an automated test module, and the automated test module includes:
[0116] Compare the expected data file with the test output file, and judge whether the function is correct according to the comparison result;
[0117] When the comparison result is consistent or the difference is within the set range, the test is completed; otherwise, after the parameters of the display software are modified, continue the comparison until the comparison result is consistent or the difference is within the set range;
[0118] Among them, the expected data file stores the expected data in a set format, and the expected data includes page number, car number, component number, component status, and component value; the test output file stores the feedback data in a set format, and the feedback data includes the page number, car number, component number, and bound data generated during the development of the display software.
[0119] In this embodiment, the function test is optionally set as: after the display software receives the data, judge whether the display of the display software is consistent with the expected display interface. If it is consistent or the difference is within the preset range, the test is completed; otherwise, after the software parameters are modified, continue the function test until the display of the display software is consistent with the expected display interface or the difference is within the preset range.
[0120] This embodiment uses json text to save and load test data, expected data, and test output files. Its advantage is that the structure is clear, and it can be created, modified, read, and saved using software, or can also be operated manually.
[0121] In this embodiment, a csv format file is used to save the software data configuration file, and the data configuration is stored in the form of a list, which is clear and easy to understand, and is easy to perform batch operations.
[0122] This embodiment uses json text to save and load test data, expected data, and test output files. Its advantage is that the structure is clear, and it can be created, modified, read, and saved using software, or can also be operated manually.
[0123] In this embodiment, a software data configuration file is saved in the csv format, and data configurations are stored in the form of a list, which is clear and easy to understand and is also easy to perform batch operations.
[0124] Embodiment 3:
[0125] Embodiment 3 of the present invention provides a display software testing device, including a processor, where the processor executes the display software testing method described in Embodiment 1 of the present invention; or the processor includes the display software testing system described in Embodiment 2.
[0126] The specific form of the device interface is as Figure 5 shown. In the Documents column, page variables defined in a certain file can be filtered out by loading the software page data configuration file name; in the Filter column, different field searches can be performed using keywords, and global regular expressions can be used to search all fields.
[0127] In addition, through the save option in file in the menu bar, the filtered variables and their values, as well as the units, vehicle numbers, component numbers, and component statuses (status types) or component values (numeric types) corresponding to the variables, can be stored in a desired json-format file. Load in file can read the saved json file and csv file; the table area displays each field of the data, where the value field is an assignable field and can be edited, and other fields are only for display.
[0128] The automatic configuration policy can be configured in the Test in the menu bar, as Figure 6 shown.
[0129] The above-mentioned device described in this embodiment has functions such as batch value modification, reading data from a configuration file, obtaining page data attributes from a configuration file, and automatically detecting whether the display software is correct with the feedback output function for software development integration.
[0130] Embodiment 4:
[0131] Embodiment 4 of the present invention provides a display platform equipped with display software, and the display software is tested using the display software testing method described in Embodiment 1 of the present invention; or, the display software is tested using the display software testing system described in Embodiment 2 of the present invention; or the display software is tested using the display software testing device described in Embodiment 3 of the present invention.
[0132] The display platform described in this embodiment is preferably a display platform of a multiple unit train. It can be understood that in some other embodiments, the display platform can also be a display platform of other rail trains or road trains, and those skilled in the art can select according to specific working conditions, which will not be elaborated here.
[0133] Example 5:
[0134] Example 5 of the present invention provides a vehicle, which includes the display platform described in Example 4 of the present invention; alternatively, it includes the display software testing system described in Example 2 of the present invention (the testing system communicates with the display platform); alternatively, it includes the display software testing device described in Example 3 of the present invention (the testing device communicates with the display platform).
[0135] The vehicle described in this embodiment is preferably a rail vehicle, that is, a train allowed on the track; it can be understood that in some other embodiments, the vehicle can also be a road train allowed on the road (that is, a road train, a road vehicle group), as long as it has certain display software. Those skilled in the art can make a choice according to the specific working conditions, which will not be elaborated here.
[0136] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A display software testing method, characterized in that: It includes batch testing, and the batch testing includes: Filtering test data of a set type; Batch-operating the filtered test data, setting all test data of the status type to a set value, and recursively assigning values to the test data of the numerical type within a set range or assigning values according to a set rule; The test data after batch operation is sent at regular intervals, and the same type of data is sent to the display software in sequence at a set time interval for functional testing.
2. The display software testing method according to claim 1, characterized in that: The data of the set type is: data with consistent data structures in an interface and data bit differences within a set range, which are respectively bound to the same components for separate display.
3. The display software testing method according to claim 2, characterized in that: Judging the functional accuracy of the corresponding type of data through the change and change order of the same component status.
4. The display software testing method according to claim 1, characterized in that: Filtering the test data of the set type by using keyword search or regular matching.
5. The display software testing method according to claim 1, characterized in that: The status type data is data expressed as 0 and 1, and the set value is 1; the numerical type data is an integer or a real number within a set range.
6. The display software testing method according to claim 1, characterized in that: It also includes single-point testing, and the single-point testing includes: Sending the test data of a pre-set single data bit or multiple sequentially set data bits to the display software so that the display software performs functional testing.
7. The display software testing method according to claim 6, characterized in that: The test data of a single data bit or multiple sequentially set data bits is sent through a pre-configured sending strategy, and the pre-configured sending strategy includes: the order of data sending and the time interval of data sending.
8. The display software testing method according to claim 1, characterized in that: It also includes paging testing, and the paging testing includes: Filtering the test data of a certain page and sending it to the display software so that the display software performs functional testing.
9. The display software testing method according to claim 8, characterized in that: The filtered data is sent through a pre-configured sending strategy, and the pre-configured sending strategy includes: pre-configuring associated test data; each test data is sent sequentially at a set time interval; the test data of one car is packaged and sent at the same time, and then the test data of other cars is sent sequentially at a set time interval; the test data is packaged in units of train units and sent after configuration.
10. The display software testing method according to any one of claims 1-9, characterized in that: The functional testing includes: judging whether the display of the display software is consistent with the expected display interface. If it is consistent or the difference is within a preset range, the test is completed; otherwise, after the parameters of the display software are modified, the functional testing continues until the display of the display software is consistent with the expected display interface or the difference is within a preset range.
11. The display software testing method according to any one of claims 1-9, characterized in that: It includes automated testing, and the automated testing includes: Comparing the expected data file and the test output file, and judging whether the function is correct according to the comparison result; When the comparison results are consistent or the differences are within the set range, the test is completed; otherwise, after the parameters of the display software are modified, the comparison continues until the comparison results are consistent or the differences are within the set range; Among them, the expected data file stores expected data in a set format, and the expected data includes page number, vehicle number, component number, component status, and component value; the test output file stores feedback data in a set format, and the feedback data includes the page number, vehicle number, component number, and bound data generated during the development of the display software.
12. The display software testing method according to claim 11, wherein: Use json text to save and load test data, expected data, and test output files, and use files in csv format to save configuration files.
13. A display software test system, characterized in that: It includes a batch test module; The batch test module is configured to: screen test data of a set type; Batch operate on the screened test data, set all test data of the status type to a set value, and recursively assign values within the set range or assign values according to a set rule for test data of the numerical type; The batch-operated test data is sent regularly, and the same type of data is sent to the display software in sequence at a set time interval for function testing.
14. The display software test system according to claim 13, characterized in that: It further includes a single-point test module, and the single-point test module is configured to: Send the test data of a single pre-set data bit or multiple sequentially set data bits to the display software to enable the display software to perform function testing.
15. The display software test system according to claim 13, characterized in that: It further includes a paging test module, and the paging test module is configured to: Screen the test data of a certain page and send it to the display software to enable the display software to perform function testing.
16. The display software test system according to claim 13, characterized in that: It includes an automated test module, and the automated test module includes: Compare the expected data file and the test output file, and judge whether the function is correct according to the comparison results; When the comparison results are consistent or the differences are within the set range, the test is completed; otherwise, after the parameters of the display software are modified, the comparison continues until the comparison results are consistent or the differences are within the set range; Among them, the expected data file stores expected data in a set format, and the expected data includes page number, vehicle number, component number, component status, and component value; the test output file stores feedback data in a set format, and the feedback data includes the page number, vehicle number, component number, and bound data generated during the development of the display software.
17. A display software test device, characterized in that: It includes a processor, and the processor executes the display software test method according to any one of claims 1-12; or, it includes the display software test system according to any one of claims 13-16.
18. A display platform, equipped with display software, characterized in that: Perform display software testing by using the display software testing method according to any one of claims 1-12; or, perform display software testing by using the display software testing system according to any one of claims 13-16; or perform display software testing by using the display software testing device according to claim 17.
19. A vehicle, characterized in that: It includes the display platform according to claim 18; or, includes the display software testing system according to any one of claims 13-16; or, includes the display software testing device according to claim 17.
Citation Information
Patent Citations
Batch test method and device and computer readable storage medium
CN110287097A
System and method for building full batch test environments
US20050283667A1