A satellite communication automatic test system and application method oriented to test logic

By designing a satellite communication automation test system for testing logic, decoupling test cases and test programs, and loading and executing test cases through XML files, and automatically selecting test devices and interfaces, the problem of high coupling between test cases and test systems in existing systems is solved, and the testing efficiency and ease of use of use case design are improved.

CN116232482BActive Publication Date: 2025-03-25INST OF COMPUTING TECH CHINESE ACAD OF SCI NANJING INST OF MOBILE COMM & COMPUTING INNOVATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310119483.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2025-03-25
Estimated Expiration
2043-02-15

AI Technical Summary

Technical Problem

In the existing satellite communication automation test system, the test cases and the test system have a high degree of coupling, which must modify the system code when the test cases change, affecting the testing efficiency; at the same time, the test cases have a high degree of coupling with the specific test equipment and equipment interfaces, which must modify the test case program when the equipment changes, which increases maintenance costs.

Method used

Design a satellite communication automation test system for testing logic. By building a data management module, user management module, device management control module, test resource management module, human-computer interaction module and test implementation module, decouple test cases and test programs, load and execute test cases through XML files, and automatically select test devices and interfaces.

Benefits of technology

The test cases and test programs are decoupled, so that users can quickly change test cases and improve testing efficiency; at the same time, the test cases are decoupled from specific devices and interfaces, improving the design ease of use, readability and portability of test cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232482B_ABST
    Figure CN116232482B_ABST
Patent Text Reader

Abstract

The invention proposes a satellite communication automatic test system and application method oriented to test logic, and belongs to the technical field of satellite communication test. Aiming at the problem that the test case of the existing automatic test system is highly coupled with the test system, and the test case is highly coupled with specific test equipment and equipment interface, a new satellite automatic test system is constructed. On the one hand, users can perform automatic tests by loading test case XML files, so that the test case is decoupled from the automatic test program, which is convenient for rapid change of test cases and improves test efficiency; on the other hand, the test case XML file no longer describes the specific device name and interface selection, but automatically selects by calling the test resource management module and the device management control module, so that the test case is decoupled from the specific device and the device interface, and the design usability, readability and portability of the test case are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of satellite communication testing, and in particular relates to a satellite communication automatic testing system oriented to test logic and an application method. Background Art

[0002] In the automated test of satellite communications, the test case contents such as test objects, test equipment, test parameters, test processes and test result calculation logic are presented in the form of program code in the automated test system. Since the coupling degree between the automated test system and the test case contents such as test objects and test equipment is quite high, when any test case contents such as test objects or test requirements change, the test method contents such as test data, test processes, and test result comparison logic must be modified by modifying the automated test system code. Even a small change in test steps or test parameters must be realized by modifying the automated test system source code and updating the system version, which in turn affects the test efficiency.

[0003] In addition, the traditional test case program itself is highly coupled with the specific test equipment and device interfaces. Any changes to the equipment must modify the test case program, which increases the maintenance cost of the test system and brings inconvenience to use. Summary of the invention

[0004] Purpose of the invention: To propose a satellite communication automatic test system and application method oriented to test logic, so as to solve the above problems existing in the prior art.

[0005] Technical solution: On the first aspect, a satellite communication automation test system oriented to test logic is proposed, which executes satellite communication automation test through the constructed data management module, user management module, equipment management control module, test resource management module, human-computer interaction module and test implementation module.

[0006] Among them, the data management module stores and manages basic data through the construction of different databases. The basic data includes: user data, equipment data, test data and system data; the user management module is used to perform user information management and login verification according to the requirements of security performance; the equipment management control module performs connection management and control of different test equipment and tested equipment through the constructed virtual mapping relationship; the test resource management module is used to perform resource control management of the automated test system from at least two dimensions; the human-computer interaction module is used to provide users with a human-computer interaction interface, present visual data, and load the XML files required for automated testing; the test implementation module is used to read the XML files loaded by the human-computer interaction module, and execute the test requirements corresponding to the XML files to complete the automated testing.

[0007] In some implementations of the first aspect, the data management module performs data storage by constructing a database table. For satellite communication test data generated by different test devices, the storage structure of the database table adopts a storage method of sub-library and sub-table, and stores different communication test data in units of test devices; for test data of the same test device, the storage structure of the database table adopts a storage method of single library and sub-table.

[0008] The user management module uses PBKDF2 to encrypt and verify passwords during login verification when performing user information management and login verification. In the process of performing user information management, for the new password generated by the user for the first time, the following steps are included:

[0009] Step 1: The user generates a new password;

[0010] Step 2: Input the new password into the automated test system through the interface service layer of the automated test system;

[0011] Step 3: Based on the received new password, the automated testing system automatically generates a pseudo-random number string;

[0012] Step 4: Iterate the pseudo-random number string generated in step 3 through the SHA256 algorithm within a preset number of times;

[0013] Step 5: The processing result of step 4 is stored in the Salt repository in the data management module after AES encryption, the password ciphertext is stored in the user password library in the data management module, and the association between databases is realized through user identity information. Among them, the Salt repository and the user password library are distributed on different physical machines in the form of physical separation.

[0014] The device management control module constructs a virtual mapping association control scheme based on the virtual mapping relationship, and adopts a resource management method of creating first and then using. When the automated test system is initialized, the steps of executing the virtual mapping association control scheme include the following steps:

[0015] Step 1: Read the test equipment information required for different scenario tests;

[0016] Step ②: Create virtual device resources according to the device information in step ①;

[0017] Step 3: After the physical test equipment is connected to the automated test system, the physical test equipment is directly matched with the resources in the virtual resource pool based on the search and discovery method, and a mapping relationship is established;

[0018] Step ④: Based on the established mapping relationship, remote control of the physical test equipment is completed through the docking standards of interface type, communication protocol, and private protocol.

[0019] According to the requirements of automated testing, the XML file contains: test environment, test process, test result calculation and evaluation method. During the execution of automated testing, the test environment is built according to the received XML file, and the corresponding test instructions are executed according to the requirements of the test process in the XML file. Finally, the test results are obtained through the test result calculation and evaluation method in the XML file.

[0020] In the second aspect, based on the constructed satellite communication automatic test system, a satellite communication automatic test system application method oriented to test logic is proposed, and the process of performing automatic test according to the XML file includes the following steps:

[0021] Step 1: Read the XML file to be tested according to the test requirements;

[0022] Step 2: Parse the test case XML file and store the file content line by line in the test implementation module buffer;

[0023] Step 3, execute the test instructions in the cache one by one until the cache is empty;

[0024] The process of reading the test instruction in the cache area further includes the following steps:

[0025] Step 3.1, preset the total number of cycle readings and the current number of cycles;

[0026] Step 3.2, read a test instruction from the cache in order;

[0027] Step 3.3, determine the type of the test instruction, and perform corresponding operations according to the instruction type;

[0028] Step 3.4, determine whether the current number of cycles exceeds the preset number of cycles; if it exceeds the number of cycles, jump to step 3.5; if it does not exceed the number of cycles, add one to the current number of cycles and jump to step 3.2;

[0029] Step 3.5: Determine whether the current cache is empty. If the determination result is empty, end the reading of the test instruction; if the determination result is not empty, jump to step 3.2.

[0030] Step 4: Execute the test instructions to complete the automated test.

[0031] In some implementations of the second aspect, types of test instructions include: Environment, Order, and Evaluation.

[0032] When the instruction type is Environment, the corresponding field information is sent to the test resource management module according to the instruction attributes to apply for test resources. After the application is successful, jump to step 3.5; if the resource application is unsuccessful, the automated test ends;

[0033] When the instruction type is Order, jump to step 3.4;

[0034] When the instruction type is Evaluation, the test performance index value is calculated according to the parameter value of the corresponding child node, and after obtaining the test result, jump to step 3.5.

[0035] In some implementations of the second aspect, when the judgment result in step 3.4 is that the number of cycles is not exceeded, the following steps are further included:

[0036] Step 3.4.1, receiving the test order;

[0037] Step 3.4.2, determine whether the current number of cycles exceeds the preset number of cycles. If it exceeds the preset number of cycles, jump to step 3.5; if it does not exceed the preset number of cycles, add one to the current number of cycles and execute step 3.4.3;

[0038] Step 3.4.3, determine whether the test instruction attributes meet the execution conditions. If the execution conditions are met, jump to step 3.4.4 to execute the test instruction sending task; if the execution conditions are not met, jump to step 3.5; where the execution conditions are used to explain the conditions that need to be met to continue to execute the current test instruction, specifically referring to the normal state of the target test device pointed to by the current test instruction; if the execution conditions are met, the execution task is to send the actual content of the test instruction to the target test device, that is, step 3.4.4. Test instructions can be divided into four categories according to different uses: status query, parameter configuration, test control, and data acquisition.

[0039] Step 3.4.4, transfer the actual content of the child node to the target test device, and continue to determine whether the exit condition is met. If the exit condition is met, jump to step 3.5; if the exit condition is not met, jump to step 3.4.2. The exit condition is used to describe the conditions that must be met to exit the current test instruction loop in advance, which can specifically refer to the normal state of the target test device of the current test instruction, or the reasonable threshold range that the currently collected test data should be within.

[0040] Beneficial effects: The present invention proposes a satellite communication automation test system and application method oriented to test logic. Aiming at the problems that the test cases of the traditional satellite communication automation test system are highly coupled with the test system, and the test cases are highly coupled with the specific test equipment and equipment interfaces, a new satellite automation test system is constructed. On the one hand, users can perform automated testing by loading test case XML files, so that the test cases are decoupled from the automated test programs, which is convenient for quickly changing test cases and improving test efficiency. On the other hand, the test case XML files no longer describe specific device names and interface selections, but automatically select by calling the test resource management module and the device management control module, so that the test cases are decoupled from the specific equipment and equipment interfaces, thereby improving the design usability, readability and portability of the test cases. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Schematic diagram of the automated testing system architecture according to an embodiment of the present invention.

[0042] Figure 2 This is a schematic diagram of encryption and verification of a user management module according to an embodiment of the present invention.

[0043] Figure 3 The figure is a schematic diagram of the device management control module and virtual device mapping process according to an embodiment of the present invention.

[0044] Figure 4 This is a schematic diagram of resource matching of a device management control module according to an embodiment of the present invention.

[0045] Figure 5 Schematic diagram of a test resource management model according to an embodiment of the present invention.

[0046] Figure 6 The diagram is a schematic diagram of resource division in the resource management model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features well known in the art are not described.

[0048] Embodiment 1

[0049] In one embodiment, in view of the problem that the coupling between different modules of the system is too high in the prior art during the satellite-oriented test process, a satellite communication automatic test system oriented to test logic is proposed, such as Figure 1As shown, satellite communication automation testing is performed by constructing a data management module, a user management module, a device management control module, a test resource management module, a human-computer interaction module and a test implementation module.

[0050] Specifically, the data management module is used to store and manage basic data such as various user data, equipment data, test data and system data. Among them, user data includes user account information, user operation information, and user authority information; equipment data includes equipment type, equipment name, equipment model information, operation control, parameter configuration, status query, data acquisition and software reconstruction related control command set (control commands based on SCPI syntax) and various equipment operation records and other data, as well as remote update software files of test equipment's channel transmission, routing switching, network management and network control modules, channel simulation of channel equipment, interference signal waveform data and other data; test data includes test requirements, test scenarios, test processes, test cases, test process data, test reports, etc. System data includes user operation records, system operation logs, equipment status records, abnormal alarm messages, etc. In the preferred embodiment, for data reading in the data management module, in order to realize multi-library parallel access optimization of test equipment data, all kinds of satellite communication test data are stored in sub-libraries and sub-tables based on test equipment; in addition, in order to realize fast reading and writing of test data in the same library, the same library and sub-table storage method is adopted for the same test equipment.

