CN109902013A - A kind of payload test method and system based on configuration cycle tests - Google Patents

A kind of payload test method and system based on configuration cycle tests Download PDF

Info

Publication number
CN109902013A
CN109902013A CN201910152078.8A CN201910152078A CN109902013A CN 109902013 A CN109902013 A CN 109902013A CN 201910152078 A CN201910152078 A CN 201910152078A CN 109902013 A CN109902013 A CN 109902013A
Authority
CN
China
Prior art keywords
instruction
cycle tests
payload
command information
rule
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.)
Granted
Application number
CN201910152078.8A
Other languages
Chinese (zh)
Other versions
CN109902013B (en
Inventor
杨甲森
孟新
智佳
陈托
刘明洁
张华伟
王春梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National Space Science Center of CAS
Original Assignee
National Space Science Center of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National Space Science Center of CAS filed Critical National Space Science Center of CAS
Priority to CN201910152078.8A priority Critical patent/CN109902013B/en
Publication of CN109902013A publication Critical patent/CN109902013A/en
Application granted granted Critical
Publication of CN109902013B publication Critical patent/CN109902013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes a kind of payload test method based on configuration cycle tests, comprising: step 1) reads payload and designs command information, instructs tree-like formula to be managed design command information with layering, provides quick-searching and the positioning of command information;Step 2) chooses the addition that instruction carries out cycle tests instruction from the layering instruction tree, is patterned editor to the instruction of addition, generates payload cycle tests;Step 3) detects the consistency of the payload cycle tests and load design command information;After step 4) consistency detection passes through, the payload cycle tests is executed, instruction is generated in cycle tests implementation procedure and sends record and execution journal list, forms test coverage analysis report, cycle tests executes report.The present invention can effectively avoid causing cycle tests mistake due to manually slipping, and improve testing efficiency, and the analysis report provided grasps technology state for payload user and provides objective basis.

Description

A kind of payload test method and system based on configuration cycle tests
Technical field
Tested the invention mainly relates to space payload stand-alone device self-test, Payload Subsystem floor synthetic etc. Technical field more particularly to a kind of payload test method and system based on configuration cycle tests.
Background technique
In order to complete the space explorations tasks such as military affairs, meteorology, science, different spacecrafts, which are typically arranged with, different types of to be had Load scientific exploration instrument is imitated, these instruments are across different subjects and design has different instructions, function and operating mode.Having Each stages such as first sample, the positive sample of load development are imitated, are required to payload device level, subsystem grade is electrical and data connect Mouthful, the comprehensive ground experiment of carry out and the verifying such as function and performance indicator, equipment operating mode.Include with test sequence file Telecommand, data injection instruction are driving, using acquire in real time load telemetry parameter, scientific exploration data is interpretation foundations Black-box Testing is the common test method of payload.
In terms of payload cycle tests editor, the execution, successively occur " artificial sequence editor and manually perform ", " cycle tests editor and automatic execution based on script ", " the test sequence based on intelligent algorithms such as Petri network, ant colony and heredity Several different implementations such as column Automated Design ".In the case where artificial sequence editor manually performs mode, the editor of sequential file, It is remotely controlled and data is injected the transmission instructed and realized by manual type, the comprehensive grasp load operation mode of editorial staff's needs, The load designs knowledge such as constraint between finger, instruction transmission personnel need to be absorbed in test process for a long time to ensure that is instructed one by one may be used By executing, due to manually slip cause test process it is invalid, must not the event without repeatedly testing repeatedly happen occasionally;In base Under the cycle tests editor of script and automatic executive mode, the automatic of cycle tests, single step execute function in instruction execution level Manpower has been liberated in face significantly, but its most crucial " script " is still presented with text mode, expresses not intuitive enough, the volume of script Collecting still has higher requirement to peopleware;The automatic edit methods examination of cycle tests based on Petri network, ant colony and genetic algorithm Figure liberates manpower in sequence editor's level, but this method only rests on paper and conceptual phase at present, in high security, highly reliable Property require satellite and payload development task in practical application it is less.
In terms of payload cycle tests covering analysis, the level manually statisticallyd analyze is remained at present.Respectively Payload director designer after the completion of a test phase, to the power-up duration of this stage payload plus power-off number, The test coverages such as function, operating mode, instruction are analyzed, are counted, and analytic process is cumbersome and subjectivity is strong, load user, Load is overall, satellite is overall etc. cannot the objective state of the art for grasping loading device, the report of digital test covering analysis from Dynamic generation method is in urgent need.
Summary of the invention
It is an object of the invention to solve the problems, such as two aspects: 1. when cycle tests editor based on text script, by Cause cycle tests mistake in artificial careless omission, so cause test process is invalid, test repeatedly the problem of;2. artificial effective load Lotus test coverage statistical analysis process is cumbersome and subjectivity is strong, and load user, load totality, satellite totality etc. objective cannot slap The problem of holding loading device state of the art.To solve the above problems, the present invention proposes a kind of having based on configuration cycle tests Load testing method is imitated, applied in the payload floor synthetic test macro of space exploration task, which comprises
Step 1) reads payload and designs command information, instructs tree-like formula to carry out pipe to design command information with layering Reason, provides quick-searching and the positioning of command information;
Step 2) chooses the addition that instruction carries out cycle tests instruction from the layering instruction tree, to the instruction of addition into The graphical editor of row, generates payload cycle tests;
Step 3) detects the consistency of the payload cycle tests and load design command information;
After step 4) consistency detection passes through, the payload cycle tests is executed, in cycle tests implementation procedure It generates instruction and sends record and execution journal list, eventually form test coverage analysis report, cycle tests executes report.
As the further improvement of the method, the step 1) is specifically included:
Step 1-1) payload design command information is read from configuration file or database and carries out memory management;Institute State payload design command information include payload telecommand, data injection instruction, indirect instruction and instruction between about Beam rule, instruction and load add the correlation rule between power-off, function and operating mode;
Step 1-2) command information is managed with layering instruction tree-like formula;
Step 1-3) quick-searching is carried out to command information and is positioned, in command information retrieving, in information input frame While inputting retrieval content, layering instruction tree progress matching instruction node is highlighted, non-matching instruction node is hidden.
As the further improvement of the method, the step 1-1) instruction between constraint rule, instruction and load add it is disconnected Correlation rule between electricity, function and operating mode includes: that pairs of appearance instructs constraint rule, strong constraint regular, preposition Conditional order constraint rule, mutual exclusion instruct correlation rule, instruction and the load of constraint rule, instruction and load open state to shut down Operation correlation rule, instruction and equipment operating mode correlation rule, instruction and equipment function when the correlation rule of state, instruction and school It can correlation rule.
As the further improvement of the method, the step 2) is specifically included:
Step 2-1) the main viewing area of cycle tests is divided into different grids, each grid places a command module, with The classification of pattern identification command module of different shapes;
Step 2-2) in a manner of mouse drag, the instruction in layering instruction tree is drawn in the cycle tests;
Step 2-3) in the cycle tests editor is patterned to the instruction of addition, it is duplication including instruction, viscous Whether patch, deletion and instruction attributes setting, the setting of described instruction attribute include setting time for each instruction, are that focus instructs, refers to Whether whether order suspend after executing, be recursion instruction, cycle-index;Generate payload cycle tests.
As the further improvement of the method, the step 3) is specifically included:
The legitimacy for detecting the preset time code that all instructions executes in the payload cycle tests, to preset time Code is ahead of the logic testing time, i.e., may miss the instruction on execution opportunity in test and be prompted;
The consistency that command information is designed in the instruction and database table of the payload cycle tests is detected, to instruction The instruction inconsistent with database table content of mark, instruction code word is prompted;
The circulation bulk structural integrity of the payload cycle tests is detected, i.e. circulation imperfect to loop body structure is opened Begin that phenomena such as not occurring in pairs with circulation END instruction, is nested there are loop body is instructed to be prompted;
The payload cycle tests is detected to the pairs of compliance for instruction constraint rule occur, is gone out in pairs to not meeting The instruction of existing constraint rule is prompted;
Detecting must constrain before the payload cycle tests sends strong condition i.e. B instruction close to A instruction is sent The compliance of rule, prompts the instruction for not meeting strong constraint rule;
A instruction constraint rule must be sent by detecting before the payload cycle tests sends precondition i.e. B instruction Compliance then prompts the instruction for not meeting precondition constraint rule;
Detect the payload cycle tests to mutual exclusion condition i.e. A, B instruction between cannot send C instruction constraint rule Compliance, the instruction for not meeting mutual exclusion constraint rule is prompted.
As the further improvement of the method, the step 4) is specifically included:
Step 4-1) judge whether the consistency detection of the payload cycle tests and load design command information is complete Portion passes through;If all by thening follow the steps 4-2), no to then follow the steps 2-3);
Step 4-2) execute cycle tests;
Step 4-3) idsplay order sends information, instruction execution state during executing cycle tests, generate the execution day Will list, described instruction state include it is ready, send successfully, run succeeded, send failure and execute failure;
Step 4-4) the payload design command information and execution journal list based on cycle tests, generate cycle tests When adding power-off number plus power-off to load telecommand, data injection instruction, the covering analysis report of indirect instruction, load Long, loading functionality and the report of operating mode covering analysis and cycle tests execute report.
As the further improvement of the method, the step 4-2) when including: the instruction execution according to each instruction setting Between sequence or circulation automatic performance mode and manually perform test mode sequence.
As the further improvement of the method, the method also includes:
Cycle tests is executed report and exports as Excel file by step 5);The test sequence executes the letter for including in report Breath includes: command identification, code word, sending time, sends result, implementing result, prediction result and measured result.
As the further improvement of the method, the step 2) may also include that
Step 2-a) it imports and has edited cycle tests, the legitimacy for having edited cycle tests is detected;Include:
The legitimacy for detecting the preset time code that all instructions executes in the cycle tests, is ahead of preset time code The logic testing time may miss the instruction on execution opportunity in test and be prompted;With
Design command information consistency in the instruction and database table of the cycle tests is detected, to command identification, instruction The code word instruction inconsistent with database table content is prompted;With
Detect the circulation bulk structural integrity of the cycle tests, i.e. circulation sign on imperfect to loop body structure with Circulation END instruction do not occur in pairs, to there is a problem of loop body nested prompt;With
The cycle tests is detected to the pairs of compliance for instruction constraint rule occur, constraint rule occurs to not meeting in pairs Instruction then is prompted;With
Detect the cycle tests to strong condition i.e. B instruction send before must close to send A instruction constraint rule according to From property, the instruction for not meeting strong constraint rule is prompted;With
Detect the compliance that A instruction constraint rule must be sent before the cycle tests sends precondition i.e. B instruction Property, the instruction for not meeting precondition constraint rule is prompted;With
The cycle tests is detected to the compliance that cannot send C instruction constraint rule between mutual exclusion condition i.e. A, B instruction Property, the instruction for not meeting mutual exclusion constraint rule is prompted;
Step 2-b), editor is patterned to the instruction in the cycle tests detected by legitimacy, generates and effectively carries Lotus cycle tests.
Based on the method, the present invention is based on the payload test macros of configuration cycle tests, including memory, place Reason device and storage on a memory and the computer program that can run on a processor, when the processor executes described program Complete all steps of the method.
Present invention has an advantage that
1, the payload test method and system of the present invention based on configuration cycle tests, can quickly, efficiently, The editor for accurately completing cycle tests, effectively prevents causing cycle tests mistake due to manually slipping, and then cause to test It is tested caused by process inefficient repeatedly, significantly improves the testing efficiency of payload;
2, the payload test method and system of the present invention based on configuration cycle tests, using digitlization, certainly Dynamicization payload cycle tests covering analysis method can provide complete instruction execution record, load power-up duration system Meter, load power-up power-off number statistics, loading functionality and operating mode Test coverage statistics etc. objective informations, be load user, The objective grasp implementations of test cases such as load is overall, satellite is overall provide full and accurate foundation to the level of coverage of load design;
3, the payload test method and system of the present invention based on configuration cycle tests be with mouse action Editing Strategy supplemented by master, keyboard input, the cycle tests legitimacy detection method based on load design command information, effectively really The correctness for having protected test sequence file is the main reason for promoting load test efficiency;Meanwhile adding based on instruction with load disconnected Electricity, operating mode, function correlation rule realize cycle tests covering analysis method, it is ensured that test coverage analysis report The objective output accused.
Detailed description of the invention
Fig. 1 is the payload test method operational flowchart of the present invention based on configuration cycle tests;
Fig. 2 is the structural schematic diagram of the payload test macro of the present invention based on configuration cycle tests;
Fig. 3 is of the present invention based on the payload test method of configuration cycle tests and the load design of system Command information management and quick-searching module;
Fig. 4 is the graphical survey of the payload test method and system of the present invention based on configuration cycle tests Try sequence editor module;
Fig. 5 is of the present invention based on the payload test method of configuration cycle tests and the cycle tests of system Instruction attributes setting;
Fig. 6 is of the present invention based on the payload test method of configuration cycle tests and the instruction execution of system Timing code legitimacy testing process;
Fig. 7 is the single focus of the payload test method and system of the present invention based on configuration cycle tests Instruction and database table content consistency testing process;
Fig. 8 follows for what the payload test method and system of the present invention based on configuration cycle tests was not supported Ring body structurc nesting process;
Fig. 9 is the automatic execution of the payload test method and system of the present invention based on configuration cycle tests Process user interface;
Figure 10 (a) is that the payload test method and system of the present invention based on configuration cycle tests is executing Main viewing area in the process shows the state of each instruction execution;
Figure 10 (b) is that the payload test method and system of the present invention based on configuration cycle tests is executing Log list in the process;
Figure 10 (c) is that the payload test method and system of the present invention based on configuration cycle tests is executing Instruction execution record in the process;
Figure 11 is the test report of the payload test method and system of the present invention based on configuration cycle tests Announcement-instruction spreadability Statistical Analysis Report;
Figure 12 is the test report of the payload test method and system of the present invention based on configuration cycle tests Announcement-power-up duration Statistical Analysis Report;
Figure 13 is that the test of the payload test method and system of the present invention based on configuration cycle tests is used Example executes record.
Specific embodiment
As shown in Figure 1, the payload test method of the invention based on configuration cycle tests includes:
Step 1) reads payload and designs command information, instructs tree-like formula to carry out pipe to design command information with layering Reason, and the quick-searching and positioning function of command information are provided;
Step 2) chooses instruction from the layering instruction tree and carries out the addition of cycle tests instruction, and the test is arranged Sequence instruction attribute is based on patterned way editor payload cycle tests;
Step 3) detects the consistency of the payload cycle tests and load instruction design information;
After step 4) consistency detection passes through, the payload cycle tests is executed, and generate in the process of implementation simultaneously Export instruction sends record, execution journal list;
Step 5) designs command information and execution journal list based on the payload of cycle tests, generates payload and surveys Examination sequential covering analysis report and cycle tests execute report;
Step 6) reports payload cycle tests covering analysis, cycle tests executes report and exports as Excel text Part.
The innovative point of payload test method and system of the present invention based on configuration cycle tests includes:
1) it configuration, patterned cycle tests editor: is instructed, indirectly with the telecommand of load design, data injection Instruction is basic component, based on based on mouse drag, the sequence Editing Strategy supplemented by keyboard input, effectively reduce cycle tests volume The mistake that may be introduced is collected, intuitively shows that the sequence of cycle tests executes process, circulation execution process based on patterned way;
2) the cycle tests legitimacy detection of constraint rule based on instruction: to be constrained between load design command information, instruction The knowledge such as rule are detection foundation, potential conflict, command identification and code word and load to time for each instruction in cycle tests The compliance of constraint rule is detected between the consistency of design knowledge, instruction, avoids testing caused by cycle tests mistake Cheng Wuxiao promotes the testing efficiency of payload;
3) digitlization, the analysis of automatic test sequential covering: for the master of traditional artificial load test covering analysis The property seen problem adds the correlation rule of power operation, load operation mode, loading functionality based on load instruction, to test with equipment Sequence carries out load instruction, power-up duration plus power-off number, load operation mode, the spreadability of loading functionality and is digitized Statistics and analysis, generate the test coverage analysis report of Excel format.
Payload test macro based on configuration cycle tests of the invention mainly includes load design command information It manages automatic with quick-searching module, graphical cycle tests editor module, cycle tests legitimacy detection module, cycle tests Or it manually performs module, cycle tests covering analysis module, cycle tests and imports and exports module etc..As shown in Fig. 2, each module Functional Design is as follows:
1) the load design command information management and quick-searching module, for the load in configuration file or database Lotus design command information is read out and memory management, instructs tree-like formula to regard load command information fastly with layering, provides User interface realizes instruction quick-searching and positioning.Wherein payload design command information includes that the remote control of 1. load design refers to It enables, data injection instruction, indirect instruction information;2. constraint rule, instruction and load add power operation, function, work between instruction The information such as the correlation rule between mode.
A. command information is designed
Including command identification, instruction name, affiliated load, instruction code word, extended field, code word, still whether editable is (suitable For the instruction in code word comprising needing to be arranged parameter), by taking data injection instruction as an example schematically as follows:
1 load design command information example of table
B. constraint rule, instruction and load add power-off, function, the correlation rule between operating mode between instructing.
Including following several types:
(1) occurs instruction constraint rule in pairs: if power-up instruction must occur in pairs with cut-offing instruction, after power-up instruction There must be a cut-offing instruction, there must be power-up to instruct before cut-offing instruction, and be powered on instruction preceding, cut-offing instruction is rear;
(2) strong constraint rule: i.e. AB, which is instructed, must occur simultaneously and cannot intert other instructions close to, centre;
(3) precondition instructs constraint rule: A instruction is the precondition of B instruction, and if A is power-on instruction, B is shutdown Instruction, then shutdown command must premised on power-on instruction condition;
(4) mutual exclusion instructs constraint rule: A, cannot have B instruction between C instruction, as main part is opened, main part is closed between instruction not There can be backup to open instruction;
(5) it instructs the correlation rule with load open state: showing that the equipment enters powering state after instruction execution, use In statistics power-up number, power-up duration etc.;
(6) it instructs the correlation rule with load off-mode: showing that the equipment enters off-position after instruction execution, use In statistics power-off number, power-up duration etc.;
(7) instruction with school when operate correlation rule: when showing to have carried out primary school after instruction execution, for statistical test Number when school in sequence;
(8) instruction and equipment operating mode correlation rule: show that the load enters certain operating mode, uses after instruction execution In analysis cycle tests to the spreadability of loading device operating mode;
(9) instruction and functions of the equipments correlation rule: show that the load performs certain function after instruction execution, for analyzing Spreadability of the cycle tests to loading functionality;
C. user interface
Load design instruction is managed with layering instruction tree, quick-searching and the positioning of instruction, interface portion are provided It is as shown in Figure 3 to set up meter separately.
2) the graphical cycle tests editor module, for using load instruction as basic module, patterned way to be presented Cycle tests chooses instruction from layering instruction tree in a manner of mouse drag and carries out sequence instruction addition, it is complete to provide mouse action At the functions such as full choosing, copy, shearing, stickup, attribute setting are instructed, wherein attribute setting includes setting time for each instruction (etc. After number of seconds or when executing satellite), whether be focus instruction (the next instruction to be sent), whether suspend after instruction execution, be No is recursion instruction, cycle-index etc.;
Cycle tests Editing Principles are " based on mouse action, supplemented by keyboard operation " the edit operation packets of specific implementation It includes:
(1) sequence instruction image conversion is presented: as shown in figure 4, screen is divided into different grids, each grid places one Command module identifies different classes of instruction with different shape:
(2) sequence instruction adds: selection needs instruction to be added, right button mouse drag to sequence from sort instructions tree Instruction can be added in the sequence by screen grid position;
(3) sequence instruction duplication, paste: by mouse click selection one, multiple sequence instructions, by right-click menu into Row instruction duplication, paste operation, wherein the position pasted is screen grid when pasting where mouse;
(4) sequence instruction is deleted: being clicked selection one, multiple sequence instructions by mouse, is passed through del key or right mouse button Menu realization sequence instruction is deleted, and after instruction is deleted, subsequent instructions move forward automatically;
(5) sequence instruction attribute is arranged: as shown in figure 5, including setting time for each instruction (waiting number of seconds or executing satellite When), whether be focus instruction (the next instruction to be sent), whether suspend after instruction execution, whether be recursion instruction, circulation Number etc..
Time for each instruction includes two kinds of set-up modes: waiting time, absolute time, which provided absolute times Afterwards, whether system automatic prompt subsequent instructions will (front and back be arranged according to this instruction attributes in subsequent instructions, when execution according to rule Between in advance or the duration delayed is increased and decreased) be adjusted correspondingly;
Recursion instruction: certain instruction can be set to circulation sign on, and the number that circulation executes is set;It can also be with Circulation END instruction is set by certain instruction;All instructions between circulation sign on and circulation END instruction, which will be repeated, to be held Row;
Suspend after execution: after attribute setting, after this instruction execution, the process executed automatically will be suspended;
Be set as focus instruction: after attribute setting, when automatic execution or single step execute, system will be since the instruction It executes.
3) the cycle tests consistency detection module is right for carrying out before cycle tests is automatically or manually implemented Command identification, the consistency of code word, the correctness of time for each instruction logic, instruction in command identification, code word and database table Between the compliance of constraint rule checked, the instruction not being inconsistent normally is prompted;
The rule of consistency detection includes:
The detection of satellite time code legitimacy: setting " logic testing time " variable, it is every to execute an instruction, the variable-value It is adjusted correspondingly.If go to certain instruction, the absolute satellite time of the instruction execution is less than " logic testing time ", then Illustrate that instruction execution opportunity is already expired, the preset instruction execution satellite time code of the instruction is illegal in cycle tests, and detection is calculated Method is as shown in Figure 6;
Consistency detection in edit instruction and database table: the detection be in order to prevent instruct edit during, Database table content is changed or cycle tests editor and after storing, and database table content is become again Change, the command identification of current test sequence file is caused to can not find in the database, instruct code word inconsistent etc.;Single focus refers to It enables as shown in Figure 7 with the consistency detection process of database table content;
Circulation bulk structural integrity inspection: when circulation executes instruction, instruction, the instruction of circulation end for recycling beginning are necessary Occur in pairs;Notice that institute's application method does not support that loop body as shown in Figure 8 is nested;
Occur instruction constraint rule detection in pairs: such as device power-up instruction must occur in pairs with shutdown command;
Strong constraint rule detection: detection must occur simultaneously and must close to, intermediate cannot intert other instructions Rule;Before the rule is generally used to check that certain instruction is sent, it is necessary to the case where carrying out another operation, as load controller is standby Before part booting, it is necessary to there is a load controller to cut standby instruction;
Precondition instructs constraint rule detection: i.e. before the instruction of a certain item is sent, it is necessary to have another instruction, but two There can be other instructions between item instruction;
Mutual exclusion instruction constraint rule detection: A, cannot have B instruction between C instruction, as main part is opened, main part is closed between instruction not There can be backup to open instruction.
4) module is automatically or manually implemented in the cycle tests, as shown in figure 9, for holding according to the instruction of each instruction setting Row time, sequence or the automatic execution cycle tests of circulation, or executed with manual form, only in a upper instruction execution After success, next instruction can be just continued to execute;
As shown in Figure 10 (a), in execution process instruction, the state that main viewing area idsplay order executes, wherein highlighted back The instruction of scape is focus instruction, is the subsequent time instruction to be sent.The state of instruction include it is ready, send successfully, execute at Function sends failure, executes failure, and different conditions carry out the display of text and background in the lowermost part of instruction box;
As shown in Figure 10 (b), the case where log list in execution process instruction, display present instruction is sent;
As shown in Figure 10 (c), in execution process instruction, instruction sends record and can show the transmission of each instruction, hold Market condition.
5) the test coverage analysis module, including cycle tests instruct, indirectly load telecommand, data injection The covering analysis of instruction reports that load adds power-off number, power-up duration, loading functionality and operating mode covering analysis to report Deng;
Cycle tests reports the covering analysis of load telecommand, data injection instruction, indirect instruction, such as Figure 11 institute Show;Load adds power-off number and adds the covering analysis report of power-off duration, as shown in figure 12.
6) cycle tests imports and exports module, for by cycle tests and its executing report and exporting as Excel text Part, every executes the information for including in report and includes: command identification, code word, sending time, sends result, implementing result, prediction As a result, measured result etc.;Also reversely cycle tests can be read into system, to the conjunction of test sequence file in importing process Method is detected;
As shown in figure 13, cycle tests can be executed to report and export as Excel file, include in every instruction report Information includes: command identification, code word, sending time, transmission result, implementing result, prediction result, measured result etc..
The method of the invention has been successfully applied to the goddess in the moon No. four, first Chinese mars exploration mission payload ground In integrated test system task, No. four rovers of the goddess in the moon, 2 detectors of lander, first Chinese mars exploration task are completed Around device, 2 device of landing rover, including panorama camera, topography and geomorphology camera, intermediate-resolution camera, high resolution camera etc. 20 More than payload each stage subsystem integration test task.
During task execution, the system that tester realizes by the method for the invention can be quick, efficient, quasi- The editor of true completion cycle tests, effectively prevents causing cycle tests mistake due to manually slipping, and then cause to test It is tested caused by Cheng Wuxiao repeatedly, significantly improves the testing efficiency of payload;Digitize the covering of payload cycle tests Property analysis method, complete instruction execution record, instruction execution statistics, load power-up duration statistics, load power-up can be provided The objective statisticals information such as number statistics are powered off, are load user, load is overall, satellite is overall etc. grasps test process comprehensively to load The level of coverage of lotus design provides detailed foundation.
Editing Strategy based on mouse action, supplemented by keyboard input, the cycle tests based on load model information are legal Property detection method, effectively ensure the correctness of test sequence file, be promoted load test efficiency the main reason for;Meanwhile The cycle tests covering analysis method for adding the correlation rule of power-off, operating mode, function to realize with load based on instruction, it is ensured that Test coverage analysis report objective output.
It should be noted last that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting.Although ginseng It is described the invention in detail according to embodiment, those skilled in the art should understand that, to technical side of the invention Case is modified or replaced equivalently, and without departure from the spirit and scope of technical solution of the present invention, should all be covered in the present invention Scope of the claims in.

