CN112783794B - Aviation communication radio station software testing system - Google Patents

Aviation communication radio station software testing system Download PDF

Info

Publication number
CN112783794B
CN112783794B CN202110183885.3A CN202110183885A CN112783794B CN 112783794 B CN112783794 B CN 112783794B CN 202110183885 A CN202110183885 A CN 202110183885A CN 112783794 B CN112783794 B CN 112783794B
Authority
CN
China
Prior art keywords
test
interface
instrument
radio station
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110183885.3A
Other languages
Chinese (zh)
Other versions
CN112783794A (en
Inventor
王月波
刘涛
陈超
李继秀
蒲卿路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwest Electronic Technology Institute No 10 Institute of Cetc
Original Assignee
Southwest Electronic Technology Institute No 10 Institute of Cetc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southwest Electronic Technology Institute No 10 Institute of Cetc filed Critical Southwest Electronic Technology Institute No 10 Institute of Cetc
Priority to CN202110183885.3A priority Critical patent/CN112783794B/en
Publication of CN112783794A publication Critical patent/CN112783794A/en
Application granted granted Critical
Publication of CN112783794B publication Critical patent/CN112783794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Abstract

The radio station software testing system disclosed by the invention can accurately and rapidly test the airborne aviation radio station. The invention is realized by the following technical scheme: the interface management module formulates an interface with a uniform format and analyzes an XML file; the test script creates a hierarchical relationship of the test case and a python file corresponding to the corresponding folder and the test case; the test data generating module generates test data and a combined test data set according to the interface format of the radio station; the test data management module abstracts the test data of the radio station function into reusable test data, and generates an XML entity document according to a specified format; the instrument control module separates an instruction set of an instrument from instrument control; the automatic execution module traverses the test script to be executed, feeds back the execution result and execution progress of the script, and invokes the remote control command integrated with the instrument in the execution of the use case, and inserts the remote control command into the flow of the test use case to realize automatic control of the instrument.

Description

Aviation communication radio station software testing system
Technical Field
The invention relates to a software testing system of a communication radio station, which can develop software testing work on various types of communication radio stations.
Background
With the development of wireless communication technology, the types of the current communication devices are gradually complicated, and the radio stations are developed through the improvement of various stages, so that the radio stations are widely applied to scientific research and even various fields of social life such as production economy and the like. Because radio stations have very various kinds, complex signals covering various wave bands, interfaces with different specifications, and diversification of indexes and functions, the development of the current day-to-day and month high-tech wireless communication technology cannot be satisfied by only using a traditional manual testing instrument or a simple and narrow targeted testing system to test the radio stations. An open automatic test system ATS (AutomationTestSystem) with high mobility has become necessary.
The aviation radio service is the basis for guaranteeing aviation order, and its carrier is radio wave. The information exchange between the aircraft and the outside when the aircraft flies in the air almost completely depends on the aviation radio service, so that the aviation radio service plays a vital role in guaranteeing the safety of air traffic. However, with the recent gradual expansion of the civil aviation industry, the dependence of civil aviation on radio services is also gradually increasing. The development of electronic technology has led to improved functions and performance of aeronautical radio stations. As an airborne communication device, an aviation station needs regular power-on inspection compared with a general electronic device, so that functions and performances of the airborne communication device are kept in good states. The aviation radio station testing system needs to simulate the signal environment on the airplane, provides necessary excitation signals for the normal operation of the radio station, and receives response signals output by the radio station. The aviation radio station test system is a comprehensive platform integrating control, acquisition, processing, storage, analysis, display and printing into a whole by taking a computer as a control core, taking a comprehensive test instrument as a support and taking an interface card/adapter as a bridge beam. The external interface signals of the radio station comprise a power supply, a control signal, audio frequency and radio frequency signals. The power supply provides a power supply signal for the work of the radio station, which is generally +27V, and 115V/400Hz single alternating current power supply is also needed; the control signal mainly controls the power switch, the working frequency, the transmitting and receiving state, the modulation mode, the mute switch, the working mode and the like of the radio station, is the core for controlling the radio station to work, all the radio stations are provided in the form of discrete interfaces, and most of the radio stations are provided in the mode of combining a three-wire serial code, an RS422, a 1553B bus, an ARINC429 bus or a FOCTl8977 bus interface with the discrete interfaces through a specified coding format. Different stations typically require different control signal environments and the coding formats are likely to be different even though the electrical interface characteristics are the same. The need to design the respective control interfaces for the different stations is a core and difficulty in constructing the test system because the logical relationships between the various control signals are satisfied in addition to providing the electrical characteristics of the various control signals. According to the test requirement of the radio station, the required general instruments comprise equipment such as an audio signal generator, a radio frequency signal generator, a digital meter, a power meter, a frequency meter, an oscilloscope, a modulation degree tester, a distortion degree tester and the like; depending on the transmit power of the station and the test item, attenuators and spectrum analyzers are also commonly used test instruments. At present, various types of radio comprehensive testers are developed, and an audio signal generator, a radio frequency signal generator and various common testers are integrated together and have a program control interface and a memory function. The testing process of the radio station comprises the processes of setting the working mode of the radio station, the working frequency and the working state of a testing instrument, processing the testing result and the like, and in the whole process, the time required for setting the working frequency of the radio station is longest, especially the test of a short wave radio station transmitter, the frequency needs to be re-tuned when the frequency is changed, the frequency needs to be tens of seconds when the frequency is changed, and even the frequency needs to be repeatedly tuned; from the whole testing process, basically all items need to be tested at the same frequency point. On the other hand, the radio comprehensive tester of the test radio station has 2 test states of receiving and transmitting, and in the receiving state, main indexes such as audio output, distortion degree, signal to noise ratio and the like of the receiver can be tested simultaneously; under the transmitting state, main indexes such as carrier error, carrier power and modulation degree of a radio transmitter can be tested simultaneously; the multifunctional and highly comprehensive characteristics of the radio comprehensive tester create conditions for parallel testing of various projects of radio stations. Because of various radio stations, different technical contents, inconsistent technical specification indexes and interface characteristics, a plurality of test items and different technical indexes. If the traditional instrument is adopted for testing, the testing needs to be completed by various testing equipment and instruments, so that the universal test is poor, the automation degree is low, and the operation is complex. For testers, the test items and the test flows of the cores are different. Moreover, the testing of the station is a complex process requiring the use of a large number of measuring instruments in addition to the station itself, constructing different test data sets, etc. At present, avionic maintenance and detection equipment mainly comprises traditional instruments, and a testing system formed by the traditional instruments has the advantages of multiple instrument varieties, large volume and heavy weight; the test is performed manually, so that the time and effort are wasted, the test error is large, and the requirement of combat training on quick maneuvering of maintenance is difficult to meet.
An aeronautical communication radio station is an onboard communication device installed on an airplane, and is one of important means for providing an inter-line-of-sight bidirectional voice and data communication capability between the airplane or the airplane and the ground. With the proposal of a Software Defined Radio (SDR) concept, the technical complexity of radio software is continuously improved, and the role of the software in the radio is increasingly larger, so that higher requirements are put on the completeness, the correctness and the accuracy of the radio software. The software flow design test process of the test system is a guideline and a basis for developing a test program, but if the equipment characteristics are not considered, the test process is simply compiled according to the test process, so that the test process is repeated, the test efficiency is reduced, and the service life of a tested piece is influenced. Therefore, on the basis of the characteristics of the deep research equipment, the relation among test projects and the test method, the test flow is optimized, and the repeated operation of the test process is avoided so as to improve the detection work efficiency. The radio station has the characteristics of multiple working modes, multiple test items, multiple test frequency points and the like, and has great correlation between each test item and the test process. The current test for station software therefore faces the following problems:
(1) The aviation communication radio station can operate only by being connected with other equipment, and the test environment is difficult to build. Under the real running environment, the aviation communication radio station needs to be matched with various test instruments and platforms for software testing, and then the test cases can be executed. The range of knowledge that the tester needs to be involved in is highly demanding. And cannot be rapidly and effectively unfolded.
(2) The test case design and execution are disjointed, and the test efficiency is low. The design and execution of test cases are often performed separately. And other problems may be found during execution, resulting in the use case needing to be redesigned and executed again. So that the tester needs to be labor-intensive and inefficient.
(3) The instrumentation is manually operated so that the test cases are slowly executed. At present, most instruments required for testing are manually controlled, instrument parameters are required to be set according to requirements, unnecessary waste of time for executing use cases is caused, and errors are manually set and possibly input, so that the use cases can be wrongly concluded.
(4) Test data multiplexing is difficult. During use case execution, a large amount of test data may be used for the same function. Therefore, maintenance, migration, etc. of test data requires manual recording or replacement by a tester. Multiplexing of test data is inconvenient.
Disclosure of Invention
Based on the characteristics of an aviation radio station testing process and a testing instrument, the invention summarizes various control requirements during the whole radio station index test, and aims at the problems of difficult environment construction, test design and execution dislocation, manual control of instruments and meters, multiplexing of test data and the like in the aviation communication radio station testing process. The test system has the advantages of high intelligent degree, high test efficiency, wide application and strong adaptability, can accurately and quickly test the airborne aviation radio station, helps testers to quickly build a test environment, designs and executes test cases, automatically controls parameters of instruments, manages test data and the like, and can improve the efficiency and accuracy of radio station software test.
The invention solves the problems in the prior art by adopting the scheme that: a station software testing system comprising: communication bus integrated circuit board group, aviation communication radio station, test instrument and carry on automatic test platform's test computer, its characterized in that: the radio station software automatic test platform comprises an interface layer, a functional layer and a transmission layer, wherein the functional layer is internally provided with an instrument control module, a test data management module, a test data generation module, a test script management module, an interface management module and an automatic execution module, wherein the interface management module formulates an interface in a unified format and analyzes an XML file, and converts the XML file into an interface script used in the test script; the test script management module creates a hierarchical relationship of the test case and a corresponding folder and a python file corresponding to the test case under the engineering directory; the test data generation module generates test data and a combined test data set meeting a specific combined coverage standard according to the interface format of the radio station, abstracts one interface into an entity influenced by a plurality of variables, and can be called in the script management module after the test data set is generated; the test data management module classifies test data sets according to normal tests and abnormal tests, abstracts test data of some common radio functions into reusable test data, manages the reusable test data, generates an XML entity document according to a specified format, and displays the XML entity document in a table form in a platform; the instrument control module divides the type of each instrument, separates the instruction set of the instrument from the instrument control under the model of the specific instrument, stores the SCPI command of the instrument by using XML format, and sends the command to the instrument in communication modes such as TCP, UDP, serial port and the like; the automatic execution module automatically executes the test script, traverses the test script to be executed, feeds back the execution result and execution progress of the script, gives out the execution condition of the test case through the unified return value, fail or success, invokes a remote control command (SCPI) integrated with an instrument in the execution of the case, inserts the remote control command into the flow of the test case, realizes automatic control of the instrument, and finally sends data to the aviation communication radio station in real time through a transmission layer, receives the data returned by the aviation communication radio station and displays the data in the radio station software automatic test platform.
Compared with the prior art, the invention has the following beneficial effects:
aiming at the problems in the prior art of radio station software testing, the invention provides an automatic test scheme of the radio station software by applying an automatic test theory, can effectively solve the problems of difficult establishment of the test environment, disconnection of test design and execution, difficult multiplexing of test data and the like, realizes the rapid and accurate automatic test of the radio station software, and effectively improves the test efficiency of the radio station software.
Aiming at the problems of difficult construction of a radio station testing environment, design and disconnection of test cases and manual operation of instruments and meters, the invention adopts a radio station software automatic testing platform comprising an interface layer, a functional layer and a transmission layer, wherein test data are difficult to multiplex. Through the functional layer that has practicality, flexibility, reusability, expansibility's instrument and meter control module, test data management module, test data generation module, test script management module, interface management module and automatic execution module constitution, accomplish the radio station test in-process, adopt above module combination test data generation method, in order to solve the problem that discovers when testing. And a radio software automatic test platform with powerful functions, friendly interface and flexible test task development and batch execution of test cases is provided for testers in a man-machine interaction mode.
The test data generating module abstracts an interface into entities which have discrete and limited values and are influenced by a plurality of variables, generates a combined test data set meeting a specific combined coverage standard through a combined test method, and can directly call the module in a test script to generate test data, thereby improving the efficiency of test design and the test coverage rate.
The test data management module manages the reusable test data, abstracts the test data of some general radio functions into the reusable test data, and can directly import the reusable data into the script for use. The functions of providing online editing can be added, deleted and duplicated. And classifying the test data set according to the normal test and the abnormal test. The user can selectively use both types of data. The method is convenient for a user to operate and intuitively manage the test data.
The invention adopts the test script management module to complete the structure management of the test script. The user can copy the root directory folder of the test case to another test computer, and the test case is flexibly reused by opening the automatic test platform of the radio station software.
The invention adopts the instrument control module to ensure that the system has better flexibility and expansibility, the control module separates the instruction set of the instrument from the instrument control, and the invention can flexibly expand new instruments. The instrument has the same effect as manual control, and the time and the accuracy are improved greatly.
The invention designs interface management module, test data generation module, test data management module, test script management module, instrument control module and automatic execution module for the special automatic test platform of radio station from the aspects of practicality, flexibility, reusability, expansibility and the like, and respectively converts each step or link with more repeated labor which are needed to be involved in the test process from the automatic test platform in the test process into specific functions which can be realized by each module of the automatic test platform. The tester can develop the design of the use case and the execution of the use case on the platform at the same time, effectively help the tester analyze the problems in the test process and improve the working efficiency of the tester. The adopted automatic execution module can be based on a test script management module, and a user can selectively select test cases to be executed. And (5) giving the execution condition of the test case through unified return values. The regression test can be performed by selecting the test cases to be executed. The judgment of a tester is facilitated.
The trial result shows that the system has stable test performance, good universality, high reliability and high automation degree, and not only completely replaces the functions of the original test equipment, but also has more excellent performance.
Drawings
FIG. 1 is a block diagram of the station software testing system of the present invention.
FIG. 2 is a block diagram of the station software automatic test platform of the present invention.
Fig. 3 is a flowchart of the operation of the station software automatic test platform of fig. 2.
The invention will be further described with reference to the drawings and examples.
Detailed Description
See fig. 1 and 2. In the preferred embodiment described below, a station software testing system includes: communication bus integrated circuit board group, aviation communication radio station, test instrument and carry automatic test platform's test computer. The radio station software automatic test platform comprises an interface layer, a functional layer and a transmission layer, wherein the functional layer is internally provided with an instrument control module, a test data management module, a test data generation module, a test script management module, an interface management module and an automatic execution module, wherein the interface management module formulates an interface in a unified format and analyzes an XML file, and converts the XML file into an interface script used in the test script; the test script management module creates a hierarchical relationship of the test case and a corresponding folder and a python file corresponding to the test case under the engineering directory; the test data generation module generates test data and a combined test data set meeting a specific combined coverage standard according to the interface format of the radio station, abstracts one interface into an entity influenced by a plurality of variables, and can be called in the script management module after the test data set is generated; the test data management module classifies test data sets according to normal tests and abnormal tests, abstracts test data of some common radio functions into reusable test data, manages the reusable test data, generates an XML entity document according to a specified format, and displays the XML entity document in a table form in a platform; the instrument control module divides the type of each instrument, separates the instruction set of the instrument from the instrument control under the model of the specific instrument, stores the SCPI command of the instrument by using XML format, and sends the command to the instrument in communication modes such as TCP, UDP, serial port and the like; the automatic execution module automatically executes the test script, traverses the test script to be executed, feeds back the execution result and execution progress of the script, gives out the execution condition of the test case through the unified return value, fail or success, invokes a remote control command (SCPI) integrated with an instrument in the execution of the case, inserts the remote control command into the flow of the test case, realizes automatic control of the instrument, and finally sends data to the aviation communication radio station in real time through a transmission layer, receives the data returned by the aviation communication radio station and displays the data in the radio station software automatic test platform.
The test computer is used for completing the establishment of test engineering, the establishment of test environment, the management of interface information, the writing of test cases and the automatic execution of the test cases; the communication bus board card group completes unified management of the bus board card and is responsible for communication with a tested radio station; the instrument and meter finishes the parameter measurement of the measured radio station and returns the result.
See fig. 2. The automatic test platform for the radio station software comprises an interface, a function and a transmission three-layer structure. The interface layer is the display and control of the automatic testing platform of the radio station software, and is also the module with the greatest direct contact of users. The system mainly comprises a use case editing interface, wherein a user can selectively use specific functions in a function layer to construct a test use case of the user; and the error message and data display interface is used for realizing the display of errors and data when a user executes a test case or the bottom layer of the automatic test platform of the radio station software, so that the problem of quick positioning of the user and the developer is facilitated. The system/engineering menu is a radio station software automatic test platform which saves user test cases, newly establishes, opens history engineering and the like, provides a powerful function, is friendly in interface, flexibly develops test tasks and executes the test cases in batches for testers through a human-computer interaction mode.
The functional layer is the most core and most basic component in the radio test and comprises six main modules. The system mainly comprises a control module of an instrument, a test data management module, a test data generation module, a test script management module, an interface management module and an automatic execution module.
The interface management module mainly completes the management of interface control formats between the radio stations and the peripheral equipment, and because the interface formats between each radio station and the peripheral equipment are different, a unified format is formulated to decompose the interface and save the interface attribute for the convenience of management. The interface management module adopts XML format for storage, and when in use, the XML file is converted into the interface script used in the test script by analyzing the XML file. The interface management module comprises the length of the interface, the signaling code id of the interface, the specific parameter value of the interface and the bit used for checking errors. If an interface needs to be designed more complex for demand reasons, nesting can continue in the value element and the unit of data can be modified for various demands.
The test data generating module generates test data according to the interface format of the radio station, a combined test data set meeting a specific combined coverage standard is generated by adopting a combined test data generating method, one interface is abstracted into an entity influenced by a plurality of variables, and the value of each variable is discrete and limited.
The test data management module manages reusable test data, generates an XML entity document according to a specified format, provides on-line editing, newly adds, deletes and copies functions, abstracts test data of some common radio station functions into reusable TOD time setting, sets the channel parameters to the test data, stores the test data in an XML format, classifies a test data set according to normal test and abnormal test when designing a test script, takes the normal test data as a background, the abnormal test data as a background, marks specific error fields in the test data in a red font, and displays the test data in a table form in a platform.
The test script management module is internally provided with an intelligent auxiliary code writing tool which automatically generates script fragments and logic according to keywords, mainly completes structural management of a test script and specific contents of test cases, sends and receives data, controls instrument data generation and data import, and tests different test contents. And according to the hierarchical relationship and the name of the test case created by the user, creating a corresponding folder and a python file corresponding to the test case under the engineering catalog. And generating a template character string according to the format of the interface, replacing keywords in the template character string with specific values in the interface, and directly replacing the template according to the python code style to automatically generate a unified framework of the test case. The key words are marked with different data types when being stored, and the problems of type conversion among numerical values and the like do not need to be considered, such as the return of fail when the test fails and the return of success when the case test passes.
The instrument control module mainly completes the control of the instrument, separates the instruction set of the instrument from the control of the instrument, divides the instrument into signal sources, comprehensive measuring instruments, frequency meters and power meters according to specific manufacturers or specific models according to the purpose of the instrument, or adds the instruments required in the testing process according to a specified format. The SCPI command of the instrument is stored by using an XML format, the signal generator is set to output square waves and signal source frequency values, and the square waves and the signal source frequency values are sent to the instrument by using communication modes such as TCP, UDP, serial ports and the like. For example, the signal generator is set to output a square wave:': SOURce1: FUNCTIONSQUare and the signal SOURce frequency value is set: 'SOUR: FREQ1000MHz'. The specific frequency value can be changed by the user according to the own requirement. The SCPI commands for other instruments are similar.
The automatic execution module mainly completes automatic execution of the test script, when the automatic execution module is used, firstly, the test environment is initialized, the integrity and the availability of the test environment are checked, then the test script to be executed is traversed, the script is loaded into the memory for execution, and finally, the execution result and the execution progress of the script are fed back. Based on the test script management module, the first-in first-out queue is adopted to give out the execution condition of the test case through the unified return value, fail or success, the test result is summarized in real time, and the passing, failing and unexecuted proportion is displayed in the form of a pie chart. In the execution of the use case, the data sent to the radio station and the data returned by the radio station are displayed in the platform in real time.
Transmission layer: communication between the automatic test platform of the radio station software and the radio station or the instrument does not belong to the function of the automatic test platform of the radio station software. But is an essential part of the whole test procedure. Communication modes supported by the aviation communication radio station include a network port, a serial port, 429 and the like. After the user selects the communication mode, the next operation can be performed. At present, the platform provides support for all three communication modes. And uniformly packaging the Bus parent classes into a Bus parent class. Each independent communication mode inherits from the parent class. This class provides a send and recv approach. Calls need to be made at the time of writing the test cases. While specific subclasses require overwriting of both methods. For example, the network port communication mode needs to call a socket library function provided by python to realize sending and receiving. The serial port also calls the res library function provided by python for communication. 429 needs to load a dynamic link library provided by a radio station developer and call a method provided in the dynamic link library so as to realize communication. The current platform only supports the three communication modes. If other communication means are required in the new type of aeronautical communication station at a later time. Only one other subclass needs to be implemented again, and the send and recv methods are rewritten. Not requiring too much extra code nor adjustments to the logic of the overall communication.
See fig. 3. The working flow of the automatic test platform for the radio station software is as follows: creating or editing engineering on an automatic test platform of radio station software in a test computer, designing different test scripts aiming at different functions of a radio station, judging whether the test scripts are edited, judging whether the test scripts are executed if the test scripts are compiled, if so, selecting a use case to be executed and starting to execute by a user, and generating a test result in real time; and (3) waiting for all test scripts to be executed, judging whether the test scripts are executed correctly and passing the logic judgment of the test case, and if the test scripts do not pass the logic judgment, checking whether the test case is designed or the radio software itself exists by a tester. If the problem of the test case is that, the test case needs to be edited again and a new round of case execution is started. If the problem is the problem of the radio station software, the problem needs to be fed back to a developer, and after the radio station software is modified, the execution of the use case is started again.
The main contents created or edited by the automatic test platform of the station software comprise: and writing peripheral Interface (ICD) information, and storing data such as ICD information, a data set, instrument control commands and the like by using an Xml data format. So that the next time the platform is used, the data can be read or modified. Before creating the ICD message, the communication mode used in the test is selected.
When a specific ICD Message is compiled, a Message type is provided in the code logic of the automatic test platform of the station software, the Message type contains a Message part object of sub-messages such as byte number, signaling code, checksum, data and the like in the ICD Message, after the ICD Message is created, the specific Message part is added into the Message object, and the data after user editing is assigned to the Message object. After clicking and storing, the user generates an XML file similar to that displayed in the interface management module according to a specified format. Before the test case is compiled by the user, the latest Entides file needs to be generated, the file contains the bus type selected by the user, the specific ICD message, the composition of the internal sub-messages and the like, the contents are stored under the engineering directory of the user in the form of a python script, and finally the Entides file is called in the test case of the user, so that the automatically generated test case can be a complete python executable program.
The main basis for the tester to design the test script is also the content in the ICD message. According to the actual function, the corresponding ICD message is selected. The defined ICD information can be used by using an automatic code generation tool or by writing test cases by a tester, and the ICD information can be sent to a radio station or the feedback data of the radio station can be received. And finally, judging the reasons that the script fails to pass by the testers according to the passing condition of the test script and the transmitted and received data, if the script is a script problem, modifying the test script by the testers, and executing the test script again, and if the script is a problem of radio station software, carrying out regression test work again after modifying the test script by the developers.
The foregoing has shown and described the basic principles and main features of the present invention and the advantages of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made without departing from the spirit and scope of the invention, which is defined in the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. A station software testing system comprising: communication bus integrated circuit board group, aviation communication radio station, test instrument and carry on automatic test platform's test computer, its characterized in that: the radio station software automatic test platform comprises an interface layer, a functional layer and a transmission layer, wherein the functional layer is internally provided with an instrument control module, a test data management module, a test data generation module, a test script management module, an interface management module and an automatic execution module, wherein the interface management module formulates an interface in a unified format and analyzes an XML file, and converts the XML file into an interface script used in the test script; the test script management module creates a hierarchical relationship of the test case and a corresponding folder and a python file corresponding to the test case under the engineering directory; the test data generation module generates test data and a combined test data set meeting a specific combined coverage standard according to the interface format of the radio station, abstracts one interface into an entity influenced by a plurality of variables, and can be called in the script management module after the test data set is generated; the test data management module classifies test data sets according to normal tests and abnormal tests, abstracts test data of some common radio functions into reusable test data, manages the reusable test data, generates an XML entity document according to a specified format, and displays the XML entity document in a table form in a platform; the instrument control module divides the type of each instrument, separates the instruction set of the instrument from the instrument control under the model of the specific instrument, stores the SCPI command of the instrument by using XML format, and sends the command to the instrument in a TCP, UDP or serial communication mode; the automatic execution module automatically executes the test script, traverses the test script to be executed, feeds back the execution result and execution progress of the script, gives out the execution condition of the test case through the unified return value, fail or success, invokes the remote control command SCPI integrated with the instrument in the execution of the case, inserts the remote control command SCPI into the flow of the test case, realizes the automatic control of the instrument, finally sends data to the aviation communication radio station in real time through the transmission layer, receives the data returned by the aviation communication radio station and displays the data in the radio station software automatic test platform.
2. The station software testing system of claim 1, wherein: the test computer completes the establishment of test engineering, the establishment of test environment, the management of interface information, the writing of test cases and the automatic execution of the test cases; the communication bus board card group completes unified management of the bus board card and communicates with a tested radio station; the instrument and meter finishes the parameter measurement of the measured radio station and returns the result.
3. The station software testing system of claim 1, wherein: the interface management module comprises the length of the interface, the signaling code id of the interface, the specific parameter value of the interface and the check bit for checking errors, completes the management of the interface control format between the radio station and the peripheral equipment, saves the interface attribute according to a uniform format, stores the interface attribute in an XML format, and converts the XML file into an interface script used in a test script by analyzing the XML file when in use.
4. The station software testing system of claim 1, wherein: the test data generating module generates test data according to the interface format of the radio station, a combined test data set meeting a specific combined coverage standard is generated by adopting a combined test data generating method, one interface is abstracted into an entity influenced by a plurality of variables, and the value of each variable is discrete and limited.
5. The station software testing system of claim 1, wherein: the test data management module manages reusable test data, generates an XML entity document according to a specified format, provides online editing, adding, deleting and copying functions, abstracts test data of some common radio station functions into reusable TOD time setting, channel parameter setting test data, stores the test data in an XML format, and classifies a test data set according to normal tests and abnormal tests when designing a test script.
6. The station software testing system of claim 1, wherein: the test script management module is internally provided with an intelligent auxiliary code writing tool which automatically generates script fragments and logic according to keywords, so that the structural management of the test script and the specific content of a test case are completed, data are sent and received, instrument data generation and data importing are controlled, and different test contents are tested; creating a corresponding folder and a python file corresponding to the test case under the engineering catalog according to the hierarchical relationship and the name of the test case created by the user; and generating a template character string according to the format of the interface, replacing the keywords in the template character string with specific values in the interface, directly replacing the template according to the python code style, and automatically generating a unified framework of the test case.
7. The station software testing system of claim 1, wherein: the instrument control module is used for controlling instruments, separating an instruction set of the instruments from instrument control, dividing the instruments according to the purposes or specific types of the instruments, and dividing the instruments into signal sources, comprehensive measuring instruments, frequency meters and power meters or adding the instruments required to be used in the testing process according to a specified format; the SCPI command of the instrument is stored by using an XML format, the signal generator is set to output square waves and signal source frequency values, and the square waves and the signal source frequency values are sent to the instrument by using TCP, UDP and serial communication modes.
8. The station software testing system of claim 1, wherein: when the automatic execution module automatically executes the test script, firstly initializing the test environment, checking the integrity and availability of the test environment, then traversing the test script to be executed, loading the script into a memory for execution, and finally feeding back the execution result and execution progress of the script.
9. The station software testing system of claim 1, wherein: the test computer creates or edits engineering on the automatic test platform of the radio station software, designs different test scripts aiming at different functions of the radio station, judges whether the test scripts are edited, if so, judges whether the test scripts are executed, if so, the test needs to be started, a user selects a use case to be executed and starts to execute, and a test result is generated in real time; and (3) waiting for all test scripts to be executed, judging whether the test scripts are executed correctly or not through logic of the test cases, if the test scripts are not executed, checking whether the test scripts are problems designed by the test cases or problems existing in radio station software, if the test scripts are problems of the test cases, editing the test cases again, and starting new-round execution of the test cases.
10. The station software testing system of claim 1, wherein: the method comprises the steps of providing a Message type in a code logic of an automatic test platform of station software, wherein the Message type internally comprises a Message part object of an ICD Message, a signaling code, a checksum and a data sub-Message, adding a specific Message part into the Message object after creating the ICD Message, assigning data edited by a user to the Message object, generating an XML file similar to that displayed in an interface management module according to a specified format, generating a latest entites file before the test case is compiled, storing the latest entites file under an engineering directory of the user in a python script mode, finally calling the entites file in the test case of the user, and automatically generating a python executable program with a complete test case.
CN202110183885.3A 2021-02-10 2021-02-10 Aviation communication radio station software testing system Active CN112783794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110183885.3A CN112783794B (en) 2021-02-10 2021-02-10 Aviation communication radio station software testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110183885.3A CN112783794B (en) 2021-02-10 2021-02-10 Aviation communication radio station software testing system

Publications (2)

Publication Number Publication Date
CN112783794A CN112783794A (en) 2021-05-11
CN112783794B true CN112783794B (en) 2024-03-26

Family

ID=75762184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110183885.3A Active CN112783794B (en) 2021-02-10 2021-02-10 Aviation communication radio station software testing system

Country Status (1)

Country Link
CN (1) CN112783794B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419946B (en) * 2021-05-31 2023-03-28 西南电子技术研究所(中国电子科技集团公司第十研究所) Ice interface test case and test script automatic generation method
CN113704095A (en) * 2021-08-08 2021-11-26 中国航空工业集团公司沈阳飞机设计研究所 Automatic generation method and device for automatic interface test case
CN114157732B (en) * 2021-11-12 2024-03-19 西安羚控电子科技有限公司 Remote measurement data analysis method and system for large and medium-sized fixed wing unmanned aerial vehicle
CN114265769A (en) * 2021-12-10 2022-04-01 中国电子科技集团公司第二十九研究所 Test system and method based on python script test case
CN114443473A (en) * 2021-12-29 2022-05-06 山东有人物联网股份有限公司 Automated testing framework, method, system and computer readable storage medium
CN115314543A (en) * 2022-03-01 2022-11-08 上海御渡半导体科技有限公司 Method for realizing SCPI communication based on TCP
CN114691530A (en) * 2022-06-01 2022-07-01 广州世炬网络科技有限公司 Communication end-to-end automatic test method and platform
CN115600323B (en) * 2022-11-15 2023-03-31 南京芯传汇电子科技有限公司 Aviation system simulation method and system, electronic device and readable storage medium
CN115686268B (en) * 2022-12-30 2023-04-25 昆山龙雨智能科技有限公司 Testing method and device suitable for various touch panels

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8356282B1 (en) * 2011-09-13 2013-01-15 Advanced Testing Technologies, Inc. Integrated development environment for the development of electronic signal testing strategies
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN107122295A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 The generation method and device of test case script
CN107562635A (en) * 2017-09-15 2018-01-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Embedded software test accessory system
CN107943689A (en) * 2017-11-16 2018-04-20 北京卫星信息工程研究所 Automated testing method and test system based on parametrization test script
CN207706193U (en) * 2017-12-29 2018-08-07 陕西烽火电子股份有限公司 A kind of data transmission test optimization device
CN109739419A (en) * 2018-12-28 2019-05-10 中电科仪器仪表有限公司 The implementation method that plate interface automatically controls behind a kind of lattice gauge
CN111245501A (en) * 2020-01-16 2020-06-05 海丰通航科技有限公司 Communication module and command center server applied to very high frequency aviation radio station
CN112148611A (en) * 2020-09-28 2020-12-29 深圳信息通信研究院 Cloud architecture-based automatic test intermediate interface method and platform

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8356282B1 (en) * 2011-09-13 2013-01-15 Advanced Testing Technologies, Inc. Integrated development environment for the development of electronic signal testing strategies
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN107122295A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 The generation method and device of test case script
CN107562635A (en) * 2017-09-15 2018-01-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Embedded software test accessory system
CN107943689A (en) * 2017-11-16 2018-04-20 北京卫星信息工程研究所 Automated testing method and test system based on parametrization test script
CN207706193U (en) * 2017-12-29 2018-08-07 陕西烽火电子股份有限公司 A kind of data transmission test optimization device
CN109739419A (en) * 2018-12-28 2019-05-10 中电科仪器仪表有限公司 The implementation method that plate interface automatically controls behind a kind of lattice gauge
CN111245501A (en) * 2020-01-16 2020-06-05 海丰通航科技有限公司 Communication module and command center server applied to very high frequency aviation radio station
CN112148611A (en) * 2020-09-28 2020-12-29 深圳信息通信研究院 Cloud architecture-based automatic test intermediate interface method and platform

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CTCS-2级ATP仿真软件测试管理系统设计;窦磊等;《铁路计算机应用》;第28卷(第01期);第73-77、83页 *
航空机载软件测试质量评价方法研究;刘涛等;《计算机测量与控制》;第26卷(第11期);第285-288、292页 *
通过软件测试提高航空电台软件质量;张元华等;《电讯技术》(第03期);第170-172页 *

Also Published As

Publication number Publication date
CN112783794A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN112783794B (en) Aviation communication radio station software testing system
CN103198009B (en) A kind of universal testing method, system and related device
US5847953A (en) System and method for performing class checking of objects in a graphical data flow program
US7610529B2 (en) Testing mobile wireless devices during device production
EP1396788A2 (en) Universal system component emulator with human readable output
US5400263A (en) Apparatus and method for specifying the flow of test execution and the binning for a testing system
US20080059954A1 (en) Universal system component emulator with human readable output
US20060020931A1 (en) Method and apparatus for managing complex processes
CN112946404A (en) Comprehensive test method for mass production satellites
CN113612654A (en) Vehicle-mounted gateway function testing method based on database
CN113965501A (en) Communication navigation recognition system module test platform
CN115543797A (en) Bus conversion bridge verification method, device, equipment and storage medium based on UVM
CN104868957A (en) EDGE radio frequency test system and method for mobile terminal
CN114757135B (en) Programmable logic device verification method and system based on demand drive verification
CN111212103A (en) SCA software radio station interface simulation system and method
CN114845328B (en) Polymorphism NR radio frequency test system, test case generation method and test method
US5381344A (en) Apparatus and method for obtaining a list of numbers of wafers for integrated circuit testing
CN101217332A (en) Alarming test method and test control platform of synchronous digital system device
CN211528548U (en) Miniaturized satellite universal test platform based on system on chip
CN114647568A (en) Automatic testing method and device, electronic equipment and readable storage medium
Tao et al. Design and Implementation of Software Test System for Aviation Communication Radio Station
EP1871022B1 (en) Testing mobile wireless devices during device production
CN113051158B (en) System-level and link-level multi-index synchronous automatic testing method and system
Zhang Research on software development and test environment automation based on android platform
CN112540359B (en) Universal test system suitable for microwave radar

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant