Ground station automatic excitation test method and device based on data distribution service

Through the ground station automated incentive testing method based on data distribution services, test cases are automatically generated and sent, and response results are obtained and analyzed, and the problems of manual editing of test cases in the prior art are solved, and the testing efficiency is improved.

CN119557232APending Publication Date: 2025-03-04CHENGDU LINTONG TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510093251.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

When testing ground station systems, manual editing of test cases takes a long time, a large amount of work, and manual verification errors often lead to repeated tests and low efficiency.

Method used

The ground station automation incentive testing method is adopted based on data distribution services. Test scenarios and test cases are generated through the server, stored as data packets, automatically sent to the ground station, and screenshots of response results are obtained, and automatic analysis is performed to generate test result reports.

Benefits of technology

It improves the efficiency of testing ground station testing software, reduces manual intervention, and reduces the time and workload of test case editing and verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557232A_ABST
    Figure CN119557232A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software testing, and provides a ground station automatic excitation test method and device based on data distribution service, and the method comprises the steps: a server generates a plurality of test scenes according to an agreed protocol file, and obtains a test scene set, the server generates corresponding test cases according to the test scenes in the test scene set to obtain a test case set, the server stores the test cases in the test case set into corresponding data packets to obtain a data packet set, the server sends the data packets in the data packet set to the ground station, and the ground station sends the data packets to the ground station. And acquiring a screenshot corresponding to a response result after the ground station receives the data packet to obtain a response effect screenshot, and analyzing the response effect screenshot by the server to obtain a test result report, thereby improving the efficiency of testing the test software of the ground station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software testing technology, and in particular to a method and device for automated stimulus testing of a ground station based on data distribution services. Background Art

[0002] The current method of testing the ground station system through test software includes manually editing the test case and transmitting it to the ground station system through a specific communication protocol. After the ground station system responds, the response result is transmitted back to the test software, and then the response result is manually analyzed to determine whether the ground station system functions normally. However, due to the huge amount of data in the ground station system, non-unique data types, and diversified communication protocols, manual editing of test cases is labor-intensive and time-consuming. During the test process, the test work is often repeated due to manual verification errors, resulting in low efficiency when testing the ground station test software. Summary of the invention

[0003] The embodiments of the present application provide a method and device for automated stimulus testing of a ground station based on a data distribution service, which can improve the efficiency when testing the test software of the ground station.

[0004] A first aspect of an embodiment of the present application provides a ground station automated stimulus testing method based on a data distribution service, the method comprising: The server generates multiple test scenarios according to the agreed protocol file to obtain a test scenario set; The server generates corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set; The server stores the test cases in the test case set into corresponding data packets respectively to obtain a data packet set; The server sends the data packets in the data packet set to the ground station, and obtains a screenshot corresponding to the response result of the ground station after receiving the data packet, thereby obtaining a screenshot of the response effect; The server analyzes the response effect screenshot to obtain a test result report.

[0005] In this example, the server generates multiple test scenarios according to the agreed protocol file to obtain a test scenario set. The server generates corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set. The server stores the test cases in the test case set into corresponding data packets to obtain a data packet set. The server sends the data packets in the data packet set to the ground station, and obtains a screenshot corresponding to the response result of the ground station after receiving the data packet to obtain a response effect screenshot. Finally, the server analyzes the response effect screenshot to obtain a test result report, thereby improving the efficiency of testing the test software of the ground station.

[0006] In a possible implementation, the server stores the test cases in the test case set into corresponding data packets respectively to obtain a data packet set, including: The server obtains the first version information corresponding to each test case in the test case set to obtain a first version information set; The server stores the test cases in the test case set into corresponding data packets according to the first version information set to obtain a data packet set, wherein the first version information corresponding to the test cases stored in the data packets in the data packet set is the same, and the data packets are stored in a preset database, which is used to store the test cases in the test case set in the form of data packets, and the database supports the background addition, modification and deletion of test cases.

[0007] In a possible implementation, before the server stores the test cases in the test case set into corresponding data packets respectively to obtain the data packet set, the method further includes: The server initializes the configuration of the data transmission port and obtains the initialization port configuration information; The server organizes the initialization port configuration information into an Excel file to obtain a configuration file.

