A flap and slat automatic detection method and device based on QTP software

By designing a slat automation detection method based on QTP software, using QTP software and VBScript language, the detection of slat controllers is realized, solving the problems of high labor, time and error costs in the existing detection process, reducing costs and improving detection efficiency.

CN115576219BActive Publication Date: 2025-04-04XIAN AIRCRAFT DESIGN INST OF AVIATION IND OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211242679.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-11
Publication Date
2025-04-04
Estimated Expiration
2042-10-11

AI Technical Summary

Technical Problem

The detection process of existing slat controllers requires manual operation, resulting in high labor, time and error costs. The detection process is complex and prone to operational errors.

Method used

A slat automation detection method based on QTP software is designed. Through communication between the server and the client, the QTP software and VBScript language are used to realize the automated detection of the slat controller. The specific steps include: the server monitors the detection instructions sent by the client in a circular manner, recognizes the received instructions based on the QTP software, extracts the command parameters, controls the movement of the rudder surface in the display and control software, extracts the interface parameters of the simulation software through the client's QTP software, determines whether the detection instructions are completed, and sends the next detection instruction according to the preset automated detection sequence.

Benefits of technology

It realizes automation of slat controller detection, reduces labor costs and error rates, improves detection efficiency, and saves screenshots of detection results, which facilitates traceability of subsequent problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576219B_ABST
    Figure CN115576219B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of automated testing technology, and in particular, relates to a flap and slat automated detection method and device based on QTP software. The method mainly includes step S1, where the server cyclically monitors the detection instructions or initialization instructions sent by the client; step S2, where the received detection instructions or initialization instructions are subjected to text recognition based on the first QTP software installed on the server, and the instruction parameters are extracted; step S3, where the movement of the rudder surface in the display and control software installed on the server is controlled according to the instruction parameters; step S4, where the interface parameters of the simulation software are extracted through the second QTP software installed on the client, and whether the detection instruction currently sent to the server is completed is determined according to the extracted parameters. If completed, the next detection instruction is sent to the server according to the preset automated detection sequence. The present application realizes the automation and intelligence of flap and slat controller detection, frees up operators, and reduces labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of automated testing technology, and in particular relates to a flap and slat automated detection method and device based on QTP software. Background Art

[0002] The flap and slat controller is the core component of the aircraft's high-lift control system. It is mainly used to receive signals from the cockpit control handle position sensor, and connect with the main flight control computer through the bus to obtain data such as flight speed, flight altitude and wheel load, calculate the control law of the high-lift subsystem, and transmit the obtained flap / slat position instructions to the flap / slat drive device, which controls the operation of the flap / slat actuator to control the movement of the flaps and slats.

[0003] Before delivery, flap and slat controller products need to undergo a series of tests to check whether they meet various functional indicators. Taking the commonly used inspection process as an example, it includes at least 34 inspection items. Each test item requires manual setting of conditions and parameters. The operator cannot leave during the entire inspection process and can only wait for the next operation. Therefore, the labor cost and time cost are relatively high. At the same time, the inspection process is very complicated, requiring the operator to control 3 software on 2 PCs at the same time. Once an operational error occurs, the entire test item will cause redoing, so the error cost is also relatively high. Summary of the invention

[0004] In order to solve at least one of the above technical problems, the present application designs a flap and slat automatic detection method and device based on QTP software to realize the automatic control of flap and slat controller detection.

[0005] The first aspect of the present application provides a flap and slat automatic detection method based on QTP software, which mainly includes:

[0006] Step S1, the server cyclically monitors the detection instruction or initialization instruction sent by the client;

[0007] Step S2: Based on the first QTP software installed on the server, text recognition is performed on the received detection instruction or initialization instruction to extract instruction parameters therein;

[0008] Step S3, controlling the movement of the control surface in the display and control software installed on the server side according to the instruction parameters, wherein the display and control software and the simulation software installed on the client side together constitute a simulation environment for simulating the flap and slat controller;

[0009] Step S4, extracting the interface parameters of the simulation software through the second QTP software installed on the client, and determining whether the detection instruction currently sent to the server is completed based on the extracted parameters. If completed, the next detection instruction is sent to the server according to a preset automatic detection sequence. The automatic detection sequence specifies multiple consecutive detection instructions and the display results of the simulation software when the instruction corresponding to each detection instruction is completed.

[0010] Preferably, before step S1, the process further includes driving the power supply software installed on the client to power on the flap and slat controller by the second QTP software installed on the client. In step S4, if it is determined that the detection instruction currently sent to the server has been completed, the power supply software is driven to power off the flap and slat controller.

[0011] Preferably, in step S2, extracting instruction parameters includes:

[0012] Setting text interception rules according to the context of the instruction parameters in the text format of the received detection instruction or initialization instruction, wherein the text format is given by the communication software used by the server to communicate with the client;

[0013] The instruction parameters in the received detection instruction or initialization instruction are intercepted based on the text interception rule.

[0014] Preferably, in step S3, before extracting the interface parameters of the simulation software by the second QTP software installed on the client, the method further includes: maximizing the interface of the simulation software.

[0015] Preferably, in step S4, if it is determined that the detection instruction currently sent to the server has been completed, the method further includes taking a screenshot and saving the simulation software corresponding to the criterion.

[0016] The second aspect of the present application provides a flap and slat automatic detection device based on QTP software, which mainly includes:

[0017] The command receiving module is installed on the server side and is used to monitor the detection command or initialization command sent by the client;

[0018] The first QTP software is installed on the server side and is used to perform text recognition on the received detection instructions or initialization instructions and extract instruction parameters therein;

[0019] An instruction execution module, used for controlling the movement of the control surface in the display and control software installed on the server according to the instruction parameters, wherein the display and control software and the simulation software installed on the client together constitute a simulation environment for simulating the flap and slat controller;

[0020] The second QTP software is installed on the server side and is used to extract the interface parameters of the simulation software, and determine whether the detection instruction currently sent to the server side is completed based on the extracted parameters. If completed, the next detection instruction is sent to the server side according to a preset automatic detection sequence. The automatic detection sequence specifies multiple consecutive detection instructions and the display results of the simulation software when the instructions corresponding to each detection instruction are completed.

[0021] Preferably, the second QTP software driver also includes a power supply control module, which is used to control the power supply software to power on the flap and slat controller. If it is determined that the detection instruction currently sent to the server has been completed, the power supply software is driven to power off the flap and slat controller.

[0022] Preferably, the first QTP software includes a parameter extraction unit, which is used to set text interception rules according to the context of the instruction parameters in the text format of the received detection instruction or initialization instruction, and the text format is given by the communication software used by the server to communicate with the client; the instruction parameters in the received detection instruction or initialization instruction are intercepted based on the text interception rules.

[0023] Preferably, the second QTP software includes an interface scaling unit for maximizing the interface of the simulation software before the interface parameters of the simulation software are extracted by the second QTP software installed on the client.

[0024] Preferably, the second QTP software includes a criterion storage unit for taking a screenshot and saving the simulation software corresponding to the criterion when it is determined that the detection instruction currently sent to the server has been completed.

[0025] The present application realizes the automation and intelligence of flap controller detection, freeing up operators and reducing labor costs; at the same time, the programmed test steps will reduce the human error rate; and the screenshot storage of the test results facilitates the tracing of subsequent problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a system architecture and data interaction diagram of an implementation method of applying for an automated detection method for flaps and slats based on QTP software.

[0027] Figure 2 It is a schematic diagram of the fly-by-wire cross-linking test item flow of one implementation of the flap and slat automated detection method of the present application based on QTP software. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the implementation of this application will be described in more detail in combination with the drawings in the implementation of this application. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described implementation is a part of the implementation of this application, not all of the implementations. The implementation described below with reference to the drawings is exemplary and is intended to be used to explain this application, and cannot be understood as a limitation on this application. Based on the implementation in this application, all other implementations obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The implementation of this application is described in detail below in combination with the drawings.

[0029] The first aspect of the present application provides a flap and slat automatic detection method based on QTP software, which mainly includes:

[0030] Step S1, the server cyclically monitors the detection instruction or initialization instruction sent by the client;

[0031] Step S2: Based on the first QTP software installed on the server, text recognition is performed on the received detection instruction or initialization instruction to extract instruction parameters therein;

[0032] Step S3, controlling the movement of the control surface in the display and control software installed on the server side according to the instruction parameters, wherein the display and control software and the simulation software installed on the client side together constitute a simulation environment for simulating the flap and slat controller;

[0033] Step S4, extracting the interface parameters of the simulation software through the second QTP software installed on the client, and determining whether the detection instruction currently sent to the server is completed based on the extracted parameters. If completed, the next detection instruction is sent to the server according to a preset automatic detection sequence. The automatic detection sequence specifies multiple consecutive detection instructions and the display results of the simulation software when the instruction corresponding to each detection instruction is completed.

[0034] This application has designed a set of methods based on QTP software, which can realize the automation of the detection process and reduce the time, labor and error costs. The method is based on QTP software and VBScript language. QTP, which stands for Quick Test Professional, is an automated testing tool developed by Mercury Company of the United States. It is one of the most excellent automated testing tools currently available. Its implementation principle is to objectify the components of the application program in advance and store them in the local object library of QTP. During the subsequent automatic testing, QTP searches for the components of the application program interface and determines whether they match the objects in the object library. If they match, they can be executed according to the operations specified in the script. VBScript is the abbreviation of Visual Basic Script, i.e., Visual Basic scripting language, sometimes abbreviated as VBS. It is a scripting language developed by Microsoft, which can call COM through the Windows script host, so the program library that can be used in the Windows operating system can be used. Since there are many devices and software for the detection process operation, the simple use of QTP cannot meet the requirements, so it is necessary to customize the corresponding functions with the programming of QTP software, and the programming language used is VBScript language.

[0035] refer to Figure 1 The flap and slat controller detection requires the control of three software on two PCs, namely the power supply software and simulation software installed on the client, and the display and control software installed on the server. The corresponding server software, namely the first QTP software, is developed in this application for controlling the display and control software. At the same time, the client software, namely the second QTP software, is developed on the client for controlling the power supply software and simulation software for the flap and slat controller test. Of course, the communication software is also designed. When working, the client software sends instructions to the server software through the communication software. After detecting the instructions, the server software will control the display and control software to retract and release the gears. At the same time, the client software will monitor the rudder surface status through the simulation software. When the next step conditions are met, new instructions will be sent through the communication software.

[0036] In step S1 of the present application, the server cyclically monitors the detection instruction or initialization instruction sent by the client, where the initialization instruction is parsed as follows:

[0037] Observe whether the initial conditions of the test are met. Before the test, check whether the initial conditions of the test items are met through the avionics data, such as the gear position, etc. If not, send instructions to the server software through the communication software to control the control surface to reach the initial conditions.

[0038] It should also be noted that in steps S1 to S3, the first QTP software in the server segment is in a loop detection state after running. The program uses switch syntax, and each case is a corresponding detection instruction, such as "put in gear 1", "move flaps", "move slats", etc. When an instruction is detected, it will enter the corresponding function to perform different operations.

[0039] In step S4, taking the telex cross-linking test as an example, Figure 2 As shown in the figure, the communication software sends the "telelink" command to the server software. After the sending is completed, the client software will monitor the end condition of this test. When the end condition is reached, a new command will be sent. The server will detect the information sent by the communication software, parse out the instructions we need, and then enter the corresponding case function according to the instructions to control the movement of the rudder. After completion, the information sent by the communication software will be cleared to prevent this information from affecting the next parsing information.

[0040] In some optional embodiments, before step S1, it further includes the second QTP software installed on the client driving the power supply software installed on the client to power on the flap controller. In step S4, if it is determined that the detection instruction currently sent to the server has been completed, the power supply software is driven to power off the flap controller.

[0041] The simulation system needs to be powered on before testing. Since there are many detection items, the flap controller needs to be powered on and off at the beginning and end of each detection item. Therefore, this application encapsulates the power-on and power-off operations into fixed functions and directly calls them in subsequent use.

[0042] In some optional implementations, in step S2, extracting instruction parameters includes:

[0043] Setting text interception rules according to the context of the instruction parameters in the text format of the received detection instruction or initialization instruction, wherein the text format is given by the communication software used by the server to communicate with the client;

[0044] The instruction parameters in the received detection instruction or initialization instruction are intercepted based on the text interception rule.

[0045] In this embodiment, the communication software of the present application adopts ordinary TCP communication, and the text format received by the server is usually: receiving information of connection ID: 1, content: moving flaps, length: 9.

[0046] Therefore, when extracting instruction parameters, first find the character "Content:" position x1, then find the character ", length" position x2, and finally intercept the text between x2-x1. This text is the instruction sent. After the parsing is completed, the interface needs to be cleared to prevent affecting the next instruction received.

[0047] In some optional implementations, in step S3, before extracting the interface parameters of the simulation software through the second QTP software installed on the client, the method further includes: maximizing the interface of the simulation software.

[0048] In this embodiment, when the QTP software identifies the position of the control, if the size and position of the identified software changes, the identified control will also change. For example, (100,100) is the position of the "Master Channel Failure" button, but if the simulation software position is moved, this coordinate position will become the position of other buttons, eventually leading to an error. To address this problem, a function is created to achieve window scaling, and its interface is maximized when operating the simulation software, so that the control coordinates are fixed, and the window can be restored when not needed.

[0049] In some optional implementations, in step S4, if it is determined that the detection instruction currently sent to the server has been completed, it further includes taking a screenshot and saving the simulation software corresponding to the criterion.

[0050] In this embodiment, when judging whether the test item has passed, the application will take a screenshot of the simulation software corresponding to the criterion and save it in a specific folder, and the subsequent operator can judge whether the test has passed according to the screenshot. At the same time, these screenshots can also be used for tracing back later.

[0051] In the above way, complete the tests such as "flap asymmetry", "slat asymmetry", "rudder retraction and extension function" in sequence according to the test process card. When integrating the test items together, pay attention to the connection relationship between the test items. Because the rudder and gear position do not meet the initial conditions of the next test item after some test items are completed, send a command to set the rudder and gear position after completing a test item so that it meets the initial conditions of the next test item.

[0052] The second aspect of the present application provides a flap and slat automatic detection device based on QTP software, which mainly includes:

[0053] The command receiving module is installed on the server side and is used to monitor the detection command or initialization command sent by the client;

[0054] The first QTP software is installed on the server side and is used to perform text recognition on the received detection instructions or initialization instructions and extract instruction parameters therein;

[0055] An instruction execution module, used for controlling the movement of the control surface in the display and control software installed on the server according to the instruction parameters, wherein the display and control software and the simulation software installed on the client together constitute a simulation environment for simulating the flap and slat controller;

[0056] The second QTP software is installed on the server side and is used to extract the interface parameters of the simulation software, and determine whether the detection instruction currently sent to the server side is completed based on the extracted parameters. If completed, the next detection instruction is sent to the server side according to a preset automatic detection sequence. The automatic detection sequence specifies multiple consecutive detection instructions and the display results of the simulation software when the instructions corresponding to each detection instruction are completed.

[0057] Preferably, the second QTP software driver also includes a power supply control module, which is used to control the power supply software to power on the flap and slat controller. If it is determined that the detection instruction currently sent to the server has been completed, the power supply software is driven to power off the flap and slat controller.

[0058] Preferably, the first QTP software includes a parameter extraction unit, which is used to set text interception rules according to the context of the instruction parameters in the text format of the received detection instruction or initialization instruction, and the text format is given by the communication software used by the server to communicate with the client; the instruction parameters in the received detection instruction or initialization instruction are intercepted based on the text interception rules.

[0059] Preferably, the second QTP software includes an interface scaling unit for maximizing the interface of the simulation software before the interface parameters of the simulation software are extracted by the second QTP software installed on the client.

[0060] Preferably, the second QTP software includes a criterion storage unit for taking a screenshot and saving the simulation software corresponding to the criterion when it is determined that the detection instruction currently sent to the server has been completed.

