[go: up one dir, main page]

CN116303000A - A method and device for formally describing test requirements of aerospace equipment software configuration items - Google Patents

A method and device for formally describing test requirements of aerospace equipment software configuration items Download PDF

Info

Publication number
CN116303000A
CN116303000A CN202310183712.0A CN202310183712A CN116303000A CN 116303000 A CN116303000 A CN 116303000A CN 202310183712 A CN202310183712 A CN 202310183712A CN 116303000 A CN116303000 A CN 116303000A
Authority
CN
China
Prior art keywords
software
description
requirements
software configuration
test requirements
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.)
Pending
Application number
CN202310183712.0A
Other languages
Chinese (zh)
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.)
General Designing Institute of Hubei Space Technology Academy
Original Assignee
General Designing Institute of Hubei Space Technology Academy
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 General Designing Institute of Hubei Space Technology Academy filed Critical General Designing Institute of Hubei Space Technology Academy
Priority to CN202310183712.0A priority Critical patent/CN116303000A/en
Publication of CN116303000A publication Critical patent/CN116303000A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a formalized description method and a formalized description device for testing requirements of a software configuration item of spaceflight equipment, and relates to the field of testing of the software configuration item of the spaceflight equipment; based on the formalized description tool, selecting basic primitives corresponding to the testing requirements of the software configuration items to establish formalized description graphs; according to the test requirement of the software configuration item, setting the attribute of the basic graphic primitive and the attribute among the basic graphic primitives in the established formal description graphic; and generating an XML description file corresponding to the formal description graph based on the formal description graph with the setting completion. The invention can improve the analysis efficiency of the test requirements and construct favorable conditions for developing formal verification work by adopting an automatic means.

Description

一种航天装备软件配置项测试需求形式化描述方法及装置A method and device for formally describing test requirements of aerospace equipment software configuration items

技术领域technical field

本发明涉及航天装备软件配置项测试领域,具体涉及一种航天装备软件配置项测试需求形式化描述方法及装置。The invention relates to the field of testing of software configuration items of aerospace equipment, in particular to a method and device for formally describing test requirements of software configuration items of aerospace equipment.

背景技术Background technique

在航天装备软件的测试验证工作过程中,测试需求开发是至关重要的环节,是开展一切测试验证工作的基础。对软件配置项测试需求进行形式化描述,是进行测试需求开发的重要手段,通过严格的框图、箭头的属性定义,能够确保所开发的测试需求是精确、可验证和可传递的,能够避免需求描述的模糊性和二义性。通过形式化手段描述测试需求,测试人员能够发现需求不一致、不明确或不完整问题,进而通过与软件需求定义人员和软件开发人员的沟通,有效避免需求理解偏差,从而提升软件配置项测试充分性。In the process of test and verification of aerospace equipment software, the development of test requirements is a crucial link and the basis for all test and verification work. Formal description of test requirements for software configuration items is an important means of test requirements development. Through strict block diagram and attribute definition of arrows, it can ensure that the developed test requirements are accurate, verifiable and transferable, and can avoid requirements Ambiguity and ambiguity of description. By describing test requirements by formal means, testers can find inconsistent, unclear or incomplete requirements, and then communicate with software requirements definition personnel and software developers to effectively avoid deviations in understanding requirements, thereby improving the adequacy of software configuration item testing .

航天装备软件具有功能流程化的特点,通过判断关键标志状态驱动功能流程,以实现各项软件功能。做好功能测试工作,是保证航天装备软件质量的基本要求。开展航天装备软件功能测试需求分析工作,需要首先分解软件工作流程,并对关键标志变量进行识别,依据不同取值描述装备软件不同的功能流程分支,保证功能测试分支覆盖充分性。当前开展航天装备软件功能测试工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作,需求分析充分性完全依赖于软件设计文档描述的颗粒度和完整性,不利于充分发挥测试人员的工作经验。Aerospace equipment software has the characteristics of functional flow, and the functional flow is driven by judging the status of key signs to realize various software functions. Doing a good job in functional testing is the basic requirement to ensure the quality of aerospace equipment software. To carry out the requirements analysis of aerospace equipment software function testing, it is necessary to decompose the software workflow first, identify key flag variables, describe different functional process branches of equipment software according to different values, and ensure the sufficiency of functional test branch coverage. At present, in the functional testing of aerospace equipment software, the testers carry out text-based requirements analysis based on the software design documents. The adequacy of the requirements analysis depends entirely on the granularity and completeness of the software design documents, which is not conducive to giving full play to the testers’ abilities. work experience.

航天装备软件还具有安全等级高、接口结构复杂等特点,其接口关系是实现航天装备软件各项功能的基础结构。做好接口测试工作,是提高航天装备软件质量的重要环节。开展航天装备软件接口测试需求分析工作,需要对被测软件所在系统的接口关系、被测软件自身的接口关系以及各接口之间传递的消息进行分析建模。当前开展航天装备软件接口测试工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作,且多局限于单一被测软件,缺乏对系统接口匹配性和接口需求分析结果正确性的检验能力。Aerospace equipment software also has the characteristics of high security level and complex interface structure, and its interface relationship is the basic structure for realizing various functions of aerospace equipment software. Doing a good job in interface testing is an important part of improving the quality of aerospace equipment software. To carry out the requirement analysis of aerospace equipment software interface testing, it is necessary to analyze and model the interface relationship of the system where the tested software is located, the interface relationship of the tested software itself, and the messages transmitted between the interfaces. At present, the software interface testing work of aerospace equipment is carried out by testers based on the software design documents to carry out textual requirement analysis work, and most of them are limited to a single software under test, lacking the ability to test the matching of system interfaces and the correctness of interface requirement analysis results .

航天装备软件业务工作流程还具有严格的时序特性,不同的时序指令对应了不同的硬件动作,进而驱动执行机构改变航天器受力,以实现满足各种业务流程要求的物理运动。在航天装备软件业务工作流程中,时序指令的发出具有严格的判断条件和相互关系。未满足条件的情况下发出时序指令,或者发出的多个时序指令之间相互关系错乱,均可能损坏硬件,进而导致任务失败。因此,开展航天装备软件时序测试工作,是保障航天装备软件正确实现各项既定功能、完成业务流程的基本要求。开展航天装备软件时序测试需求分析工作,需要首先明确航天装备软件都有哪些时序指令要求,继而对发出各时序指令的判断条件进行识别,并进一步描述不同业务流程下发出各时序指令的判断条件及时序指令间的相互关系,保证需求分析的充分性。当前开展航天装备软件时序测试需求分析工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作,而软件设计文档对时序测试需求的描述颗粒度通常较粗,可能造成测试需求分解不充分,不利于充分发挥测试人员的工作经验。The aerospace equipment software business workflow also has strict timing characteristics. Different timing instructions correspond to different hardware actions, and then drive the actuator to change the force on the spacecraft to achieve physical motion that meets the requirements of various business processes. In the business workflow of aerospace equipment software, the issuance of timing instructions has strict judgment conditions and interrelationships. Issuing timing instructions when the conditions are not met, or issuing multiple timing instructions out of order may damage the hardware and cause the task to fail. Therefore, carrying out the timing test of aerospace equipment software is the basic requirement to ensure that the aerospace equipment software correctly realizes various established functions and completes business processes. To carry out the analysis of timing test requirements for aerospace equipment software, it is necessary to first clarify the timing instruction requirements of aerospace equipment software, and then identify the judgment conditions for issuing timing instructions, and further describe the judgment conditions for issuing timing instructions under different business processes. Interrelationships between program instructions ensure the adequacy of requirements analysis. At present, the software timing test requirements analysis of aerospace equipment is carried out by the testers according to the software design documents to carry out text itemized requirements analysis work, and the description granularity of the timing test requirements in the software design documents is usually coarse, which may result in insufficient decomposition of test requirements , It is not conducive to give full play to the working experience of the testers.

