Research on Formal Specification-Based Program Testing
Research on Formal Specification-Based Program Testing
批准号:
18500027
负责人:
LIU Shaoying
金额:
$2.48万
依托单位:
依托单位国家:
日本
项目类别:
Grant-in-Aid for Scientific Research (C)
财政年份:
2006
资助国家:
日本
项目状态:
已结题
起止时间:
2006 至 2007
中文摘要
在本项目中,我们对基于形式化规范的程序测试的理论、方法和支持工具进行了深入的研究。结果,我们已经完成了3份期刊出版物,9份国际会议出版物,以及我们开发的测试方法的原型软件工具。我们的研究重点集中在以下几个方面。首先,我们提出了“功能场景”的概念作为检查程序中相应实现的基本标准,并提出了“功能场景形式(FSF)”的概念作为测试用例生成的最合适结构。我们已经提出了将任何后置条件样式规范自动转换为FSF的算法,以及用于生成适当测试用例的一组标准。其次,我们建立了一种通过生成测试用例来检查前置后置条件样式规范的方法。第三,我们开发了一个基于关系的测试用例生成器…更多的n方法。通过这种方法,可以根据程序输入变量之间的预定义关系自动生成测试用例。这种方法的优点是有效地将黑盒测试和白盒测试结合在一起,而不需要知道规范和程序的细节。第四,我们开发了一种集成了基于规范的检查技术和基于规范的测试技术的技术。该技术的总体思想是,首先基于其规范对程序进行严格的检查,以发现导致崩溃、无限循环或规范中定义的功能场景的不正确实现的程序错误,然后执行充分的基于规范的测试,以发现在程序执行期间发生的错误。第五,我们建立了一种测试程序的方法,测试人员无需源代码即可进行测试。这种方法强调使用程序的接口场景,可以通过使用简单的测试用例来检测,以形成前置条件和后置条件的形式规范。然后,该规范作为系统测试程序的基础,包括测试用例生成和测试结果分析。这种方法的意义在于,它可以有效地用于在公共领域中找到令人满意的组件,并执行系统和验收测试。最后,我们开发了一个原型软件工具来支持基于规格说明的测试技术。该工具帮助我们演示了上述基于规范的测试技术的工具可支持性。较少
英文摘要
In this project, we have conducted intensive research on the theory, methods, and supporting tool of program testing based on formal specifications. As the result, we have achieved three journal publications, nine international conference publications, and a prototype software tool for the testing method we have developed. The focus of our research is on the following aspects. Firstly, we have proposed the concept of “functional scenario" as the basic criterion for checking the corresponding implementation in the program, and the notion of “functional scenario form (FSF)" as the most suitable structure for test case generation. We have come up with an algorithm for automatically transforming any pre-post-condition style specification into an FSF, and a set of criteria for generating adequate test cases. Secondly, we have established a method for inspecting a pre-post-condition style specification via generating test cases. Thirdly, we have developed a relation-based test case generatio … More n method. By this method, test cases can be automatically generated based on pre-defined relations between input variables of a program. The advantage of this method is that it effectively combines the black-box and white-box testing, without the need to know the details of both the specification and the program. Fourthly, we have developed a technique that integrates the specification-based inspection technique and the specification-based testing techniques. The overall idea of the technique is that a rigorous inspection of the program based on its specification is first carried out to find program bugs that cause crashes, infinite loops, or incorrect implementation of the functional scenarios defined in the specification, and then a sufficient specification-based testing is performed to find bugs occurred during program executions. Fifthly, we have established an approach to testing programs without source code available to testers. This approach emphasizes the use of the interface scenarios of the program, which can be detected by using simple test cases, to form a formal specification in pre- and post-conditions. The specification then serves as the basis for a systematic testing of the program, including test case generation and test result analysis. The significance of this approach is that it can be effectively used to find satisfactory components in the public domain and to perform system and acceptance testing. Finally, we have developed a prototype software tool to support the specification-based testing techniques. The tool has helped us demonstrate the tool supportability of our specification-based testing techniques mentioned above. Less
期刊论文(0)
专著(0)
科研奖励(0)
会议论文
登录
查看更多内容
A review approach to detecting violations of consistency between specification and program structures
检测规范和程序结构之间一致性违规的审查方法
DOI:
--
发表时间:
期刊:
影响因子:
--
作者:
[]
通讯作者:
DOI:
--
发表时间:
2007
期刊:
Journal of Systems and Software Vol.80,No.8
影响因子:
--
作者:
[S. Liu, Y. Chen, S.Liu and H.Wang]
通讯作者:
S.Liu and H.Wang
Utilizing Test Case Generation to Inspect Formal Specifications for Completeness and Feasibility
利用测试用例生成来检查正式规范的完整性和可行性
DOI:
--
发表时间:
2007
期刊:
影响因子:
--
作者:
[Fumiko Nagoya, Yuting Chen, Shaoying Liu, S.Liu]
通讯作者:
S.Liu
Scenario-Preserved Refinement: a Small Proposal for an Important Problem
保留场景的细化:针对重要问题的小建议
DOI:
--
发表时间:
2006
期刊:
影响因子:
--
作者:
[J.Wang, S.Liu, Y.Qi, D.Hou, S.Liu and S.Kagiyama, S.Liu]
通讯作者:
S.Liu
A Tool-Supported Review Approach to Detecting Structural Consistency Violations
检测结构一致性违规的工具支持的审查方法
DOI:
--
发表时间:
2006
期刊:
Proceedings of 11th IEEE International Conference on Engineering of Complex Computer Systems (ICEECS2006), IEEE Computer Society Press
影响因子:
--
作者:
[Yuting Chen, Shaoying Liu, Fumiko Nagoya]
通讯作者:
Fumiko Nagoya
共 15 条
Research on Highly Reliable Agile Formal Engineering Methods
-
批准号:26240008
-
项目类别:Grant-in-Aid for Scientific Research (A)
-
资助金额:$18.3万
-
财政年份:2014
-
负责人:LIU Shaoying
-
依托单位:
Formal Methods and Intelligent Software Engineering Environments
-
批准号:08044167
-
项目类别:Grant-in-Aid for international Scientific Research
-
资助金额:$7.68万
-
财政年份:1996
-
负责人:LIU Shaoying
-
依托单位:
海外基金