[0061] The present application realizes the automation and intelligence of flap controller detection, freeing up operators and reducing labor costs; at the same time, the programmed test steps will reduce the human error rate; and the screenshot storage of the test results facilitates the tracing of subsequent problems.

[0062] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A flap and slat automatic detection method based on QTP software, characterized in that: include: Step S1, the server cyclically monitors the detection instruction or initialization instruction sent by the client; Step S2: Based on the first QTP software installed on the server, text recognition is performed on the received detection instruction or initialization instruction to extract instruction parameters therein; Step S3, controlling the movement of the control surface in the display and control software installed on the server side according to the instruction parameters, wherein the display and control software and the simulation software installed on the client side together constitute a simulation environment for simulating the flap and slat controller; Step S4, extracting the interface parameters of the simulation software through the second QTP software installed on the client, and determining whether the detection instruction currently sent to the server is completed according to the extracted parameters. If completed, sending the next detection instruction to the server according to a preset automatic detection sequence, wherein the automatic detection sequence specifies a plurality of consecutive detection instructions and the display result of the simulation software when the instruction corresponding to each detection instruction is completed; Wherein, in step S2, extracting instruction parameters includes: Setting text interception rules according to the context of the instruction parameters in the text format of the received detection instruction or initialization instruction, wherein the text format is given by the communication software used by the server to communicate with the client; intercepting instruction parameters in the received detection instruction or initialization instruction based on the text interception rule; In step S4, before extracting the interface parameters of the simulation software by the second QTP software installed on the client, the method further includes: The interface of the simulation software is maximized.

2. The automatic detection method for flaps and slats based on QTP software according to claim 1, characterized in that: Before step S1, it further includes that the second QTP software installed on the client drives the power supply software installed on the client to power on the flap and slat controller. In step S4, if it is determined that the detection instruction currently sent to the server has been completed, the power supply software is driven to power off the flap and slat controller.

3. The automatic detection method for flaps and slats based on QTP software according to claim 1, characterized in that: In step S4, if it is determined that the detection instruction currently sent to the server has been completed, it further includes taking a screenshot and saving the simulation software corresponding to the criterion.

4. A flap and slat automatic detection device based on QTP software, characterized in that: include: The command receiving module is installed on the server side and is used to cyclically monitor the detection command or initialization command sent by the client; The first QTP software is installed on the server side and is used to perform text recognition on the received detection instructions or initialization instructions and extract instruction parameters therein; An instruction execution module, used for controlling the movement of the control surface in the display and control software installed on the server according to the instruction parameters, wherein the display and control software and the simulation software installed on the client together constitute a simulation environment for simulating the flap and slat controller; The second QTP software is installed on the client and is used to extract the interface parameters of the simulation software, determine whether the detection instruction currently sent to the server is completed according to the extracted parameters, and if completed, send the next detection instruction to the server according to a preset automatic detection sequence, wherein the automatic detection sequence specifies a plurality of consecutive detection instructions and the display result of the simulation software when the instruction corresponding to each detection instruction is completed; The first QTP software includes a parameter extraction unit, which is used to set a text interception rule according to the context of the instruction parameter in the text format of the received detection instruction or initialization instruction, wherein the text format is given by the communication software for the server to communicate with the client; and intercept the instruction parameter in the received detection instruction or initialization instruction based on the text interception rule; The second QTP software includes an interface scaling unit for maximizing the interface of the simulation software before the interface parameters of the simulation software are extracted by the second QTP software installed on the client.

5. The automatic detection device for flaps and slats based on QTP software according to claim 4, characterized in that: The second QTP software driver also includes a power supply control module, which is used to control the power supply software to power on the flap and slat controller. If it is determined that the detection instruction currently sent to the server has been completed, the power supply software is driven to power off the flap and slat controller.

6. The automatic flap and slat detection device based on QTP software according to claim 4, characterized in that: The second QTP software includes a criterion storage unit, which is used to take a screenshot of the simulation software corresponding to the criterion and save it after determining that the detection instruction currently sent to the server has been completed.

Citation Information

Patent Citations

  • Method for detecting non-instruction motion protection function of flap and slat controller based on simulation

    CN111026088A

  • Automated testing of an application system

    US20150339213A1