[0051] The user management module is responsible for supporting login verification and user information management functions. It has the ability to manage user account information and verify user login information, allowing users to log in by verifying their account and password.

[0052] The device management module is responsible for the connection management and control of each test device and the device under test.

[0053] The test resource management module is used to perform the management functions of equipment resources, equipment processing resources and interface resources in the satellite communication test environment, and complete the unified management of test resources. Among them, equipment resources, equipment processing resources and interface resources are three different levels of resource representation. Equipment resources include: system equipment, channel equipment and test instrument equipment that can be provided by the satellite communication automation test system. Equipment processing resources include: depending on the type of equipment, they can provide air interface resources, business processing resources, channel resources and other resources of the communication system, as well as support resources for test instruments. Interface resources include: signal interfaces and signal paths that the satellite communication automation test system can provide for each physical device. This module is conducive to improving the utilization efficiency of test resources through refined resource management.

[0054] The human-computer interaction module is used to provide users with a human-computer interaction interface, support the display of test data, test progress, equipment status and abnormal alarms, and support the loading of test case XML files to carry out automated testing, as well as support the control of the test process, including start, pause, resume and stop.

[0055] The test implementation module is the core of the satellite communication automated test system. It is used to support reading the test case XML file loaded by the user in the human-machine interface, reading the file content line by line, and calling the test management module and the device management module according to the automated test drive algorithm to perform automated testing.

[0056] Embodiment 2

[0057] In a further embodiment based on the first embodiment, an application method of the satellite communication automation test system is proposed based on the constructed satellite communication automation test system, and the satellite communication automation test is realized according to the requirements of the test logic.

[0058] In the process of executing automated testing, the process of executing automated testing according to the XML file includes the following steps:

[0059] Step 1: Receive the XML file to be tested according to the test requirements;

[0060] Step 2: Parse the test case XML file and store the file content line by line in the test implementation module buffer;

[0061] Step 3, execute the test instructions in the cache one by one until the cache is empty;

[0062] Step 4: Execute the test instructions to complete the automated test.

[0063] In a further embodiment, the process of reading the test instruction in the cache area includes the following steps:

[0064] Step 3.1, read a test instruction in the cache in order;

[0065] Step 3.2, determine the type of the test instruction, and execute the corresponding steps according to the determination result; when the instruction type is Environment, jump to step 3.3; when the instruction type is Order, jump to step 3.4; when the instruction type is Evaluation, jump to step 3.5;

[0066] Step 3.3, send the "Type", "Name", "Topo" and "Channel" field information of the Environment instruction attributes to the test resource management module to apply for test resources; if the application is successful, jump to step 3.6; otherwise, the human-computer interaction interface will display that the test resources are insufficient and exit the instruction reading process;

[0067] Step 3.4: Determine whether the current number of loops exceeds the total number of loops. If it does, jump to step 3.6; otherwise, add 1 to the current number of loops and execute the corresponding steps. After the execution is completed, jump to step 3.1.

[0068] Among them, when the number of loops is not met, it is further judged whether the Order instruction attribute ExecutionConditions meets the execution condition, that is, whether the state of the target test device pointed to by the current test instruction is normal. If the execution condition is not met, jump to step 3.6; if the execution condition is met, send the child node Command content to the target test device, and then judge whether the exit condition is met according to the Order instruction attribute ExitConditions. If the exit condition is met, jump to 3.6; if the exit condition is not met, continue to jump to step 3.4 to continue to judge the number of loops;

[0069] Step 3.5: Calculate the test performance index value according to the Evaluation instruction sub-node CalculationFormula; and obtain the test result value according to the sub-node EvaluationFormula.

[0070] Step 3.6: Determine whether the buffer area is empty. If it is empty, end; otherwise, jump to step 3.1.

[0071] Embodiment 3

[0072] In a further embodiment based on the first embodiment, in the process of executing satellite communication automation test using the constructed satellite communication automation test system, in order to ensure the security of user passwords and improve the security performance of the system, the user management module implements the user login verification process and uses PBKDF2 for special password encryption and verification design.

[0073] The user management module performs password encryption and verification. Figure 2 As shown in the figure, when the user's new password is generated for the first time, it is input through the dedicated API layer (interface service layer), and the constructed satellite communication automation test system automatically generates a pseudo-random number string, namely the salt value Salt; then, through multiple iterations of SHA256, PBKDF2 encryption is completed; finally, the salt value Salt is encrypted by AES and stored in the Salt repository, and the password ciphertext is stored in the user password repository, and the data on both sides are associated through the user ID. When verifying the user password, the satellite communication automation test system will retrieve the corresponding Salt value according to the user ID, encrypt the password again in combination with the password entered by the user, and compare the encryption result with the corresponding value in the user password library to determine whether the input password is correct.

[0074] The user password repository and the Salt repository are physically separated, that is, they are not the same repository and are not on the same physical machine. Through the physically separated storage form, when the user password repository is hacked, the risk of the Salt repository being leaked at the same time can be effectively avoided, thereby reducing the possibility of password plaintext cracking.

[0075] When generating the salt value Salt, the generation principle is unpredictable and non-repeatable, and the Salt of each password is independent. In a preferred embodiment, the length of the salt value Salt is consistent with the length of the Hash algorithm SHA256, that is, 256 bits.

[0076] Embodiment 4

[0077] In a further embodiment based on embodiment one, in the process of connecting and controlling various test devices and tested devices, the equipment management control module formulates a virtual mapping association management control scheme to meet the needs of parallel control devices of the satellite communication automation test system, thereby realizing unified management of the control devices.

[0078] Specifically, the virtual mapping association management and control solution adopts a resource management strategy of create first and use later. When the system is initialized, the device resources are first virtualized and created according to the various types of device information required for each scenario test. When the physical device is connected, the physical device is directly matched with the resources in the virtual resource pool through search and discovery, and a mapping association relationship is established. Then, according to the device remote access process, the device interface type, communication protocol, private protocol, etc. are connected in turn to achieve the purpose of remote connection and control of the device.

[0079] Compared with the connection solution of accessing first and then creating resources in the prior art, this embodiment has great advantages in access efficiency and parallel management response.

[0080] In a further embodiment, in order to improve the efficiency of device access, virtual mapping association is used to initialize the system according to the preset device list and device category in the satellite communication test environment. The corresponding virtual device resource creation is first performed, including the thread pool scheduling resources, data receiving buffer area, interface connection object, etc. required for the device to send and receive data. Then, the platform's external connection port and listening thread are started to monitor all device connection request information in real time. The relationship between virtual resource allocation and mapping is as follows: Figure 3 shown.

[0081] like Figure 4As shown, when a physical device needs to access the satellite communication test environment, an access request is sent to the satellite communication automation test system and the physical device information is reported; subsequently, when the monitoring thread of the satellite communication automation test system monitors the access request of the entity, it automatically matches the device information and establishes a mapping association with the virtual resources, completing the handshake, information exchange, connection establishment and other processes between the virtual resources and the identification device.

[0082] In the process of performing docking through the device interface type, based on the connection request information of the physical device, the type matching is first completed through the remote control interface type provided by the physical device to the outside; then the interface connection resources and connection thread resources are allocated from the virtual device resources, thereby completing the access management of the physical device and the satellite communication automation test system. In a preferred embodiment, the interface type includes LAN port connection, COM port connection and IEEE488 serial port connection, etc.; the interface connection resources include physical device connection information management, namely port type, connection address, port number; the connection thread resources include: data sending thread resources and data receiving thread resources.

[0083] In a further embodiment, during the process of completing the docking, the communication protocol is used as the basis for data communication between the carriers, and different communication protocol standards are selected for adaptation according to the interface types of different physical devices. In a preferred embodiment, on the basis of completing the standard protocol adaptation, in order to enable the satellite communication automation test system to coordinate and control each device to complete the test task, it is necessary to adapt the private protocol for internal interaction of the device again. According to the characteristics of automated parallel control, SCPI instructions that meet the industrial test standards are used as the instruction control design for interactive control in the private protocol.