[0008] In a possible implementation, the server sends a data packet in a data packet set to a ground station, and obtains a screenshot corresponding to a response result of the ground station after receiving the data packet, to obtain a response effect screenshot, including: The server determines a point on the screen of the ground station according to the configuration file to obtain a reference point; The server controls the ground station to perform a simulated click operation at the position corresponding to the reference point according to the data packet, and obtains a response result; The server controls the ground station to take a screenshot of the response result to obtain a screenshot of the response effect.

[0009] In a possible implementation, the server analyzes the response effect screenshot to obtain a test result report, including: The server automatically performs image recognition and text recognition extraction on the response effect screenshot to obtain response result information; The server obtains the expected value corresponding to the response result information and obtains the reference response result information; The server compares the reference response result information with the response result information for similarity to obtain the test result information, wherein the test result information includes the test time, the total number of test data, the test data accuracy, the test data error rate and the number of unrecognized test data; The test result information is stored in a preset test report template to obtain a test result report.

[0010] In a possible real-time manner, before the server performs automatic image recognition and text recognition extraction on the response effect screenshot to obtain response result information, the method further includes: The server obtains the version information of the ground station and obtains the second version information; The server obtains its own version information and obtains the third version information; The server determines whether the second version information and the third version information are consistent. If not, the server provides a download address for the ground station, and the ground station updates the second version information to the third version information according to the download address. If they are consistent, the response effect screenshot is automatically recognized and text is recognized and extracted to obtain the response result information.

[0011] A second aspect of an embodiment of the present application provides a ground station automated stimulus test device based on a data distribution service, the device comprising: The first generating unit is used for the server to generate multiple test scenarios according to the agreed protocol file to obtain a test scenario set; A second generating unit is used for the server to generate corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set; A storage unit, used for the server to store the test cases in the test case set into corresponding data packets respectively, to obtain a data packet set; The sending unit is used for the server to send the data packets in the data packet set to the ground station, and obtain the screenshot corresponding to the response result of the ground station after receiving the data packet, so as to obtain the response effect screenshot; The analysis unit is used for the server to analyze the response effect screenshot to obtain a test result report.

[0012] In a possible implementation, the storage unit is specifically used for: The server obtains the first version information corresponding to each test case in the test case set to obtain a first version information set; The server stores the test cases in the test case set into corresponding data packets according to the first version information set to obtain a data packet set, wherein the first version information corresponding to the test cases stored in the data packets in the data packet set is the same, and the data packets are stored in a preset database, which is used to store the test cases in the test case set in the form of data packets, and the database supports the background addition, modification and deletion of test cases.

[0013] A third aspect of an embodiment of the present application provides a terminal, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.

[0014] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.

[0015] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flow chart of a ground station automated stimulus testing method based on data distribution service is provided for an embodiment of the present application; Figure 2 A schematic diagram of the structure of a terminal provided in an embodiment of the present application; Figure 3 A structural schematic diagram of a ground station automated excitation test device based on data distribution services is provided for an embodiment of the present application. DETAILED DESCRIPTION

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

[0019] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0020] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0021] In order to better understand the ground station automatic excitation test method based on data distribution service provided by the embodiment of the present application, the test method of the ground station in the existing scheme is briefly introduced below. In the existing scheme, the current method of testing the ground station system through the test software includes manually editing the test case and transmitting it to the ground station system through a specific communication protocol. After the ground station system responds, the response result is transmitted back to the test software, and then the response result is manually analyzed to determine whether the ground station system function is normal. However, due to the huge amount of data in the ground station system, the non-unique data type, and the diversified communication protocols, the manual editing of the test case is labor-intensive and time-consuming. During the test process, the test work is often repeated due to manual verification errors, which makes the efficiency of testing the test software of the ground station low.

[0022] In order to solve the above-mentioned technical problems, an embodiment of the present application provides an automated stimulus testing method for ground stations based on data distribution services. Multiple test cases can be automatically generated according to an agreed protocol file, and the generated test cases are used to test the ground station to obtain a response effect screenshot, and then the response effect screenshot is analyzed to obtain a test result report, thereby improving the efficiency of testing the ground station.

[0023] See also Figure 1 , Figure 1 The present invention provides a flow chart of a method for ground station automatic excitation testing based on data distribution service. Figure 1 As shown, the method includes: 101. The server generates multiple test scenarios according to the agreed protocol file to obtain a test scenario set.

