CN109902013B - Payload testing method and system based on configuration testing sequence - Google Patents
Payload testing method and system based on configuration testing sequence Download PDFInfo
- Publication number
- CN109902013B CN109902013B CN201910152078.8A CN201910152078A CN109902013B CN 109902013 B CN109902013 B CN 109902013B CN 201910152078 A CN201910152078 A CN 201910152078A CN 109902013 B CN109902013 B CN 109902013B
- Authority
- CN
- China
- Prior art keywords
- instruction
- test sequence
- execution
- payload
- test
- 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
Links
Images
Landscapes
- Radio Relay Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a payload testing method based on a configuration testing sequence, which comprises the following steps: step 1) reading effective load design instruction information, managing the design instruction information in a layered instruction tree form, and providing rapid retrieval and positioning of the instruction information; step 2) selecting an instruction from the hierarchical instruction tree to add a test sequence instruction, and graphically editing the added instruction to generate a payload test sequence; step 3) detecting the consistency of the effective load test sequence and the load design instruction information; and 4) after the consistency detection is passed, executing the payload test sequence, generating an instruction sending record and an execution log list in the test sequence execution process, and forming a test coverage analysis report and a test sequence execution report. The invention can effectively avoid the test sequence error caused by manual omission, improve the test efficiency, provide the analysis report and provide objective basis for the effective load user to master the technical state of the equipment.
Description
Technical Field
The invention mainly relates to the technical fields of space payload single-machine equipment self-detection, payload subsystem ground comprehensive test and the like, in particular to a payload test method and a payload test system based on a configuration test sequence.
Background
In order to accomplish space detection tasks such as military, meteorological, scientific, etc., different spacecraft are generally equipped with different types of payload scientific detection instruments that span different disciplines and are designed with different commands, functions and operating modes. In each stage of initial sample, normal sample and the like of effective load development, comprehensive ground test and verification are required to be carried out on effective load equipment-level and subsystem-level electrical and data interfaces, function and performance indexes, equipment working modes and the like. The black box test which takes the remote control instruction and the data injection instruction contained in the test sequence file as the drive and takes the load remote measurement parameters and the scientific detection data collected in real time as the interpretation basis is a common test method for the effective load.
In the aspect of editing and executing the payload test sequence, different implementation modes such as manual sequence editing and manual execution, script-based test sequence editing and automatic execution, Petri net, ant colony, genetic and other intelligent algorithm-based test sequence automatic design and the like appear in sequence. Under the manual execution mode of manual sequence editing, the editing, remote control and data injection instruction sending of sequence files are all realized in a manual mode, editing personnel need to comprehensively master load design knowledge such as load working modes, interphalangeal constraints and the like, instruction sending personnel need to concentrate on the testing process for a long time to ensure the reliable execution of the instructions one by one, and the event that the testing process is invalid and repeated testing has to be carried out for many times due to manual omission occurs; under the test sequence editing and automatic execution mode based on the script, the automatic and single step execution functions of the test sequence greatly liberate manpower on the instruction execution level, but the most core 'script' is still presented in a text mode, the expression is not intuitive enough, and the editing of the script still has higher requirements on the quality of personnel; an automatic test sequence editing method based on a Petri network, an ant colony and a genetic algorithm tries to release manpower on a sequence editing level, but at present, the method only stays in a thesis and research stage, and is less in practical application in satellite and payload development tasks with high safety and high reliability requirements.
In terms of payload test sequence coverage analysis, the method still stays at the level of manual statistical analysis. After each effective load master designer completes one test stage, the test coverage of the effective load in the stage, such as power-on duration, power-on and power-off times, functions, working modes, instructions and the like, is analyzed and counted, the analysis process is complicated and has strong subjectivity, load users, load totalities, satellite totalities and the like cannot objectively master the technical state of the load equipment, and the automatic generation method of the digital test coverage analysis report is urgent in demand.
Disclosure of Invention
The present invention aims to solve two problems: firstly, when a test sequence based on a character script is edited, the problem that the test process is invalid and the test is repeated is caused by the wrong test sequence caused by manual omission; secondly, the manual effective load test coverage statistical analysis process is complicated and has strong subjectivity, and the technical state of the load equipment cannot be objectively mastered by load users, load totalities, satellite totalities and the like. In order to solve the above problems, the present invention provides a payload testing method based on a configuration testing sequence, which is applied to a payload ground comprehensive testing system of a space exploration task, and the method includes:
step 1) reading effective load design instruction information, managing the design instruction information in a layered instruction tree form, and providing rapid retrieval and positioning of the instruction information;
step 2) selecting an instruction from the hierarchical instruction tree to add a test sequence instruction, and graphically editing the added instruction to generate a payload test sequence;
step 3) detecting the consistency of the effective load test sequence and the load design instruction information;
and 4) after the consistency detection is passed, executing the payload test sequence, generating an instruction sending record and an execution log list in the execution process of the test sequence, and finally forming a test coverage analysis report and a test sequence execution report.
As a further improvement of the method, the step 1) specifically comprises:
step 1-1) reading effective load design instruction information from a configuration file or a database and carrying out memory management; the effective load design instruction information comprises an effective load remote control instruction, a data injection instruction, an indirect instruction, an inter-instruction constraint rule, an association rule between an instruction and a load power on/off function and a working mode;
step 1-2) managing the instruction information in a layered instruction tree form;
and 1-3) quickly retrieving and positioning the instruction information, wherein in the instruction information retrieval process, the hierarchical instruction tree performs highlight display of matched instruction nodes and hiding of non-matched instruction nodes while the retrieval content is input into the information input box.
As a further improvement of the method, the rules of inter-instruction constraint, the association between instructions and load power on/off, function and operation mode of step 1-1) include: the method comprises the following steps of pairing occurrence instruction constraint rules, strong condition constraint rules, precondition instruction constraint rules, mutual exclusion instruction constraint rules, association rules of instructions and a load starting state, association rules of instructions and a load stopping state, association rules of instructions and time correcting operation, association rules of instructions and an equipment working mode and association rules of instructions and equipment functions.
As a further improvement of the method, the step 2) specifically comprises:
step 2-1) dividing a main display area of the test sequence into different grids, placing an instruction component on each grid, and identifying the category of the instruction component by using graphs of different shapes;
step 2-2) dragging the instructions in the hierarchical instruction tree to the test sequence in a mouse dragging mode;
step 2-3) graphically editing the added instruction in the test sequence, wherein the step comprises copying, pasting, deleting and instruction attribute setting of the instruction, and the instruction attribute setting comprises setting of instruction execution time, whether the instruction is a focus instruction, whether the instruction is suspended after execution, whether the instruction is a loop instruction and the number of loops; a payload test sequence is generated.
As a further improvement of the method, the step 3) specifically comprises:
detecting the legality of preset time codes executed by all instructions in the payload test sequence, and prompting the instruction of which the preset time code is ahead of logic test time, namely the execution opportunity is possibly missed in the test;
detecting the consistency of the instructions of the effective load test sequence and the design instruction information in the database table, and prompting the instructions with inconsistent instruction identification, instruction code words and database table content;
detecting the structural integrity of a loop body of the payload test sequence, and prompting the phenomena of incomplete loop body structure, namely, no pairing of a loop start instruction and a loop end instruction, loop body nesting and the like;
detecting the compliance of the payload test sequence to the paired occurrence instruction constraint rule, and prompting the instruction which does not conform to the paired occurrence constraint rule;
detecting the compliance of the payload test sequence to a strong condition, namely the constraint rule that the instruction A must be sent immediately before the instruction B is sent, and prompting the instruction which does not conform to the strong condition constraint rule;
detecting the compliance of the payload test sequence to a precondition, namely a constraint rule that an instruction A must be sent before an instruction B is sent, and prompting the instruction which does not accord with the constraint rule of the precondition;
detecting the compliance of the payload test sequence to the condition of mutual exclusion, namely A, B instruction, that can not send C instruction constraint rule, and prompting the instruction which does not conform to the condition of mutual exclusion constraint rule.
As a further improvement of the method, the step 4) specifically comprises:
step 4-1) judging whether the consistency detection of the payload test sequence and the load design instruction information is completely passed; if all the data passes through the step 4-2), otherwise, executing the step 2-3);
step 4-2) executing a test sequence;
step 4-3) displaying instruction sending information and instruction execution states in the process of executing the test sequence, and generating an execution log list, wherein the instruction states comprise ready, successful sending, successful execution, failed sending and failed execution;
and 4-4) designing instruction information and an execution log list based on the effective load of the test sequence, and generating a coverage analysis report of the test sequence to a load remote control instruction, a data injection instruction and an indirect instruction, a load power-on and power-off frequency, a power-on and power-off duration, a load function and working mode coverage analysis report and a test sequence execution report.
As a further improvement of the method, the step 4-2) includes: and according to the instruction execution time sequence set by each instruction or a circular automatic execution mode and a manual execution test sequence mode.
As a further improvement of the method, the method further comprises:
step 5) exporting the test sequence execution report as an Excel file; the information contained in the test sequence execution report includes: instruction identification, code words, sending time, sending results, execution results, prediction results and actual measurement results.
As a further improvement of the method, the step 2) may further include:
step 2-a) importing an edited test sequence, and detecting the legality of the edited test sequence; the method comprises the following steps:
detecting the legality of the preset time codes executed by all the instructions in the test sequence, and prompting the instruction of which the preset time code is ahead of the logic test time, namely the execution opportunity is possibly missed in the test; and
detecting the consistency of the instruction of the test sequence and the design instruction information in the database table, and prompting the instruction with inconsistent instruction identification, instruction code words and database table content; and
detecting the structural integrity of the loop body of the test sequence, and prompting the problems that the loop body structure is incomplete, namely a loop starting instruction and a loop ending instruction do not appear in pairs and loop body nesting exists; and
detecting the compliance of the test sequence to the paired occurrence instruction constraint rule, and prompting the instruction which does not conform to the paired occurrence constraint rule; and
detecting the compliance of the test sequence to a strong condition, namely the constraint rule of an instruction A which must be sent immediately before an instruction B is sent, and prompting the instruction which does not conform to the constraint rule of the strong condition; and
detecting the compliance of the test sequence to a precondition, namely, an instruction constraint rule A must be sent before an instruction B is sent, and prompting the instruction which does not conform to the precondition constraint rule; and
detecting the compliance of the test sequence to the constraint rule that the instruction A, B cannot be sent to the mutual exclusion condition, and prompting the instruction which does not conform to the constraint rule of the mutual exclusion condition;
and 2-b), graphically editing the instructions in the test sequence passing the validity detection to generate a payload test sequence.
Based on the method, the payload testing system based on the configuration testing sequence comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor completes all the steps of the method when executing the program.
The invention has the advantages that:
1. the payload testing method and system based on the configuration testing sequence can quickly, efficiently and accurately finish the editing of the testing sequence, effectively avoid the repeated testing caused by invalid testing process due to the testing sequence error caused by manual careless omission, and remarkably improve the testing efficiency of the payload;
2. according to the payload testing method and system based on the configuration testing sequence, a digital and automatic payload testing sequence coverage analysis method is adopted, complete instruction execution records, load power-on duration statistics, load power-on and power-off frequency statistics, load function and working mode testing coverage statistics and other objective information can be given, and detailed basis is provided for load users, load population, satellite population and the like to objectively master the coverage degree of an executed testing case on load design;
3. according to the configuration test sequence-based payload test method and system, the editing strategy with mouse operation as the main part and keyboard input as the auxiliary part and the test sequence validity detection method based on the load design instruction information effectively ensure the correctness of the test sequence file and are the main reasons for improving the load test efficiency; meanwhile, the test sequence coverage analysis method is realized based on the association rules of instructions, load power on/off, working modes and functions, and objective output of a test coverage analysis report is ensured.
Drawings
FIG. 1 is a flowchart illustrating the operation of a method for payload testing based on a configured test sequence according to the present invention;
FIG. 2 is a schematic diagram of a payload testing system based on a configured test sequence according to the present invention;
FIG. 3 is a block diagram of a load design instruction information management and fast search module of the method and system for payload testing based on a configurable test sequence according to the present invention;
FIG. 4 is a graphical test sequence editing module of the method and system for payload testing based on a configured test sequence according to the present invention;
FIG. 5 is a test sequence instruction attribute set for the method and system for payload testing based on a configured test sequence according to the present invention;
FIG. 6 is a flowchart illustrating the validity detection of instruction execution time codes for the method and system for payload testing based on a configurable test sequence according to the present invention;
FIG. 7 is a single focus instruction and database table content consistency detection flow for a configurable test sequence based payload testing method and system of the present invention;
FIG. 8 is a loop structure nesting flow unsupported by the method and system for payload testing based on a configured test sequence according to the present invention;
FIG. 9 is a user interface of an automatic execution process of the method and system for payload testing based on a configured test sequence according to the present invention;
FIG. 10(a) is a diagram illustrating a main display area displaying the execution status of each instruction during the execution of the payload testing method and system based on the configured test sequence according to the present invention;
FIG. 10(b) is a log list of the payload testing method and system based on the configured test sequence according to the present invention during execution;
FIG. 10(c) is a record of instruction execution during execution of the payload testing method and system based on the configured test sequence according to the present invention;
FIG. 11 is a test report-instruction coverage statistical analysis report for the configurable test sequence based payload testing method and system of the present invention;
FIG. 12 is a test report-power-on duration statistical analysis report of the method and system for payload testing based on a configured test sequence according to the present invention;
fig. 13 is a test case execution record of the payload testing method and system based on the configuration test sequence according to the present invention.
Detailed Description
As shown in fig. 1, the method for testing payload based on the configured test sequence of the present invention includes:
step 1) reading effective load design instruction information, managing the design instruction information in a layered instruction tree form, and providing a rapid retrieval and positioning function of the instruction information;
step 2) selecting an instruction from the hierarchical instruction tree to add a test sequence instruction, setting the attribute of the test sequence instruction, and editing a payload test sequence based on a graphical mode;
step 3) detecting the consistency of the effective load test sequence and the load instruction design information;
step 4), after the consistency detection is passed, executing the payload test sequence, and generating and exporting an instruction sending record and an execution log list in the executing process;
step 5) designing instruction information and an execution log list based on the effective load of the test sequence, and generating an effective load test sequence coverage analysis report and a test sequence execution report;
and 6) exporting the payload test sequence coverage analysis report and the test sequence execution report as Excel files.
The invention discloses a payload testing method and system based on a configuration testing sequence, which has the innovation points that:
1) editing a configurable and graphical test sequence: the method comprises the steps that a remote control instruction, a data injection instruction and an indirect instruction designed by a load are used as basic components, and based on a sequence editing strategy of mainly dragging a mouse and assisting input of a keyboard, errors possibly introduced by test sequence editing are effectively reduced, and a sequential execution flow and a circular execution flow of a test sequence are visually displayed based on a graphical mode;
2) and (3) testing sequence validity detection based on instruction constraint rules: by taking knowledge such as load design instruction information and constraint rules among instructions as detection basis, potential conflict of instruction execution time in a test sequence, consistency of instruction identification and code word with load design knowledge and compliance of the constraint rules among the instructions are detected, invalid test process caused by test sequence errors is avoided, and test efficiency of effective loads is improved;
3) digital and automatic test sequence coverage analysis: aiming at the subjectivity problem of coverage analysis of the traditional manual load test, based on the association rules of a load instruction, equipment power-on and power-off operation, a load working mode and a load function, the coverage of the load instruction, the power-on time, the power-on and power-off times, the load working mode and the load function of a test sequence is subjected to digital statistics and analysis, and a test coverage analysis report in an Excel format is generated.
The invention discloses a payload testing system based on a configuration testing sequence, which mainly comprises a load design instruction information management and quick retrieval module, an imaging testing sequence editing module, a testing sequence validity detection module, a testing sequence automatic or manual execution module, a testing sequence coverage analysis module, a testing sequence import and export module and the like. As shown in fig. 2, the functional design of each module is as follows:
1) the load design instruction information management and quick retrieval module is used for reading and managing the load design instruction information in a configuration file or a database, quickly viewing the load design instruction information in a layered instruction tree form, and providing a user interface to realize quick retrieval and positioning of instructions. The effective load design instruction information comprises (1) remote control instruction, data injection instruction and indirect instruction information of load design; and constraint rules among the instructions, association rules among the instructions, load power-on and power-off operations, functions and working modes and the like.
A. Design instruction information
The method comprises instruction identification, instruction name, load, instruction code word, extension field, and whether the code word can still be edited (applicable to the code word containing the instruction requiring parameter setting), and the data injection instruction is exemplified as follows:
table 1 example of load design instruction information
B. Constraint rules among instructions, association rules among instructions, load power on/off, functions, and operating modes.
Including the following types:
(1) paired occurrence instruction constraint rules: if the power-on command and the power-off command are required to be paired, the power-off command is required to be arranged after the power-on command, the power-on command is required to be arranged before the power-off command, and the power-on command is arranged before the power-on command and the power-off command is arranged after the power-off command;
(2) strong conditional constraint rules: that is, the AB instructions must appear simultaneously and other instructions cannot be inserted immediately adjacent to and in the middle;
(3) precondition instruction constraint rules: the instruction A is a precondition of the instruction B, and if A is a starting instruction and B is a shutdown instruction, the shutdown instruction must take the starting instruction as a precondition;
(4) mutual exclusion instruction constraint rules: A. the instruction B cannot exist between the instructions C, such as the backup on instruction cannot exist between the main share on instruction and the main share off instruction;
(5) the association rule of the command and the load power-on state comprises the following steps: after the instruction is executed, the equipment is indicated to enter a power-on state and is used for counting power-on times, power-on duration and the like;
(6) association rules of commands with load shutdown state: after the instruction is executed, the equipment is indicated to enter a power-off state and is used for counting the power-off times, the power-on duration and the like;
(7) the instruction and timing operation association rule is as follows: after the instruction is executed, indicating that one time of timing is performed, and counting the time correction times in the test sequence;
(8) the instruction and equipment working mode association rule is as follows: after the instruction is executed, the load is indicated to enter a certain working mode and is used for analyzing the coverage of the test sequence to the working mode of the load equipment;
(9) instruction and device function association rules: after the instruction is executed, the load is indicated to execute a certain function, and the function is used for analyzing the coverage of the test sequence to the load function;
C. user interaction interface
The load design instruction is managed by a hierarchical instruction tree, rapid retrieval and positioning of the instruction are provided, and the interface part of the load design instruction is designed as shown in FIG. 3.
2) The graphical test sequence editing module is used for presenting a test sequence in a graphical mode by taking a load instruction as a basic component, selecting an instruction from a hierarchical instruction tree in a mouse dragging mode to add a sequence instruction, and providing functions of mouse operation completion instruction full selection, copying, cutting, pasting, attribute setting and the like, wherein the attribute setting comprises setting instruction execution time (waiting for seconds or executing a satellite), whether the instruction is a focus instruction (a next instruction to be sent), whether the instruction is suspended after being executed, whether the instruction is a cycle instruction, cycle times and the like;
the test sequence editing principle is that mouse operation is used as a main part, keyboard operation is used as an auxiliary part, and specifically realized editing operations comprise:
(1) sequence instruction visualization presentation: as shown in fig. 4, the screen is divided into different grids, each grid is provided with an instruction component, and different types of instructions are identified in different shapes:
(2) sequence instruction addition: selecting an instruction to be added from the classification instruction tree, and adding the instruction into the sequence by dragging a right-click mouse to the screen grid position of the sequence;
(3) copying and pasting sequence instructions: one or more sequence instructions are selected by clicking a mouse, instruction copying and pasting operations are carried out through a right-click menu, wherein the pasting position is a screen grid where the mouse is located during pasting;
(4) and deleting the sequence instruction: one or more sequence instructions are selected by clicking a mouse, the sequence instructions are deleted through a Del key or a mouse right-click menu, and after the instructions are deleted, the subsequent instructions are automatically moved forwards;
(5) setting sequence instruction attributes: as shown in fig. 5, the instruction execution time (waiting for seconds or satellite execution time), whether it is a focus instruction (next instruction to be transmitted), whether it is suspended after instruction execution, whether it is a loop instruction, the number of loops, and the like are set.
The instruction execution time comprises two setting modes: waiting time and absolute time, wherein after the absolute time is set, the system automatically prompts whether the subsequent instruction is adjusted correspondingly according to rules (the time length of the subsequent instruction is increased or decreased before and after the subsequent instruction is set according to the attribute of the instruction, and the execution time is advanced or delayed);
and (4) a loop instruction: an instruction can be set as a loop start instruction, and the number of loop executions can be set; an instruction may also be set as a loop-ending instruction; all instructions between the loop start instruction and the loop end instruction will be executed repeatedly;
and (3) pausing after execution: after the attribute is set, after the instruction is executed, the automatically executed flow is suspended;
setting as a focus instruction: after the attribute is set, the system will start executing from the instruction, either automatically or as a single step.
3) The test sequence consistency detection module is used for checking the instruction identification, the instruction identification in the database table of the code words, the consistency of the code words, the correctness of instruction execution time logic and the compliance of constraint rules among the instructions before the test sequence is automatically or manually executed, and prompting the instructions which do not accord with the rules;
the rules for consistency detection include:
and (3) detecting the validity of the satellite time code: and setting a 'logic test time' variable, and performing corresponding adjustment on the value of the variable when each instruction is executed. If the absolute satellite time executed by a certain instruction is less than the logic test time when the certain instruction is executed, it indicates that the instruction execution time is over, the instruction execution satellite time code preset by the instruction in the test sequence is illegal, and the detection algorithm is shown in fig. 6;
consistency detection of editing instructions with database tables: the detection is to prevent the database table content from changing in the process of instruction editing or after the test sequence is edited and stored, the database table content changes again, which causes that the instruction identification of the current test sequence file cannot be found in the database, the instruction code words are inconsistent and the like; the consistency detection flow of the single focus instruction and the database table content is shown in FIG. 7;
and (3) checking the structural integrity of the circulating body: when the loop executes the instruction, the instruction at the beginning of the loop and the instruction at the end of the loop must appear in pairs; note that the claimed method does not support loop body nesting as shown in fig. 8;
paired occurrence instruction constraint rule detection: for example, a device power-on command and a device power-off command must be paired;
and (3) strong condition constraint rule detection: detecting rules which must appear simultaneously, must be adjacent and cannot interpenetrate other instructions; the rule is generally used to check the condition that another operation must be performed before a certain command is sent, for example, a load controller switch command must be provided before the load controller is backed up and started;
precondition instruction constraint rule detection: that is, before a certain instruction is sent, another instruction must exist, but other instructions can exist between the two instructions;
and (3) mutually exclusive instruction constraint rule detection: A. and B instructions cannot be arranged between C instructions, such as backup on instructions and backup off instructions.
4) The test sequence automatic or manual execution module, as shown in fig. 9, is configured to automatically execute the test sequence in sequence or in a loop according to the instruction execution time set by each instruction, or execute the test sequence in a manual manner, and only after the previous instruction is successfully executed, the next instruction can be continuously executed;
as shown in fig. 10(a), during the execution of the instruction, the main display area displays the state of the execution of the instruction in which the instruction of the highlight background is the focus instruction, which is the instruction to be transmitted at the next time. The states of the instruction comprise ready, successful sending, successful execution, failed sending and failed execution, and the characters and the background are displayed at the lowest part of the instruction frame in different states;
as shown in fig. 10(b), the log list during the execution of the instruction shows the current instruction transmission;
as shown in fig. 10(c), during the execution of the instruction, the instruction transmission record displays the transmission and execution of each instruction.
5) The test coverage analysis module comprises a coverage analysis report of a test sequence on a load remote control instruction, a data injection instruction and an indirect instruction, a coverage analysis report of load power-off times, power-on duration, load functions and working modes and the like;
a test sequence is used for reporting coverage analysis of load remote control instructions, data injection instructions and indirect instructions, as shown in fig. 11; the report of the coverage analysis of the number of times of power supply and power off and the time length of power supply and power off is shown in fig. 12.
6) The import and export module of the test sequence is used for exporting the test sequence and the execution report thereof into an Excel file, and the information contained in each execution report comprises: instruction identification, code words, sending time, sending results, execution results, prediction results, actual measurement results and the like; the test sequence can also be reversely read into the system, and the legality of the test sequence file is detected in the importing process;
as shown in fig. 13, the test sequence execution report can be exported as an Excel file, and the information contained in each instruction report includes: instruction identification, code words, sending time, sending results, execution results, prediction results, actual measurement results and the like.
The method of the invention is successfully applied to the ground comprehensive test system tasks of payloads in Chang 'e' four and China's first Mars exploration tasks, and completes subsystem comprehensive test tasks of each stage of 20 payloads in Chang' e 'four patrolling devices, 2 detectors of landers, Chinese's first Mars exploration task encircles, 2 landings patrolling devices, including panoramic cameras, topographic cameras, medium resolution cameras, high resolution cameras and the like.
In the task execution process, a tester can quickly, efficiently and accurately edit the test sequence by means of the system realized by the method, so that the test repetition caused by invalid test process due to test sequence errors caused by manual omission is effectively avoided, and the test efficiency of the effective load is obviously improved; the coverage analysis method for the digital effective load test sequence can provide objective statistical information such as complete instruction execution records, instruction execution statistics, load power-on time statistics, load power-on and power-off frequency statistics and the like, and provides detailed basis for load users, load population, satellite population and the like to comprehensively master the coverage degree of the test process on load design.
The method for detecting the validity of the test sequence based on the load model information and the editing strategy with mouse operation as a main part and keyboard input as an auxiliary part effectively ensures the correctness of the test sequence file and is the main reason for improving the load test efficiency; meanwhile, the test sequence coverage analysis method is realized based on the association rules of instructions, load power on/off, working modes and functions, and objective output of test coverage analysis reports is ensured.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and are not limited. Although the present invention has been described in detail with reference to the embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (9)
1. A payload test method based on a configuration test sequence is applied to a payload ground comprehensive test system of a space detection task, and the method comprises the following steps:
step 1) reading effective load design instruction information, managing the design instruction information in a layered instruction tree form, and providing rapid retrieval and positioning of the instruction information;
step 2) selecting an instruction from the hierarchical instruction tree to add a test sequence instruction, and graphically editing the added instruction to generate a payload test sequence;
step 3) detecting the consistency of the effective load test sequence and the load design instruction information;
step 4) after the consistency detection is passed, executing the payload test sequence, generating an instruction sending record and an execution log list in the execution process of the test sequence, and finally forming a test coverage analysis report and a test sequence execution report;
the step 3) specifically comprises the following steps:
detecting the legality of the preset time codes executed by all the instructions in the payload test sequence, and prompting the instructions of which the preset time codes are ahead of the logic test time, namely the execution opportunity may be missed in the test;
detecting the consistency of the instructions of the effective load test sequence and the design instruction information in the database table, and prompting the instructions with inconsistent instruction identification, instruction code words and database table content;
detecting the structural integrity of a loop body of the payload test sequence, and prompting the phenomena of incomplete loop body structure, namely, no pairing of a loop start instruction and a loop end instruction, loop body nesting and the like;
detecting the compliance of the payload test sequence to the paired occurrence instruction constraint rule, and prompting the instruction which does not conform to the paired occurrence constraint rule;
detecting the compliance of the payload test sequence to a strong condition, namely the constraint rule that the instruction A must be sent immediately before the instruction B is sent, and prompting the instruction which does not conform to the strong condition constraint rule;
detecting the compliance of the payload test sequence to a precondition, namely a constraint rule that an instruction A must be sent before an instruction B is sent, and prompting the instruction which does not accord with the constraint rule of the precondition;
detecting the compliance of the payload test sequence to the condition of mutual exclusion, namely A, B instruction, that can not send C instruction constraint rule, and prompting the instruction which does not conform to the condition of mutual exclusion constraint rule.
2. The method according to claim 1, wherein the step 1) comprises:
step 1-1) reading effective load design instruction information from a configuration file or a database and carrying out memory management; the effective load design instruction information comprises an effective load remote control instruction, a data injection instruction, an indirect instruction, an inter-instruction constraint rule, an association rule between an instruction and a load power on/off function and a working mode;
step 1-2) managing the instruction information in a layered instruction tree form;
and 1-3) quickly retrieving and positioning the instruction information, wherein in the instruction information retrieval process, the hierarchical instruction tree performs highlight display of matched instruction nodes and hiding of non-matched instruction nodes while the retrieval content is input into the information input box.
3. The method according to claim 2, wherein the inter-instruction constraint rule, the association rule between instruction and load power on/off, function and operation mode in step 1-1) comprises: the method comprises the following steps of generating an instruction constraint rule, a strong condition constraint rule, a precondition instruction constraint rule, a mutual exclusion instruction constraint rule, an instruction and load startup state association rule, an instruction and load shutdown state association rule, an instruction and time correction operation association rule, an instruction and equipment working mode association rule and an instruction and equipment function association rule in pairs.
4. The method according to claim 1, wherein the step 2) comprises:
step 2-1) dividing a main display area of the test sequence into different grids, placing an instruction component on each grid, and identifying the category of the instruction component by using graphs of different shapes;
step 2-2) selecting instructions in a hierarchical instruction tree, and adding the instructions into the test sequence;
step 2-3) graphically editing the added instruction in the test sequence, wherein the step comprises copying, pasting, deleting and instruction attribute setting of the instruction, and the instruction attribute setting comprises setting of instruction execution time, whether the instruction is a focus instruction, whether the instruction is suspended after execution, whether the instruction is a loop instruction and the number of loops; a payload test sequence is generated.
5. The method according to claim 1, wherein the step 4) comprises:
step 4-1) judging whether the consistency detection of the payload test sequence and the load design instruction information is completely passed; if all the data passes through the step 4-2), otherwise, executing the step 2-3);
step 4-2) executing a test sequence;
step 4-3) displaying instruction sending information and instruction execution states in the process of executing the test sequence, and generating an execution log list, wherein the instruction execution states comprise ready, successful sending, successful execution, failed sending and failed execution;
and 4-4) designing instruction information and an execution log list based on the effective load of the test sequence, and generating a coverage analysis report of the test sequence on a load remote control instruction, a data injection instruction and an indirect instruction, a load power-on and power-off frequency, power-on and power-off duration, a load function and working mode coverage analysis report and a test sequence execution report.
6. The method according to claim 5, wherein the step 4-2) comprises: and according to the instruction execution time sequence or the circular automatic execution mode and the manual execution test sequence mode set by each instruction.
7. The method of claim 1, further comprising:
step 5) exporting the test sequence execution report as an Excel file; the information contained in the test sequence execution report includes: instruction identification, code words, sending time, sending results, execution results, prediction results and actual measurement results.
8. The payload testing method based on the configured test sequence of claim 1, wherein the step 2) further comprises:
step 2-a) importing an edited test sequence, and detecting the legality of the edited test sequence; the method comprises the following steps:
detecting the legality of the preset time codes executed by all the instructions in the test sequence, and prompting the instruction of which the preset time code is ahead of the logic test time, namely the execution opportunity is possibly missed in the test; and
detecting the consistency of the instructions of the test sequence and the design instruction information in the database table, and prompting the instructions with inconsistent instruction identification, instruction code words and database table content; and
detecting the structural integrity of the loop body of the test sequence, and prompting the problems that the loop body structure is incomplete, namely a loop starting instruction and a loop ending instruction do not appear in pairs and loop body nesting exists; and
detecting the compliance of the test sequence to the paired occurrence instruction constraint rule, and prompting the instruction which does not conform to the paired occurrence constraint rule; and
detecting the compliance of the test sequence to a strong condition, namely the constraint rule of an instruction A which must be sent immediately before an instruction B is sent, and prompting the instruction which does not conform to the constraint rule of the strong condition; and
detecting the compliance of the test sequence to a precondition, namely, an instruction constraint rule A must be sent before an instruction B is sent, and prompting the instruction which does not conform to the precondition constraint rule; and
detecting the compliance of the test sequence to the constraint rule that the instruction A, B cannot send the instruction C, and prompting the instruction which does not conform to the constraint rule of the mutual exclusion condition;
and 2-b), graphically editing the instructions in the test sequence passing the validity detection to generate a payload test sequence.
9. A payload test system based on a configured test sequence, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to one of claims 1 to 8 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910152078.8A CN109902013B (en) | 2019-02-28 | 2019-02-28 | Payload testing method and system based on configuration testing sequence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910152078.8A CN109902013B (en) | 2019-02-28 | 2019-02-28 | Payload testing method and system based on configuration testing sequence |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109902013A CN109902013A (en) | 2019-06-18 |
CN109902013B true CN109902013B (en) | 2022-05-31 |
Family
ID=66945972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910152078.8A Active CN109902013B (en) | 2019-02-28 | 2019-02-28 | Payload testing method and system based on configuration testing sequence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109902013B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111581093B (en) * | 2020-05-08 | 2023-09-19 | 中国银行股份有限公司 | Method, device, equipment and medium for generating test record list |
CN113110308B (en) * | 2021-02-25 | 2022-03-25 | 北京空间飞行器总体设计部 | Lunar surface sampling three-in-one flight control cooperative work flow optimization method |
CN117951013A (en) * | 2024-01-17 | 2024-04-30 | 中国科学院长春光学精密机械与物理研究所 | Application approval instruction injection method of space load test system |
CN118192959B (en) * | 2024-05-15 | 2024-08-20 | 深圳市万里眼技术有限公司 | Method for realizing control of measuring instrument, electronic equipment and measuring instrument |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201873A (en) * | 2016-07-01 | 2016-12-07 | 网易(杭州)网络有限公司 | The treating method and apparatus of test script |
CN108804300A (en) * | 2017-04-27 | 2018-11-13 | 龙芯中科技术有限公司 | Automated testing method and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679856B (en) * | 2015-02-15 | 2018-04-27 | 北京空间飞行器总体设计部 | A kind of spacecraft test data extracting method based on rule of combination constraint |
US20180322032A1 (en) * | 2017-05-04 | 2018-11-08 | Microsoft Technology Licensing, Llc | App software audience impersonation for software testing |
CN107391366B (en) * | 2017-07-07 | 2021-01-29 | 华为技术有限公司 | Test case generation method, test case execution method and test case execution device |
CN109088668A (en) * | 2018-06-28 | 2018-12-25 | 上海卫星工程研究所 | Total state Visual Dynamic satellite test system and method |
CN108776278B (en) * | 2018-07-05 | 2020-06-02 | 国网湖北省电力有限公司电力科学研究院 | Topological-associated configuration type relay protection test system and method |
-
2019
- 2019-02-28 CN CN201910152078.8A patent/CN109902013B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201873A (en) * | 2016-07-01 | 2016-12-07 | 网易(杭州)网络有限公司 | The treating method and apparatus of test script |
CN108804300A (en) * | 2017-04-27 | 2018-11-13 | 龙芯中科技术有限公司 | Automated testing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109902013A (en) | 2019-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109902013B (en) | Payload testing method and system based on configuration testing sequence | |
CN110764753B (en) | Business logic code generation method, device, equipment and storage medium | |
US8826084B1 (en) | Method and system for implementing automated test and retest procedures | |
EP2778929B1 (en) | Test script generation system | |
US9372671B2 (en) | Modeling and code generation for SQL-based data transformations | |
CN110442511B (en) | Visual embedded point testing method and device | |
US9367383B2 (en) | Tracing and discovering the origins and genealogy of install errors | |
US9135714B1 (en) | Method and system for integrating a graphical user interface capture for automated test and retest procedures | |
US9069831B2 (en) | Retrieving data objects | |
KR101637371B1 (en) | System for testing an application use for a smart device and method therefor | |
US9311345B2 (en) | Template based database analyzer | |
CN111158656B (en) | Test code generation method and device based on fruit tree method | |
US20210342526A1 (en) | Improved spreadsheet and method for updating same | |
CN114416516B (en) | Test case based on screenshot, test script generation method, system and medium | |
KR20210036167A (en) | Test automation of application | |
CN111966587A (en) | Data acquisition method, device and equipment | |
CN115098368A (en) | Intelligent verification method and device for recognizing brain picture use case | |
CN117421328B (en) | Data management method, system, equipment and readable medium based on artificial intelligence | |
Hashim et al. | Laboratory inventory system | |
CN113779117A (en) | Data monitoring method and device, storage medium and electronic equipment | |
US20190354465A1 (en) | Auto-generated multiple input variants | |
US11907111B2 (en) | Database troubleshooting with automated functionality | |
CN113688029B (en) | Automatic metamorphic testing method for mobile platform | |
EP4386562A1 (en) | Automated testing of database commands | |
CN112286800B (en) | Auxiliary analysis method and system for functional test points |
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 |