A framework for automated testing from VDM-SL specifications

被引:0
作者
Nadeem, A [1 ]
Jaffar-Ur-Rehman, M [1 ]
机构
[1] Mohammad Ali Jinnah Univ, Islamabad, Pakistan
来源
INMIC 2004: 8TH INTERNATIONAL MULTITOPIC CONFERENCE, PROCEEDINGS | 2004年
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Using formal methods in early phases of software life cycle can help avoid specification errors and ambiguities. However, use of formal methods does not guarantee that implementation will conform to specifications. A formal proof of correctness is not justifiable for most software projects because of the cost involved. Therefore, need for rigorous testing is not eliminated by the use of formal methods. In fact, formal methods and testing complement each other. Several researchers have proposed techniques for automatic generation of test cases from formal specifications. However, most of these techniques are based on state space search methods. In this paper, we propose a novel approach to automating generation, sequencing and execution of test cases in a proposed framework. The approach is based on parsing VDM-SL expressions to generate C code as well as test data. The source code is then modified to insert a call to precondition of a function just before the function call itself to ensure that the,system is in correct state before an operation is carried out. Finally, the generated test cases are executed on the implementation and results are evaluated by executing code for post-conditions.
引用
收藏
页码:428 / 433
页数:6
相关论文
共 7 条
[1]  
ANDREWS DJ, 1999, VDMSLTR19991
[2]  
ATTERER R, 2000, AUTOMATIC TEST DATA
[3]  
DICK J, P FME 93 IND STRENGT, P268
[4]  
DROSCHL G, DESIGN APPL TEST CAR
[5]  
HELKE S, AUTOMATING TEST CASE
[6]  
MEUDEC C, 1998, THESIS QUEENS U BELF
[7]  
VANAERTRYCK L, 1997, P 1 INT C FORM ENG M