航天装备软件通常还与硬件联系较为紧密。硬件状态,如开关状态、电气特性等,作为航天装备软件的输入数据,会影响到软件控制逻辑的决策结果。其中,与软件相关的各种硬件状态的组合,构成了软件运行状态剖面。在航天装备软件开展业务工作的流程中,基于不同的运行状态剖面,会产生不同的决策结果。这些决策结果将通常决定航天装备软件进入某一个重大的控制流程分支,具有顶层决策特点。因此,开展航天装备软件状态剖面决策需求测试工作,是保障航天装备正确实现各项既定功能、完成业务流程的基本要求。开展航天装备软件状态剖面决策需求分析工作,需要首先明确航天装备软件都有哪些关联的硬件状态,继而对各种硬件状态的软件特征进行识别,并进一步描述不同业务流程下基于状态剖面的决策结果,保证需求分析的充分性。当前开展航天装备软件状态剖面决策需求分析工作,均由测试人员依据系统设计文档开展文字条目化需求分析工作,而系统设计文档对软件状态剖面决策需求的描述颗粒度通常较粗,可能造成测试需求分解不充分,不利于充分发挥测试人员的工作经验。Space equipment software is usually closely related to hardware. Hardware status, such as switch status, electrical characteristics, etc., as the input data of aerospace equipment software, will affect the decision-making results of software control logic. Among them, the combination of various hardware states related to the software constitutes the software running state profile. In the business process of aerospace equipment software, different decision-making results will be produced based on different operating state profiles. These decision results will usually determine that aerospace equipment software enters a certain major control flow branch, which has the characteristics of top-level decision-making. Therefore, carrying out the software state profile decision-making requirements test of aerospace equipment is the basic requirement to ensure that aerospace equipment correctly realizes various established functions and completes business processes. To carry out the requirement analysis of aerospace equipment software state profiles, it is necessary to first clarify the associated hardware states of aerospace equipment software, and then identify the software characteristics of various hardware states, and further describe the decision results based on state profiles under different business processes , to ensure the adequacy of the requirements analysis. At present, the software state profile decision-making requirements analysis work of aerospace equipment is carried out by testers according to the system design documents to carry out the text-entry requirement analysis work, and the system design documents usually describe the decision-making requirements of the software state profile with coarse granularity, which may cause test requirements. Insufficient decomposition is not conducive to giving full play to the work experience of testers.

发明内容Contents of the invention

针对现有技术中存在的缺陷,本发明的目的在于提供一种航天装备软件配置项测试需求形式化描述方法及装置,能够提高测试需求分析效率,为采用自动化手段开展形式化验证工作构造有利条件。In view of the defects existing in the prior art, the object of the present invention is to provide a method and device for formally describing test requirements of aerospace equipment software configuration items, which can improve the efficiency of test requirement analysis and construct favorable conditions for the use of automated means to carry out formal verification work .

为达到以上目的,本发明提供的一种航天装备软件配置项测试需求形式化描述方法,具体包括以下步骤:In order to achieve the above purpose, the present invention provides a method for formally describing test requirements of aerospace equipment software configuration items, which specifically includes the following steps:

创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于软件配置项测试需求的类型,选择待建立的形式化描述图形的类型;Create a formal description tool for formal description of software configuration item test requirements, and select the type of formal description graphics to be established based on the type of software configuration item test requirements;

基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形;Based on the formal description tool, select the basic graphic elements corresponding to the test requirements of the software configuration items to establish a formal description graph;

根据软件配置项测试需求,对建立的形式化描述图形中基本图元自身的属性以及基本图元间的属性进行设置;According to the test requirements of software configuration items, set the attributes of the basic primitives in the established formal description graphics and the attributes between basic primitives;

基于设置完成的形式化描述图形,生成与形式化描述图形对应的XML描述文件。Based on the completed formalized description graph, an XML description file corresponding to the formalized description graph is generated.

在上述技术方案的基础上,所述软件配置项测试需求的类型包括软件功能测试需求、软件接口测试需求、软件时序测试需求和软件状态剖面决策需求。On the basis of the above technical solution, the types of test requirements for the software configuration items include software function test requirements, software interface test requirements, software timing test requirements and software state profile decision requirements.

在上述技术方案的基础上,On the basis of the above technical solutions,

当软件配置项测试需求的类型为软件功能测试需求时,选择的待建立形式化描述图形为流程图;When the type of software configuration item test requirement is software function test requirement, the selected formalized description graph to be established is a flow chart;

当软件配置项测试需求的类型为软件接口测试需求时,选择的待建立形式化描述图形为接口图;When the type of software configuration item test requirements is software interface test requirements, the selected formalized description graphics to be established are interface diagrams;

当软件配置项测试需求的类型为软件时序测试需求时,选择的待建立形式化描述图形为鱼骨图;When the type of software configuration item test requirements is software timing test requirements, the selected formal description graph to be established is a fishbone diagram;

当软件配置项测试需求的类型为软件状态剖面决策需求时,选择的待建立形式化描述图形为决策矩阵。When the type of software configuration item test requirements is software state profile decision requirements, the selected formal description graph to be established is a decision matrix.

在上述技术方案的基础上,On the basis of the above technical solutions,

所述基本图元自身的属性包括图元名称和描述文字;The attributes of the basic primitives themselves include primitive names and descriptive text;

当软件配置项测试需求的类型为软件功能测试需求时,所述基本图元间的属性包括流程途径和判断条件;When the type of software configuration item test requirements is software function test requirements, the attributes between the basic graphic elements include flow paths and judgment conditions;

当软件配置项测试需求的类型为软件接口测试需求时,所述基本图元间的属性包括接口类型和通讯协议;When the type of the software configuration item test requirement is a software interface test requirement, the attributes between the basic graphic elements include interface type and communication protocol;

当软件配置项测试需求的类型为软件时序测试需求时,所述基本图元间的属性包括时序鱼骨和时序描述条件;When the type of software configuration item test requirements is software timing test requirements, the attributes between the basic graphic elements include timing fishbone and timing description conditions;

当软件配置项测试需求的类型为软件状态剖面决策需求时,所述基本图元间的属性包括决策条件和决策结果。When the type of the software configuration item test requirement is a software state profile decision requirement, the attributes between the basic graphic elements include a decision condition and a decision result.

在上述技术方案的基础上,所述基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形,具体步骤包括:On the basis of the above technical solution, the formal description tool is used to select the basic graphic elements corresponding to the test requirements of the software configuration items to establish a formal description graphic, and the specific steps include:

在形式化描述工具中,从工具栏向画布上拖入对应软件配置项测试需求的基本图元,以建立形式化描述图形。In the formal description tool, drag the basic graphic elements corresponding to the test requirements of the software configuration items from the toolbar to the canvas to create a formal description graph.

在上述技术方案的基础上,对于软件功能测试需求,业务流程描述要素包括功能模块、数据流向、控制流程和判断结构,且业务流程描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。On the basis of the above technical solutions, for software function testing requirements, business process description elements include functional modules, data flow direction, control process and judgment structure, and the business process description elements are in the form of dragging and dropping basic graphic elements and configuring basic graphic element attributes described in a manner.

在上述技术方案的基础上,对于软件接口测试需求,接口之间传递的消息内容包括消息传输来源、消息传输目的、消息名称、消息ID和消息传输总线属性信息,且消息内容通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。On the basis of the above technical solution, for the software interface testing requirements, the message content transmitted between the interfaces includes message transmission source, message transmission purpose, message name, message ID and message transmission bus attribute information, and the message content can be obtained by dragging the basic diagram A formal way of describing primitives and configuring basic primitive properties.

在上述技术方案的基础上,对于软件时序测试需求,时序描述要素包括业务流程主轴、时序指令因素、时序指令发送判断条件和时序指令相互关系描述,且时序描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。On the basis of the above technical solutions, for the requirements of software timing testing, timing description elements include business process main axis, timing instruction factors, timing instruction sending judgment conditions, and timing instruction interrelationship description, and timing description elements can be configured by dragging and dropping basic graphics elements and Describe the properties of basic primitives in a formal way.