[0024] The server may automatically generate multiple test scenarios that conform to the agreed protocol file to obtain a test scenario set. Specifically, a general test scenario generation method may be used to generate multiple test scenarios that conform to the agreed protocol file to obtain a test scenario set.

[0025] 102. The server generates corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set.

[0026] The server may generate multiple test cases that match each test scenario in the test scenario set according to the test scenario set, thereby obtaining the test case set. Specifically, a general test case generation method may be used to generate multiple test cases that match each test scenario in the test scenario set according to the test scenario set, thereby obtaining the test case set.

[0027] 103. The server stores the test cases in the test case set into corresponding data packets respectively to obtain a data packet set.

[0028] Among them, the test cases in the test case set can be stored in the database through the network transmission service port by the server, and then the test cases in the test case set are stored in corresponding data packets respectively through the first version information corresponding to the test cases in the test case set to obtain a data packet set.

[0029] 104. The server sends the data packets in the data packet set to the ground station, and obtains a screenshot corresponding to the response result of the ground station after receiving the data packet, thereby obtaining a screenshot of the response effect.

[0030] Among them, the timing trigger carried by the server can be used to send the data packets in the data packet set to the ground station at fixed time intervals, thereby realizing the automated stimulus test of the ground station, and then taking a screenshot of the response result interface after the ground station receives the data packet, thereby obtaining a screenshot of the response effect.

[0031] 105. The server analyzes the response effect screenshot to obtain a test result report.

[0032] Among them, the response effect screenshot can be subjected to image recognition through general text extraction technology and automatic image recognition technology to obtain response result information, and the test result information can be obtained by comparing the response result information with reference response result information. The test result information is then stored in a preset test report template to obtain a test result report.

[0033] In this example, the server generates multiple test scenarios according to the agreed protocol file to obtain a test scenario set. The server generates corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set. The server stores the test cases in the test case set into corresponding data packets to obtain a data packet set. The server sends the data packets in the data packet set to the ground station, and obtains a screenshot corresponding to the response result of the ground station after receiving the data packet to obtain a response effect screenshot. Finally, the server analyzes the response effect screenshot to obtain a test result report, thereby improving the efficiency of testing the test software of the ground station.

[0034] In a possible implementation, the server stores the test cases in the test case set into corresponding data packets respectively to obtain a data packet set, including: A1. The server obtains the first version information corresponding to each test case in the test case set to obtain a first version information set; A2. The server stores the test cases in the test case set into corresponding data packets according to the first version information set to obtain a data packet set, wherein the first version information corresponding to the test cases stored in the data packets in the data packet set is the same, and the data packets are stored in a preset database, which is used to store the test cases in the test case set in the form of data packets, and the database supports adding, modifying and deleting test cases in the background.

[0035] The first version information set may be obtained by acquiring version information corresponding to the test software of the ground station included in the test scenario corresponding to each test case in the test case set.

[0036] After obtaining the first version information set, the test cases in the test case set are classified according to their corresponding first version information, and the test cases with the same first version information are stored in the same data packet to obtain a data packet set, and the data packets in the data packet set are stored in the database according to a preset storage format. The preset storage format may be an xlsx (Office Open XML SpreadsheetML, electronic spreadsheet file) format, and each xlsx file contains several sheets, and each sheet represents a data packet.

[0037] In this example, by obtaining the first version information corresponding to each test case in the test case set, and then storing the test cases in the test case set in multiple data packets according to the first version information corresponding to each test case, a data packet set is obtained. By using the data packets in the data packet set, different versions of ground stations can be tested, thereby improving the accuracy of testing the test software of the ground station.

[0038] In a possible implementation, before the server stores the test cases in the test case set into corresponding data packets respectively to obtain the data packet set, the method further includes: B1. The server initializes the data transmission port and obtains the initialization port configuration information; B2. The server organizes the initialization port configuration information into an Excel file to obtain a configuration file.

[0039] Among them, the initialization port configuration information can be obtained by unifying the configuration of the listening port, multicast port and sending port of the server with the configuration of the listening port, multicast port and sending port of the ground station, and then initializing the local address, multicast address and message header of the server and the ground station respectively.

[0040] After obtaining the initialization port configuration information, it is also necessary to organize the initialization port configuration information into a configuration file in an Excel format.

