A Class-Level Unit Testing Tool for Java

碩士 === 國立中正大學 === 資訊工程研究所 === 99 === Software testing is the main activity to ensure the quality of software. This thesis developes a class-level black-box test case generator based on constraint logic programming. This generator uses the UML class diagrams and the Object Constraint Language as a me...

Full description

Bibliographic Details
Main Authors: Tzu-Fan Hu, 胡子凡
Other Authors: Nai-Wei Lin
Format: Others
Language:zh-TW
Published: 2011
Online Access:http://ndltd.ncl.edu.tw/handle/22337685382639789018
id ndltd-TW-099CCU00392010
record_format oai_dc
spelling ndltd-TW-099CCU003920102015-10-13T19:07:21Z http://ndltd.ncl.edu.tw/handle/22337685382639789018 A Class-Level Unit Testing Tool for Java Java類別層級單元測試工具 Tzu-Fan Hu 胡子凡 碩士 國立中正大學 資訊工程研究所 99 Software testing is the main activity to ensure the quality of software. This thesis developes a class-level black-box test case generator based on constraint logic programming. This generator uses the UML class diagrams and the Object Constraint Language as a method-level specificatgion language to specify the behaviors of Java methods. It uses the UML state diagrams and the Object Constraint Language as a class-level specification language to specify the behaviors of Java objects. A test case consists of a test input and an expected output. Automatic generation of test input and expected output is the most difficult task in software testing activity. In this thesis, the test input and its corresponding expected output are simultaneously generated in a unified approach based on constraint logic programming. This approach consists of three steps. First, test paths on the state diagram are enumerated systematically. Second, the constraints on each path is converted into a predicate in constraint logic programming. Each solution of this predicates is a pair of test input and expected output. This unified solution is due to the powerful constraint solving capability of constraint logic programming. Third, the set of test inputs and expected outputs are converted into Java test methods. The automatic execution of test cases is based on the testing framework JUnit. Nai-Wei Lin 林迺衛 2011 學位論文 ; thesis 89 zh-TW
collection NDLTD
language zh-TW
format Others
sources NDLTD
description 碩士 === 國立中正大學 === 資訊工程研究所 === 99 === Software testing is the main activity to ensure the quality of software. This thesis developes a class-level black-box test case generator based on constraint logic programming. This generator uses the UML class diagrams and the Object Constraint Language as a method-level specificatgion language to specify the behaviors of Java methods. It uses the UML state diagrams and the Object Constraint Language as a class-level specification language to specify the behaviors of Java objects. A test case consists of a test input and an expected output. Automatic generation of test input and expected output is the most difficult task in software testing activity. In this thesis, the test input and its corresponding expected output are simultaneously generated in a unified approach based on constraint logic programming. This approach consists of three steps. First, test paths on the state diagram are enumerated systematically. Second, the constraints on each path is converted into a predicate in constraint logic programming. Each solution of this predicates is a pair of test input and expected output. This unified solution is due to the powerful constraint solving capability of constraint logic programming. Third, the set of test inputs and expected outputs are converted into Java test methods. The automatic execution of test cases is based on the testing framework JUnit.
author2 Nai-Wei Lin
author_facet Nai-Wei Lin
Tzu-Fan Hu
胡子凡
author Tzu-Fan Hu
胡子凡
spellingShingle Tzu-Fan Hu
胡子凡
A Class-Level Unit Testing Tool for Java
author_sort Tzu-Fan Hu
title A Class-Level Unit Testing Tool for Java
title_short A Class-Level Unit Testing Tool for Java
title_full A Class-Level Unit Testing Tool for Java
title_fullStr A Class-Level Unit Testing Tool for Java
title_full_unstemmed A Class-Level Unit Testing Tool for Java
title_sort class-level unit testing tool for java
publishDate 2011
url http://ndltd.ncl.edu.tw/handle/22337685382639789018
work_keys_str_mv AT tzufanhu aclasslevelunittestingtoolforjava
AT húzifán aclasslevelunittestingtoolforjava
AT tzufanhu javalèibiécéngjídānyuáncèshìgōngjù
AT húzifán javalèibiécéngjídānyuáncèshìgōngjù
AT tzufanhu classlevelunittestingtoolforjava
AT húzifán classlevelunittestingtoolforjava
_version_ 1718041560115838976