在上述技术方案的基础上,对于软件状态剖面决策需求,状态剖面决策描述要素包括决策需求名称、软件运行状态、业务流程和决策结果,且状态剖面决策描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。On the basis of the above technical solutions, for the software state profile decision-making requirements, the state profile decision-making description elements include the decision-making requirement name, software running status, business process and decision results, and the state profile decision-making description elements A formalized way to describe the properties of primitives.

本发明提供的一种航天装备软件配置项测试需求形式化描述装置,包括:A device for formally describing testing requirements of aerospace equipment software configuration items provided by the present invention includes:

创建模块,其用于创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于软件配置项测试需求的类型,选择待建立的形式化描述图形的类型;Create a module, which is used to create a formal description tool for formal description of software configuration item test requirements, and select the type of formal description graphics to be established based on the type of software configuration item test requirements;

选择模块,其用于基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形;A selection module, which is used to select the basic graphic elements corresponding to the test requirements of the software configuration item based on the formal description tool, so as to establish a formal description graph;

设置模块,其用于根据软件配置项测试需求,对建立的形式化描述图形中基本图元自身的属性以及基本图元间的属性进行设置;A setting module, which is used to set the attributes of the basic primitives in the established formal description graphics and the attributes between the basic primitives according to the testing requirements of the software configuration items;

生成模块,其用于基于设置完成的形式化描述图形,生成与形式化描述图形对应的XML描述文件。The generating module is used for generating an XML description file corresponding to the formalized description graph based on the completed formalized description graph.

与现有技术相比,本发明的优点在于:通过创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于创建的形式化描述工具,使用拖拽图形化模块和配置业务属性方式构建航天装备软件功能流程控制模型,保证检验功能测试需求完整性;使用拖拽图形化模块和配置业务属性方式构建航天装备软件所属系统及其自身接口模型,保证检验接口测试需求一致性;使用拖拽图形化模块和配置业务属性方式构建航天装备软件时序测试需求模型,描述航天装备软件在不同业务流程下各时序指令的判断条件和相互关系,检验时序测试需求完整性;使用拖拽图形化模块和配置业务属性方式构建航天装备软件状态剖面决策需求模型,描述航天装备软件在不同业务流程下基于状态剖面的决策结果,检验状态剖面决策需求完整性。本发明能够提高测试需求分析效率,为采用自动化手段开展形式化验证工作构造有利条件。Compared with the prior art, the present invention has the advantages of: by creating a formal description tool for formally describing the test requirements of software configuration items, and based on the created formal description tool, using drag-and-drop graphical modules and configuration Construct the functional process control model of aerospace equipment software in the way of business attributes to ensure the integrity of inspection function test requirements; use drag-and-drop graphical modules and configure business attributes to build the system of aerospace equipment software and its own interface model to ensure the consistency of inspection interface test requirements ;Using drag-and-drop graphical modules and configuring business attributes to build a timing test requirement model for aerospace equipment software, describe the judgment conditions and interrelationships of each timing instruction of aerospace equipment software under different business processes, and verify the integrity of timing testing requirements; use drag-and-drop Graphical modules and configuration business attributes are used to build a state profile decision-making demand model for aerospace equipment software, describe the decision results of aerospace equipment software based on state profiles under different business processes, and verify the completeness of state profile decision requirements. The invention can improve the efficiency of test requirement analysis and construct favorable conditions for adopting automatic means to carry out formalized verification work.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例中一种航天装备软件配置项测试需求形式化描述方法的流程图。Fig. 1 is a flow chart of a method for formally describing testing requirements of aerospace equipment software configuration items in an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供一种航天装备软件配置项测试需求形式化描述方法,通过创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于创建的形式化描述工具,使用拖拽图形化模块和配置业务属性方式构建航天装备软件功能流程控制模型,保证检验功能测试需求完整性;使用拖拽图形化模块和配置业务属性方式构建航天装备软件所属系统及其自身接口模型,保证检验接口测试需求一致性;使用拖拽图形化模块和配置业务属性方式构建航天装备软件时序测试需求模型,描述航天装备软件在不同业务流程下各时序指令的判断条件和相互关系,检验时序测试需求完整性;使用拖拽图形化模块和配置业务属性方式构建航天装备软件状态剖面决策需求模型,描述航天装备软件在不同业务流程下基于状态剖面的决策结果,检验状态剖面决策需求完整性。本发明能够提高测试需求分析效率,为采用自动化手段开展形式化验证工作构造有利条件。本发明实施例相应地还提供了一种航天装备软件配置项测试需求形式化描述装置。An embodiment of the present invention provides a method for formally describing the test requirements of aerospace equipment software configuration items. By creating a formal description tool for formally describing the test requirements of software configuration items, and based on the created formal description tool, use drag-and-drop Drag and drop graphical modules and configure business attributes to build a functional process control model of aerospace equipment software to ensure the integrity of the inspection function test requirements; use drag and drop graphical modules and configure business attributes to build aerospace equipment software systems and their own interface models to ensure Check the consistency of interface test requirements; use drag-and-drop graphical modules and configure business attributes to build a timing test requirement model for aerospace equipment software, describe the judgment conditions and interrelationships of timing instructions for aerospace equipment software under different business processes, and verify timing test requirements Integrity: Use drag-and-drop graphical modules and configure business attributes to build a decision-making demand model for the state profile of aerospace equipment software, describe the decision-making results of space equipment software based on the state profile under different business processes, and verify the integrity of the decision-making requirements of the state profile. The invention can improve the efficiency of test requirement analysis and construct favorable conditions for adopting automatic means to carry out formalized verification work. Correspondingly, the embodiment of the present invention also provides a device for formally describing test requirements of aerospace equipment software configuration items.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all of them.

参见图1所示,本发明实施例提供一种航天装备软件配置项测试需求形式化描述方法,具体包括以下步骤:Referring to Fig. 1, an embodiment of the present invention provides a method for formally describing test requirements of aerospace equipment software configuration items, which specifically includes the following steps:

S1:创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于软件配置项测试需求的类型,选择待建立的形式化描述图形的类型;S1: Create a formal description tool for formal description of software configuration item test requirements, and select the type of formal description graphics to be established based on the type of software configuration item test requirements;

本发明中,软件配置项测试需求的类型包括软件功能测试需求、软件接口测试需求、软件时序测试需求和软件状态剖面决策需求。当软件配置项测试需求的类型为软件功能测试需求时,选择的待建立形式化描述图形为流程图;当软件配置项测试需求的类型为软件接口测试需求时,选择的待建立形式化描述图形为接口图;当软件配置项测试需求的类型为软件时序测试需求时,选择的待建立形式化描述图形为鱼骨图;当软件配置项测试需求的类型为软件状态剖面决策需求时,选择的待建立形式化描述图形为决策矩阵。In the present invention, the types of software configuration item test requirements include software function test requirements, software interface test requirements, software timing test requirements and software state profile decision requirements. When the type of software configuration item test requirement is software function test requirement, the selected formalized description graph to be established is a flow chart; when the type of software configuration item test requirement is software interface test requirement, the selected formalized description graph to be established is is an interface diagram; when the type of software configuration item test requirement is software timing test requirement, the selected formalized description graph to be established is a fishbone diagram; when the type of software configuration item test requirement is software state profile decision requirement, the selected The formal description graph to be established is a decision matrix.

S2:基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形;S2: Based on the formal description tool, select the basic graphic elements corresponding to the test requirements of the software configuration items to establish a formal description graph;

本发明中,基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形,具体步骤包括:在形式化描述工具中,从工具栏向画布上拖入对应软件配置项测试需求的基本图元,以建立形式化描述图形。In the present invention, based on the formal description tool, select the basic graphic elements corresponding to the test requirements of the software configuration items to establish a formal description graphic. The specific steps include: in the formal description tool, drag the corresponding software from the toolbar to the canvas The basic graphic elements of configuration item test requirements to establish a formal description graph.

