透過您的圖書館登入
IP:216.73.216.45
  • 學位論文

奠基於限制邏輯圖之測試案例產生器

Test Case Generation Based on Constraint Logic Graph

指導教授 : 林迺衛
若您是本文的作者,可授權文章由華藝線上圖書館中協助推廣。

摘要


限制式測試案例產生技術是一種主要的測試案例產生技術。限制式測試案例產生技術將測試案例產生問題制定為限制滿足問題。在限制式測試案例產生技術中,從軟體行為規格的敘述、軟體等價行為的分割、軟體測試覆蓋標準滿足的管理、到軟體等價行為所對應的限制滿足問題的敘述,都會牽涉到限制邏輯運算式。本論文提出使用限制邏輯圖做為限制邏輯運算式的精簡圖形化的表示式。 本論文描述一個基於限制邏輯圖的黑箱函式層級測試案例產生器的設計與實作。限制邏輯運算式通常都表示成分離性標準式來,一個限制邏輯圖可以看成是分離性標準式的精簡圖形化的表示式。限制邏輯圖的每一條完整路徑對應分離性標準式中的一個連結性子句,亦即一個測試案例。因此,限制邏輯圖適合於從事軟體等價行為的分割。限制邏輯圖也適合於從事圖形式測試覆蓋標準滿足的管理。這個測試案例產生器被實作成一個Eclipse開發平台的外掛套件。本論文也提供這個測試案例產生器的初步效能評估。

並列摘要


Constraint-based testing is one of the main approaches for test case generation. In constraint-based testing, the test case generation problem is formulated as a constraint satisfaction problem. In constraint-based testing, constraint logic expressions are involved in the specification of software behaviors, the partitioning of software behaviors into equivalent classes, the management of test coverage criteria, and the formulation of a representative software behavior in an equivalence class as a constraint satisfaction problem. In this thesis, constraint logic graphs are proposed as a succinct graphical representation of constraint logic expressions. This thesis describes the design and implementation of a black-box method-level test case generator based on constraint logic graph. A constraint logic graph can be viewed as a succinct graphical representation of constraint logic expressions in disjunctive normal form. Each complete path of the constraint logic graph corresponds to a conjunctive clause of the disjunctive normal form and thus a test case. Therefore, constraint logic graphs are suitable for performing partitioning of software behaviors into equivalent classes. Constraint logic graphs are also suitable for performing management of graph-based test coverage criteria. This test case generator is implemented as an Eclipse plugin. A preliminary performance evaluation is also given in the thesis.

參考文獻


[27] C.-K. Chang and N.-W. Lin, “A Constraint-Based Framework for Test Case Generation in Method-Level Black-Box Unit Testing”.To be appeared in Journal of Information Science and Engineering.
[4] B. Bezier, Software Testing Techniques, 2nd ed., Van Nostrand, 1990.
[5] Object Management Group, OMG Unified Modeling Language, 2012. Available: http://www.omg.org/spec/UML/2.5/Beta2/. [Accessed December, 2013].
[11] J. Warmer and A. Kleppe, The Object Constraint Language : Getting Your Models Ready for MDA (2nd Edition), 2nd ed., Addison-Wesley Longman Publishing, 2003.
[12] F. Pfenning, Logic Programming, Carnegie Mellon University, 2007.

延伸閱讀