Claims (10)

1. a kind of payload test method based on configuration cycle tests, payload applied to space exploration task In the integrated test system of face, which comprises
Step 1) reads payload and designs command information, instructs tree-like formula to be managed design command information with layering, mentions Quick-searching and positioning for command information;
Step 2) chooses the addition that instruction carries out cycle tests instruction from the layering instruction tree, carries out figure to the instruction of addition Shapeization editor, generates payload cycle tests;
Step 3) detects the consistency of the payload cycle tests and load design command information;
After step 4) consistency detection passes through, the payload cycle tests is executed, is generated in cycle tests implementation procedure Instruction sends record and execution journal list, eventually forms test coverage analysis report, cycle tests executes report.
2. the payload test method according to claim 1 based on configuration cycle tests, which is characterized in that described Step 1) specifically includes:
Step 1-1) payload design command information is read from configuration file or database and carries out memory management;It is described to have Effect load design command information includes constraining rule between payload telecommand, data injection instruction, indirect instruction and instruction Then, instruction and load add the correlation rule between power-off, function and operating mode;
Step 1-2) command information is managed with layering instruction tree-like formula;
Step 1-3) quick-searching is carried out to command information and is positioned, in command information retrieving, inputted in information input frame While retrieving content, layering instruction tree progress matching instruction node is highlighted, non-matching instruction node is hidden.
3. the payload test method according to claim 2 based on configuration cycle tests, which is characterized in that described Step 1-1) instruction between constraint rule, instruction and load add the correlation rule between power-off, function and operating mode to include: into Constraint rule, mutual exclusion instruction constraint rule, instruction are instructed to there is instruction constraint rule, strong constraint rule, precondition With when the correlation rule of load open state, the correlation rule of instruction and load off-mode, instruction and school operate correlation rule, Instruction and equipment operating mode correlation rule, instruction and functions of the equipments correlation rule.
4. the payload test method according to claim 1 based on configuration cycle tests, which is characterized in that described Step 2) specifically includes:
Step 2-1) the main viewing area of cycle tests is divided into different grids, each grid places a command module, with difference The classification of the pattern identification command module of shape;
Step 2-2) instruction being layered in instruction tree is selected, it is added in the cycle tests;
Step 2-3) in the cycle tests editor is patterned to the instruction of addition, duplication including instruction is pasted, is deleted Except being arranged with instruction attributes, whether the setting of described instruction attribute includes setting time for each instruction, is focus instruction, instruction execution Whether suspend afterwards, whether be recursion instruction, cycle-index;Generate payload cycle tests.
5. the payload test method according to claim 1 based on configuration cycle tests, which is characterized in that described Step 3) specifically includes:
The legitimacy for detecting the preset time code that all instructions executes in the payload cycle tests is super to preset time code It is preceding in the logic testing time, i.e., may miss the instruction on execution opportunity in test and be prompted;
The consistency for designing command information in the instruction and database table of the payload cycle tests is detected, instruction is marked Know, the instruction that instruction code word is inconsistent with database table content is prompted;
The circulation bulk structural integrity of the payload cycle tests is detected, i.e. circulation imperfect to loop body structure starts to refer to Phenomena such as not occurring in pairs with circulation END instruction, is nested there are loop body is enabled to be prompted;
The payload cycle tests is detected to the pairs of compliance for instruction constraint rule occur, is occurred about to not meeting in pairs The instruction of beam rule is prompted;
Constraint rule must be instructed close to A is sent before the payload cycle tests sends strong condition i.e. B instruction by detecting Compliance, the instruction for not meeting strong constraint rule is prompted;
A instruction constraint rule must be sent by detecting before the payload cycle tests sends precondition i.e. B instruction Compliance prompts the instruction for not meeting precondition constraint rule;
Detect the payload cycle tests to mutual exclusion condition i.e. A, B instruction between cannot send C instruction constraint rule according to From property, the instruction for not meeting mutual exclusion constraint rule is prompted.
6. the payload test method according to claim 1 based on configuration cycle tests, which is characterized in that described Step 4) specifically includes:
Step 4-1) judge whether the payload cycle tests and the consistency detection of load design command information all lead to It crosses;If all by thening follow the steps 4-2), no to then follow the steps 2-3);
Step 4-2) execute cycle tests;
Step 4-3) idsplay order sends information, instruction execution state during executing cycle tests, generate execution journal column Table, described instruction state include it is ready, send successfully, run succeeded, send failure and execute failure;
Step 4-4) the payload design command information and execution journal list based on cycle tests, cycle tests is generated to load Lotus telecommand, data injection instruction, the covering analysis report of indirect instruction, load add power-off number plus power-off duration, carry Lotus function and operating mode covering analysis are reported and cycle tests executes report.
7. the payload test method according to claim 6 based on configuration cycle tests, which is characterized in that described Step 4-2) it include: according to each time for each instruction sequence for instructing setting or circulation automatic performance mode and to manually perform test Sequence pattern.
8. the payload test method according to claim 1 based on configuration cycle tests, which is characterized in that described Method further include:
Cycle tests is executed report and exports as Excel file by step 5);The test sequence executes the packet for including in report Include: command identification, sending time, sends result, implementing result, prediction result and measured result at code word.
9. the payload test method according to claim 1 based on configuration cycle tests, the step 2) may be used also Include:
Step 2-a) it imports and has edited cycle tests, the legitimacy for having edited cycle tests is detected;Include:
The legitimacy for detecting the preset time code that all instructions executes in the cycle tests, is ahead of logic to preset time code Testing time may miss the instruction on execution opportunity in test and be prompted;With
Design command information consistency in the instruction and database table of the cycle tests is detected, to command identification, instruction code word Inconsistent instruction is prompted with database table content;With
Detect the circulation bulk structural integrity of the cycle tests, i.e. circulation sign on imperfect to loop body structure and circulation END instruction do not occur in pairs, to there is a problem of loop body nested prompt;With
The cycle tests is detected to the pairs of compliance for instruction constraint rule occur, occurs constraint rule in pairs to not meeting Instruction is prompted;With
The compliance that must instruct constraint rule before the cycle tests sends strong condition i.e. B instruction close to transmission A is detected, The instruction for not meeting strong constraint rule is prompted;With
The compliance that A instruction constraint rule must be sent before the cycle tests sends precondition i.e. B instruction is detected, it is right The instruction for not meeting precondition constraint rule is prompted;With
Detect the cycle tests to mutual exclusion condition i.e. A, B instruction between cannot send C instruction constraint rule compliance, it is right The instruction for not meeting mutual exclusion constraint rule is prompted;
Step 2-b), editor is patterned to the instruction in the cycle tests detected by legitimacy, payload is generated and surveys Try sequence.
10. a kind of payload test macro based on configuration cycle tests, including memory, processor and it is stored in storage Computer program that is on device and can running on a processor, which is characterized in that the processor is realized when executing described program The step of one of claim 1~9 the method.
CN201910152078.8A 2019-02-28 2019-02-28 Payload testing method and system based on configuration testing sequence Active CN109902013B (en)

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 true CN109902013A (en) 2019-06-18
CN109902013B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581093A (en) * 2020-05-08 2020-08-25 中国银行股份有限公司 Test record list generation method, device, equipment and medium
CN113110308A (en) * 2021-02-25 2021-07-13 北京空间飞行器总体设计部 Lunar surface sampling three-in-one flight control cooperative work flow optimization method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679856A (en) * 2015-02-15 2015-06-03 北京空间飞行器总体设计部 Combination rule constraint-based spacecraft test data extracting method
CN106201873A (en) * 2016-07-01 2016-12-07 网易(杭州)网络有限公司 The treating method and apparatus of test script
CN107391366A (en) * 2017-07-07 2017-11-24 华为技术有限公司 The generation method and execution method and apparatus of a kind of test case
US20180322032A1 (en) * 2017-05-04 2018-11-08 Microsoft Technology Licensing, Llc App software audience impersonation for software testing
CN108776278A (en) * 2018-07-05 2018-11-09 国网湖北省电力有限公司电力科学研究院 A kind of the configuration type relay protection test system and method for topological correlation
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN109088668A (en) * 2018-06-28 2018-12-25 上海卫星工程研究所 Total state Visual Dynamic satellite test system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679856A (en) * 2015-02-15 2015-06-03 北京空间飞行器总体设计部 Combination rule constraint-based spacecraft test data extracting method
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
US20180322032A1 (en) * 2017-05-04 2018-11-08 Microsoft Technology Licensing, Llc App software audience impersonation for software testing
CN107391366A (en) * 2017-07-07 2017-11-24 华为技术有限公司 The generation method and execution method and apparatus of a kind of test case
CN109088668A (en) * 2018-06-28 2018-12-25 上海卫星工程研究所 Total state Visual Dynamic satellite test system and method
CN108776278A (en) * 2018-07-05 2018-11-09 国网湖北省电力有限公司电力科学研究院 A kind of the configuration type relay protection test system and method for topological correlation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李永科 等: ""一种基于组态技术实现的通用自动测试系统"", 《计算机测量与控制》 *
杨甲森 等: ""中国首次火星探测任务有效载荷地面综合测试系统设计"", 《深空探测学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581093A (en) * 2020-05-08 2020-08-25 中国银行股份有限公司 Test record list generation method, device, equipment and medium
CN111581093B (en) * 2020-05-08 2023-09-19 中国银行股份有限公司 Method, device, equipment and medium for generating test record list
CN113110308A (en) * 2021-02-25 2021-07-13 北京空间飞行器总体设计部 Lunar surface sampling three-in-one flight control cooperative work flow optimization method

