A method for generating abnormal parameters in automated testing of FADEC in flight simulators

By receiving and verifying standard input characters, using hash values ​​and exception parameter character base table to generate exception test parameter strings, the cumbersome problem of manpower constructing exception parameters in the FADEC automation test of the flight simulator is solved, and the efficiency of rapid generation of exception parameters and automated tests is improved.

CN115328075BActive Publication Date: 2025-03-18JIANGSU PUXU SOFTWARE INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210837938.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-16
Publication Date
2025-03-18
Estimated Expiration
2042-07-16

AI Technical Summary

Technical Problem

The prior art requires human labor to construct abnormal parameters during the automated testing of the flight simulator FADEC, which leads to cumbersome and inefficient testing.

Method used

By receiving standard input characters, verifying their length, using hash values ​​to retrieve exception test parameter values ​​from the Redis cache, if not present, obtain different combinations of exception parameter values ​​from the base table of exception parameter characters, and splicing them with standard input characters to generate an exception test parameter string with the same length as the exception test length.

Benefits of technology

It realizes the rapid generation of abnormal parameters during the automated testing of the flight simulator FADEC, avoids abnormal parameters constructed by human labor, improves testing efficiency, and realizes the automation of abnormal parameter testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115328075B_ABST
    Figure CN115328075B_ABST
Patent Text Reader

Abstract

The present invention provides a method for generating abnormal parameters for automated testing of a flight simulator FADEC, comprising: receiving standard input characters; checking whether the length of the standard input characters meets the abnormal test length, if the check is passed, proceeding to the next step, if the check is not passed, throwing a character length exception; according to the hash value of the standard input characters and the abnormal test length, retrieving whether the standard input characters exist from the Redis cache, if they exist, returning the retrieved abnormal test parameter value, if they do not exist, proceeding to the next step; obtaining abnormal parameter values ​​of different combinations from an abnormal parameter character base table according to the method; splicing abnormal parameters of different combinations with standard input characters to obtain abnormal test parameter strings. The method of the present invention supports rapid generation of abnormal parameters during the automated testing of the flight simulator FADEC, avoiding manual labor to construct abnormal parameters every time during the testing process, thereby realizing the automation of abnormal parameter testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of flight simulation, and in particular to a method for generating abnormal parameters of an automated test of a flight simulator FADEC. Background Art

[0002] Aircraft simulators are flight simulation systems based on hydraulic systems, electric systems, and electric-hydraulic hybrids. They provide a high-fidelity simulation environment for aircraft research and testing and pilot training. Pilots can undergo flight training on the ground, allowing them to master flight driving techniques and related techniques such as navigation, bombing, shooting, and air combat, and adapt to a variety of complex situations encountered in the air. Using flight simulators for flight training has the advantages of improving training efficiency, saving training funds, and ensuring flight safety.

[0003] The flight simulator consists of a simulated cockpit system, a motion simulation system, a visual simulation system, a simulated control system, and a flight training instructor platform. The simulated cockpit system simulates the environment and operation of the actual aircraft cockpit by setting instruments, displays, operating mechanisms, sensors, etc., such as operating the steering wheel, main joystick, yaw pedal, accelerator pedal, etc. The motion simulation system simulates the multiple postures and changes of the aircraft in space by using a spatial multi-degree-of-freedom motion platform as support. The visual simulation system is used to simulate the scene environment inside and outside the aircraft through vision, which helps the pilot to judge the aircraft's attitude, position, altitude, speed, weather, etc. The simulation control system generally refers to the central control system used to control the entire flight simulator. As the brain of the entire flight simulator, it realizes the control of the simulation process.

[0004] In the design of modern flight simulators, real control systems and loads are usually configured, which can give the pilot the feeling of actually operating the aircraft in the air on the ground. The simulated control system configured is usually a real-time control system, and the key link is the control of the turbofan engine, which is implemented based on the FADEC (Full Authority Digital Engine Control) infrastructure. FADEC is a full-authority digital electronic control system for the engine, which can select control laws within a reasonable range and provide full authority for engine control to achieve stable and transient engine characteristics, increase engine reliability and efficiency, and both distributed and centralized control FADEC designs place high demands on their numerical calculation and logical judgment capabilities. In the design process, redundancy and error-proofing designs will be carried out in a targeted manner, and abnormal scenarios and abnormal parameters will be constructed to test their abnormal handling capabilities and fault-tolerance capabilities. Summary of the invention