[0084] Embodiment 5

[0085] In a further embodiment based on the first embodiment, in order to effectively manage the test resources in the test environment, the test management module constructs a resource management model, such as Figure 5 As shown, it is used to uniformly manage device resources, device processing resources and interface resources.

[0086] Specifically, the resource management model divides resources as follows: Figure 6 As shown, I represents the equipment resources in the satellite communication automation test system, and the corresponding number is the number of the resource assigned by the satellite communication automation test system; C1, C2, ..., C x ,D1,D2,…,D y and E1,E2,…,E z Indicates device processing resources; P indicates interface resources, and the corresponding numbers indicate different interface resources.

[0087] The resource management model constructed in this example describes all the information such as the functional attributes and signal interfaces of various types of equipment in the satellite communication automation test system. Through the resource management model, the satellite communication automation test system can accurately realize the multi-dimensional control capability of the satellite communication automation test system resources, so that refined resource management is conducive to improving the utilization efficiency of test resources.

[0088] Embodiment 6

[0089] In a further embodiment based on the first embodiment, in the process of executing the automated test, the XML file loaded by the test implementation module is used to solve the problem of too high coupling between the test case and the test program. Its construction structure contains complete test case information and consists of three parts: test environment, test process, and test results and evaluation methods. In the actual application process, executing the satellite communication automated test is to build the test environment according to the XML file, execute the test commands in the test process, calculate and evaluate the test data to obtain the test results. Specifically, the XML file adopts a distributed design in terms of structure, and divides the test case into a test environment, a test process, a test result, and an evaluation method.

[0090] In a preferred embodiment, the XML file includes: a Test Example node, an Environment node, an Orders node, and an Evaluation node.

[0091] The Test Example node is the root node, which is used to identify that the current file is a test case XML file. It contains: the attribute Title and the child nodes Environment, Orders, and Evaluation. The attribute Title is used to define the title of the test case. When the satellite communication automation test system reads it, the name of the test case can be determined based on this attribute. The child node Environment is used to define the test environment of the test case and describe the test equipment configured for the test case. Each Environment node describes a test equipment. Multiple Environment child nodes can be used to describe different types and numbers of test equipment configured for the test case. The child node Orders is used to define the test process of the test case and describes the test instructions configured for the test case. The child node Evaluation is used to define the calculation results and evaluation methods of the test case and describes the calculation formula for the result operation configured for the test case.

[0092] The Environment node defines the test equipment, and its child nodes are the various devices and attributes in the satellite communication test environment required by the test case. It contains: attribute Type, attribute Num, and child node Topo. Among them, the attribute Type is used to define the device type or model, and describes the type of device configured by the test case, including Satellite, Ground-Station, Satellite-Terminal, Spectrum-Analyzer, RF-Comprehensive-Tester and other common satellite communication test equipment. The attribute Num is used to define the device number and describe the device number configured by the test case. The child node Topo is used to define other devices that have a connection relationship with the current device and describe the topological relationship between the current device and other devices. It contains attributes Num and Channel. The corresponding attribute Num is used to define the device number and describes the device number of other devices in the device topology relationship; the attribute Channel is used to define the channel type of the device and describes the channel type in the device topology relationship, including Normal, Fast-Fading, Slow-Fading, Rayleigh-Fading, Rice-Fading, Flat-Fading, Frequency-Selective-Fading and other common channel fading types.

