The User Requirements Notation is a standard published by the International Telecommunication Union that contains two complementary notations for goal and scenario/workflow modeling. Use Case Maps (UCM) – the workflow notation – focuses on the causal relationships of the steps in a workflow without requiring the specification of detailed message exchanges and data. A UCM model captures the interactions between actors and the system and typically integrates several use cases into a combined system view. This results in a high-level description of the system and its end-to-end usage scenarios. At the UCM level, scenario definitions create a regression test suite for the UCM model. This paper investigates the transformation of such workflow models into end-to-end acceptance test cases that can be automated with the JUnit testing framework. For that purpose, the UCM model is enriched with (i) input data types and expected results, (ii) a code-level description of system behavior as needed for the workflow, and (iii) testing logic including assertions. Based on this specification, the proposed approach uses boundary value analysis of the input data and Myer's test selection heuristics to determine a set of test cases for the described workflow. Coverage criteria may be specified at the UCM model level. Results from a case study of a small data management system indicate a reduction of the number of lines of code that need to be specified in the workflow model vs. the test implementation by an order of magnitude.
[1]
Daniel Amyot,et al.
User Requirements Notation: The First Ten Years, The Next Ten Years (Invited Paper)
,
2011,
J. Softw..
[2]
Jean-Pierre Corriveau,et al.
Scenario-Based Validation: Beyond the User Requirements Notation
,
2010,
2010 21st Australian Software Engineering Conference.
[3]
Lee-Sub Lee,et al.
The Importance Analysis of Use Case Map with Markov Chains
,
2010,
ArXiv.
[4]
Daniel Amyot,et al.
Specification and validation of telecommunications systems with use case maps and lotos
,
2001
.
[5]
Jameleddine Hassine,et al.
Use Case Maps as a property specification language
,
2007,
Software & Systems Modeling.
[6]
Daniel Amyot,et al.
Towards the Generation of Tests in the Test Description Language from Use Case Map Models
,
2015,
SDL Forum.
[7]
Daniel Amyot,et al.
UCM-Driven Testing of Web Applications
,
2005,
SDL Forum.