[0005] The purpose of the present invention is to provide a method for generating abnormal parameters for automated testing of a flight simulator FADEC, which supports rapid generation of abnormal parameters during automated testing of a flight simulator FADEC, realizes UI element input / interface parameter input / APP element input, avoids manual labor to construct abnormal parameters each time during the test, and thus realizes automation of abnormal parameter testing.

[0006] According to a first aspect of the present invention, a method for generating abnormal parameters of an automated test of a flight simulator FADEC is provided, comprising:

[0007] Step 1, receiving standard input characters;

[0008] Step 2: Check whether the length of the standard input character meets the abnormal test length. If the check passes, proceed to step 3 for further processing. If the check fails, throw a character length exception and return to step 1.

[0009] Step 3: According to the hash value of the standard input character and the abnormal test length, retrieve the corresponding abnormal test parameter value from the Redis cache. If it exists, return the retrieved abnormal test parameter value. If not, proceed to step 4.

[0010] Step 4: According to The method obtains different combinations of abnormal parameter values ​​from the abnormal parameter character base table, where m represents the total length of the abnormal parameter character base table, and n represents the abnormal test length minus the standard input character length. Abnormal parameter values;

[0011] Step 5: Concatenate the abnormal parameters obtained in different combinations with the standard input characters to obtain An exception test parameter string with the same length as the exception test length.

[0012] According to a second aspect of the present invention, a system for generating abnormal parameters for automatic testing of a flight simulator FADEC is provided, comprising:

[0013] at least one or more processors;

[0014] A memory stores operable instructions, wherein when the instructions are executed by the one or more processors, the one or more processors perform operations, wherein the operations include the process of the method for generating automatic test abnormal parameters of the aforementioned flight simulator FADEC.

[0015] According to a third aspect of the purpose of the present invention, a computer-readable medium storing software is also proposed, wherein the software includes instructions that can be executed by one or more computers, and the instructions enable the one or more computers to perform operations through such execution, and the operations include the process of the automated test abnormal parameter generation method of the aforementioned flight simulator FADEC.

[0016] It should be understood that all combinations of the aforementioned concepts and the additional concepts described in more detail below can be considered as part of the inventive subject matter of the present disclosure as long as such concepts are not mutually inconsistent. In addition, all combinations of the claimed subject matter are considered as part of the inventive subject matter of the present disclosure.

[0017] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For clarity, not every component is labeled in every figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings, in which:

[0019] Figure 1 It is a flow chart of a method for generating abnormal parameters of an automated test of a flight simulator FADEC according to an embodiment of the present invention.

[0020] Figure 2 It is a flow chart of a method for generating abnormal parameters of an automated test of a flight simulator FADEC according to another embodiment of the present invention.

[0021] Figure 3 It is an example of the abnormal parameter character base table of an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to better understand the technical content of the present invention, specific embodiments are described below in conjunction with the accompanying drawings.

[0023] Various aspects of the present invention are described in this disclosure with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the present disclosure are not necessarily intended to include all aspects of the present invention. It should be understood that the various concepts and embodiments introduced above, as well as those described in more detail below, can be implemented in any of many ways, because the concepts and embodiments disclosed by the present invention are not limited to any implementation. In addition, some aspects disclosed by the present invention can be used alone or in any appropriate combination with other aspects disclosed by the present invention.

[0024] According to an embodiment of the present invention, a method for generating abnormal parameters for automated testing of a flight simulator FADEC is proposed, which supports rapid generation of abnormal parameters during automated testing of a flight simulator FADEC, implements UI element input / interface parameter input / APP element input, and avoids manual labor to construct abnormal parameters each time during the test, thereby realizing automation of abnormal parameter testing.

[0025] Combination Figure 1 In the example shown, the method for generating abnormal test parameters of the flight simulator FADEC includes the following process:

[0026] Step 1, receiving standard input characters;