S3:根据软件配置项测试需求,对建立的形式化描述图形中基本图元自身的属性以及基本图元间的属性进行设置;S3: According to the test requirements of software configuration items, set the attributes of the basic primitives in the established formal description graphics and the attributes between basic primitives;

本发明中,基本图元自身的属性包括图元名称和描述文字;In the present invention, the attributes of the basic primitive itself include the name of the primitive and description text;

当软件配置项测试需求的类型为软件功能测试需求时,所述基本图元间的属性包括流程途径和判断条件;当软件配置项测试需求的类型为软件接口测试需求时,所述基本图元间的属性包括接口类型和通讯协议;当软件配置项测试需求的类型为软件时序测试需求时,所述基本图元间的属性包括时序鱼骨和时序描述条件;当软件配置项测试需求的类型为软件状态剖面决策需求时,所述基本图元间的属性包括决策条件和决策结果。When the type of software configuration item test requirements is software function test requirements, the attributes between the basic graphic elements include flow paths and judgment conditions; when the type of software configuration item test requirements is software interface test requirements, the basic graphic elements The attributes between the basic graphic elements include interface type and communication protocol; when the type of software configuration item test requirements is software timing test requirements, the attributes between the basic graphic elements include timing fishbone and timing description conditions; when the type of software configuration item test requirements When determining requirements for the software state profile, the attributes between the basic graphic elements include decision conditions and decision results.

S4:基于设置完成的形式化描述图形,生成与形式化描述图形对应的XML(Extensible Markup Language,可扩展标记语言)描述文件。S4: Generate an XML (Extensible Markup Language, Extensible Markup Language) description file corresponding to the formalized description graph based on the completed formalized description graph.

本发明中,对于软件功能测试需求,业务流程描述要素包括功能模块、数据流向、控制流程和判断结构,且业务流程描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。In the present invention, for software function testing requirements, the business process description elements include functional modules, data flow direction, control process and judgment structure, and the business process description elements are described by dragging and dragging basic graph elements and configuring basic graph element attributes. .

对于软件接口测试需求,接口之间传递的消息内容包括消息传输来源、消息传输目的、消息名称、消息ID和消息传输总线属性信息,且消息内容通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。For software interface testing requirements, the message content transmitted between interfaces includes message transmission source, message transmission purpose, message name, message ID, and message transmission bus attribute information, and the message content can be obtained by dragging the basic primitives and configuring the basic primitive attributes. Described in a formal way.

对于软件时序测试需求,时序描述要素包括业务流程主轴、时序指令因素、时序指令发送判断条件和时序指令相互关系描述,且时序描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。For software timing test requirements, the timing description elements include the main axis of the business process, timing instruction factors, timing instruction sending judgment conditions, and description of the relationship between timing instructions, and the timing description elements are formalized by dragging the basic primitives and configuring the attributes of the basic primitives to describe.

对于软件状态剖面决策需求,状态剖面决策描述要素包括决策需求名称、软件运行状态、业务流程和决策结果,且状态剖面决策描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。For software state profile decision-making requirements, the state profile decision-making description elements include the decision-making requirement name, software running status, business process and decision results, and the state profile decision-making description elements are implemented by dragging and dropping basic primitives and configuring basic primitive properties. describe.

以下对本发明中软件功能测试需求、软件接口测试需求、软件时序测试需求和软件状态剖面决策需求分别进行具体说明。The software function test requirements, software interface test requirements, software timing test requirements and software state profile decision-making requirements in the present invention are specifically described below.

一、对于软件功能测试需求1. Requirements for software functional testing

当前开展航天装备软件功能测试工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作。软件设计文档若对软件功能的描述颗粒度较粗,或控制流程分支描述不完整,会导致被测软件功能测试需求分析结果不充分。同时,基于文字的条目化测试需求呈现形式不够直观,无法反映测试需求之间的逻辑关系,无法对测试人员的需求分析结果进行检验,也不利于开展后续测试验证工作。本发明通过提供一种基于图形和结构化文件对航天装备软件功能测试需求进行形式化描述的方法,使得测试人员进行功能测试需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的功能测试需求是精确、可验证和可传递的,能够避免需求描述的模糊性和二义性。具体的:At present, in the functional testing of aerospace equipment software, the testers carry out textual requirement analysis based on the software design documents. If the software design document describes the software function at a coarse granularity, or if the description of the control process branch is incomplete, it will lead to insufficient analysis results of the tested software function test requirements. At the same time, the presentation form of text-based itemized test requirements is not intuitive enough, unable to reflect the logical relationship between test requirements, unable to test the testers' requirements analysis results, and not conducive to carrying out follow-up test verification work. The present invention provides a method for formally describing aerospace equipment software function test requirements based on graphics and structured files, so that the process of testers developing function test requirements can be transformed from invisible thought activities to visible formal description and construction. The modeling process ensures that the functional test requirements developed by testers are accurate, verifiable and transferable, and can avoid ambiguity and ambiguity in requirement descriptions. specific:

(1)本发明采用形式化方法描述被测软件功能测试需求,被测软件以接口消息驱动和关键标志变量变化为物理基础,软件功能流程为业务应用,其中,业务流程描述要素主要包括功能模块、数据流向、控制流程、关键标志判断结构等属性信息,上述内容均采用拖拽图形化模块、配置业务属性等形式化手段进行描述,形成功能测试需求形式化描述成果,该成果包含图形化描述和XML结构化文件;(1) The present invention uses a formal method to describe the functional testing requirements of the software under test. The software under test is driven by interface messages and changes in key flag variables as the physical basis, and the software functional process is a business application, wherein the business process description elements mainly include functional modules Attribute information such as data flow direction, control process, key flag judgment structure, etc., the above content is described by formal means such as dragging and dropping graphical modules, configuring business attributes, etc., forming a formal description result of functional test requirements, which includes a graphical description and XML structured documents;

(2)本发明通过编码方式处理功能测试需求形式化描述成果中的XML结构化文件,形成文字条目化的航天装备软件功能测试需求以及自动化测试脚本,用于开展功能测试需求文档生成和形式化验证工作;(2) The present invention processes the XML structured files in the formalized description results of functional test requirements by way of encoding, and forms text entry-based aerospace equipment software functional test requirements and automated test scripts, which are used to generate and formalize functional test requirements documents verification work;

(3)本发明支持通过拖拽图形化模块、配置业务属性等方式产生功能测试需求形式化描述成果,该成果中的图形化描述和XML结构化文件互为映射关系,既可以通过图形化描述产生XML结构化文件,又可以通过XML结构化文件翻译产生图形化描述,二者能够相互转换。(3) The present invention supports the generation of formal description results of functional test requirements by dragging and dropping graphical modules, configuring business attributes, etc., and the graphical description and XML structured files in the results are mutually mapping relationships, which can be described graphically Generate XML structured files, and generate graphical descriptions through translation of XML structured files, and the two can be converted to each other.

相较于目前的装备软件功能测试需求分析方法,本发明具有以下优势:Compared with the current equipment software function test requirements analysis method, the present invention has the following advantages:

1、本发明能够将测试人员进行功能测试需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的功能测试需求是精确、可验证和可传递的,能够避免测试需求描述的模糊性和二义性;1. The present invention can transform the process of testers developing functional test requirements from an invisible thought activity into a visible formal description modeling process, ensuring that the functional test requirements developed by testers are accurate, verifiable and transferable , which can avoid the ambiguity and ambiguity of the test requirement description;

2、本发明能够采用拖拽图形化模块、配置业务属性等形式化手段开展功能测试需求形式化描述建模工作;2. The present invention can use formal means such as dragging and dropping graphical modules, configuring business attributes, etc. to carry out formal description and modeling of functional test requirements;