[0093] The Orders node defines the test instructions, and its child nodes are the attributes of each test instruction to be executed by the test case and its instruction content child nodes. Contains: attributes Num, DeviceNum, Looptimes, ExecutionConditions, ExitConditions and child node Command. Among them, the attribute Num is used to define the instruction number and describe the test instruction number configured by the test case. DeviceNum is used to define the device number corresponding to the instruction and describe the device number to be issued by the test instruction, including Satellite, Ground-Station, Satellite-Terminal, Spectrum-Analyzer, RF-Comprehensive-Tester and other common satellite communication test equipment. Looptimes is used to define the number of instruction loops and describe the number of test instruction loops configured by the test case. ExecutionConditions is used to define the execution conditions of the instruction and describe the prerequisites for the execution of the test instruction configured by the test case. ExitConditions is used to define the exit conditions of the instruction and describe the prerequisites for the exit of the test instruction configured by the test case. The subnode Command contains the attributes Type, Name, and Param, which are used to define the specific content of the instruction and describe the specific content of the test instruction configured by the test case. The corresponding attribute Type is used to define the specific type of the instruction and describe the specific type of the test instruction configured by the test case, including Set, Control, Query, and Fetch; Name is used to define the specific name of the instruction and describe the specific name of the test instruction configured by the test case; Param is used to define the parameters that the instruction needs to carry and describe the specific parameters that can be carried in the test instruction configured by the test case.

[0094] The Evaluation node is used to define the calculation and evaluation of test results. The subnodes it contains are the various test quantities required after the execution of the test case instructions is completed. The Evaluation node contains: the attribute Name, the subnode CalculationFormula, and the subnode EvaluationFormula. The attribute Name is used to define the name of the test quantity of the instruction and describe the name of the evaluation quantity configured by the test case; the subnode CalculationFormula is used to define the test quantity calculation formula definition and describe the test quantity calculation formula configured by the test case. It contains the attributes Type and TestData. The corresponding attribute Type is used to define the calculation formula type and describe the specific type of the test quantity calculation formula configured by the test case; the corresponding attribute TestData is used to define the input data of the calculation formula and describe the test data required by the test quantity calculation formula configured by the test case; the subnode EvaluationFormula is used to define the test result evaluation formula and describe the test result evaluation formula configured by the test case. It contains the attributes Type and Value. The corresponding attribute Type is used to define the test result evaluation formula type and describe the type of the test result formula configured by the test case; the corresponding attribute Value is used to define the standard value for test result evaluation and describe the standard value for test result comparison configured by the test case.

[0095] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes may be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A satellite communication automation test system oriented to test logic, characterized in that: Execute satellite communication automation test through constructed data management module, user management module, equipment management control module, test resource management module, human-computer interaction module and test implementation module; The data management module stores and manages basic data by constructing different databases; the basic data includes: user data, equipment data, test data and system data; The user management module is used to perform user information management and login verification according to security requirements; The device management control module performs connection management and control of different physical test devices and virtual devices through the constructed virtual mapping relationship; the device management control module constructs a virtual mapping association control scheme based on the virtual mapping relationship, adopts a resource management method of creating first and then using, and when the automated test system is initialized, the step of executing the virtual mapping association control scheme includes the following steps: Step 1: Read the physical test equipment information required for different scenario tests; Step ②: Create virtual device resources according to the device information in step ①; Step 3: After the physical test equipment is connected to the automated test system, the physical test equipment is directly matched with the resources in the virtual resource pool based on the search and discovery method, and a mapping relationship is established; Step ④: Based on the established mapping relationship, remote control of the physical test equipment is completed through the docking standards of interface type, communication protocol, and private protocol; The test resource management module is used to perform resource control management of the automated test system from three levels: device resources, device processing resources and interface resources in the satellite communication test environment; The human-computer interaction module is used to provide a human-computer interaction interface for users, present visual data, and load XML files required for automated testing; The test implementation module is used to read the XML file loaded by the human-computer interaction module and execute the test requirements corresponding to the XML file to complete the automated test; wherein the process of executing the automated test according to the XML file includes the following steps: Step 1: Read the XML file to be tested according to the test requirements; Step 2: parse the test case XML file and store the file content line by line in the test implementation module buffer; Step 3: execute the test instructions in the buffer one by one until the buffer is empty; Step 4: Execute the test instructions to complete the automated test.

2. A satellite communication automated test system for test logic according to claim 1, characterized in that: The data management module performs data storage by constructing a database table; For the satellite communication test data generated by different physical test equipment, the storage structure of the database table adopts a storage method of sub-library and sub-table, and stores different communication test data in units of physical test equipment; For the test data of the same physical test equipment, the storage structure of the database table adopts a single database and sub-table storage method.

