Automatic black-box method-level test case generation based on constraint logic programming

Yi-Tin Hu, Nai-Wei Lin
<span title="">2010</span> <i title="IEEE"> 2010 International Computer Symposium (ICS2010) </i> &nbsp;
Software testing is the main activity to ensure the quality of software. This article proposes a testing framework that applies a black-box testing technique to automatically generate test cases for Java methods. The specification of Java methods is based on the Design by Contract software development approach. This article uses UML class diagrams and the Object Constraint Language to describe the specification of Java methods. The automatic generation of test cases is based on the unification
more &raquo; ... echanism and the powerful constraint solving mechanism of constraint logic programming. A novel characteristic of this approach is that the test input and its corresponding expected output of a test case are simultaneously generated in a unified fashion.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1109/compsym.2010.5685369">doi:10.1109/compsym.2010.5685369</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/taz5stpskrei3ox7ztqsaaa4fa">fatcat:taz5stpskrei3ox7ztqsaaa4fa</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20200321114355/https://www.cs.ccu.edu.tw/~naiwei/ICS2010.pdf" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/a9/21/a921422d69d2869dc682315f4227b3f31046d4d5.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1109/compsym.2010.5685369"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="external alternate icon"></i> ieee.com </button> </a>