[0041] In this example, the data transmission port of the server is initialized to obtain the initialization port configuration information, and then a configuration file is generated based on the initialization port configuration information. This allows the server to read and parse the configuration file each time it is started, thereby completing rapid configuration and improving the efficiency of testing the test software of the ground station.

[0042] In a possible implementation, the method in which the server sends a data packet in a data packet set to a ground station to obtain a response effect screenshot includes: C1. The server determines a point on the screen of the ground station according to the configuration file to obtain a reference point; C2. The server controls the ground station to perform a simulated click operation at the position corresponding to the reference point according to the data packet to obtain a response result; C3. The server controls the ground station to take a screenshot of the response result to obtain a screenshot of the response effect.

[0043] The point (x, y) may be determined as a reference point by obtaining a point (x, y) in a configuration file.

[0044] After obtaining the reference point, the server sends the reference point and data packet to the ground station through the data transmission port using the DDS / UDP / 1394 board. The ground station performs simulation operations at the position corresponding to the reference point according to the test case in the data packet to obtain the response effect.

[0045] After obtaining the response effect, the server controls the ground station to take a screenshot of the software interface, and then transmits it back to the server through the data transmission port to obtain a screenshot of the response effect.

[0046] In this example, by determining the reference point according to the configuration file, the server controls the ground station to perform simulated operations at the position corresponding to the reference point according to the test case in the data packet, obtains the response effect, and takes a screenshot of the response effect to obtain a response effect screenshot, thereby improving the efficiency of testing the ground station's test software.

[0047] In a possible implementation, the method in which the server analyzes the response effect screenshot to obtain a test result report includes: D1. The server automatically performs image recognition and text recognition extraction on the response effect screenshot to obtain response result information; D2. The server obtains the expected value corresponding to the response result information and obtains the reference response result information; D3. The server compares the reference response result information with the response result information for similarity to obtain test result information, wherein the test result information includes test time, total number of test data, test data accuracy, test data error rate, and number of unrecognized test data; D4. Storing the test result information in a preset test report template to obtain a test result report.

[0048] Among them, the response result information can be obtained by automatically recognizing the image and extracting the text on the response effect screenshot using the general automatic image recognition technology and the general text recognition and extraction technology.

[0049] After obtaining the response result information, the server also needs to obtain the expected value corresponding to the response result information to obtain the reference response result information. The reference response result information can be understood as the response result information obtained by responding to the test case in the data packet when there is no abnormality in the ground station.

[0050] After obtaining the reference response result information, the server compares the reference response result information and the response result information by adopting a general comparison method to obtain the test result information, wherein the test result information includes the test time, the total number of test data, the test data accuracy, the test data error rate and the number of unrecognized test data.

[0051] After obtaining the test result information, the server stores the test result information in a preset test report template to obtain a test result report.

[0052] In this example, the response result information is obtained by automatically performing image recognition and text recognition extraction on the response effect screenshot, and then the reference response result information and the response result information are compared to obtain the test result information. The test result information is stored in a preset test report template to obtain a test result report. This enables the server to automatically analyze the response effect screenshot, thereby improving the efficiency of testing the ground station's test software.

[0053] In a possible implementation, before the server performs automatic image recognition and text recognition extraction on the response effect screenshot to obtain response result information, the method further includes: E1. The server obtains the version information of the ground station and obtains the second version information; E2. The server obtains its own version information and obtains the third version information; E3. The server determines whether the second version information and the third version information are consistent. If not, the server provides a download address to the ground station, and the ground station updates the second version information to the third version information according to the download address. If they are consistent, the response effect screenshot is automatically recognized and text is recognized and extracted to obtain the response result information.

[0054] The second version information may be obtained by acquiring version information corresponding to the ground station, and the third version information may be obtained by acquiring version information corresponding to the software on the server.

[0055] After obtaining the second version information and the third version information, the server determines whether the second version information and the third version information are consistent. If they are inconsistent, the server provides a download address to the ground station, and the ground station updates the second version information to the third version information according to the download address. If they are consistent, the response effect screenshot is automatically recognized and text is recognized and extracted to obtain the response result information. The download address can be transmitted from the server to the ground station via FTP (File Transfer Protocol).

[0056] In this example, it is determined whether the version numbers corresponding to the software of the server and the ground station are consistent. If they are inconsistent, the server provides a download address for the ground station, thereby keeping the version numbers corresponding to the software of the server and the ground station consistent, thereby improving the accuracy of testing the test software of the ground station.