[0027] Step 2: Check whether the length of the standard input character meets the abnormal test length. If the check passes, proceed to step 3 for further processing. If the check fails, throw a character length exception and return to step 1.

[0028] Step 3: According to the hash value of the standard input character and the abnormal test length, retrieve the corresponding abnormal test parameter value from the Redis cache. If it exists, return the retrieved abnormal test parameter value. If it does not exist, proceed to the following step 4 to continue processing.

[0029] Step 4: According to The method obtains different combinations of abnormal parameter values ​​from the abnormal parameter character base table, where m represents the total length of the abnormal parameter character base table, and n represents the abnormal test length minus the standard input character length. Abnormal parameter values;

[0030] Step 5: Concatenate the abnormal parameters obtained in different combinations with the standard input characters to obtain An exception test parameter string with the same length as the exception test length.

[0031] Wherein, in step 2, checking whether the length of the standard input character meets the abnormal test length includes:

[0032] According to the preset abnormal test length w, determine whether the received standard input characters meet the requirements. If the length v of the standard input characters is greater than w, the check is deemed to have failed and a character length abnormality result is thrown. If the length v of the standard input characters is less than or equal to w, the check is deemed to have passed.

[0033] For example, during the exception test initialization process, the exception test length w is set to 16. When receiving standard character input, first determine whether the length of the input standard character exceeds the exception test length. If it exceeds 16, throw an exception directly. If it is less than or equal to 16, continue to the next step.

[0034] Among them, in step 3, according to the hash value of the standard input character and the abnormal test length, whether there is a corresponding abnormal test parameter value from the Redis cache is retrieved, including:

[0035] A hash value of the standard input character is obtained by using a preset hash algorithm mapping calculation, which is the first decimal number, and the hash value is concatenated with the second decimal number formed by the abnormal test length to obtain a fused hash value;

[0036] The fused hash value is retrieved in the Redis cache. If an abnormal test parameter value with the same hash value exists, it is output. If not, go to step 4.

[0037] Among them, in the embodiment of the present invention, the hash algorithm can adopt MD5, SHA-1 or SHA-256 hash algorithm.

[0038] Among them, according to The method obtains different combinations of exception parameter values ​​from the exception parameter character base table, including:

[0039] Construct an exception parameter character base table s, whose length is m; and

[0040] according to The method obtains the abnormal parameter character base table s constructed Abnormal parameter value.

[0041] Among them, the abnormal parameters obtained in different combinations are concatenated with the standard input characters to obtain An exception test string with the same length as the exception test length, including:

[0042] Will Each abnormal parameter value in the abnormal parameter value is used as the beginning string, and the standard input character is used as the end string to construct An exception test parameter string with the same length as the exception test length.

[0043] Combination Figure 3An example of an exception parameter character base table is shown, which has a length of 107.

[0044] For example, the standard input characters for UI / interface / APP automated testing are abcdxzjqpt, and the abnormal test length is set to 14. Then, according to the combinations(s,4) method, 4 characters are obtained from the abnormal parameter character base table s, that is, n=4, and a total of abnormal characters, namely, $%^&,$%^*,$%&*,…, and then concatenate them with the standard input characters abcdxzjqpt to form an abnormal test string, namely, $%^*abcdxzjqpt,$%&*abcdxzjqpt,$^&*abcdxzjqpt,….

[0045] Combination Figure 2 Another embodiment of the automated test abnormal parameter generation method shown in FIG. Figure 1 Based on the process of the embodiment shown, the Redis cache processing of the generated abnormal parameters is also included, which specifically includes:

[0046] The standard format of the string of standard input characters: abnormal test length: abnormal test parameter is used to write the string into the Redis cache, and the associated hash value is determined based on the standard input characters and the abnormal test length.

[0047] Therefore, it can be used for abnormal testing of other identical or similar scenarios, thereby improving the speed and efficiency of abnormal parameter reading and use.

[0048] According to the embodiments disclosed in the present invention, a system for generating abnormal parameters of an automated test of a flight simulator FADEC is also provided, comprising: at least one or more processors; a memory storing operable instructions, wherein when the instructions are executed by the one or more processors, the one or more processors are caused to perform operations, wherein the operations include the process of the method for generating abnormal parameters of an automated test of a flight simulator FADEC, in particular Figure 1 or Figure 2 The process of the embodiment shown.

