Equipment testing method, device and system and storage medium

By analyzing the test process, status, collecting parameters and indicator data in the XML file, generating corresponding lists and displaying them, the problems of lengthy code and poor reuse in traditional equipment testing methods are solved, and the universality and quality of the test are improved.

CN119847924AInactive Publication Date: 2025-04-18AIR FORCE UNIV PLA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411925551.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional equipment testing methods use hard coding to process and parameter processing, resulting in long code, poor reuse rate, long software development cycle and unassured quality.

Method used

An equipment testing method is adopted to obtain the XML file of the project configuration, analyze the XML format test process data, test status data, A/D acquisition parameters and indicator data, generate the corresponding list, and display it.

Benefits of technology

It improves the versatility of equipment testing, solves the problems of long code and poor reuse, shortens the software development cycle, and improves the test quality, so that it can be applied by multiple projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847924A_ABST
    Figure CN119847924A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment testing method, device and system and a storage medium. The equipment testing method comprises the steps that an XML file of engineering configuration is acquired; performing XML format test process data analysis on the XML file; generating a test flow list; performing XML format test state data analysis on the XML file to generate a test state list; performing XML format A / D acquisition parameter analysis on the XML file to generate an A / D acquisition parameter list; performing XML format indicator light data analysis on the XML file to generate an indicator light definition list; and displaying the test flow list, the state definition list, the A / D acquisition parameter list and the indicator light definition list. By adopting the technical scheme of the invention, the equipment test universality is improved, and the method can be applied to multiple projects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software testing, and in particular relates to an equipment testing method and device, a system, and a storage medium. Background Art

[0002] Equipment testing is a necessary means to ensure the correctness of products. During equipment testing, various versions of test software are required according to different models, stages, products, operating systems, and hardware platforms. There are differences in the processes, binding parameters, acquisition parameters, and status information in different test software and test methods. Traditional methods use hard coding to process and process parameters, which has problems such as lengthy code, poor reuse rate, long software development cycle, and unguaranteed quality. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an equipment testing method and device, system, and storage medium to improve the versatility of equipment testing and can be applied to multiple projects.

[0004] To achieve the above object, the present invention adopts the following technical solution:

[0005] A device testing method, comprising:

[0006] Step S1, obtaining the XML file of the project configuration;

[0007] Step S2, parsing the XML file into XML format test process data; generating a test process list;

[0008] Step S3, parsing the XML file in XML format test status data to generate a test status list;

[0009] Step S4, parsing the XML file in XML format A / D acquisition parameter to generate an A / D acquisition parameter list;

[0010] Step S5, parsing the indicator light data in XML format on the XML file to generate an indicator light definition list;

[0011] Step S6: Display the test process list, state definition list, A / D acquisition parameter list and indicator light definition list.

[0012] The present invention also provides an equipment testing device, comprising:

[0013] The acquisition module is used to obtain the XML file of the project configuration;

[0014] The first processing module is used to parse the XML file into XML format test process data and generate a test process list;

[0015] The second processing module is used to parse the XML file test status data in XML format and generate a test status list;

[0016] The third processing module is used to parse the XML file into XML format A / D acquisition parameters to generate an A / D acquisition parameter list;

[0017] The fourth processing module is used to parse the indicator light data in XML format from the XML file and generate an indicator light definition list;

[0018] The display module is used to display the test process list, the state definition list, the A / D acquisition parameter list and the indicator light definition list.

[0019] An embodiment of the present invention further provides an equipment testing system, comprising: a memory and a processor, wherein the memory stores a computer program to be executed by the processor, and the computer program executes an equipment testing method when executed by the processor.

[0020] An embodiment of the present invention further provides a storage medium, on which a computer program is stored, and the computer program executes the equipment testing method when running.

[0021] The present invention obtains an XML file of project configuration; performs XML format test process data parsing, XML format test status data parsing, XML format A / D acquisition parameter parsing and XML format indicator light data parsing on the XML file to obtain a test process list, a status definition list, an A / D acquisition parameter list and an indicator light definition list. The technical solution of the present invention solves the problems of lengthy code, poor reuse rate, long software development cycle and unguaranteed quality caused by hard coding for process and parameter processing, improves the versatility of equipment testing and can be applied to multiple projects. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0023] Figure 1 The present invention is a flowchart of an equipment testing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0026] Embodiment 1:

[0027] like Figure 1 As shown, an embodiment of the present invention provides an equipment testing method, including:

[0028] Step S1, obtaining the XML file of the project configuration;

[0029] Step S2, parsing the XML file into XML format test process data; generating a test process list;

[0030] Step S3, parsing the XML file in XML format test status data to generate a test status list;

[0031] Step S4, parsing the XML file in XML format A / D acquisition parameter to generate an A / D acquisition parameter list;

[0032] Step S5, parsing the indicator light data in XML format on the XML file to generate an indicator light definition list;

[0033] Step S6: Display the test process list, state definition list, A / D acquisition parameter list and indicator light definition list.