3、测试人员开展功能测试需求形式化描述建模过程中,能够发现软件设计文档中描述不充分、不完整的部分,从而提升装备软件功能测试需求分析的充分性;3. In the process of formal description and modeling of functional test requirements, testers can find insufficient and incomplete parts in the software design documents, thereby improving the adequacy of equipment software functional test requirements analysis;

4、本发明能够使用图形化描述和XML结构化文件表达航天装备软件功能测试形式化描述成果;4. The present invention can use graphical description and XML structured files to express formalized description results of aerospace equipment software function tests;

5、本发明中图形化描述和XML结构化文件互为映射关系,可以互相转换;5. In the present invention, the graphical description and the XML structured file are mutually mapping relationships and can be converted to each other;

6、本发明能够将XML结构化文件转换为文字条目化的航天装备软件功能测试需求以及自动化测试脚本,用于开展功能测试需求文档生成和形式化验证工作。6. The present invention can convert XML structured files into text-based space equipment software function test requirements and automated test scripts, which are used to generate function test requirement documents and formalize verification.

二、对于软件接口测试需求2. Requirements for software interface testing

当前开展航天装备软件接口测试工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作。软件设计文档若对接口架构及消息描述有误,会直接导致被测软件接口测试需求分析错误。同时,因为测试人员工作经验存在差异,也有导致被测软件接口测试需求分析不充分的可能。基于文字的条目化测试需求呈现形式不够直观,无法反映测试需求之间的逻辑关系,无法对测试人员的需求分析结果进行检验,也不利于开展后续测试验证工作。本发明通过提供一种基于图形化和结构化文件对航天装备软件接口测试需求进行形式化描述的方法,使得测试人员进行接口测试需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的接口测试需求是精确、可验证和可传递的,能够避免需求描述的模糊性和二义性。具体的:At present, the software interface testing work of aerospace equipment is carried out by testers according to the software design documents to carry out text entry requirements analysis. If the software design document describes the interface architecture and messages incorrectly, it will directly lead to an error in the analysis of the interface test requirements of the software under test. At the same time, due to the differences in the work experience of the testers, it may also lead to insufficient analysis of the testing requirements of the software interface under test. The presentation form of text-based itemized test requirements is not intuitive enough, unable to reflect the logical relationship between test requirements, unable to test the testers' requirements analysis results, and not conducive to carrying out follow-up test verification work. The present invention provides a method for formally describing aerospace equipment software interface test requirements based on graphical and structured files, so that the process of testers developing interface test requirements is transformed from invisible thought activities into visible formal descriptions The modeling process ensures that the interface test requirements developed by testers are accurate, verifiable and transferable, and can avoid ambiguity and ambiguity in requirement descriptions. specific:

(1)本发明采用形式化方法描述被测软件所在系统的接口关系以及接口之间传递的消息,被测软件所属系统的各实体节点和总线结构为物理基础,接口之间传递的消息为业务应用,其中,接口之间传递的消息主要包括消息传输来源、消息传输目的、消息名称、消息ID、消息传输总线等属性信息,上述内容均采用拖拽图形化模块、配置业务属性等形式化手段进行描述,形成系统接口关系形式化描述成果,该成果包含图形化描述和XML结构化文件;(1) The present invention adopts a formal method to describe the interface relationship of the system where the software under test is located and the messages transmitted between the interfaces, each entity node and the bus structure of the system under test software are the physical basis, and the messages transmitted between the interfaces are business Application, in which the messages transmitted between the interfaces mainly include attribute information such as message transmission source, message transmission destination, message name, message ID, message transmission bus, etc. The above contents are all formalized by dragging and dropping graphical modules, configuring business attributes, etc. Make a description to form a formal description result of the system interface relationship, which includes a graphical description and an XML structured file;

(2)本发明采用形式化方法描述被测软件自身的接口关系以及接口之间传递的消息,通过在系统接口关系形式化描述成果中确定被测软件,根据系统接口关系形式化描述成果中配置的业务属性自动生成单一被测软件的配置项接口关系形式化描述成果,该成果包含图形化描述和XML结构化文件;(2) The present invention uses a formal method to describe the interface relationship of the software under test itself and the messages transmitted between the interfaces, by determining the software under test in the results of the formal description of the system interface relationship, according to the configuration in the results of the formal description of the system interface relationship Automatically generate a formalized description result of the configuration item interface relationship of a single software under test based on the business attribute, which includes a graphical description and an XML structured file;

(3)本发明通过编码方式处理系统接口关系形式化描述成果和配置项接口关系形式化描述成果中的XML结构化文件,形成文字条目化的航天装备软件接口测试需求以及自动化测试脚本,用于开展接口测试需求文档生成和形式化验证工作;(3) The present invention processes the XML structured files in the formalized description results of the system interface relationship and the formalized description results of the interface relationship of the configuration items in a coding manner, and forms text entry-based aerospace equipment software interface test requirements and automated test scripts for use in Carry out interface test requirement document generation and formal verification;

(4)本发明支持通过拖拽图形化模块、配置业务属性等方式产生系统接口关系形式化描述成果和配置项接口关系形式化描述成果,两种成果中的图形化描述和XML结构化文件互为映射关系,既可以通过图形化描述产生XML结构化文件,又可以通过XML结构化文件翻译产生图形化描述,为后续更为智能化的开展航天装备软件接口测试需求开发工作预留了扩展空间。(4) The present invention supports the generation of formal description results of system interface relations and formal description results of interface relations of configuration items by dragging and dropping graphical modules, configuring business attributes, etc. For the mapping relationship, XML structured files can be generated through graphical descriptions, and graphical descriptions can be generated through translation of XML structured files, which reserves expansion space for the subsequent more intelligent development of aerospace equipment software interface test requirements .

相较于目前的装备软件接口测试需求分析方法,本发明具有以下优势:Compared with the current equipment software interface test requirement analysis method, the present invention has the following advantages:

1、本发明能够将测试人员进行接口测试需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的接口测试需求是精确、可验证和可传递的,能够避免测试需求描述的模糊性和二义性;1. The present invention can transform the process of testers developing interface test requirements from an invisible thought activity into a visible formalized description modeling process, ensuring that the interface test requirements developed by testers are accurate, verifiable and transferable , which can avoid the ambiguity and ambiguity of the test requirement description;

2、本发明能够采用拖拽图形化模块、配置业务属性等形式化手段开展接口测试需求开发工作;2. The present invention can use formal means such as dragging and dropping graphical modules, configuring business attributes, etc. to carry out interface test requirement development work;

3、本发明能够使用图形化描述和XML结构化文件表达航天装备软件接口测试形式化描述成果;3. The present invention can use graphical description and XML structured files to express the formalized description results of aerospace equipment software interface testing;

4、本发明中图形化描述和XML结构化文件互为映射关系,可以互相转换;4. In the present invention, the graphic description and the XML structured file are mutually mapping relations, and can be mutually converted;

5、本发明能够将XML结构化文件转换为文字条目化的航天装备软件接口测试需求以及自动化测试脚本,用于开展接口测试需求文档生成和形式化验证工作。5. The present invention can convert XML structured files into text-based space equipment software interface test requirements and automated test scripts, which are used to generate interface test requirement documents and formalize verification.

三、对于软件时序测试需求3. Requirements for software timing testing

当前开展航天装备软件时序测试需求分析工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作。然而软件设计文档对软件时序测试需求的描述颗粒度通常较粗,可能造成测试需求分解不充分。同时,基于文字的条目化测试需求呈现形式不够直观,无法反映测试需求之间的逻辑关系,无法对测试人员的需求分析结果进行检验,也不利于开展后续测试验证工作。本发明通过提供一种基于图形和结构化文件对航天装备软件时序测试需求进行形式化描述的方法,使得测试人员进行软件时序测试需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的软件时序测试需求是精确、可验证和可传递的,能够避免需求描述的模糊性和二义性。具体的:At present, the requirement analysis work of aerospace equipment software timing test is carried out, and the testers carry out the requirement analysis work based on the software design documents. However, the description granularity of software timing test requirements in software design documents is usually coarse, which may result in insufficient decomposition of test requirements. At the same time, the presentation form of text-based itemized test requirements is not intuitive enough, unable to reflect the logical relationship between test requirements, unable to test the testers' requirements analysis results, and not conducive to carrying out follow-up test verification work. The present invention provides a method for formally describing aerospace equipment software timing test requirements based on graphics and structured files, enabling testers to change the process of developing software timing testing requirements from invisible thought activities to visible formal descriptions The modeling process ensures that the software timing test requirements developed by testers are accurate, verifiable and transferable, and can avoid ambiguity and ambiguity in requirement descriptions. specific:

(1)本发明采用形式化方法描述航天装备软件时序测试需求,明确航天装备软件都有哪些时序指令要求,继而对发出各时序指令的判断条件进行识别,并进一步描述不同业务流程下发出各时序指令的判断条件及时序指令间的相互关系,其描述要素主要包括业务流程主轴、时序指令因素、时序指令发送判断条件和时序指令相互关系描述等属性信息,上述内容均采用拖拽图形化模块、配置业务属性等形式化手段进行描述,形成软件时序测试需求形式化描述成果,该成果包含图形化描述和xml结构化文件;(1) The present invention adopts a formal method to describe the timing test requirements of aerospace equipment software, clarify what timing instruction requirements the aerospace equipment software has, and then identify the judgment conditions for issuing each timing instruction, and further describe each timing sequence issued under different business processes The judgment conditions of instructions and the relationship between sequential instructions, the description elements mainly include attribute information such as business process main axis, timing instruction factors, timing instruction sending judgment conditions, and description of the relationship between timing instructions. Configure business attributes and other formal means to describe, and form the formal description results of software timing test requirements, which include graphical descriptions and XML structured files;

(2)本发明通过编码方式处理软件时序测试需求形式化描述成果中的xml结构化文件,形成文字条目化的航天装备软件时序测试需求以及自动化测试脚本,用于开展软件时序测试需求文档生成和形式化验证工作;(2) The present invention processes the xml structured files in the formalized description results of the software timing test requirements in a coding manner, and forms text entry-based aerospace equipment software timing test requirements and automated test scripts, which are used to generate software timing test requirements documents and Formal verification work;

(3)本发明支持通过拖拽图形化模块、配置业务属性等方式产生软件时序测试需求形式化描述成果,该成果中的图形化描述和xml结构化文件互为映射关系,既可以通过图形化描述产生xml结构化文件,又可以通过xml结构化文件翻译产生图形化描述,二者能够相互转换。(3) The present invention supports the generation of formalized description results of software timing test requirements by dragging and dropping graphical modules, configuring business attributes, etc., and the graphical description and XML structured files in the results are mutually mapping relationships, which can be achieved through graphical The description generates an xml structured file, and the graphical description can be generated by translating the xml structured file, and the two can be converted to each other.

相较于目前的航天装备软件时序测试需求分析方法,本发明具有以下优势:Compared with the current aerospace equipment software timing test requirements analysis method, the present invention has the following advantages:

1、本发明能够将测试人员进行航天装备软件时序测试需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的状态转换测试需求是精确、可验证和可传递的,能够避免测试需求描述的模糊性和二义性;1. The present invention can transform the process of testers developing aerospace equipment software timing test requirements from invisible thought activities into visible formalized description modeling process, ensuring that the state transition test requirements developed by testers are accurate and verifiable and transferable, which can avoid the ambiguity and ambiguity of test requirement description;

2、本发明能够采用拖拽图形化模块、配置业务属性等形式化手段开展软件时序测试需求形式化描述建模工作;2. The present invention can use formal means such as dragging and dropping graphical modules, configuring business attributes, etc. to carry out formal description and modeling of software timing test requirements;

3、测试人员开展软件时序测试需求形式化描述建模过程中,能够发现软件设计文档中对不同业务流程下时序测试需求描述不充分、不完整的部分,从而提升软件时序测试需求分析的充分性;3. During the formal description and modeling process of software timing test requirements, testers can discover the insufficient and incomplete parts of the software design documents that describe the timing test requirements under different business processes, thereby improving the adequacy of software timing test requirements analysis ;

4、本发明能够使用图形化描述和XML结构化文件表达航天装备软件时序测试需求形式化描述成果;4. The present invention can use graphical description and XML structured files to express formalized description results of aerospace equipment software timing test requirements;

5、本发明中图形化描述和XML结构化文件互为映射关系,可以互相转换;5. In the present invention, the graphical description and the XML structured file are mutually mapping relationships and can be converted to each other;

6、本发明能够将XML结构化文件转换为文字条目化的航天装备软件时序测试需求以及自动化测试脚本,用于开展软件时序测试需求文档生成和形式化验证工作。6. The present invention can convert XML structured files into text-based aerospace equipment software timing test requirements and automated test scripts, which are used to generate software timing test requirement documents and formalize verification.

四、关于软件状态剖面决策需求4. Requirements for Decision-Making of Software State Profiles

当前开展航天装备软件状态剖面决策需求分析工作,均由测试人员依据软件设计文档开展文字条目化需求分析工作。然而软件设计文档对软件状态剖面决策需求的描述颗粒度通常较粗,可能造成测试需求分解不充分。同时,基于文字的条目化测试需求呈现形式不够直观,无法反映测试需求之间的逻辑关系,无法对测试人员的需求分析结果进行检验,也不利于开展后续测试验证工作。本发明通过提供一种基于图形和结构化文件对航天装备软件状态剖面决策需求进行形式化描述的方法,使得测试人员进行软件状态剖面决策需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的软件状态剖面决策需求是精确、可验证和可传递的,能够避免需求描述的模糊性和二义性。具体的:At present, the software state profile decision-making requirements analysis of aerospace equipment is carried out, and the testers carry out textual itemized requirements analysis work according to the software design documents. However, software design documents usually describe the decision-making requirements of the software state profile at a relatively coarse granularity, which may result in insufficient decomposition of test requirements. At the same time, the presentation form of text-based itemized test requirements is not intuitive enough, unable to reflect the logical relationship between test requirements, unable to test the testers' requirements analysis results, and not conducive to carrying out follow-up test verification work. The present invention provides a method for formally describing the decision-making requirements of the software state profile of aerospace equipment based on graphics and structured files, so that the process of testers developing the decision-making requirements of the software state profile is changed from an invisible thought activity to a visible form The description modeling process is simplified to ensure that the software state profile decision-making requirements developed by testers are accurate, verifiable and transferable, and can avoid ambiguity and ambiguity in requirements description. specific:

(1)本发明采用形式化方法描述航天装备软件状态剖面决策需求,明确航天装备软件都有哪些关联的硬件状态,继而对各种硬件状态的软件特征进行识别,并进一步描述不同业务流程下基于状态剖面的决策结果,其描述要素主要包括决策需求名称、状态剖面要素(硬件状态)、业务流程和决策结果等属性信息,上述内容均采用拖拽图形化模块、配置业务属性等形式化手段进行描述,形成软件状态剖面决策需求形式化描述成果,该成果包含图形化描述和XML结构化文件;(1) The present invention uses a formal method to describe the decision-making requirements of the state profile of aerospace equipment software, clarify the associated hardware states of the space equipment software, and then identify the software features of various hardware states, and further describe the different business processes based on The decision result of the state profile, its description elements mainly include attribute information such as the name of the decision requirement, the element of the state profile (hardware state), business process and decision result. Describing, forming a formalized description result of software status profile decision requirements, which includes graphical description and XML structured file;

(2)本发明通过编码方式处理软件状态剖面决策需求形式化描述成果中的XML结构化文件,形成文字条目化的航天装备软件状态剖面决策需求以及自动化测试脚本,用于开展软件状态剖面决策需求文档生成和形式化验证工作;(2) The present invention processes the XML structured files in the formalized description results of the software state profile decision-making requirements by means of coding, and forms text entry-based space equipment software state profile decision-making requirements and automated test scripts, which are used to develop software state profile decision-making requirements Document generation and formal verification work;

