<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>US2StarTool: Generating i* Models from User Stories</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Renato Mesquita</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aline Jaqueira</string-name>
          <email>alineopj@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Celso Agra</string-name>
          <email>celsoagra@gmail.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Márcia Lucena</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fernanda Alencar</string-name>
          <email>fernanda.ralencar@ufpe.br</email>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Departamento de Eletrônica e Sistemas - UFPE</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Departamento de Informática e Matemática Aplicada - UFRN</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Programa de Pós-Graduação em Engenharia da Computação - UPE</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2015</year>
      </pub-date>
      <volume>978</volume>
      <fpage>103</fpage>
      <lpage>108</lpage>
      <abstract>
        <p>In agile methods, the requirements are represented by user stories. However, this model does not allow a good visualization of context in which a story is inserted, reducing the understanding of the system as a whole. On the other hand, the i* model presents dependencies among organizational actors, and the understanding of the context in which a requirement is inserted. This paper presents an implementation of an automated solution as a tool to mapping user stories into i* models, US2StarTool, adding a support for agile development environment. US2StarTool can help requirements engineer in agile development environments contextualizing the environment in which user stories are inserted and showing relationships between the actors and the system.</p>
      </abstract>
      <kwd-group>
        <kwd>User Story</kwd>
        <kwd>i* Model</kwd>
        <kwd>Meta-model</kwd>
        <kwd>Model Mapping</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        To build a software project, it must be specified the requirements to be satisfied. The