[0034] As an implementation method of the embodiment of the present invention, in step S1, the filled-in content required for equipment testing is stored in a file to form a project configuration file in an XML format.

[0035] As an implementation method of an embodiment of the present invention, in step S2, first, the XML file defines the test processes in the equipment test process, such as "test equipment reset", "test equipment self-test", "product power supply", and "simulated flight"; then, the XML format test process data is parsed, and the above test processes are displayed in the form of a button list on the interface, and the constraints of the test processes are set at the bottom layer. For example, "test equipment reset" is a prerequisite for "product power supply", and if the test equipment is not reset correctly, an autonomous prompt is given to avoid the execution of product power supply.

[0036] As an implementation method of an embodiment of the present invention, in step S3, different test types of equipment have different states, such as "primary product", "secondary product", and "vibration" states, and the states of different models and products are different. The XML file defines the test status information during the equipment testing process in the XML file. The embodiment of the present invention parses the test status information in XML format, and the parsing process is to identify the code, name, type, and model attributes in the XML node, and construct a test status element node and a test status element list. Generate a test status list and display it on the interface, and update the test status in real time during the test execution.

[0037] As an implementation method of an embodiment of the present invention, in step S4, power parameter data such as "power supply voltage" and "power supply current" will be generated during the equipment test, and the data will be collected and displayed throughout the test through A / D acquisition. Different projects require different numbers, names, and parameter ranges of data channel items to be collected. The XML file defines the power parameter data during the equipment test in an XML file. The embodiment of the present invention parses A / D acquisition parameters in XML format, and the parsing process is to identify the code, name, type, and model attributes in the XML node, and construct A / D acquisition parameter element nodes and A / D acquisition parameter element lists. Generate an A / D acquisition parameter list and display it on the interface. During the test execution, display and alarm processing are performed according to the defined boundary range;

[0038] As an implementation method of an embodiment of the present invention, in step S5, during the equipment test process, there are different states such as "ready", "powered", "flying", and "detonation", and the states are displayed to the operator in the form of indicator lights. Different products and test types have different contents and quantities of status displays; the XML file defines the indicator light information during the equipment test process in the XML file. The embodiment of the present invention performs indicator light parsing in XML format, and the parsing process is to identify the code, name, type, and model attributes in the XML node, and construct an indicator light element node and an indicator light element list. Generate an indicator light list and display it on the interface, and display it in real time during the test execution.

[0039] Embodiment 2:

[0040] The present invention also provides an equipment testing device, comprising:

[0041] The acquisition module is used to obtain the XML file of the project configuration;

[0042] The first processing module is used to parse the XML file into XML format test process data and generate a test process list;

[0043] The second processing module is used to parse the XML file test status data in XML format and generate a test status list;

[0044] The third processing module is used to parse the XML file into XML format A / D acquisition parameters to generate an A / D acquisition parameter list;

[0045] The fourth processing module is used to parse the indicator light data in XML format from the XML file and generate an indicator light definition list;

[0046] The display module is used to display the test process list, the state definition list, the A / D acquisition parameter list and the indicator light definition list.

[0047] Embodiment 3:

[0048] An embodiment of the present invention further provides an equipment testing system, comprising: a memory and a processor, wherein the memory stores a computer program to be executed by the processor, and the computer program executes an equipment testing method when executed by the processor.

[0049] Embodiment 4:

[0050] An embodiment of the present invention further provides a storage medium, on which a computer program is stored, and the computer program executes the equipment testing method when running.

[0051] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A method for testing equipment, characterized in that: include: Step S1, obtaining the XML file of the project configuration; Step S2, parsing the XML file into XML format test process data; Generate a list of test processes; Step S3, parsing the XML file in XML format test status data to generate a test status list; Step S4, parsing the XML file in XML format A / D acquisition parameter to generate an A / D acquisition parameter list; Step S5, parsing the indicator light data in XML format on the XML file to generate an indicator light definition list; Step S6: Display the test process list, state definition list, A / D acquisition parameter list and indicator light definition list.

2. An equipment testing device, characterized in that: include: The acquisition module is used to obtain the XML file of the project configuration; The first processing module is used to parse the XML file into XML format test process data; Generate a list of test processes; The second processing module is used to parse the XML file test status data in XML format and generate a test status list; The third processing module is used to parse the XML file into XML format A / D acquisition parameters to generate an A / D acquisition parameter list; The fourth processing module is used to parse the indicator light data in XML format from the XML file and generate an indicator light definition list; The display module is used to display the test process list, the state definition list, the A / D acquisition parameter list and the indicator light definition list.

3. An equipment testing system, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the equipment testing method according to claim 1 is executed.

4. A storage medium, characterized in that: The storage medium stores a computer program, which executes the equipment testing method according to claim 1 when running.

Citation Information

Patent Citations

  • Equipment automated testing service integration system

    CN103345442A

  • Self organization method for spacecraft test software processes

    CN105487975A

  • Configuration method and device of rocket test launch control system based on XML

    CN109857452A

  • Simulation test method, system and terminal for vehicle communication

    CN118473979A