(3)本发明支持通过拖拽图形化模块和配置业务属性等方式产生软件状态剖面决策需求形式化描述成果,该成果中的图形化描述和XML结构化文件互为映射关系,既可以通过图形化描述产生XML结构化文件,又可以通过XML结构化文件翻译产生图形化描述,二者能够相互转换。(3) The present invention supports the formalized description results of software state profile decision-making requirements generated by dragging and dropping graphical modules and configuring business attributes. The XML structured file can be generated from the simplified description, and the graphical description can be generated through the translation of the XML structured file, and the two can be converted to each other.

相较于目前的航天装备软件状态剖面决策需求分析方法,本发明具有以下优势:Compared with the current aerospace equipment software state profile decision-making requirements analysis method, the present invention has the following advantages:

1、本发明能够将测试人员进行航天装备软件状态剖面决策需求开发的过程由不可见的思想活动转变为可见的形式化描述建模过程,确保测试人员所开发的状态转换测试需求是精确、可验证和可传递的,能够避免测试需求描述的模糊性和二义性;1. The present invention can transform the process of testers developing aerospace equipment software state profile decision-making requirements from invisible thought activities into a visible formalized description modeling process, ensuring that the state transition test requirements developed by testers are accurate and predictable. Verifiable and transferable, able to avoid ambiguity and ambiguity in test requirement description;

2、本发明能够采用拖拽图形化模块、配置业务属性等形式化手段开展软件状态剖面决策需求形式化描述建模工作;2. The present invention can use formal means such as dragging and dropping graphical modules, configuring business attributes, etc. to carry out the formal description and modeling work of software state profile decision-making requirements;

3、测试人员开展软件状态剖面决策需求形式化描述建模过程中,能够发现软件设计文档中对不同业务流程下状态剖面决策需求描述不充分、不完整的部分,从而提升软件状态剖面决策需求分析的充分性;3. During the formal description modeling process of software state profile decision-making requirements, testers can discover the insufficient and incomplete parts of the software design documents that describe the state profile decision-making requirements under different business processes, thereby improving the analysis of software state profile decision-making requirements sufficiency;

4、本发明能够使用图形化描述和XML结构化文件表达航天装备软件状态剖面决策需求形式化描述成果;4. The present invention can use graphical descriptions and XML structured files to express formalized description results of aerospace equipment software state profile decision requirements;

5、本发明中图形化描述和XML结构化文件互为映射关系,可以互相转换;5. In the present invention, the graphical description and the XML structured file are mutually mapping relationships and can be converted to each other;

6、本发明能够将XML结构化文件转换为文字条目化的航天装备软件状态剖面决策需求以及自动化测试脚本,用于开展软件状态剖面决策需求文档生成和形式化验证工作。6. The present invention can convert XML structured files into text-based aerospace equipment software state profile decision requirements and automated test scripts, which are used to generate software state profile decision requirements documents and formalize verification.

本发明提供的一种航天装备软件配置项测试需求形式化描述装置,包括创建模块、选择模块、设置模块和生成模块。The invention provides a device for formally describing test requirements of space equipment software configuration items, including a creation module, a selection module, a setting module and a generation module.

创建模块用于创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于软件配置项测试需求的类型,选择待建立的形式化描述图形的类型;选择模块用于基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形;设置模块用于根据软件配置项测试需求,对建立的形式化描述图形中基本图元自身的属性以及基本图元间的属性进行设置;生成模块用于基于设置完成的形式化描述图形,生成与形式化描述图形对应的XML描述文件。The creation module is used to create a formal description tool for formally describing the test requirements of software configuration items, and based on the type of software configuration item test requirements, select the type of formal description graphics to be established; the selection module is used to According to the test requirements of software configuration items, the setting module is used to describe the attributes of the basic primitives in the established formal description graphics and the basic The attributes between the graphic elements are set; the generation module is used to generate an XML description file corresponding to the formalized description graph based on the completed formalized description graph.

以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

本发明是参照根据本发明实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Claims (10)

