• DocumentCode
    2177374
  • Title

    Generating test cases from UML activity diagram based on Gray-box method

  • Author

    Linzhang, Wang ; Jiesong, Yuan ; Xiaofeng, YU ; Jun, Hu ; Xuandong, Li ; Guo, Zheng

  • Author_Institution
    Dept. of Comput. Sci. & Technol., Nanjing Univ., China
  • fYear
    2004
  • fDate
    30 Nov.-3 Dec. 2004
  • Firstpage
    284
  • Lastpage
    291
  • Abstract
    Test case generation is the most important part of the testing efforts, the automation of specification based test case generation needs formal or semi-formal specifications. As a semi-formal modelling language, UML is widely used to describe analysis and design specifications by both academia and industry, thus UML models become the sources of test generation naturally. Test cases are usually generated from the requirement or the code while the design is seldom concerned, this paper proposes an approach to generate test cases directly from UML activity diagram using Gray-box method, where the design is reused to avoid the cost of test model creation. In this approach, test scenarios are directly derived from the activity diagram modelling an operation. Then all the information for test case generation, i.e. input/output sequence and parameters, the constraint conditions and expected object method sequence, is extracted from each test scenario. At last, the possible values of all the input/output parameters could be generated by applying category-partition method, and test suite could be systematically generated to find the inconsistency between the implementation and the design. A prototype tool named UMLTGF has been developed to support the above process.
  • Keywords
    Unified Modeling Language; formal specification; program testing; software metrics; software quality; Gray-box method; MLTGF prototype tool; UML activity diagram; category-partition method; formal specification; object method sequence; semi-formal modelling language; test case generation; Automatic testing; Computer aided software engineering; Computer industry; Computer science; Laboratories; Pressing; Programming; Software testing; System testing; Unified modeling language; UML activity diagram; gray-box method; test case; test scenario;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference, 2004. 11th Asia-Pacific
  • ISSN
    1530-1362
  • Print_ISBN
    0-7695-2245-9
  • Type

    conf

  • DOI
    10.1109/APSEC.2004.55
  • Filename
    1371930