[0057] In a specific implementation, the embodiment of the present application also provides another ground station automated stimulus testing method based on data distribution service, specifically: Automatic stimulus test function, the specific test steps are as follows: T101: Generate test scenarios and use case script files according to the agreed protocol files, and support visual editing of test scenarios and use case scripts; T102: The software interface enables visual editing of test scenarios and selection of data transmission methods, supporting the selection of test case data transmission methods: UDP, DDS, and 1394; T103: Select the version type of the ground station to be tested through the software interface; T104: Select the message number to be automatically tested through the software interface; T105: The software interface allows free editing of test case scripts and selection of test case types, including normal values, abnormal values, boundary values, second largest values, second smallest values, default values, random values, and all values. Single or multiple selections are possible.

[0058] T106: Trigger the periodic sending of automated test cases through a timer to achieve automated stimulus testing of test case data between the server software and the ground station system under test.

[0059] According to the T102 step description of the above automated test function description, the specific test steps for its network transmission service function are as follows: T201: Listening port configuration - the communication port setting for the server to receive commands must be consistent with the client configuration; T202: Multicast port configuration - the server and client multicast ports must be configured the same; T203: Sending port configuration - the communication port setting for the server to send commands must be consistent with the client configuration; T204: Local address configuration - local addresses need to be configured on the server and client; T205: Multicast address configuration - multicast address needs to be configured on the server and client; T206: Message header configuration function: configure the sending ID, receiving ID, aircraft number and other information.

[0060] T207: The contents described in steps T201 to T206, i.e., the communication port configuration information, are organized into an Excel configuration file, and the server software automatically reads and parses the configuration file.

[0061] T208: After the server software is started, a configuration interface is provided to configure the communication port; the configuration information is written into a file, which can be read from the file at the next startup.

[0062] T209: Data transmission: After the data packet is framed, it is sent to the corresponding port and address through the DDS / UDP / 1394 board; T210: Data reception: The background monitors the received data, filters the designated communication port or topic data, and performs analysis and processing.

[0063] According to the T105 step description of the above automated test function description, the description of its test cases requires the database to store the test cases and implement the automatic generation of test cases according to the agreed protocol. The specific implementation steps are as follows: T301: Define the protocol storage database according to the agreed protocol, which contains different test cases required by different versions of ground stations; T302: The storage database can add new test cases (normal value, abnormal value, boundary value, second largest value, second smallest value, default value, random value, all values, etc.) required by different versions of ground stations through the server software interface; T303: The storage database supports adding, modifying, and deleting test cases locally in the background; T304: The test cases transmitted back by the ground station system through the network transmission service function described above can be directly stored in the storage database of the corresponding version; T305: When the server software is running, it queries the storage database of the corresponding version according to the ground station version selected in the software interface, parses the database content and displays it on the server software interface according to the agreed protocol. The database storage format is xlsx, and each xlsx file contains several sheets, each sheet is a data package.

[0064] Test result analysis function, the specific test steps are as follows: T401: The ground station test case response result is captured by the client running software and then transferred to the server test software using the FTP protocol; T402: The server-side test software automatically recognizes and extracts text from the pictures sent back by the client; T403: The server-side test software compares the signal expectation value with the recognition result to determine whether the operation results of the ground station system in this automated excitation test meet the requirements, and generates an automated excitation test result report.

[0065] The client function test steps are as follows: T501: Install the client software corresponding to the current ground station version on the computer where the ground station system is running; T502: The client software provides a log function to save the mouse automatic click operation record, saving the following information: click time (accurate to milliseconds); click position; click type (left click / right click); T503: The client software implements the function of sending the screenshot of the interface back to the server software.

[0066] According to the T501 step description of the above client test function description, the specific steps are as follows: T601: The server sends test settings - after the server test software is started, obtain the local ground station version and other information; T602: Client response test settings - the client software monitors the transmission information port information, and responds to the information described in step T601 if any information is sent.

[0067] If the client does not have the corresponding ground station version locally, it will inform the server.

[0068] T603: The server provides a download list - since the client does not have the software and needs to download it, the server sends the names of the various files contained in the locally stored ground station software to the client.

[0069] T604: Client downloads software - downloads software from FTP. After the download is complete, inform the server and you can test it.