Also Published As

Publication number Publication date
CN109902013B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
US8826084B1 (en) Method and system for implementing automated test and retest procedures
CN107844424B (en) Model-based testing system and method
CN109739755B (en) Fuzzy test system based on program tracking and mixed execution
US8402434B2 (en) Graphical user interface (GUI) script generation and documentation
CN102141962B (en) Safety distributed test framework system and test method thereof
CN104615541B (en) Emulation testing modeling and method based on flow chart
CN105717390B (en) A kind of intelligent substation test platform and test method based on cloud platform
CN109902013A (en) A kind of payload test method and system based on configuration cycle tests
CN103176894B (en) A kind of test data automatic derivatization method and apparatus of data base-oriented
CN107678973A (en) The automatic generation method and system of a kind of test script
CN111999579B (en) Automatic detection system and method for charging pile
CN106802928A (en) Power network historical data management method and its system
CN105975390A (en) Complex test scene-based test data recovery method
Zhang et al. A restricted natural language based use case modeling methodology for real-time systems
CN114297961A (en) Chip test case processing method and related device
Chai et al. A software defect management system based on knowledge base
Yichen et al. Modeling embedded software test requirement based on MARTE
CN112445391B (en) Service data generation method, device and computer readable storage medium
Lock et al. Tool support for requirement level change management and impact analysis
Alfonsi et al. Dynamic Event Tree advancements and control logic improvements
CN113688029B (en) Automatic metamorphic testing method for mobile platform
Gonzalez et al. Distributed analysis jobs with the ATLAS production system
Choi Technical maturity assessment of risk-informed safety analysis tools
Frank et al. Towards Continuous and Data-driven Specification and Verification of Resilience Scenarios
Ehlers et al. ALICE Overwatch: Online monitoring and data quality assurance using HLT data

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