requirements elicitation aims to specify the software completeness and correctness,
besides guarantee the quality, validation and acceptance. In agile methods, the
requirements are developed of incremental way, according to stakeholders demands.
The artifacts used are user stories. To represent a user story, Cohn [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] suggests a
common format: As &lt;role&gt;, I want &lt;action&gt;, to &lt;goal&gt;. However, in user stories you
cannot visualize dependencies among stories [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], besides it is hard to assimilate the
context that they are included within a system [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        The i* modeling technique [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] is one of the most relevant Goal-Oriented
Requirements Engineering (GORE) approaches and provides a view of involved actors
and their dependencies. Thus, the requirement model described from i* models
provides a complete representation of requirements. The dependencies between actors are
represented and by this model it is possible understand the context.
      </p>
      <p>
        The benefits of using visual models to describe the requirements are
presented in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Thus, this paper presents the needed stages to develop a tool named
US2StarTool, able to map user stories into i* model based on a set of mapping
heuristics. In the Section 2 we define the research objectives. Then Section 3 explains how
Copyright © 2015 for this paper by its authors. Copying permitted for private and academic purposes.
the tool has been developed. In Section 4 we discuss the scientific contributions.
Section 5 provides the conclusions and Section 6 presents future works.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Objectives of the research</title>
      <p>This paper presents an automated solution, named US2StarTool, that the main
objective is mapping user stories into i* models. The results are used as a complementary
tool for agile development process, providing a better understanding for context in the
projects based on user stories, dependencies between actors involved and the whole
system-to-be.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Development and required tools</title>
      <p>To implement the US2StarTool, we used the EuGENia tool, a small part of the
Epsilon Framework (Extensible Platform for Specification of Integrated Languages for
Model Management). We consider that EuGENia tool is used as code generation,
models transformation, validation, comparison and refactoring with EMF (Eclipse
Modeling Framework) and other types of models. The EMF is a modeling framework
and code generation to build tools based on a structured data model. An EMF model
is named as Ecore and defines a meta-model language that can be implemented using
EMFatic. EMFatic is a language used to represent EMF Ecore models in a textual
form and has the *.emf extension. The EuGENia tool works as a front-end for GMF
(Graphical Modeling Framework) and facilitates the Ecore models handling.</p>
      <p>Thus, it was possible to generate the editors in Java class for the EMF
metamodels that represents user story and i* model. Then the object-oriented structures
were used based on the transformation between the models to perform mapping and
implementation of the heuristics. The packages *.us2star.us and *.us2star.istar have
interfaces and enumeration classes. The packages *.us2star.us.impl and
*us2star.istar.impl have the implementation classes related to interfaces.</p>
      <p>
        To implement the tool, we separate in a set of stages. In the first stage, we
develop the user story metamodel using the Emfatic language. In addition, we used
the meta-model of the i* model based on Paes [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. From the .emf files were generated
.ecore extension files. With the .ecore files and EuGENia tool a structure that
represents the meta-models of both user story and i* are generated. The US2StarTool is an
executable file based on java environment, named "US2StarTool.jar", and doesn't
require any installation process.
      </p>
      <p>The US2StarTool requires to the user an input file, in XLS format, that has
been imported by an external tool responsible for managing user stories. If the user
does not have this file, it will have to access this tool in order to get it and will upload
it in the US2StarTool that will map to imported user stories. Then the US2StarTool
generates an output file in XMI format capable to be imported by an i* model editor,
so that it generates the graphical representation of this model.</p>
      <p>The *.reader.xls package is responsible for obtaining the input file with .xls
extension, and interpret it in order to read the user stories. Then, the package
*mapping.us can communicate to obtain user stories and create objects from OO
structure, that represents the user story model. This structure is composed by
packages in *.us. After build the user stories objects, the mapping process is performed,
using a set of heuristics. Thus, the package *.mapping.istar communicates with the
packages *.mapping.istar.command, that contains the implemented heuristics, and
*.mapping.us that contains the objects from user stories, and perform the mapping,
creating OO objects structures that represents the i* model, composed by packages in
*.istar. Finally, the package *.writer.xmi communicates with *.mapping.istar, which
contains objects to create elements of output file in the *.xmi format.</p>
      <p>
        The set of mapping heuristics were implemented based on the proposed
heuristics from Jaqueira [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The user stories are imported into US2StarTool, resulting in
the creation of objects represented by the elements in the model of user stories. These
models are stored by UsData class, localized in the package *.mapping.us. Therefore,
the heuristics are able to map elements that represents the i* model and keep in
memory by the IstarData class, localized in the package *.mapping.istar. The mapping
between models are performed through the UsData2IstarData class that reads the data
in UsData and safe the objects in the IstarData. The heuristics are presented at Table 1
according to the sequence in which they are executed during mapping. Were used the
concepts and notations according to i * Wiki [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] that is a simplified version of the
technique.
      </p>
      <p>To use the US2StarTool, it’s needed that user has the user stories to upload
in the application. We perform an integration of US2StarTool with a tool based in the
management of backlogs, named Easybacklog (EB). The EB tool is useful for agile
development and customer teams, to manage user stories. Using this tool it’s possible
export an excel file (*.xls), that contains the data related to the backlog registered in
the EB tool, including the user stories, that will be mapped by US2StarTool. Then, the
*.xls file is imported by US2StarTool.</p>
      <p>
        In this work, we use the IstarTool as graphical editor to generate and export
the i* model [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. This tool is able to create i* diagrams, validating the syntax rules
based on the official rules defined by [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. To integrate the US2StarTool with
IstarTool, it was generated a XMI file with the *.istar extension. The figures 1 and 2
presents the activities involved in the process using the US2StarTool.
      </p>
      <p>
        Visual models assist in understanding of how users
will need to use the system and are effective for the stakeholders to understand the
proposed solution and also to keep them interested and involved [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Even in an agile
environment it is necessary to develop some models before any implementation to
ensure a shared understanding by the development team. Sharp et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] concluded
that the user stories are limited artifacts to provide understanding of the system as a
whole and their dependency relationships are omitted.
      </p>
      <p>The most important contribution of this work is the implementation of the
tool named US2StarTool that maps a set of requirements described by user stories to a
graphical model using the i* technique.</p>
      <p>Therefore, the tool can assist the requirements engineering in the agile
methodology context, contributing to a better view of actors and their dependencies in the
system; better knowledge about actor roles inside the system-to-be; understand how
actors can achieve their goals and actions; prioritize actors context and their
dependencies in the system-to-be; define related functionalities and assign them to the same
team.
5</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>The implementation of a tool to get i* models from user stories was successfully
performed. The construction of US2StarTool enabled the study of requirements
representation models in agile methods and i* technique. Were also studied the technology
for creation of metamodels in Emfatic language and the use of EuGENia tool, both to
generate the corresponding structure in Java to create metamodels, and for the
creation of the graphic editor of the i* model. Heuristics mapping have been implemented
and integrated with the Easybacklog tool to assist in creating the user stories, and
finally, generate an input file for the graphics editor IstarTool. An example of
application using real data (available at www.dimap.ufrn.br/~marciaj/US2StarTool) allows
us to test the tool according to the analysis of the results suggesting its usefulness and
contributions in agile development environment.
6</p>
    </sec>
    <sec id="sec-5">
      <title>Ongoing and future work</title>
      <p>A limitation of the tool is that is not possible to display the Resource element in the i*
model generated, because as from a model of user stories is not possible to obtain this
information to be mapped. One solution would be user interaction with US2StarTool
to inform the dependencies between tasks and actors. The user can enter this
information in the file .xmi exported by US2StarTool, or in the i* model editor, the
IstarTool. Another limitation is the fact that it was not possible to generate a graphical
representation of the i* model in itself US2StarTool. This occurred because the i*
editor uses GMF technology, ie, is dependent on the Eclipse platform.</p>
      <p>In order to continue the research for this work a few suggestions of further
work can be cited. Improve the mapping process in order to display the resources in
the i* model. User interaction with the US2StarTool after file import containing user
stories is required. Thus, the user can tell whether action of the user stories depends
on a specific feature of an actor. Integrate the tool with a graphical editor i* without
the need to export a file and use another tool for this purpose. The i* model would be
shown in the own US2StarTool. This is not possible because the graphics generators
used are dependent on the Eclipse platform, since they are based on GMF. View the
process of action of heuristics step-by-step at the time of mapping, in order to
facilitate the user who wants to learn about the mapping process. Show the result of
mapping for SD and SR models separately. The tool displays the SR model of the i*,
which is an evolution of the SD model with the expansion of Actor System.
Developing the reverse mapping, or mapping model for user i* stories. Write a manual for
using the tool.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Beatty</surname>
          </string-name>
          , J. e
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>Visual Models for Software Requirements</article-title>
          . Washington, Microsoft Press:
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cohn</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>User Stories Applied: For Agile Software Development (The Addison-Wesley Signature Series), March</article-title>
          . Addison-Wesley
          <string-name>
            <surname>Professional</surname>
          </string-name>
          , Reading (
          <year>2004</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Gomez</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rueda</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Alarcón</surname>
            ,
            <given-names>P. P.</given-names>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>A Systematic and Lightweight Method to Identify Dependencies between User Stories</article-title>
          . In A.
          <string-name>
            <surname>Sillitti</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Martin</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          <string-name>
            <surname>Wang</surname>
          </string-name>
          , &amp; E. Whitworth (Eds.),
          <source>Agile Processes in Software Engineering and Extreme Programming</source>
          (Vol.
          <volume>48</volume>
          , pp.
          <fpage>190</fpage>
          -
          <lpage>195</lpage>
          ): Springer Berlin Heidelberg.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. http://istar.rwth-aachen.de/tiki-index.
          <source>php?page=i*+Wiki+Home</source>
          . Acessado em: Maio de
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Jaqueira</surname>
          </string-name>
          , Aline; Lucena, Márcia; Aranha, Eduardo; Alencar,
          <article-title>Fernanda and Castro, Jaelson. Using i * Models to Enrich User Stories</article-title>
          .
          <source>Proceedings of the 6th International i* Workshop</source>
          (iStar
          <year>2013</year>
          ), CEUR Vol-
          <volume>978</volume>
          .
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kolp</surname>
            , Manuel,
            <given-names>Paolo</given-names>
          </string-name>
          <string-name>
            <surname>Giorgini</surname>
            ,
            <given-names>and John</given-names>
          </string-name>
          <string-name>
            <surname>Mylopoulos</surname>
          </string-name>
          .
          <article-title>"A goal-based organizational perspective on multi-agent architectures." Intelligent Agents VIII</article-title>
          . Springer Berlin Heidelberg,
          <year>2002</year>
          .
          <fpage>128</fpage>
          -
          <lpage>140</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Paes</surname>
            ,
            <given-names>J. AGILE</given-names>
          </string-name>
          : Uma Abordagem para Geração Automática de Linguagens i*.
          <source>Dissertação de Mestrado em Ciência da Computação</source>
          . Universidade Federal de Pernambuco,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Sharp</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Robinson</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Segal</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Furniss</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          (
          <year>2006</year>
          ) '
          <article-title>The Role of Story Cards and the Wall in XP teams: a distributed cognition perspective'</article-title>
          ,
          <source>Proceedings of Agile</source>
          <year>2006</year>
          , IEEE Computer Society Press, pp
          <fpage>65</fpage>
          -
          <lpage>75</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Yu</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          “
          <article-title>Modelling Strategic Relationships for Process Reengineering”</article-title>
          .
          <source>PhD thesis</source>
          .University of Toronto, Department of Computer Science.
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>