[0049] According to the embodiments disclosed in the present invention, a computer-readable medium storing software is also provided, wherein the software includes instructions that can be executed by one or more computers, and the instructions, through such execution, cause one or more computers to perform operations, and the operations include the process of the aforementioned method for generating abnormal parameters of the automatic test of the flight simulator FADEC, especially Figure 1 or Figure 2 The process of the embodiment shown.

[0050] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.

Claims

1. A method for generating abnormal parameters of an automated test of a flight simulator FADEC, characterized in that: include: Step 1, receiving standard input characters; Step 2: Check whether the length of the standard input character meets the abnormal test length. If the check passes, proceed to step 3 for further processing. If the check fails, throw a character length exception and return to step 1. Step 3: According to the hash value of the standard input character and the abnormal test length, retrieve the corresponding abnormal test parameter value from the Redis cache. If it exists, return the retrieved abnormal test parameter value. If not, proceed to step 4. Step 4: According to The method obtains different combinations of abnormal parameter values ​​from the abnormal parameter character base table, where m represents the total length of the abnormal parameter character base table, and n represents the abnormal test length minus the standard input character length. Abnormal parameter values; Step 5: Concatenate the abnormal parameters obtained in different combinations with the standard input characters to obtain An exception test parameter string with the same length as the exception test length, specifically: Each abnormal parameter value in the abnormal parameter value is used as the beginning string, and the standard input character is used as the end string to construct An exception test parameter string with the same length as the exception test length.

2. The method for generating abnormal parameters of the automatic test of the flight simulator FADEC according to claim 1, characterized in that: In step 2, checking whether the length of the standard input character meets the abnormal test length includes: According to the preset abnormal test length w, determine whether the received standard input characters meet the requirements. If the length v of the standard input characters is greater than w, the check is deemed to have failed and a character length abnormality result is thrown. If the length v of the standard input characters is less than or equal to w, the check is deemed to have passed.

3. The method for generating abnormal parameters of the automatic test of the flight simulator FADEC according to claim 1, characterized in that: In step 3, according to the hash value of the standard input character and the abnormal test length, whether there is a corresponding abnormal test parameter value is retrieved from the Redis cache, including: A hash value of the standard input character is obtained by using a preset hash algorithm mapping calculation, which is the first decimal number, and the hash value is concatenated with the second decimal number formed by the abnormal test length to obtain a fused hash value; The fused hash value is retrieved in the Redis cache. If an abnormal test parameter value with the same hash value exists, it is output. If not, go to step 4.

4. The method for generating abnormal parameters of the automatic test of the flight simulator FADEC according to claim 3, characterized in that: The hash algorithm is MD5, SHA-1 or SHA-256 hash algorithm.

5. The method for generating abnormal parameters of the automatic test of the flight simulator FADEC according to claim 1, characterized in that: In step 4, according to The method obtains different combinations of exception parameter values ​​from the exception parameter character base table, including: Construct an exception parameter character base table s, whose length is m; and according to The method obtains the abnormal parameter character base table s constructed Abnormal parameter value.

6. The method for generating abnormal parameters of the automatic test of the flight simulator FADEC according to any one of claims 1 to 5, characterized in that: The method further comprises: The standard format of the string of standard input characters: abnormal test length: abnormal test parameter is used to write the string into the Redis cache, and the associated hash value is determined based on the standard input characters and the abnormal test length.

7. An automatic test abnormal parameter generation system for a flight simulator FADEC, characterized in that: include: at least one or more processors; A memory storing operable instructions, wherein when the instructions are executed by the one or more processors, the one or more processors perform operations, wherein the operations include the process of the method for generating automatic test abnormal parameters of a flight simulator FADEC as described in any one of claims 1 to 6.

8. A computer-readable medium storing software, characterized in that: The software includes instructions that can be executed by one or more computers, and the instructions enable the one or more computers to perform operations through such execution, and the operations include the process of the method for generating automatic test abnormal parameters of the flight simulator FADEC as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Flight training data acquisition and quality evaluation system of analog machine

    CN102053563A

  • Flexible engine monitoring

    CN114291290A