1.一种航天装备软件配置项测试需求形式化描述方法,其特征在于,具体包括以下步骤:1. A method for formally describing test requirements of aerospace equipment software configuration items, characterized in that, specifically comprising the following steps: 创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于软件配置项测试需求的类型,选择待建立的形式化描述图形的类型;Create a formal description tool for formal description of software configuration item test requirements, and select the type of formal description graphics to be established based on the type of software configuration item test requirements; 基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形;Based on the formal description tool, select the basic graphic elements corresponding to the test requirements of the software configuration items to establish a formal description graph; 根据软件配置项测试需求,对建立的形式化描述图形中基本图元自身的属性以及基本图元间的属性进行设置;According to the test requirements of software configuration items, set the attributes of the basic primitives in the established formal description graphics and the attributes between basic primitives; 基于设置完成的形式化描述图形,生成与形式化描述图形对应的XML描述文件。Based on the completed formalized description graph, an XML description file corresponding to the formalized description graph is generated. 2.如权利要求1所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:所述软件配置项测试需求的类型包括软件功能测试需求、软件接口测试需求、软件时序测试需求和软件状态剖面决策需求。2. A method for formally describing test requirements of aerospace equipment software configuration items as claimed in claim 1, characterized in that: the types of said software configuration item test requirements include software function test requirements, software interface test requirements, and software timing tests Requirements and Software State Profile Decision Requirements. 3.如权利要求2所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:3. a kind of space equipment software configuration item test requirement formal description method as claimed in claim 2, it is characterized in that: 当软件配置项测试需求的类型为软件功能测试需求时,选择的待建立形式化描述图形为流程图;When the type of software configuration item test requirement is software function test requirement, the selected formalized description graph to be established is a flow chart; 当软件配置项测试需求的类型为软件接口测试需求时,选择的待建立形式化描述图形为接口图;When the type of software configuration item test requirements is software interface test requirements, the selected formalized description graphics to be established are interface diagrams; 当软件配置项测试需求的类型为软件时序测试需求时,选择的待建立形式化描述图形为鱼骨图;When the type of software configuration item test requirements is software timing test requirements, the selected formal description graph to be established is a fishbone diagram; 当软件配置项测试需求的类型为软件状态剖面决策需求时,选择的待建立形式化描述图形为决策矩阵。When the type of software configuration item test requirements is software state profile decision requirements, the selected formal description graph to be established is a decision matrix. 4.如权利要求3所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:4. a kind of aerospace equipment software configuration item test requirement formal description method as claimed in claim 3, it is characterized in that: 所述基本图元自身的属性包括图元名称和描述文字;The attributes of the basic primitives themselves include primitive names and descriptive text; 当软件配置项测试需求的类型为软件功能测试需求时,所述基本图元间的属性包括流程途径和判断条件;When the type of software configuration item test requirements is software function test requirements, the attributes between the basic graphic elements include flow paths and judgment conditions; 当软件配置项测试需求的类型为软件接口测试需求时,所述基本图元间的属性包括接口类型和通讯协议;When the type of the software configuration item test requirement is a software interface test requirement, the attributes between the basic graphic elements include interface type and communication protocol; 当软件配置项测试需求的类型为软件时序测试需求时,所述基本图元间的属性包括时序鱼骨和时序描述条件;When the type of software configuration item test requirements is software timing test requirements, the attributes between the basic graphic elements include timing fishbone and timing description conditions; 当软件配置项测试需求的类型为软件状态剖面决策需求时,所述基本图元间的属性包括决策条件和决策结果。When the type of the software configuration item test requirement is a software state profile decision requirement, the attributes between the basic graphic elements include a decision condition and a decision result. 5.如权利要求4所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于,所述基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形,具体步骤包括:5. a kind of aerospace equipment software configuration item test requirement formal description method as claimed in claim 4, is characterized in that, described based on formal description tool, selects the basic graphic element of corresponding software configuration item test requirement, to establish form To describe the graph graphically, the specific steps include: 在形式化描述工具中,从工具栏向画布上拖入对应软件配置项测试需求的基本图元,以建立形式化描述图形。In the formal description tool, drag the basic graphic elements corresponding to the test requirements of the software configuration items from the toolbar to the canvas to create a formal description graph. 6.如权利要求5所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:对于软件功能测试需求,业务流程描述要素包括功能模块、数据流向、控制流程和判断结构,且业务流程描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。6. A method for formally describing test requirements of aerospace equipment software configuration items as claimed in claim 5, characterized in that: for software function test requirements, business process description elements include functional modules, data flow direction, control flow and judgment structure, And the business process description elements are described in a formal way by dragging and dropping basic primitives and configuring the properties of basic primitives. 7.如权利要求5所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:对于软件接口测试需求,接口之间传递的消息内容包括消息传输来源、消息传输目的、消息名称、消息ID和消息传输总线属性信息,且消息内容通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。7. A method for formally describing test requirements of aerospace equipment software configuration items as claimed in claim 5, characterized in that: for software interface test requirements, the content of messages transmitted between interfaces includes message transmission source, message transmission purpose, message Name, message ID, and message transmission bus attribute information, and the content of the message is described in a formal way by dragging and dropping basic primitives and configuring basic primitive attributes. 8.如权利要求5所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:对于软件时序测试需求,时序描述要素包括业务流程主轴、时序指令因素、时序指令发送判断条件和时序指令相互关系描述,且时序描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。8. A method for formally describing testing requirements of aerospace equipment software configuration items as claimed in claim 5, characterized in that: for software timing testing requirements, timing description elements include business process main axis, timing instruction factors, and timing instruction sending judgment conditions The relationship between timing instructions and timing instructions is described, and the timing description elements are described in a formal way by dragging the basic primitives and configuring the properties of the basic primitives. 9.如权利要求5所述的一种航天装备软件配置项测试需求形式化描述方法,其特征在于:对于软件状态剖面决策需求,状态剖面决策描述要素包括决策需求名称、软件运行状态、业务流程和决策结果,且状态剖面决策描述要素通过拖拽基本图元和配置基本图元属性的形式化方式进行描述。9. A method for formally describing test requirements of aerospace equipment software configuration items as claimed in claim 5, characterized in that: for software state profile decision-making requirements, the state-profile decision-making description elements include decision-making requirement name, software running state, business process and decision results, and the state profile decision description elements are described in a formal way by dragging and dropping basic primitives and configuring the properties of basic primitives. 10.一种航天装备软件配置项测试需求形式化描述装置,其特征在于,包括:10. A device for formally describing testing requirements of aerospace equipment software configuration items, characterized in that it includes: 创建模块,其用于创建用于对软件配置项测试需求进行形式化描述的形式化描述工具,并基于软件配置项测试需求的类型,选择待建立的形式化描述图形的类型;Create a module, which is used to create a formal description tool for formal description of software configuration item test requirements, and select the type of formal description graphics to be established based on the type of software configuration item test requirements; 选择模块,其用于基于形式化描述工具,选择对应软件配置项测试需求的基本图元,以建立形式化描述图形;A selection module, which is used to select the basic graphic elements corresponding to the test requirements of the software configuration item based on the formal description tool, so as to establish a formal description graph; 设置模块,其用于根据软件配置项测试需求,对建立的形式化描述图形中基本图元自身的属性以及基本图元间的属性进行设置;A setting module, which is used to set the attributes of the basic primitives in the established formal description graphics and the attributes between the basic primitives according to the testing requirements of the software configuration items; 生成模块,其用于基于设置完成的形式化描述图形,生成与形式化描述图形对应的XML描述文件。The generating module is used for generating an XML description file corresponding to the formalized description graph based on the completed formalized description graph.
CN202310183712.0A 2023-02-28 2023-02-28 A method and device for formally describing test requirements of aerospace equipment software configuration items Pending CN116303000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310183712.0A CN116303000A (en) 2023-02-28 2023-02-28 A method and device for formally describing test requirements of aerospace equipment software configuration items

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310183712.0A CN116303000A (en) 2023-02-28 2023-02-28 A method and device for formally describing test requirements of aerospace equipment software configuration items

Publications (1)

Publication Number Publication Date
CN116303000A true CN116303000A (en) 2023-06-23

Family

ID=86833587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310183712.0A Pending CN116303000A (en) 2023-02-28 2023-02-28 A method and device for formally describing test requirements of aerospace equipment software configuration items

Country Status (1)

Country Link
CN (1) CN116303000A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127101A1 (en) * 2006-08-07 2008-05-29 Sap Portals Israel Ltd. Software testing framework
CN104699613A (en) * 2015-03-26 2015-06-10 北京航空航天大学 Automatic generating system and method thereof of spacecraft testing requirements
CN107608894A (en) * 2017-09-22 2018-01-19 深圳航天科技创新研究院 Software testing generation method, system and storage medium based on dynamic model
CN108830085A (en) * 2018-06-13 2018-11-16 天津大学 The modeling of Web application form and verification method based on extensible SQL
CN114911715A (en) * 2022-07-13 2022-08-16 南昌航空大学 A formal test model modeling method, system, computer and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127101A1 (en) * 2006-08-07 2008-05-29 Sap Portals Israel Ltd. Software testing framework
CN104699613A (en) * 2015-03-26 2015-06-10 北京航空航天大学 Automatic generating system and method thereof of spacecraft testing requirements
CN107608894A (en) * 2017-09-22 2018-01-19 深圳航天科技创新研究院 Software testing generation method, system and storage medium based on dynamic model
CN108830085A (en) * 2018-06-13 2018-11-16 天津大学 The modeling of Web application form and verification method based on extensible SQL
CN114911715A (en) * 2022-07-13 2022-08-16 南昌航空大学 A formal test model modeling method, system, computer and storage medium

Similar Documents

Publication Publication Date Title
CN102156673B (en) Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof
CN107491061B (en) A network automated test system and method for commercial vehicle OBD diagnostic equipment
CN104407971B (en) Method for automatically testing embedded software
WO2023071075A1 (en) Method and system for constructing machine learning model automated production line
US6415396B1 (en) Automatic generation and maintenance of regression test cases from requirements
CN110096441B (en) FPGA software simulation test environment establishment method based on UVM method
CN107783758A (en) A kind of intelligent contract engineering method
Dibia et al. Autogen studio: A no-code developer tool for building and debugging multi-agent systems
CN114967650A (en) Vehicle controller diagnosis automation hardware-in-loop test method and system
CN110632857A (en) Control Performance Verification Method for Large-Scale Hierarchical Control Systems
CN118556241A (en) Workflow generation method, system, medium and program product
CN113419965A (en) Multi-browser compatibility testing system and method
CN110851355A (en) Front-end engineering implementation method and device, storage medium, and electronic device
CN114328231B (en) Test method, device, electronic device and storage medium
CN117421872A (en) SYSML modeling-based system simulation system and method for automatically generating semi-physical test cases
CN115186140A (en) Method, device and electronic device for generating industrial topology map
CN115037587A (en) Method, device, equipment and storage medium for automatically issuing network equipment configuration
CN116303000A (en) A method and device for formally describing test requirements of aerospace equipment software configuration items
CN116974649B (en) Method and device for automatic deployment and chaos test of blockchain based on Go language and ChaosBlade
CN116185861A (en) A method and device for formally describing test requirements of aerospace equipment software system
Yang et al. A novel framework of using petri net to timed service business process modeling
CN118012387B (en) Construction system and construction method of big data analysis algorithm library
CN117609038A (en) A process management method, equipment, device and storage medium for project automation testing
CN118378719A (en) Machine learning workflow construction method
Yrjönen et al. Extending the NFR Framework with Measurable NonFunctional Requirements.

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