CN102722437B - A kind of spacecraft-testing system based on assembly and script and method of testing - Google Patents

A kind of spacecraft-testing system based on assembly and script and method of testing Download PDF

Info

Publication number
CN102722437B
CN102722437B CN201210173850.2A CN201210173850A CN102722437B CN 102722437 B CN102722437 B CN 102722437B CN 201210173850 A CN201210173850 A CN 201210173850A CN 102722437 B CN102722437 B CN 102722437B
Authority
CN
China
Prior art keywords
test
script
test case
suite
case
Prior art date
Application number
CN201210173850.2A
Other languages
Chinese (zh)
Other versions
CN102722437A (en
Inventor
吕伟
张海祥
何晓宇
闫金栋
白少华
富小薇
王华茂
Original Assignee
北京空间飞行器总体设计部
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 北京空间飞行器总体设计部 filed Critical 北京空间飞行器总体设计部
Priority to CN201210173850.2A priority Critical patent/CN102722437B/en
Publication of CN102722437A publication Critical patent/CN102722437A/en
Application granted granted Critical
Publication of CN102722437B publication Critical patent/CN102722437B/en

Links

Abstract

The invention discloses a kind of spacecraft-testing system based on assembly and script, comprising: test case editing environment module and test case execution environment module.Described test case editing environment module comprises test suite storehouse, script function storehouse, test case graphic interface, and wherein, described test suite storehouse comprises test suite; Described script function storehouse comprises script function; Described test case graphic interface according to test case by pulling test suite, script function and/or the script placeholder described in layout; And the described test suite arranged is carried out to optimum configurations and carries out Scripting Edition to described script placeholder, form test case; Described test case execution environment module is resolved described test case, forms the executable sequence of test case; And in test process, complete test is carried out to described test case sequence.Meanwhile, also corresponding method of testing, test script combines with test suite the automatic test achieved spacecraft by the present invention.

Description

A kind of spacecraft-testing system based on assembly and script and method of testing

Technical field

The invention belongs to spacecraft-testing field, relate to a kind of spacecraft-testing system and method based on assembly and script.

Background technology

Spacecraft model needs a large amount of test jobs in development process, and automatization testing technique is widely adopted.Existing automatization testing technique can be divided into based on script with based on visualization component two kinds of modes.Script grammer is flexible, and representation function is strong, but ease for use and intuitive poor, and inconvenience is safeguarded; Visualization component simple, intuitive, can realize the test case editor of What You See Is What You Get, but the testing process that assembly comprises is solidification, and systemic-function is by the restriction of Component Gallery scale, and very flexible, not easily expands.Spacecraft-testing project is numerous, logic is complicated and changeable, a large amount of test script difficulty of editing and maintaining, and the visualization component of solidification not easily meets new testing requirement.

Automatization test system (publication number is 10184711A) discloses a kind of automatization test system supporting the different scripts that different automatized script language realizes.This system only supports the test case editor of script mode.

A kind of satellite automated test method (application number is CN201010597273.0) based on test atom discloses a kind of method of carrying out Test Sample Design based on the minimum test cell assembly of combination.By editing component attribute, test case parameters is customized, final generating test use case script sequence.In the method, the execution flow process of each atom is solidification, only can customize intraatomic parameter, lacks dirigibility.

Be decomposed into basic operation unit function by extraction test operation object by feature operation based on the automatic test script implementation method of feature operation encapsulation and device (publication number is 101141319) and set up basic operation unit function library; The basic operation unit function of same feature operation is combined, and using the parameter of all basic operation unit functions of this feature operation as the parameter of feature operation function, sets up feature operation function library; According to test case, feature operation function is carried out being combined to form the automatic test script towards test case.The method and device improve the versatility of test case script, but script not intuitively, not easy care.

A kind of satellite automated test frame system (publication number is 101216712) discloses a kind of satellite automated test frame based on instruction and criterion, its test case adopts instruction sequence to describe, the criterion separate, stored of and instruction association, has nothing to do with concrete use case.But the method can not describe complicated flow process and data process&analysis logic.

Summary of the invention

Technology of the present invention is dealt with problems and is: for the deficiencies in the prior art, and provide a kind of spacecraft-testing system based on assembly and script and method of testing, combine test script with test suite formation test case, achieves the automatic test to spacecraft.

Technical solution of the present invention is:

Spacecraft-testing system based on assembly and script of the present invention is supported in a test case and adds visual testing assembly and test script simultaneously.For conventional test logic, employing pulls assembly, the mode of editing component parameter describes; For testing requirement that is special, logic complexity, the mode of compile script is adopted to describe.Assembly, script may be combined in same test case, thus describe test case complicated and changeable.Finally, by execution environment module of the present invention, test case is automatically performed.

Described automatization test system comprises: test case editing environment module and test case execution environment module.

Described test case editing environment module comprises test suite storehouse, script function storehouse, test case graphic interface, and wherein, described test suite storehouse comprises test suite; Described script function storehouse comprises script function;

Described test case graphic interface according to test case by pulling test suite, script function and/or the script placeholder described in layout; And the described test suite arranged is carried out to optimum configurations and carries out Scripting Edition to described script placeholder, form test case;

Described test case execution environment module is resolved described test case, forms test case sequence; And in test process, complete test is carried out to described test case sequence.

Method of testing of the present invention comprises the following steps:

In test case image conversion interface, test suite, script function and/or script placeholder is arranged by pulling according to test purpose;

The logical relation adjusting described test suite, script function and/or script placeholder according to testing process forms test case framework;

The parameter of described test suite is arranged, and adds script function code formation test case at described script placeholder locations and store;

In described test case execution environment, extract described test case, and resolve to test case sequence;

Carry out described test case sequence driving the test performed spacecraft.

Further, described test suite comprises Service Component, flow component and from package assembling, and described Service Component is used for packaging and testing business; Described flow component is used for realizing branch and Row control; Describedly be packaged with one group of Service Component and/or flow component from package assembling, the multiplexing function after encapsulating can be realized.

Further, described test case execution environment module is when performing described test case sequence, by setting up each test suite of thread execution and/or script function, and providing detecting information issuing interface and test result to submit interface to for described test suite and/or script function, described test suite and script function share the global variable in test case sequence implementation.

The present invention compared with prior art tool has the following advantages:

Present invention achieves the editor realizing test case by pulling test case and script placeholder.By pulling test suite and script and carrying out permutation and combination to it, can fast construction test case framework.In test case frame foundation, further test suite and script function are edited, the accurate description to test case can be realized, thus the mode that test suite and script function can be utilized to mix describes the test case needed for spacecraft, implementation simply, fast, flexibly, and can adapt to spacecraft testing example design complicated and changeable.

Simultaneously, when performing test case, by test case execution environment, the test case be made up of test suite and script function is carried out serializing, and the test case sequence after serializing is automatically performed, in the process of implementation, unified management is carried out to test case and script function, and makes test case and script function share global variable.

Accompanying drawing explanation

Fig. 1 is schematic diagram of the present invention;

Fig. 2 is process flow diagram of the present invention.

Embodiment

Just by reference to the accompanying drawings the present invention is described further below.

As shown in Figure 1, be structure principle chart of the present invention.System is connected in satellite test network, controls front end hardware testing apparatus when test case finally performs with instruction type, and the test data that receiving equipment returns.System is divided into test case editing environment and execution environment two parts.

Use-case editing environment comprises test suite storehouse, script function storehouse, test case graphic interface, component parameter editing interface and 5, Scripting Edition interface module.Test suite storehouse provides a set of graphical, visual testing assembly that can pull, and assembly is specifically divided into Service Component, flow component and from package assembling three kinds.

Wherein, Service Component realizes encapsulating for the basic operation of spacecraft-testing business; Flow component realizes branch, circulation process controls; From package assembling by User Defined, realize the multiplexing function one group of Service Component and/or flow component encapsulated further;

Blank script is provided, from encapsulation script and script function in script function storehouse.Blank script not containing any scripted code, from encapsulation script then edited by user and preserve, reusable one section of ripe shell script.Script function storehouse be editor's test script provide abundant, towards the common mathematical function of spacecraft-testing.Test case graphic interface is shown with patterned way, supports directly to pull from test suite storehouse and script function storehouse, row portion test suite and script placeholder.Component parameter editing interface and Scripting Edition interface are respectively used to editor's test suite parameter and compile script code.Test case is stored in test case library.

Test case can be translated as script sequence from test case library reading assembly sequence by use-case execution environment, gives enforcement engine and drives and perform.According to use-case flow process during execution, perform each assembly or the good actuating logic of script interior packing respectively.The test data that equipment under test passes down shared by assembly and script.Test case execution environment module in charge manages the life cycle of each test suite and script, and provides public test process information displaying interface and test result memory interface for test suite and script.Test case is finally presented as when performing to spacecraft, uphole equipment and sends instruction, receives, processes test data, by test result stored in test result storehouse.

As shown in Figure 2, flow process of the present invention is as follows:

(1) start;

(2) in test case editing environment, test suite and script placeholder is pulled to test case graphic interface;

(3) adjust assembly and the position relationship of script placeholder in test case (unnecessary operations), form test case framework;

(4) edit test suite parameter, write test case script, complete test case parameter design and logic realization;

(5) generating test use case be saved to test case library;

(6) in test execution environments, from test case library read test use-case, test script sequence is resolved to.Script sequence is the flow process description script of whole cycle tests, does not relate to the concrete test suite of each step or the inside actuating logic of test script;

(7) by the execution of test case execution environment module drive test case sequence.When often performing a step test suite or script function, for the test suite of current procedures or script function create a new thread, perform the logic of test suite or script function inside;

(8) by performing each step test suite or the inner actuating logic of test script in flow process, read test data from test data sharing internal memory, and the global variable that access test assembly, script are shared;

(9) test suite, script call the common interface that test case execution environment module provides, and in the monitoring panel of test case execution environment module, issue respective test process information.

(10) respective execution result is submitted to test case execution environment module and shows by the common interface that test suite, script call test case execution environment module and provide.

(11) the unified test result of preserving of test case execution environment module is to test result storehouse;

(12) terminate.

The unspecified part of the present invention belongs to general knowledge as well known to those skilled in the art.

Claims (2)

1., based on a spacecraft-testing system for assembly and script, it is characterized in that comprising:
Start module;
For pulling the module of test suite and script placeholder in test case editing environment to test case graphic interface;
For adjusting test suite and the position relationship of script placeholder in test case, form the module of test case framework;
For editing test suite parameter, writing test case script, completing the module of test case parameter design and logic realization;
The module of test case library is saved to for generating test use case;
For in test case execution environment, from test case library read test use-case, resolved to the module of test script sequence, described script sequence is the flow process description script of whole cycle tests, does not relate to the concrete test suite of each step or the inside actuating logic of test script;
By the execution of test case execution environment module drive test case sequence, when often performing a step test suite or script function, for the test suite of current procedures or script function create a new thread, perform the module of test suite or script function internal logic;
By performing each step test suite or the inner actuating logic of test script in flow process, read test data from test data sharing internal memory, and the module of global variable that access test assembly and script are shared;
Test suite and script call the common interface that test case execution environment module provides, and issue the module of respective test process information in the monitoring panel of test case execution environment module;
Respective execution result is submitted to test case execution environment module and is carried out the module that shows by the common interface that test suite and script call test case execution environment module to be provided;
Test case execution environment module is unified preserves the module of test result to test result storehouse;
Terminate module.
2., based on a spacecraft-testing method for assembly and script, it is characterized in that comprising the following steps:
(1) start;
(2) in test case editing environment, test suite and script placeholder is pulled to test case graphic interface;
(3) adjust test suite and the position relationship of script placeholder in test case, form test case framework;
(4) edit test suite parameter, write test case script, complete test case parameter design and logic realization;
(5) generating test use case be saved to test case library;
(6) in test case execution environment, from test case library read test use-case, resolved to test script sequence, script sequence is the flow process description script of whole cycle tests, does not relate to the concrete test suite of each step or the inside actuating logic of test script;
(7) by the execution of test case execution environment module drive test case sequence, when often performing a step test suite or script function, for the test suite of current procedures or script function create a new thread, perform the logic of test suite or script function inside;
(8) by performing each step test suite or the inner actuating logic of test script in flow process, read test data from test data sharing internal memory, and the global variable that access test assembly and script are shared;
(9) test suite and script call the common interface that test case execution environment module provides, and in the monitoring panel of test case execution environment module, issue respective test process information;
(10) respective execution result is submitted to test case execution environment module and shows by the common interface that test suite and script call test case execution environment module and provide;
(11) the unified test result of preserving of test case execution environment module is to test result storehouse;
(12) terminate.
CN201210173850.2A 2012-05-29 2012-05-29 A kind of spacecraft-testing system based on assembly and script and method of testing CN102722437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210173850.2A CN102722437B (en) 2012-05-29 2012-05-29 A kind of spacecraft-testing system based on assembly and script and method of testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210173850.2A CN102722437B (en) 2012-05-29 2012-05-29 A kind of spacecraft-testing system based on assembly and script and method of testing

Publications (2)

Publication Number Publication Date
CN102722437A CN102722437A (en) 2012-10-10
CN102722437B true CN102722437B (en) 2015-12-16

Family

ID=46948211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210173850.2A CN102722437B (en) 2012-05-29 2012-05-29 A kind of spacecraft-testing system based on assembly and script and method of testing

Country Status (1)

Country Link
CN (1) CN102722437B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218292B (en) * 2013-03-29 2015-09-23 北京控制工程研究所 A kind of aerospace satellite-borne software Auto-Test System
CN103218451B (en) * 2013-04-27 2015-07-01 北京空间飞行器总体设计部 Automatic spacecraft test data interpreting method
CN105988815A (en) * 2015-03-04 2016-10-05 银联商务有限公司 Business process development method and system
CN106294106B (en) * 2015-05-27 2019-03-22 航天信息股份有限公司 The test method and device of Web application system
US20180357143A1 (en) * 2015-07-27 2018-12-13 Hewlett Packard Development Company, L.P. Testing computing devices
CN106569949A (en) * 2016-11-03 2017-04-19 北京奇鱼时代科技有限公司 Method and device used for executing test case
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
CN107678941A (en) * 2017-08-31 2018-02-09 深圳市小牛在线互联网信息咨询有限公司 Method and device, storage medium and the computer equipment of Application testing
CN108255702A (en) * 2017-09-21 2018-07-06 平安科技(深圳)有限公司 A kind of test case creation method, apparatus, equipment and storage medium
CN108418728B (en) * 2018-02-12 2019-02-26 北京空间技术研制试验中心 A kind of system detection method for spacecraft launching site aerial mission

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method
CN101960448A (en) * 2008-02-29 2011-01-26 惠普开发有限公司 Identification of elements of currently-executing component script

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AT411802B (en) * 2001-06-01 2004-05-25 Siemens Ag Oesterreich Method for testing software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN101960448A (en) * 2008-02-29 2011-01-26 惠普开发有限公司 Identification of elements of currently-executing component script
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method

Also Published As

Publication number Publication date
CN102722437A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
Ramachandran et al. Mayavi: 3D visualization of scientific data
US20160077811A1 (en) Graphical Development and Deployment of Parallel Floating-Point Math Functionality on a System with Heterogeneous Hardware Components
US10235265B2 (en) Sequentially constructive model of computation
CN103744467B (en) For solar cell maximum power tracing device and the control method thereof of miniature satellite power system
Conte et al. MadAnalysis 5, a user-friendly framework for collider phenomenology
US8214796B2 (en) Event firing node for asynchronously passing events from a graphical data flow program to a statechart
CN101814024B (en) Framework and tool for designing cross-platform 3D interface
EP2062175B1 (en) Hardware definition language generation for frame-based processing
US8726228B2 (en) Developing programs in a graphical specification and constraint language
CN103135976B (en) code automatic generation method and device
US8893087B2 (en) Automating functionality test cases
CN105122236A (en) Controlling application tracing using dynamic visualization
US9558099B2 (en) Staged program compilation with automated timing closure
US20120291003A1 (en) System and method for creating and using graphical object instances in a statechart environment
US8316311B2 (en) Automatically correcting problems found during programmatic analysis of a graphical program
US8146053B2 (en) Graphical programming environment with first model of computation that includes a structure supporting second model of computation
JP4827834B2 (en) Method and apparatus for modifying process control data
US7650594B2 (en) Graphical program analyzer with framework for adding user-defined tests
US20110283194A1 (en) Deploying artifacts for packaged software application in cloud computing environment
US8566782B2 (en) Generating application data editors
CN103441900A (en) Centralization cross-platform automated testing system and control method thereof
US8176479B2 (en) Case structure replacement in a data flow diagram
US8924949B2 (en) Synchronization modules for performing synchronization of programmable hardware elements
CN100351785C (en) Method for debuging embedded system and equipment
CN103034928B (en) The plug and play data platform of self-discipline dispersion and management method and application

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model