3. A satellite communication automated test system for test logic according to claim 1, characterized in that: The Salt repository and the user password repository are distributed on different physical machines in the form of physical separation.

4. The satellite communication automatic test system for test logic according to claim 1, characterized in that: According to the requirements of automated testing, the XML file includes: test environment, test process, test result calculation and evaluation method; During the execution of automated testing, the test environment is built according to the received XML file, and the corresponding test instructions are executed according to the requirements of the test process in the XML file. Finally, the test results are obtained through the test result calculation and evaluation method in the XML file.

5. A satellite communication automated test system application method for test logic, based on the satellite communication automated test system according to any one of claims 1 to 4, characterized in that: In the process of executing automated testing, the process of executing automated testing according to the XML file includes the following steps: Step 1: Read the XML file to be tested according to the test requirements; Step 2: parse the test case XML file and store the file content line by line in the test implementation module buffer; Step 3: execute the test instructions in the buffer one by one until the buffer is empty; Step 4: Execute the test instructions to complete the automated test.

6. The satellite communication automated test system application method for test logic according to claim 5, characterized in that: The process of reading the test instruction in the cache area further includes the following steps: Step 3.1, preset the total number of cycle readings and the current number of cycles; Step 3.2, read a test instruction from the cache in order; Step 3.3, determine the type of the test instruction, and perform corresponding operations according to the instruction type; Step 3.4, determine whether the current number of cycles exceeds the preset total number of cycle reads; if it exceeds the preset total number of cycle reads, jump to step 3.5; if it does not exceed the preset total number of cycle reads, add one to the current number of cycles and jump to step 3.2; Step 3.5: Determine whether the current cache is empty. If the determination result is empty, end the reading of the test instruction; if the determination result is not empty, jump to step 3.

2.

7. The application method of a satellite communication automatic test system for test logic according to claim 6 is characterized in that: The types of test instructions include: Environment, Order and Evaluation; When the instruction type is Environment, the corresponding field information is sent to the test resource management module according to the instruction attributes to apply for test resources. After the application is successful, jump to step 3.5; if the resource application is unsuccessful, the automated test ends; When the instruction type is Order, jump to step 3.4; When the instruction type is Evaluation, the test performance index value is calculated according to the parameter value of the corresponding child node, and after obtaining the test result, jump to step 3.

5.

8. The satellite communication automated test system application method for test logic according to claim 6, characterized in that: When the judgment result of step 3.4 is that the total number of cyclic readings does not exceed the preset number, the step 3.4 further includes the following steps: Step 3.4.1, receiving the test order; Step 3.4.2, determine whether the current number of cycles exceeds the preset total number of cycle reads. If it exceeds the preset total number of cycle reads, jump to step 3.5; if it does not exceed the preset total number of cycle reads, add one to the current number of cycles and execute step 3.4.3; Step 3.4.3, determine whether the test instruction attributes meet the execution conditions. When the execution conditions are met, jump to step 3.4.4 to execute the test instruction sending task; when the execution conditions are not met, jump to step 3.5; wherein, the execution conditions are used to explain the conditions that need to be met to continue to execute the current test instruction, specifically referring to the normal state of the target entity test device pointed to by the current test instruction; if the execution conditions are met, the execution task is to send the actual content of the test instruction to the target entity test device, i.e. step 3.4.4; according to different uses, the test instructions are divided into four categories: status query, parameter configuration, test control, and data acquisition; Step 3.4.4, transfer the actual content of the child node to the target entity test device, and continue to determine whether the exit condition is met. When the exit condition is met, jump to step 3.5; when the exit condition is not met, jump to step 3.4.2; wherein, the exit condition is used to explain the conditions that must be met to exit the current test instruction loop early, specifically referring to the target entity test device status of the current test instruction is normal, or the currently collected test data should be within the preset threshold range.

Citation Information

Patent Citations

  • Lightweight visual satellite testing program design system and method

    CN105487867A

  • Satellite ground automatic test platform, test system and test method

    CN115603797A