[0070] According to the T503 step description of the above client test function description, the specific steps are as follows: T701: Client screenshot - simulate a mouse click at a given point (x, y) on the screen. The point (x, y) is obtained from the configuration file; take a screenshot and name the image mytest_* (* represents a number); T702: Client screenshot upload - Send the screenshot to the server via FTP protocol.

[0071] For the above embodiments, please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, such as Figure 2 As shown, it includes a processor, an input device, an output device and a memory, which are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps; The server generates multiple test scenarios according to the agreed protocol file to obtain a test scenario set; The server generates corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set; The server stores the test cases in the test case set into corresponding data packets respectively to obtain a data packet set; The server sends the data packets in the data packet set to the ground station and obtains a screenshot of the response effect; The server analyzes the response effect screenshot to obtain a test result report.

[0072] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0073] The embodiment of the present application can divide the terminal into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0074] In line with the above, see Figure 3 , Figure 3 The present invention provides a schematic diagram of a ground station automatic excitation test device based on data distribution service. Figure 3 As shown, the device comprises: The first generating unit 301 is used for the server to generate multiple test scenarios according to the agreed protocol file to obtain a test scenario set; The second generating unit 302 is used for the server to generate corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set; The storage unit 303 is used for the server to store the test cases in the test case set into corresponding data packets respectively to obtain a data packet set; The sending unit 304 is used for the server to send the data packets in the data packet set to the ground station, and obtain a screenshot corresponding to the response result of the ground station after receiving the data packet, so as to obtain a screenshot of the response effect; The analysis unit 305 is used for the server to analyze the response effect screenshot to obtain a test result report.

[0075] In a possible implementation, the storage unit 303 is specifically used for: The server obtains the first version information corresponding to each test case in the test case set to obtain a first version information set; The server stores the test cases in the test case set into corresponding data packets according to the first version information set to obtain a data packet set, wherein the first version information corresponding to the test cases stored in the data packets in the data packet set is the same, and the data packets are stored in a preset database, which is used to store the test cases in the test case set in the form of data packets, and the database supports the background addition, modification and deletion of test cases.

[0076] In a possible implementation, before the server stores the test cases in the test case set into corresponding data packets respectively to obtain the data packet set, the storage unit 303 is specifically used to: The server initializes the configuration of the data transmission port and obtains the initialization port configuration information; The server organizes the initialization port configuration information into an Excel file to obtain a configuration file.

[0077] In a possible implementation, the sending unit 304 is specifically configured to: The server determines a point on the screen of the ground station according to the configuration file to obtain a reference point; The server controls the ground station to perform a simulated click operation at the position corresponding to the reference point according to the data packet, and obtains a response result; The server controls the ground station to take a screenshot of the response result to obtain a screenshot of the response effect.

[0078] In a possible implementation, the analysis unit 305 is specifically configured to: The server automatically performs image recognition and text recognition extraction on the response effect screenshot to obtain response result information; The server obtains the expected value corresponding to the response result information and obtains the reference response result information; The server compares the reference response result information with the response result information for similarity to obtain the test result information, wherein the test result information includes the test time, the total number of test data, the test data accuracy, the test data error rate and the number of unrecognized test data; The test result information is stored in a preset test report template to obtain a test result report.

[0079] In a possible implementation, before the server performs automatic image recognition and text recognition extraction on the response effect screenshot to obtain the response result information, the analysis unit 305 is specifically used to: The server obtains the version information of the ground station and obtains the second version information; The server obtains its own version information and obtains the third version information; The server determines whether the second version information and the third version information are consistent. If not, the server provides a download address for the ground station, and the ground station updates the second version information to the third version information according to the download address. If they are consistent, the response effect screenshot is automatically recognized and text is recognized and extracted to obtain the response result information.

[0080] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the ground station automated excitation testing methods based on data distribution services recorded in the above method embodiments.

[0081] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any one of the ground station automated excitation testing methods based on data distribution services recorded in the above method embodiments.

[0082] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0083] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0084] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0086] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0087] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., and other media that can store program codes.

[0088] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0089] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A ground station automated stimulus testing method based on data distribution service, characterized in that: The method comprises: The server generates multiple test scenarios according to the agreed protocol file to obtain a test scenario set; The server generates corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set; The server stores the test cases in the test case set into corresponding data packets respectively to obtain a data packet set; The server sends the data packets in the data packet set to the ground station, and obtains a screenshot corresponding to the response result of the ground station after receiving the data packet, thereby obtaining a screenshot of the response effect; The server analyzes the response effect screenshot to obtain a test result report.

2. The ground station automated stimulus testing method based on data distribution service according to claim 1, characterized in that: The server stores the test cases in the test case set into corresponding data packets respectively, and obtains a data packet set, including: The server obtains the first version information corresponding to each test case in the test case set to obtain a first version information set; The server stores the test cases in the test case set into corresponding data packets according to the first version information set to obtain a data packet set, wherein the first version information corresponding to the test cases stored in the data packets in the data packet set is the same, and the data packets are stored in a preset database, which is used to store the test cases in the test case set in the form of data packets, and the database supports the background addition, modification and deletion of test cases.

3. The ground station automated stimulus testing method based on data distribution service according to claim 2, characterized in that: Before the server stores the test cases in the test case set into corresponding data packets respectively to obtain the data packet set, the method further includes: The server initializes the configuration of the data transmission port and obtains the initialization port configuration information; The server organizes the initialization port configuration information into an Excel file to obtain a configuration file.

4. The ground station automated stimulus testing method based on data distribution service according to claim 3, characterized in that: The server sends a data packet in the data packet set to the ground station, and obtains a screenshot corresponding to a response result of the ground station after receiving the data packet, to obtain a screenshot of the response effect, including: The server determines a point on the screen of the ground station according to the configuration file to obtain a reference point; The server controls the ground station to perform a simulated click operation at the position corresponding to the reference point according to the data packet, and obtains a response result; The server controls the ground station to take a screenshot of the response result to obtain a screenshot of the response effect.

5. The ground station automated stimulus testing method based on data distribution service according to claim 4, characterized in that: The server analyzes the response effect screenshot to obtain a test result report, including: The server automatically performs image recognition and text recognition extraction on the response effect screenshot to obtain response result information; The server obtains the expected value corresponding to the response result information and obtains the reference response result information; The server compares the reference response result information with the response result information for similarity to obtain the test result information, wherein the test result information includes the test time, the total number of test data, the test data accuracy, the test data error rate and the number of unrecognized test data; The test result information is stored in a preset test report template to obtain a test result report.

6. The ground station automated stimulus testing method based on data distribution service according to claim 5, characterized in that: Before the server performs automatic image recognition and text recognition extraction on the response effect screenshot to obtain response result information, the method further includes: The server obtains the version information of the ground station and obtains the second version information; The server obtains its own version information and obtains the third version information; The server determines whether the second version information and the third version information are consistent. If not, the server provides a download address for the ground station, and the ground station updates the second version information to the third version information according to the download address. If they are consistent, the response effect screenshot is automatically recognized and text is recognized and extracted to obtain the response result information.

7. A ground station automated stimulus test device based on data distribution service, characterized in that: The device comprises: The first generating unit is used for the server to generate multiple test scenarios according to the agreed protocol file to obtain a test scenario set; A second generating unit is used for the server to generate corresponding test cases according to the test scenarios in the test scenario set to obtain a test case set; A storage unit, used for the server to store the test cases in the test case set into corresponding data packets respectively, to obtain a data packet set; The sending unit is used for the server to send the data packets in the data packet set to the ground station, and obtain the screenshot corresponding to the response result of the ground station after receiving the data packet, so as to obtain the response effect screenshot; The analysis unit is used for the server to analyze the response effect screenshot to obtain a test result report.

8. The ground station automatic excitation test device based on data distribution service according to claim 7, characterized in that: The storage unit is specifically used for: The server obtains the first version information corresponding to each test case in the test case set to obtain a first version information set; The server stores the test cases in the test case set into corresponding data packets according to the first version information set to obtain a data packet set, wherein the first version information corresponding to the test cases stored in the data packets in the data packet set is the same, and the data packets are stored in a preset database, which is used to store the test cases in the test case set in the form of data packets, and the database supports the background addition, modification and deletion of test cases.

9. A terminal, characterized in that: It includes a processor, an input device, an output device and a memory, which are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the ground station automated stimulus testing method based on data distribution service as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the ground station automatic excitation test method based on data distribution service as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Method for performing integrated management on test process of unmanned aerial vehicle ground station software

    CN113360388A

  • Automatic testing method, device and system based on virtual click and storage medium

    CN113495844A

  • Ground station instruction verification system

    CN114500350A