arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1212.3060cs.SE
收藏

用例驱动的系统级测试方法

A use case driven approach for system level testing

Muhammad Touseef, Zahid Hussain Qaisar

摘要:

用例场景在分析阶段创建,以指定软件系统需求,也可用于创建系统级测试用例。使用用例来获得系统测试有几个好处,包括在软件开发生存周期的早期阶段进行测试设计,这降低了系统的所有开发成本。当前使用用例进行系统测试的方法涉及功能细节,并且不包括作为通过标准的保护,即使用类图,这在非常初始的级别上似乎很困难,这导致需要基于规范的测试而不涉及功能细节。在本文中,我们提出了一种技术,系统测试直接从规格,而不涉及功能的细节。我们利用初始和后条件作为警卫应用在每个级别的用例,使我们能够生成形式化的测试用例,并使之有可能生成测试用例的系统的每个流程。我们使用用例场景来生成系统级测试用例,而系统序列图被用来弥合测试目标和测试用例之间的差距,来自系统的规范。由于序列图的组合可以产生一个状态图来模拟系统的整个行为,生成的测试用例可以被应用并执行到状态图中,以捕捉系统随状态变化的行为,所有这些步骤使我们能够在开发的早期阶段系统地细化规格说明,以实现系统测试的目标。

英文摘要:

Use case scenarios are created during the analysis phase to specify software system requirements and can also be used for creating system level test cases. Using use cases to get system tests has several benefits including test design at early stages of software development life cycle that reduces over all development cost of the system. Current approaches for system testing using use cases involve functional details and does not include guards as passing criteria i.e. use of class diagram that seem to be difficult at very initial level which lead the need of specification based testing without involving functional details. In this paper, we proposed a technique for system testing directly derived from the specification without involving functional details. We utilize initial and post conditions applied as guards at each level of the use cases that enables us generation of formalized test cases and makes it possible to generate test cases for each flow of the system. We used use case scenarios to generate system level test cases, whereas system sequence diagram is being used to bridge the gap between the test objective and test cases, derived from the specification of the system. Since, a state chart derived from the combination of sequence diagrams can model the entire behavior of the system.Generated test cases can be employed and executed to state chart in order to capture behavior of the system with the state change.All these steps enable us to systematically refine the specification to achieve the goals of system testing at early development stages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