IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v9y2021i4p331-d495026.html
   My bibliography  Save this article

Mutated Specification-Based Test Data Generation with a Genetic Algorithm

Author

Listed:
  • Rong Wang

    (Department of Computer Science, Hosei University, Tokyo 184-8584, Japan)

  • Yuji Sato

    (Department of Computer Science, Hosei University, Tokyo 184-8584, Japan)

  • Shaoying Liu

    (Graduate School of Advanced Science and Engineering, Hiroshima University, Hiroshima 739-8511, Japan)

Abstract

Specification-based testing methods generate test data without the knowledge of the structure of the program. However, the quality of these test data are not well ensured to detect bugs when non-functional changes are introduced to the program. To generate test data effectively, we propose a new method that combines formal specifications with the genetic algorithm (GA). In this method, formal specifications are reformed by GA in order to be used to generate input values that can kill as many mutants of the target program as possible. Two classic examples are presented to demonstrate how the method works. The result shows that the proposed method can help effectively generate test cases to kill the program mutants, which contributes to the further maintenance of software.

Suggested Citation

  • Rong Wang & Yuji Sato & Shaoying Liu, 2021. "Mutated Specification-Based Test Data Generation with a Genetic Algorithm," Mathematics, MDPI, vol. 9(4), pages 1-19, February.
  • Handle: RePEc:gam:jmathe:v:9:y:2021:i:4:p:331-:d:495026
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/9/4/331/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/9/4/331/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:9:y:2021:i:4:p:331-:d:495026. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.