• DocumentCode
    584619
  • Title

    Assertion-Directed Test Case Generation

  • Author

    Fanping Zeng ; Chaoqiang Deng ; Yuan Yuan

  • Author_Institution
    Sch. of Comput. Sci. & Technol., Univ. of Sci. & Technol. of China, Hefei, China
  • fYear
    2012
  • fDate
    6-8 Nov. 2012
  • Firstpage
    41
  • Lastpage
    45
  • Abstract
    How to effectively generate test cases is the key to software testing. In our previous research, we applied the program dynamic invariant as feedback to guide test case generation, and that can reduce the redundancy and improve the coverage effectively. However, the repeated extraction of program dynamic invariants significantly increased the burden of test case generation. To address this issue, we present a novel technique that automatically converts program dynamic invariant into assertion and then make use of the assertion to direct the process of test case generation. If the new test case does not violate the assertion (that means the new test case will change the program invariant), then the new case is a valid test case, otherwise it is a redundant invalid test case. This method can avoid the repetition of extracting the same program invariant. Our experimental results indicate that, while not reducing the quality of the generated test cases, the assertion-directed method can greatly reduce the time cost of test case generation.
  • Keywords
    program testing; redundancy; assertion-directed method; assertion-directed test case generation; automatic program dynamic invariant conversion; redundancy; redundant invalid test case; repeated program dynamic invariant extraction; software testing; Algorithm design and analysis; Computer science; Educational institutions; Software; Software engineering; Software testing; assertion; program dynamic invariant; test case generation;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering (WCSE), 2012 Third World Congress on
  • Conference_Location
    Wuhan
  • Print_ISBN
    978-1-4673-4546-0
  • Type

    conf

  • DOI
    10.1109/WCSE.2012.16
  • Filename
    6394921