Full text
Universidade do Minho Escola de Engenharia Luís Manuel Alves Empirical Software Engineering in Educational Context March 2023 UMinho | 2023Luís Manuel Alves Empirical Software Engineering in Educational Context
Luís Manuel Alves Empirical Software Engineering in Educational Context Doctoral Thesis Doctoral Program on Information Systems and Technology Work done under the guidance of Professor Doutor Ricardo Jorge Silvério de Magalhães Machado Professor Doutor Pedro Miguel Gonzalez Abreu Ribeiro Universidade do Minho Escola de Engenharia March 2023
ii DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licença concedida aos utilizadores deste trabalho Atribuição CC BY https://creativecommons.org/licenses/by/4.0/
iii ACKNOWLEDGMENTS My life will change after this arduous task. This PhD was a solitary journey into scientific discovery. Yet, at the same time, it was a magnificent window of opportunity to expand my knowledge and to learn with incredible people. Reach the PhD degree requires a hard work that will not be possible without the contribution of many different people. In a different way all the aid is important in a work of this magnitude. During this work, I had the opportunity to meet people from different countries with research interests similar to mine. Also, in a way, all these people built for this demanding work. Firstly, I wish to express my sincerest gratitude to my supervisors Professor Ricardo Machado and Professor Pedro Ribeiro for providing me the opportunity to study and conduct research as part of his research team. I would like to highlight their constructive critics, patience and valuable comments and suggestions to my work. I would also like to thank my colleagues of the SEMAG (Software-based Information Systems Engineering and Management Group), they give me good ideas to continue this research. They also gave me motivation, courage, and strength to complete this complicated task. I must also thank all the doctoral program’s professors by lessons on how to carry out scientific research. I hope I have understood the teachings. The classes they gave me boosted the autonomy needed to carry out this work. Finally, I would like to thank my family for their support and encouragement that helped me get through university. This work would not have been possible without them, and I hope not to have disappointed.
iv STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho.
v RESUMO Engenharia de Software Empírica em Contexto Educacional A engenharia de software empírica é uma subárea da engenharia de software que visa a aplicação de teorias e métodos empíricos para a medição, compreensão e melhoria do processo de desenvolvimento de software em empresas de software reais. A experimentação é realizada para nos ajudar a melhor avaliar, prever, entender, controlar e melhorar o processo de desenvolvimento de software e o produto. Os estudos empíricos são importantes na engenharia de software para avaliar novas ferramentas, técnicas, métodos e tecnologias de forma estruturada antes de serem introduzidas no processo de software industrial (real). A realização de experimentos na área da engenharia de software num contexto industrial é extremamente difícil por diversos motivos. As empresas têm de entregar resultados e são pressionadas por custos, prazos e qualidade. As empresas não podem libertar os colaboradores para fazer experimentos. Consciente desta limitação, esta tese apresenta um ambiente experimental em contexto educacional. Criar um ambiente industrial em contexto educacional não é uma tarefa fácil. Envolve sinergias do corpo docente, compromisso dos estudantes e disponibilidade de recursos. No entanto, as soft skills que os estudantes podem adquirir nesse contexto valem todo o esforço necessário. Esta tese apresenta um ambiente experimental em contexto educacional que permite realizar estudos empíricos usando estudantes como sujeitos. Para além das competências técnicas e tecnológicas, este novo ambiente, potencia as competências de comunicação, trabalho em equipa, gestão e engenharia aos estudantes envolvidos. Esta tese apresenta também, um framework que guia o processo experimental em contexto educacional. Este framework também permite classificar os estudos empíricos realizados pelos estudantes. O novo framework surge de uma adaptação do framework de experimentação de Basili dirigido a contextos industriais. À luz deste framework foram classificados dezenas de projetos realizados por estudantes de diferentes unidades curriculares. Com eventuais ajustamentos que possa sofrer, é entendido que o framework é útil, ajustado e pertinente. Palavras-chave: Engenharia de Software Empírica; Processo de Desenvolvimento de Software; Métricas de Software; Gestão de Projetos de Software.
vi ABSTRACT Empirical Software Engineering in Educational Context Empirical Software Engineering is a sub-field of software engineering which aims at applying empirical theories and methods for measuring, understanding, and improvement of the software development process in real software companies. The experimentation is performed in order to help us better evaluate, predict, understand, control, and improve the software development process and product. Empirical studies are important in software engineering to evaluate new tools, techniques, methods, and technologies in a structured way before they are introduced in the industrial (real) software process. Conducting experiments in software engineering area in an industrial context is extremely difficult for several reasons. Companies must deliver results and they are pressured by costs, timing, and quality. Companies cannot release their employees to do experiments. Being aware of this situation, this thesis presents an experimental environment in an educational context. Creating an industrial environment in an educational context is not an easy task. It involves synergies from the teaching staff, student commitment, and resource availability. However, the soft skills that students can acquire in such a context are worth all the effort required. This thesis presents an experimental educational environment that allows realizing empirical studies using students as subjects. In addition to technical and technological skills, this new environment enhances the communication, team working, management and engineering skills of the students involved. This thesis presents a framework that guides the experimental process in an educational context. This framework also allows classifying the empirical studies carried out by the students. The new framework arises from an adaptation of Basili's experimentation framework aimed at industrial contexts. In light of this framework, dozens of projects carried out by students from different course units were classified. With any adjustments that may be made, it is understood that the framework is useful, adjusted, and relevant. Keywords: Empirical Software Engineering; Software Process Development; Software Metrics; Software Project Management.
vii Contents Chapter 1 Introduction ....................................................................................................................... 1 1.1. Scientific Background ................................................................................................................ 1 1.2. Methodological Context ............................................................................................................. 3 1.3. Goals and Research Strategy ..................................................................................................... 5 1.4. Structure of this Document ........................................................................................................ 7 Chapter 2 Empirical Software Engineering ................................................................................... 10 2.1. Introduction ............................................................................................................................. 10 2.2. Empirical Studies Concepts ..................................................................................................... 14 2.3. Overview of Empirical Methods ................................................................................................ 18 2.4. Experimentation Process in Software Engineering .................................................................... 27 2.4.1. Experiment Scoping ......................................................................................................... 30 2.4.2. Experiment Planning ........................................................................................................ 31 2.4.3. Experiment Operation ...................................................................................................... 37 2.4.4. Analysis and Interpretation ............................................................................................... 39 2.4.5. Presentation and Package ................................................................................................ 40 2.5. Approaches Related to Experimentation ................................................................................... 41 2.6. Conclusion .............................................................................................................................. 50 Chapter 3 Software Process and Project Management ............................................................... 51 3.1. Introduction ............................................................................................................................. 51 3.2. Software Development Processes ............................................................................................ 52 3.2.1. Plan-Driven Models for Software Development .................................................................. 54 3.2.2. Iterative Change-Driven Models for Software Development ................................................ 57 3.2.3. Agile Software Development ............................................................................................. 60 3.3. Project Management Approaches ............................................................................................ 66 3.4. Software Metrics ..................................................................................................................... 78
xiv Table 6.7: Productivity of Team A and Team B ...................................................................................... 178 Table 6.8: Classification from FPs ......................................................................................................... 178 Table 7.1: Final risk list ........................................................................................................................ 192 Table 7.2: Comparison of existing literature with the risks identified in DCA ........................................... 194
1 Chapter 1 Introduction 1.1. Scientific Background In this chapter, the scientific background of the research, its focus, research questions and the structure of the thesis are presented. The background of the research includes an introduction to the research area and the motivation behind the research. In the early nineties, Basili introduced, for the first time, the concept of Experience Factory . As the authors refer in (Basili et al. , 1992) the concept was introduced to "institutionalize the collective learning of the organization that is at the root of continual improvement and competitive advantage". Thus, the Experience Factory provides an organizational schema for collecting experiences on reuse of empirical results, for analyzing them and generalizing the knowledge contained (Visaggio, 2008). This scheme was designed based on many years of the Software Engineering Laboratory (SEL) work. Over several years, this well-known laboratory has conducted several studies and experiments for the purpose of understanding, assessing, and improving software and software processes within a production software development environment at the National Aeronautics and Space Administration/Goddard Space Flight Center (NASA/GSFC) (Basili et al. , 1992). With our approach, we do not intend to create a new software engineering laboratory. Instead, we created an educational experimental environment that allows us to conduct empirical studies in the software engineering area by involving students that are enrolled in our current software engineering courses (undergraduate (BA/BSc), graduate (MA/MSc) and doctorate (PhD) degrees). Our goal was to create a platform that allows us to perform empirical evaluations of the tools, techniques, methods, models, and technologies used in software engineering. Unlike other mature disciplines, the field of software engineering continues to lack a research and development infrastructure that supports systematic testing of novel software engineering methodologies.
2 With our new experience factory approach based on one explicit educational environment we try to mitigate this gap. In the paper Experimentation in Software Engineering , Basili et al. presented the first framework for analyzing most of the experimental work performed in software engineering over the past several years (Basili, Selby, & Hutchens, 1986). With the work published in that paper, Basili et al. had three overall goals: (1) describe a framework for experimentation in software engineering. This framework is intended to help structure the experimental process and provide a classification scheme for understanding and evaluating experimental studies; (2) classify and discuss a variety of experiments from literature according to the framework; (3) identify problems areas and lessons learned in experimentation in software engineering. References to research works that use or adapt the Basili experimentation framework that can be found in the literature are scarce. The few that exist refer research in a real context involving industrial settings or real-word projects (Bourque & Abran, 1996; Bourque & Côté, 1991; Hayes, 2002; Hayes & Dekhtyar, 2005). With the motivation of knowing that there is no experimentation framework dedicated exclusively to the educational context, we decided to adapt Basili's experimentation framework for this context. After this, we use it to classify the project works carried out by students of courses in the Information Technology area to support empirical research in software engineering. As in all areas of science and engineering, empirical research can only be considered rigorous when it is conducted using a valid experimental approach or protocol. In this sense, our new framework of experimentation was used to discipline the experimentation process, both for the students involved in the projects and for the researcher during the development of the empirical studies. The two main motivations for to create an educational experimental environment were knowing that: (1) the lack of preparation of Software Engineering graduates for a professional career is a common complaint raised by industry practitioners; (2) empirical studies are important in software engineering to evaluate new tools, techniques, methods, and technologies in a structured way before they are introduced in the industrial (real) software process. Based on these two triggers, we built an experimental environment that allows us to train students for industry, by involving them with real clients within the development of software projects. In this educational experimental environment were concretized three real concrete cases (real cases) of research in software engineering topics. The first one, it was applied the Use Case Point (UCP) method to estimate the size of the software projects developed by our graduate and undergraduate students enrolled in Information Technology courses. The second, it was applied the Function Point Analysist method to estimate
3 the size and complexity of the software projects developed by our students. The third, it was assessed the longevity of risks in software development projects. All three real cases involved research in the software engineering area, namely, software metrics and project management. The experimentation framework was used to classify these three real cases and to discipline and to support the experimentation process. For validation of our framework, we collected all projects carried out in the PMIS (Project Management of Information Systems) unit course in the period of 2010/2011 up to 2017/2018. In this period, 105 students enrolled in the PMIS course developed 79 projects. 1.2. Methodological Context To create an industrial environment in an educational context is not an easy task. It involves synergies from the teaching staff, student commitment, and resource availability. However, the soft skills that students can acquire in such context are worth all the effort required. This experimental environment allows us to realize empirical studies using students as subjects. Empirical studies are important in software engineering to evaluate new tools, techniques, methods, and technologies in a structured way before they are introduced in the industrial (real) software process. Empirical Software Engineering (ESE) is a sub-field of software engineering which aims at applying empirical theories and methods for the measuring, understanding, and improvement of the software development process in real software companies (Jaccheri & Osterlie, 2005). This definition extends the concept for ESE proposed by Basili et al. , when they said that "experimentation is performed in order to help us better evaluate, predict, understand, control, and improve the software development process and product" (Basili et al. , 1986). Currently, some universities offer courses in the Software Engineering area, as is the case of Norwegian University of Science and Technology (NTNU) (Jaccheri & Osterlie, 2005; NTNU, 2021). These courses have one assessment element that is a software development project. Participation in project meetings with supervisors, develops workshop and a presentation related to the project are mandatory. These projects work as an empirical study where students develop, in addition to technical and technological skills, also soft skills. Another university that has a research group in the Software Engineering area is the Lund University in Sweden (SERG, 2021) . This university has a Software Engineering Research Group (SERG) known for conducting relevant and rigorous research on the large-scale engineering of software systems, which have significant impact on industry and society. They use, particularly, empirical research methodology for long-
4 term industry-academia collaboration. These two institutions have worked with students as subjects of experiments. These institutions run the experiments out of the courses’ context, whereas in our approach the students perform the experiments as part of their regular academic courses. The Department of Computer Science of the University of Helsinki created an experimental software laboratory for basic and applied software development research and education. The name of this laboratory is Software Factory and they involve researchers, students, and industry partners in their projects (Software Factory, 2021). This infrastructure allows students to use state-of-the-art tools, modern processes, and best practices to prototype and develop great software for businesses in an environment made to support top-level research. Fraunhofer Institute for Experimental Software Engineering (Fraunhofer IESE) is one of the founding organizations of Empirical Software Engineering (IESE, 2021). Fraunhofer IESE (Fraunhofer, 2021) is one of the founders and drivers of the International Software Engineering Research Network (ISERN), a unique network of more than 45 international software engineering research groups, Fraunhofer IESE have access to all relevant research groups and experts world-wide in ESE area. Fraunhofer IESE is one of allied institutes of the Department of Computer Science of the Kaiserslautern University. Fraunhofer IESE’s mission is to promote experimental software engineering, the best approach for introducing engineering style rigor into business practice (Rombach, 2000). Simula Research Laboratory is another research institution that works closely with the Norway universities. Simula was founded in 2001 and has since become a nationally and internationally acclaimed research institution. Simula's main objective is to create knowledge about fundamental scientific challenges that are of genuine value for society. The strong focus on basic research is combined with both teaching of postgraduate students and the development of commercial applications (Simula, 2021). Our experimental environment involves students from four curricular units, namely, Software Process and Methodologies (SPM), Development of Computer Applications (DCA), Analysis and Design of Information Systems (ADIS) and Project Management of Information Systems (PMIS). The first two belong to the second year of the master's degree in Engineering and Management of Information Systems (MIEGSI). The last two, ADIS and PMIS belongs to fourth and fifth year of the same course. Our experimental environment also involves PhD students that find a favorable environment for the development of their research. This is a win- to-win approach where all stakeholders win. Our IT students developing a software project requested by real clients. The educational approach is mainly based on Project-Based Learning (PBL) principles. Working in a
5 team for a limited period of time and delivering a high-quality product are some of the skills that students should gain during their studies at the university. The lack of professionals in software engineering experiments is due to the conception of high costs and large organizational effort. Usually, companies do not provide their professionals to carry out empirical studies. Port and Klappholz refer that very little empirical research is done in industry and that, for competitive reasons, even when such research is done, its results are often withheld as proprietary or are too difficult to contextualize without divulging sensitive information (Port & Klappholz, 2004). In the survey conducted in (Sjøberg et al., 2005), a total of 5,488 subjects took part in the 113 experiments investigated, eighty-seven percent were students and nine percent were professionals. This survey demonstrates the importance of using students in this context. Tichy refers that software students are much closer to the world of software professionals than psychology students are to the general population (Tichy, 2000). In particular, software graduate students are so close to professional status that the differences are marginal. Software graduate students are technically more up to date than the "average" software developer who may not even have a degree in computing. Software professionals, on the other hand, may be better prepared in the application domain and may have learnt to deal with systems and organizations of larger scale than a student. In our experimental environment, students follow roles and models in IT area very close to real ones. Students have contact with a real enterprise and who challenge them to develop an application that results from a real need. The students collect the software requirements from this enterprise in meetings during the semester. At the end of the semester all teams make a technical presentation of the application developed to the teachers involved and a commercial presentation with the participation of some members of the enterprise. This experimental environment allows the development of different skills in students, which in a teaching classic way would be difficult to achieve. 1.3. Goals and Research Strategy This thesis aims to contribute for the empirical software engineering knowledge in educational context. For this, a conceptual model of experimentation (framework of experimentation) was developed, and an experimental academic environment was created.
6 The research questions are of major importance, as stated by Yin “Defining the research questions is probably the most important step to be taken in a research study, (…)” (Yin, 2014). The demonstration cases and the thesis as a whole aim to provide understanding on answers to the following research questions: • How to create an educational environment to support empirical research in software engineering? • How to Conduct Empirical Software Engineering in educational context? These are the main research questions, however, in each of the demonstration cases specific research questions are referred to. The goals of this thesis are: • Goal 1: Design one educational experimental environment to support empirical research in Software Engineering. With this goal, it is intended to characterize and articulate an educational environment based on curricular units of courses in Information Technology area to support empirical research in software engineering, simulating business contexts of software development. It is intended that the set of curricular units involved is aligned with the nature of the topics under research. • Goal 2: Evolve Basili's experimentation framework to be adopted in educational environment. With this goal, we intend to extend the framework originally created by Victor Basili in order to use it in project work carried out by students of courses in the Information Technology area to support empirical research in software engineering. It is also intended to consolidate the framework through the analysis of projects carried out by students in the software engineering area. • Goal 3: Demonstrate the adoption of the educational experimental environment in empirical research of the software process topics. With this goal, it is intended to concretize concrete cases (real cases) of research in software engineering topics that demonstrate how the educational environment and the experimentation framework support empirical research approaches. It is intended to use real contexts of curricular units within the scope of the Integrated Master in Engineering and Management of Information Systems at the School of Engineering of the University of Minho. According to Robert Yin, “a case study investigates a contemporary phenomenon (the “case”) in its real-world context, especially when the boundaries between phenomenon and context may not be clearly evident” (Yin, 2014). The case study lends itself to investigations of contemporary social phenomena in which
7 the researcher cannot manipulate relevant behaviors that influence and/or change their object of study. The method allows the researcher to deal with a wide variety of evidence, from document analysis, field visits, interviews, and participatory observation (Yin, 2014). Using this research methodology, we must look to the past, collect the data to make an analysis and then generate results. By the other hand, in a demonstration case, the researcher participates in the experiment. The experiment itself allows to collect data for a certain purpose. In this research strategy, the research goals are experience oriented. In the research of this thesis, we deal with three educational contexts, the students, the teachers, and the unit courses. In this thesis, we call demonstration case to the classification of the case study proposed by Yin in which the researcher assumes an explicit role in conducting the work associated with the development of the case; i.e. , in the demonstration case, the researcher participates in the case, not assuming the role of a mere observer and therefore not being an independent and disinterested agent in the realization of the case. For all this, this thesis considers a demonstration case research strategy. 1.4. Structure of this Document The thesis is structured in eight chapters. Each chapter starts with a section of introduction and ending with a section of conclusion; between those, come the sections pertinent to that chapter thematic. Obviously, this does not happen for chapters 1 and 8. The eight chapters of this document and their main content are: Chapter 1: Introduction. This chapter introduces the areas of research, the goals and research strategy, and the document structure. The areas of research are empirical software engineering in educational context, frameworks of experimentation and experimental educational environments. All topics are described in greater detail further on in the thesis. Chapter 2: Empirical Software Engineering. This chapter introduces the origins, concepts, characteristics, and research in the empirical software engineering area. An overview of the main empirical methods collected from the literature is presented. All phases of the experimentation process in software engineering are presented with some detail. The main approaches related to the experimentation process are also presented in this chapter.
8 Chapter 3: Software Process and Project Management. This chapter presents an overview of the software development processes models. These software processes are classified into traditional, plan-driven, iterative and change-driven, and agile software development models. The concepts and the main project management approaches are also presented in this chapter. This chapter also presents an overview of the software metrics. Special focus is given to Use Case Points and Function Points Analysis metrics. Chapter 4: Empirical Software Engineering in Teaching. This chapter presents the common characteristics, issues, and challenges in empirical software engineering in an educational context. The advantages and disadvantages of using students as research subjects are described. This is done in opposite to the professionals. The relevance, objectives, and architecture of our experimentation framework is also presented in this chapter. This section ends with a demonstration case using our framework. This chapter also describes the main educational experimental environments found in the world. After this, it is presented our experimental environment and the results obtained from our Project Based Learning approach using this environment. Chapter 5: Demonstration Case 1 – Use Case Points. This chapter presents the first demonstration case. This case is an empirical study in the software metrics area. After the goals of the demonstration case, a synopsis of the Use Case Points method is presented. In addition to the detailed description of this metric, in this section, it is described an overview of the past effort estimation methods. The analysis and discussion of the Use Case Points method application and results are also presented. In this chapter is also presented the analysis and results of the experimentation framework using this empirical study. Chapter 6: Demonstration Case 2 – Function Points. This chapter presents the second demonstration case. This case is also an empirical study in the software metrics area. After the goals of the demonstration case, a synopsis of the Function Points Analysis method is presented. In this section, an overview, advantages and flaws, and objectives of this metric is presented. The Function Points Analysis method is described in detail in order to understand the application of the method. The analysis and discussion of the Function Points Analysis method application and results are also presented. In this chapter is also presented the analysis and results of the experimentation framework using this empirical study.
9 Chapter 7: Demonstration Case 3 – Software Risks. This chapter presents the third demonstration case. This case is an empirical study in the software project management area. After the goals of the demonstration case, a synopsis of risks in software development projects is presented. In this section, it is also presented the software risks collected from the literature, the importance and benefits of risk management, the methodology followed to compare risks and a comparative risk analysis in software projects. In this chapter is also presented the analysis and results of the experimentation framework using this empirical study. Chapter 8: Conclusions. This chapter presents the research contributions of the work performed. It presents guidelines for future work and research in order to expand and solidify knowledge about Empirical Software Engineering in educational contexts and experimentation frameworks.
16 mitigate its effects by homogenizing samples or groups. These variables are called confounding factors. It is hence crucial to try to identify the factors that otherwise may affect the outcome in an undesirable way. These factors are closely related to the threats against the validity of the empirical study (Wohlin, Höst, & Henningsson, 2003). When the effect of one factor cannot be properly distinguished from the effect of another factor, the two factors are confounded. For example, if expert Software Engineers tested tool A and novice Software Engineers tested tool B, we cannot tell if the higher quality software produced by the experts was the result of their experience or of using tool A. Confounding factors can affect the internal validity of the study (Kitchenham, Pickard, & Pfleeger, 1995). For each factor is set a range of values to be assigned during the experiment with the aim to verify the resulting output in the system. Each combination of values of the factors to be tested in the experiment is called treatment. An empirical study observes the effect of change on one or more factors. The observations that are carried out with an investigation are consequence of treatments; each treatment is attributed to particular values of each factor. These are expressed through independent variables. The values that the independent variables can assume are called levels (Visaggio, 2008). To better understand the main concepts on an empirical study, we present an illustrative example. For example, we want to compare two tools, X and Y, for programming using object-oriented paradigm and we want to use the M1 and M2 methods to verify the results. In this context, we have: • Two factors: (1) software tools for programming, and; (2) different methods of performance assessing of a programming tool; • For the factor, software tools for programming, we have the levels: A and B; • For the factor, methods of performance assessing of a programming tool, we have the levels: M1 and M2; • That the following treatments are applicable: o Treatment A1: tool X and method M1; o Treatment A2: tool X and method M2; o Treatment B1: tool Y and method M1; o Treatment B2: tool Y and method M2; • As quality dependent variable we could define the quality of a small or medium software application developed in each of the programming tools and evaluated by each method; • As context variable, we could indicate the experience of subject in software programming languages.
17 In addition to the concepts already presented, there are others that are equally important in an empirical study, namely: • Objects, that are the tools used to verify the cause - effect relationship existing in an experiment. These objects are the instruments or instrumentation of the experiment; • Participants, that are the individuals selected for composition of a representative sample of a target population for which we wish to generalize the results of the experiment. As greater, the diversity of individuals in the target population, as greater the number of individuals needed to form a representative sample. Are generally selected for convenience in software engineering and divided into groups (or teams). The type of participants can vary from novice students without experience to practitioners experienced in the study domain; • Experimental trial, that is according to the treatments, the combination of objects and participants (or groups). It is also denominated as internal replication in (Juristo & Moreno, 2001). According to the previous example and assuming that, we have 20 participants chosen for convenience, 10 with experience and 10 without experience in software programming languages, we have: • As objects the initial configuration of the software programming tool A and B and the procedures (steps) to apply M1 and M2 methods (these instructions can be printed in a paper or can be a software tool); • As experience is a non-controllable variable, we want to mitigate their influence forming two teams (Team 1 and Team 2): each team with 5 experienced participants and 5 without experience. If the experience was an independent variable, we could form two teams, one with participants with experience and other with participants without experience in software programming tools; • The possible experimental trials: o Treatment A1, Team 1 and Treatment B2, Team 2; o Treatment A1, Team 2 and Treatment B2, Team 1; o Treatment A2, Team 1 and Treatment B1, Team 2; o Treatment A2, Team 2 and Treatment B1, Team 1.
18 2.3. Overview of Empirical Methods In this section, the empirical research methods applied to experimentation are discussed. We present some taxonomies to classify empirical studies. Finally, we present some overviews of the entire SE experimentation process. There are two main types of research paradigms having different approaches to running empirical studies. Qualitative research is concerned with studying objects in their natural setting. A qualitative researcher attempts to interpret a phenomenon based on explanations that people bring to them (Denzin & Lincoln, 2011). This type of research is well defined in social sciences. In this context, is a broad term that describes research that focuses on how individuals and groups view and understand the world and construct meaning from their experiences. It is mainly directed to the narrative. Qualitative research begins with accepting that there is a range of different ways of interpretation. It is concerned with discovering causes noticed by the subjects in the study and understanding their view of the problem at hand. The subject is the person, which is taking part in a study in order to evaluate an object (Wohlin et al., 2003). Qualitative research in SE is usually the same meaning of the social sciences, seeking to focus on understanding the phenomenon of research in its naturally occurring environment. In general, the main techniques used in SE is the observation of participants, interviews, and artefact analysis. The data collected from these experiments are usually composed of text, graphics or even images, etc. Thus, for example, an inquiry to determine why productivity is higher with a new Integrated Development Environment (IDE) and gather data directly from users would be a qualitative study. This study would be concerned with things like the programming language integrated and how users are familiarly with it. Quantitative research is based on numerical representation of observations for the purpose of describing and explaining a phenomenon. This type of research is mainly concerned with quantifying a relationship or to compare two or more groups (Creswell & Creswell, 2017). Quantitative research aims to get a numerical (quantitative) relationship between several variables or alternatives under examination. Thus, the aim is to identify a cause - effect relationship. The quantitative research is often conducted through setting up controlled experiments or collecting data through case studies (Wohlin et al., 2003). Quantitative research begins with the collection of data, followed by the application of various descriptive statistical methods and inference. For example, we would be able to determine how to improve programmer productivity using a new IDE by means of a quantitative investigation. The data collected in this sort of studies are always numerical
19 values (programmer productivity in this case) to which mathematical methods can be applied to yield formal results. Qualitative research can be used with quantitative research to achieve a deeper understanding of the causes of a social phenomenon or help to create new research questions. It is possible for qualitative and quantitative research to investigate the same topics but each of them will address a different type of question. For example, a quantitative investigation could be launched to investigate how much a new inspection method decreases the number of faults found in test. To answer questions about the sources of variations between different inspection groups, we need a qualitative investigation. Quantitative research is appropriate when you want to test the effects of a treatment, while a qualitative research is appropriate to find out why the results from a quantitative research are as they are (Wohlin et al., 2003). The two approaches should be regarded as complementary rather than competitive (Wohlin et al., 2012). Qualitative research is generally considered exploratory and inductive, while quantitative research is usually confirmatory and deductive. The use of a multi-method approach, i.e., the use of a combination of quantitative and qualitative research methods, provides benefits in terms of more robust conclusions, development and investigation of research hypotheses in an evolutionary manner, and increased understanding of research results (Wood et al., 1999). Wood et al. demonstrated an application of the multi-method approach in an empirical investigation of object-oriented technology. Their research program consisted of a set of structured interviews with practitioners of object-oriented technology, followed by a wide-scale questionnaire survey, and concludes with a set of three controlled laboratory experiments which investigated one of the key findings from the exploratory interview and questionnaire phases (Wood et al., 1999). The empirical method selection depends of the prerequisites research, its purpose, the availability of resources and how to intends to analyze the collected data (Wohlin et al., 2012). In SE area, when we think of an experiment, we often think of a roomful of subjects, each being asked to perform some task. The task is usually followed by data collection and then analysis. This is certainly a type of experimentation. But there are other approaches as well, each of which can be grouped into four general categories (Adrion, 1993; Zelkowitz & Wallace, 1998; Zelkowitz, Wallace, & Binkley, 2003):
20 1. Scientific method. Scientists develop a theory to explain a phenomenon; they propose a hypothesis and then test alternative variations of the hypothesis. As they do so, they collect data to verify or refute the claims of the hypothesis. 2. Engineering method. Engineers develop and test a solution to a hypothesis. Based upon the results of the test, they improve the solution until it requires no further improvement. It is an evolutionary paradigm. 3. Empirical method. A statistical method is proposed as a means to validate a given hypothesis. Unlike the scientific method, there may not be a formal model or theory describing the hypothesis. Data is collected to verify the hypothesis. It is a revolutionary paradigm. 4. Analytical method. A formal theory is developed, and results derived from that theory can be compared with empirical observations. The engineering and empirical methods can be seen as variations of the scientific method since both lead with hypothesis. Traditionally, the analytical method is used in formal areas of Electrical Engineering and Computer Science. The engineering method is probably the dominant method in the industry. The common thread of these methods is the collection of data on either the development process or the product itself. All these methods can be used in software engineering for different purposes. Some authors propose what they call experimental research methods or technology validation models applied to software engineering. Can we consider method or model such proposals seek to define a taxonomy for categorization the studies performed in software engineering? Thus, we present the taxonomy classification of empirical methods discussed in (Galliers, 1991; Travassos & Barros, 2003; Zelkowitz et al., 2003). Based on Galliers work, Mandic et al. identifies commonly used empirical research methods in software engineering, characterizing them in terms of desirable experimental criteria. According to Mandic et al. , the following methods are usually combined: observational studies , pre-experiment studies , quasi-experiments , controlled experiments , and surveys (Mandić, Markkula, & Oivo, 2009). This empirical research methods are characterized by: 1. Observational studies (also known as field, correlational, multiple-case, and single-case studies): in these studies, the researcher does not expose objects or participants in any treatment. Data is usually collected in the field without exposure to any treatment. Data may be collected through visual observation, interviews, data collection forms, or from historical data. In the context of the multi-method approach observational studies may be used to characterize, baseline, and/or identify
21 relationships. Observational studies are seen as being relatively good for theory generation, have high external validity and are relatively cheap to organize. 2. Pre-experimental study: in a pre-experimental study, a treatment is applied to only one case, for example, an organization, a project, a single group of subjects, a unique subject, etc. It is usually conducted in the field and a comparison is made against a baseline. The term ‘pre-experimental’ is used to denote a study that, does not satisfy the basic criteria of an experiment, rather than being a study conducted before an experiment. Usually, a pre-experimental study is conducted as a research of a new technology introduced in an organization's environment for test how useful is when compared to current practice. For example, evaluating the introduction of object-oriented technology into a pilot project by comparison against a company baseline. 3. Quasi-experimental study: in a quasi-experimental study, no random assignment of subjects/objects to treatments. One or more treatments may be applied to two or more groups, direct comparison amongst groups is performed, and usually conducted in field settings. The major restriction is that researchers are often unable to select and randomly assign participants or projects to the conditions. Consequently, representative samples of the study population are not likely to be achieved and comparisons cannot be made based on equivalent groups without some form of study manipulation. Depending on the restrictions, a quasi-experimental study can be conducted under representative conditions where the available level of control is minimal, or in a controlled laboratory conditions. Quasi-experimental studies are characterized as having good internal validity, good potential for theory conformation, and some potential for replication. 4. Controlled experiment: in a controlled experiment, a random assignment of subjects, explicit experimental design, with one or more treatments to two or more groups, direct comparison amongst groups is performed. Usually, controlled experiments are conducted in a laboratory setting. All variables that may confound the results should be kept constant through the participants to a high level of control can be achieved. Different effects are compared with subjects randomly assigned to different treatment levels of the independent variables. Controlled experiments provide the best hope for internal validity and theory confirmation. They are also relatively easy to replicate. Additional subjects do not add significantly to the cost of the study. 5. Survey: in a survey, some kind of structured sample of subjects is applied. A survey is usually conducted through questionnaires and/or interviews. It is used to identify knowledge of a particular
22 group of people on an object of study, for example, their views on a particular technology or beliefs about software engineering practices in their organizations. Knowledge elicited can be used to describe a population from sample data or to identify general relationships. Surveys have high external validity, good potential for theory generation, are straightforward to replicate and are relatively cheap to organize. According Zelkowitz et al. , the classification of studies performed in software engineering is through technology validation methods for academia and industry that differ in goals (Zelkowitz et al., 2003). Research methods applied by the research community (academia) can be considered as exploratory, in the researchers’ attempts to understand and develop new technology. Industry, on the other hand, wants methods that work, so their techniques are more confirmatory, showing that a given method does indeed have the desired properties. While researchers seek to compare efficiency between technologies, the industry seek to become more competitive (by reducing costs, deadlines, reworking or improves the quality of your process/product), does not always using the most efficient technology. In (Zelkowitz & Wallace, 1998; Zelkowitz et al., 2003) the empirical research methods are classified in: 1. Observational methods: in these methods the data are collected as a project develops. There is relatively little control over the development process unless on the use of new technology being introduced. 2. Historical methods: these methods involve an analysis of collected data to discover what happened during the development of a previously developed project. Thus, the data collection is performed on projects that have already been finalized, i.e., the data already exist, only it is necessary to analyze what has been collected. 3. Controlled methods: these methods involved careful study of alternative strategies to determine the effectiveness of one method as compared to other methods. This is the more traditional concept when one thinks of an ‘experiment’. In these methods are expected statistical validity of the results for multiple instances of an observation. This is the classic method of experimental design in other scientific disciplines. 4. Formal methods: these methods involve using a formal model to describe a process. Ultimate validation depends upon using another validation method to determine whether the formal model agrees with reality. The only kind of formal method would be the theoretical analysis.
23 5. Informal methods: these methods are generally ad hoc and do not provide significant results that the technique under study provides the benefits that are claimed. For each method, there is a subset of types of studies that we can find either in academia or in industry, but their discussion is beyond the scope of this thesis. Table 2.2 shows the types of studies for each of the five methods according (Zelkowitz et al., 2003). Table 2.2: Validation Methods according to Zelkowitz et al. (Zelkowitz et al. , 2003) Method Academia Industry Observational Case study Project monitoring Field study Case study Project monitoring Field study Historical Legacy data Literature search Lessons learning Static analysis Legacy data Literature search Education Feature benchmark Expert opinions Controlled Dynamic analysis Replicated experiment Simulation Synthetic environment Pilot study Demonstrator projects Replicated projects Synthetic benchmark Formal Theoretical analysis Theoretical analysis Informal Assertion No validation Vendor opinion External Depending on the purpose of the evaluation, whether it is techniques, methods, or tools, and depending on the conditions for the empirical investigation, Wohlin et al. proposes four major different types of empirical research methods (Wohlin et al., 2012; Zelkowitz et al., 2003). These methods are classified in: 1. Experiment: they are usually performed in a laboratory environment ( in vitro ) which provides a higher level of control but can be carried out under normal conditions ( in vivo ). Experiments are sometimes referred to as research-in-the-small, since they are concerned with a limited scope and most often are run in a laboratory setting. They are suitable to confirm the theories, to confirm the conventional knowledge, to explore relationships, to assess the predictive models or to validate the measures. The greatest strength of the experiments is in the control over the process and the variables and the possibility to be repeated. When experimenting, subjects are assigned to different treatments at random. The objective is to manipulate one or more variables and control all other variables at fixed levels. The effect of the manipulation is measured and based on this a statistical
24 analysis can be performed. In some cases, it may be impossible to use true experimentation, in these cases we may have to use quasi-experiments. Quasi-experiments are used when it is impossible to perform random assignment of the subjects to the different treatments. 2. Case study: they are used for monitoring projects, activities, or assignments. Case study research is sometimes referred to as research-in-the-typical. It is described in this way due to that normally a case study is conducted studying a real project and hence the situation is ‘typical’. Data is collected for a specific purpose throughout the study. Based on the data collection, statistical analyses can be carried out. The case study is normally aimed at tracking a specific attribute or establishing relationships between different attributes. The level of control is lower in a case study than in an experiment. A case study is an observational study while the experiment is a controlled study. The case study is the preferred strategy when the questions "how" and "why" are placed, when the researcher has little or no control over events and when the focus is on a contemporary phenomenon within a real context. Case studies can be complemented by two other types of study: exploratory and descriptive. Regardless of the type of study, researchers must take great care to design and execute a case study in order to overcome the traditional criticism of the method (Yin, 2014). 3. Survey: the survey is by referred to as research-in-the-large (and past), since it is possible to send a questionnaire to or interview many people covering whatever target population we have. Thus, a survey is often an investigation performed in retrospect, when, for example, a tool or technique has been in use for a while in an organization and we want to evaluate it in some aspect. The primary means of gathering qualitative or quantitative data are interviews or questionnaires. These are done through taking a sample that is representative from the population to be studied. The results from the survey are then analyzed to derive descriptive and explanatory conclusions. They are then generalized to the population from which the sample was taken. Surveys are very similar to the census, differing primarily in the fact that the surveys typically examine a sample of a population, and a census usually implies an enumeration of the entire population. 4. Post-mortem analysis: this type of analysis is also conducted on the past as indicated by the name. It would be possible to study any part of a project retrospectively using this type of analysis. Thus, this type of analysis may be described as research-in-the-past-and-typical. It can hence be viewed as related to both the survey and the case study. The post-mortem may be conducted by
25 looking at project documentation (archival analysis) or by interviewing people, individually or as a group, who have participated in the object that is being analyzed in the post-mortem analysis. The last two methods are both concerned with research-in-the-past, although they have different approaches to studying the past. According to the taxonomy proposed by Travassos and Barros, empirical studies that can be run in software engineering can be classified as (Travassos & Barros, 2003): 1. In vivo experiments: such experiments involve people in their own environments. In software engineering, experiments executed in software development organizations throughout the software development process and under real circumstances can be characterized as in vivo . They are studies with high influence in the supply chain of an organization and therefore they are considered of the greatest risk. A failure in the execution of the study may reflect in the intermediate product of a process and result in quality loss of the final product, generating rework, additional costs, and additional deadlines. Unlike an in vitro study in which the environment is prepared in these studies the environment is the process itself where tasks are performed. 2. In vitro experiments: such studies are executed in a controlled environment, such as a laboratory or a controlled community. In software engineering, most in vitro experiments are executed in universities or among selected groups of a software development organization. They are the most performed studies in software engineering area. In these studies, researchers assemble situations similar to real environments in prepared ("laboratories") environments, to observe how developers perform certain task. In this context a prepared environment is an environment in which some of its variables can be controlled or at least observed. Usually, in vitro studies involve manageable risks because they are not affecting any productive process within an organization. But they are also the most difficult studies, as it is difficult for organizations, regardless of their nature, academic or industrial, align the performance of these studies with their organizational objectives. For example, to perform a study in a course, the technology that we want study must be part of the syllabus of that course. In addition, they are also required to allocate physical re-sources (such as rooms, laboratories, tables) and the necessary hardware and software for environment composition where the study will be performed. About the subject selection, we can refer that is a difficult task, especially in industrial environments. It is not easy to take developers from their tasks and allocate
32 • Alternative Hypothesis, Ha H1, H2, etc: suggests that there is a significant difference between the two treatments. It specifies the assertion in favor of the rejected null hypothesis. For example, if the purpose of the experimental study is to compare two techniques of inspection requirements A and B. Then we can have: H0: There is no difference between the techniques A and B. Ha: There is difference between the techniques A and B. H1: The technique A is more efficient than the technique B. H2: The technique B is more efficient than the technique A. In hypothesis definition, we must pay attention to the risks associated with method used in hypothesis testing. These risks try to translate the possible errors that can occur during the hypotheses verification. Among these errors are generally considered Type I Error and Type II Error . The Type I Error occurs when the statistical test rejects the null hypothesis and this could not be rejected. This type of error indicates the presence of a relationship when this relationship does not exist. A means of evaluating this error is through their probability of occurrence, defined as (Wohlin et al., 2012): P (Type I Error) = P (H0 is rejected | H0 is true) The Type II Error occurs when the statistical test does not reject the null hypothesis and it should be rejected. This type of error indicates the absence of a relationship when this relationship could be effectively demonstrated. As in case of a Type I Error , a means of evaluating this error is through their probability of occurrence, defined as: P (Type II Error) = P (H0 is not rejected | H0 is false) A means of evaluating the error made during in the hypotheses verification is through the power of the statistical test to be applied. The power of the statistical test is defined as the probability that the test will correctly rejecting the null hypothesis. The power is defined as: Power = P (H0 is rejected | H0 is false) = 1 - P (Type II Error) Thus, the statistical test with higher power must be chosen. The knowledge of the power of the statistical test can influence the planning, implementation, and results of the experimental study. In (Dybå, Kampenes, & Sjøberg, 2005) is discussed the relevance of the statistical power applied in empirical software engineering research and it is presented a systematic review (Biolchini, Mian, Natali, & Travassos, 2005;
33 Dyba, Kitchenham, & Jorgensen, 2005; Kitchenham, 2004; Kitchenham, Dyba, & Jorgensen, 2004) of the statistical power of the studies performed by the Software Engineering community in the decade 1993-2002. The third step of experiment planning activity is the variables selection . In this step we define the independent (inputs) and dependent variables (outputs) to be used in experimental study and should be derived directly from the hypothesis formulated. The independent variables are those that can be controlled in an experimental study, which can be used to limit the scope of an experimental study and to differentiate experimental studies. The dependent variables are the factors that are expected to change or have a difference as a result of the application of changes in the independent variables. An important issue regarding the variables is to determine the values the variables actually can take. This also includes determining the measurement scale, which puts constraints on the method that we later can apply for statistical analysis. The fourth step of planning experiment activity is the selection of subjects . In this step the subjects of the study are identified. It is in this step that we take the decision of the objects allocation and participant’s selection. To generalize the results, the selection should be representative for that population. To obtain a sample, we must begin by defining a target population. The target population is the group or the individuals to whom the study applies. Ideally, a target population should be represented as a finite list of all its members. It is very important to define a representative sample, because, if we do not have a representative sample, we cannot claim that our results generalize to the target population. Once we are confident that our target population is appropriate, we must use a rigorous sampling method. The methods used to define the sample of a population are defined as probabilistic and nonprobabilistic methods. The probabilistic method is one in which every member of the target population has a known, non-zero probability of being included in the sample. The aim of this method is to eliminate subjectivity and obtain a sample that is both unbiased and representative of the target population. It is important to remember that we cannot make any statistical inferences from our data unless we have a probabilistic sample. The non-probabilistic method is used when the participants are chosen because they are easily accessible, or the researchers have some justification for believing that they are representative of the population. This type of method runs the risk of being biased (that is, not being representative of the target population), so it is dangerous to draw any strong inferences from them. Certainly, it is not possible to draw any statistical inferences from such samples. The detail of some techniques of the probabilistic and nonprobabilistic methods is available in (Kitchenham & Pfleeger, 2002). In (Kitchenham et al., 2002) are defined some guidelines for the activity of participants selection:
34 • Identify the population from which the subjects and objects are drawn; • Define the process by which the subjects and objects were selected; • Define the process by which subjects, and objects are assigned to treatments. The fifth step of planning experiment activity is the choice of design type . In this step we must design a plan to systematically manipulate the independent variables and observe the dependent variable, and the operational context of the study, i.e. , physical, intellectual, and cultural description of the environment in which the study is will run. Based on the statistical assumption, that is, the measurement scales and in which objects and participants are available for use, we can choose the experimental design. During the experimental design we must determine how many tests we must perform to make sure that the treatment effect is visible. A design of an experiment describes how the tests are organized and run. The design and the statistical analysis are closely related because the choice of design affects the analysis and vice versa. In order to make the results more conclusive and meaningful, the “standard” approach to studies in empirical software engineering is the “comparative group experiment”. However, this approach requiring a huge number of subjects results in issues involving the expense, timeliness, and applicability of results. Although uncommon, Harrison discusses the use of experimental designs using a single subject experiment, arguing about facilities and risks associated with this type of experimental design (Harrison, 2000). An experimental design well done forms the basis to allow the experimental study replication (Wohlin et al. , 2012). The general design principles to be considered in an experiment design are randomization, blocking and balancing, and the most of experiment design use some combination of these (Wohlin et al., 2012). One of the most important design principles is randomization. All statistical methods used to analyze the data require that observations are from independent random variables. The randomization applies on the allocation of the objects, subjects and in which order the tests are performed. It is used to average out the effect of a factor that may otherwise be present and also used to select subjects that is representative of the population of interest. Sometimes, we have a factor that has, probably, an effect on the response, but no one is interested in this effect. Blocking is used to systematically eliminate the undesired effect in the comparison among treatments. Within one block, the undesired effect is the same and we can study the effect of the treatments
35 on that block. This technique increases the precision of the experiment, and can be used when the effect of the factor is known and controllable (Wohlin et al., 2012). If the treatments are assigned in such a way that each treatment has equal number of subjects, it will have a balanced design. This technique serves to simplify and strengthen the statistical analysis of data, but it is not entirely necessary (Wohlin et al. , 2012). The sixth step of planning experiment activity is the instrumentation . The overall goal of the instrumentation is to provide means for performing the experiment and to monitor it, without affecting the control of the experiment. The instrumentation does not affect the outcome of the experiments, if it occurs then the results are invalid. We must identify and prepare suitable objects, develop guidelines, if necessary, and define measurement procedures (Wohlin et al. , 2012). The instruments for an experiment are of three types, namely, objects, guidelines, and measurements instruments. The objects may be, for example, specification or code documents, and it is important to choose objects that are appropriate. The guidelines are needed to guide the participants in the experiment, this includes for example, process descriptions and checklists. The measurement instrument is used to collect data, this made, generally, by forms or interview. The measuring task to be used is to prepare forms and interview questions and validate these forms and questions with some people having similar skills to the subjects in the experimental study (Wohlin et al. , 2012). Amaral characterizes the instruments in artifacts of the experimental study and artifacts of the software (Amaral, 2006). Basically, experiment artifacts are guidelines and software artifacts, the objects. The seventh and last step of planning experiment activity is the validity evaluation . As a part of the planning, it is important to consider the question of validity of the results we can expect. Before the results are presented it is important to assess how valid the results are. The concepts of validity refer to the best available approximation to the truth or falsity of the statements. An appropriate validity refers to the results which should be valid for population of interest. First, the results should be valid for the population from which the sample was taken. Second, may be of interest to generalize the results to a larger population (Wohlin et al. , 2012). Validation consists of checking each form for correctness, consistency, and completeness. As part of the validation process, in cases where such checks reveal problems, the people who filled out the forms are interviewed (Basili & Weiss, 1984). Threats to validity are influences that may limit our ability to interpret or draw conclusions from the study's data (Perry, Porter, & Votta, 2000). Researchers have a responsibility to discuss any limitations of
36 their study (Kitchenham et al., 2002). There are at least four major classes of validity that can be used to protect our studies from these threats: conclusion, internal, construct and external validity (Visaggio, 2008; Wohlin et al. , 2012). The conclusion validity is concerned with the relationship between the treatment and the outcome of the experiment. We have to judge if there is a relationship between the treatment and the outcome. It must be ensured that there is a statistical relationship with a meaning. The risk is that the researchers do not draw the correct conclusion about relations between the treatment and the outcome of an experiment. The internal validity is concerned with the validity within the given environment and the reliability of the results. This class of validity is concerned with factors that may affect the dependent variables without the researcher’s knowledge (Wohlin et al., 2003). Internal validity means that changes in the dependent variables can be safely attributed to changes in the independent variables (Perry et al., 2000). Internal validity refers to how we infer that a relationship between variables is casual or that the lack of a relationship implies the lack of a cause. Internal validity is the basic minimum without which any experiment is uninterpretable. One way of assessing the existence of internal validity is answer the following question: Did in fact the experimental treatments make a difference in this specific experimental instance? (Campbell & Stanley, 1963). The construct validity is a matter of judging if the treatment reflects the cause construct and the outcome provides a true picture of the effect construct (Wohlin et al., 2012). Construct validity means that the independent and dependent variables accurately model the abstract hypotheses (Perry et al., 2000). The construct validity is related to the relationship between the concepts and theories behind the experiment and what is measured and affected (Wohlin et al., 2003). The external validity is a question of how general the findings are. Many times, we would like to state that the results from an experiment are valid outside the actual context in which the experiment was run (Wohlin et al., 2012). External validity asks the question of generalizability: To what populations, settings, treatment variables, and measurement variables can this effect be generalized? (Campbell & Stanley, 1963). The risks involved in this class of validity are: wrong experimental subject, wrong environment and performances, and wrong timing so that the results are affected from changed characteristics of the original experiment (Visaggio, 2008). According to Carver et al. , in software engineering, the understanding of the threats of each type of validity is influenced by three factors: people, processes and products (Carver, VanVoorhis, & Basili, 2004). In this sense, when designing an experimental study, threats to validity must consider each of these factors.
37 A controversial issue on threats to validity is the use of students as subjects as equivalent to professional individuals, a threat to the external validity. It is convenient to use students as subjects in experimental studies because they are cheap, plentiful, and easily managed. However, there is a common skepticism about the ability to generalize results of these studies to industrial environments (Harrison, 2000). According to Host et al. , software engineering students may be used instead of professional software developers under certain conditions (Höst, Regnell, & Wohlin, 2000). In (Berander, 2004) is showed that requirements prioritizations made by students and customers in projects seem to be more similar to industry. Moreover, Carver et al. point out that the use of students as subjects have helped in the development of new technologies and in the debugging of development technologies and experimental protocols for later use in industry. The authors suggest an approach based on observation and training to students gaining experience. With this, the main goal is decrease the differences between university students and industrial professionals when they run studies in a classroom environment (Carver, Shull, & Basili, 2003). Höst et al. argue that it is essential to understand the factors that differentiate students from industrial professionals and thus obtain a better understanding of the validity of the results using students as subjects (Höst et al., 2000), since it is no clear how well the results of students generalize to software engineers professionals (Harrison, 2000). Empirical Software Engineering using students versus professionals will be better explained in chapter 4. In conclusion, we can argue that the planning is a crucial step in an experiment to ensure that the results from the experiment become useful. Poor planning may ruin any well-intended study. 2.4.3. Experiment Operation After design and plan the experimental study, the next task is to execute it in order to collect the data that will be analyzed. The operation consists in principle of three steps: preparation, execution and data validation (Wohlin et al., 2012). In the preparation step, we are concerned with preparing the subjects as well as the material needed, for example, data collection forms. When running the experiment, it is vital to monitor the process carefully to ensure that everything is being done according to plan. Errors in experimental procedure at this stage will usually destroy experimental validity. Montgomery suggested that prior to conducting the experiment a few trial runs or pilot runs are often helpful. These runs provide information about consistency of experimental
38 material, a check on the measurement system, a rough idea of experimental error, and a chance to practice the overall experimental technique (Montgomery, 2012). It is in this stage that the treatments are applied to all participants. This means that, this is the stage of the experimental study where the experimenter really meets with the participants. In most experimental studies in software engineering there are few other occasions where participants are really involved. When dealing with people, researchers need to motivate them to participate in experimental studies, because no matter how good the experimental design and data analysis, the results will be invalid if the participants do not have actively participated in the experimental study. Some issues should be taken into account in order to convince them to participate in an experimental study as subjects: obtaining their consent and commitment, inform them about the intention of the experimental study, present results that sensitize them, preparing attractive elements to participate in the experimental study, and prevent that they be disappointed with the experimental study (Wohlin et al., 2012). The actual execution is normally not a major problem. The main concern is to ensure that the experiment is conducted according to the plan and design of the experiment, which includes data collection. Data collection from interviews (Hove & Anda, 2005) and questionnaires (Kitchenham et al., 2002; Punter, Ciolkowski, Freimut, & John, 2003) are the most common. The main advantage of using questionnaires is that does not require much effort of the experimenter, because he does not have to take an active part in the collection activity. The main disadvantage is that the experimenter does not have possibility to find directly inconsistencies, uncertainties, and faults in the questionnaires, among others. In (Karahasanovic et al., 2005) are presented unobtrusive methods of collecting data. These methods are characterized by non-intervention of the participants and researchers in the process of collecting the data. The authors developed a feedback-collection tool to obtain additional during the experiments. According the authors, this additional data are useful to: validate the data obtained from other sources about solution times and quality of solutions; check process conformance; understand problem solving processes; identify problems with experiments; and understand subjects’ perception of experiments (Karahasanovic et al., 2005). When we create forms, it is important to decide if the participants must fill the forms anonymously or not. If no additional studies and therefore there is no real need for experimenter distinguish between different participants, then it may be appropriate use anonymous forms. But this means that there is no possibility to contact the participant if something is not filled in a proper manner. In many cases it is appropriate to prepare
39 a personal set of tools for each participant because many projects deal with randomness and repetition tests. In this sense, we can assign different treatments to them. However this can also be done when participants are anonymous (Wohlin et al., 2012). In final step of the experiment operation, we must try to make sure that the actually collected data is correct and provide a valid picture of the experiment. In this sense, after data collecting, it is important to verify that the data was properly collected and if they are reasonable. This means, for example, if the participants understood the questionnaires and thus, they fill them correctly. Another type of error occurs if the participants have not participated in the experimental study seriously and therefore some data should be removed before analysis. One way to verify if the participants understand the experimenter's intentions is to provide, for example, a seminar to present the results (Wohlin et al., 2012). 2.4.4. Analysis and Interpretation The data collected during operation provide the input to this activity. The data can now be analyzed and interpreted. After collecting the data in the operation activity, you should be ready to write conclusions based on these data collected. To write valid conclusions, these data should be interpreted. The first step in the analysis is to try to understand the data by using descriptive statistics. These provide a visualization of the data. The descriptive statistics help us to understand and interpret the data informally (Wohlin et al., 2012). The interpretation of the data leads us back to our original research questions. At this time, we must understand and explain the limits of the study: what conclusions can we draw? Where are we limited in drawing conclusion? What might have influenced our results? It is also important try to explain what questions were answered and do not simply present the data. We should also discuss the practical significance of the results (Perry et al., 2000). The next step is to consider whether the data set should be reduced, either by removing data points or by reducing the number of variables by studying if some of the variables provide the same information. Specific methods are available for data reduction (Wohlin et al., 2012). Basically, there are two approaches for presenting and analyzing data: quantitative analysis and qualitative analysis. Quantitative analyses, as the name suggests, deal mainly with comparing numeric data. The comparisons are typically aimed at rejecting or not rejecting a null hypothesis. Two of the tools used in quantitative analysis are hypothesis testing and power analysis. Qualitative analysis tends to use data that is
40 less readily quantified: observations, interviews, among others. These techniques tend to be used when we want to understand people´s perspectives of a situation (Perry et al., 2000). Thus, after having removed data points or reduced the data set, we are able to perform a hypothesis test, where the actual test is chosen based on measurement scales, values on the input data and the type of results we are looking for. One important aspect of this activity is the interpretation. That is, we have to determine from the analysis whether the hypothesis was possible to reject. This forms the basis for decision-making and conclusions concerning how to use the results from the experiment, which includes motivation for further studies, for example, to conduct an enlarged experiment or a case study (Wohlin et al., 2012). 2.4.5. Presentation and Package The last activity is concerned with presenting and packaging of the findings. In this activity the data, artifacts and conclusions about the experimental study are recorded and the policies how it would be available to the Software Engineering community are defined. This includes primarily documentation of the results, which can be made either through a research paper for publication, a lab package for replication purposes or as part of a company’s experience base. Independently, we must take some time after the experiment to document and present it in a proper way. In this last activity is important to make sure that the lessons learned are taken care of in an appropriate way. Moreover, an experiment will never provide the final answer to a question, and hence it is important to facilitate replication of the experiment. A comprehensive and thorough documentation is a prerequisite to achieve this objective. Having said that, the use of lab packages should done with care since using the same experimental design and documents may carry over some systemic problems and biases from the original experiment (Wohlin et al., 2012). Therefore, experiments packages containing all the artifacts and documents produced and used throughout the execution of experimental studies need to be built (Amaral, 2006). The issue of packaging allows the repetition and confirmation of the results by other researchers. In the case of isolated studies is difficult to understand how to generalize the results and, therefore, how to evaluate their real contribution to Software Engineering community. Unfortunately, in Software Engineering, too many studies tend to be isolated and are not replicated, either by the same researchers or by others (Basili et al., 1999). To have scientific validity, experimental studies should allow its replication and proof.
41 2.5. Approaches Related to Experimentation One of the main expectations related to the experimentation in the Software Engineering is its role as a facilitator agent to software process improvement (Ott, Kinnula, Seaman, & Wohlin, 1999) and in the technology transfer from academia to industry (Shull et al., 2001; Sjøberg et al., 2002). From this perspective, some approaches proposed in Software Engineering are related to the application of a methodology of knowledge acquisition through data collection and analysis. In general, these approaches seek to apply, in essence, a continuous cycle with the following steps: • Characterize the process, the environment and basic objectives of a technology, process or organization; • Set from the goals, which will be measured on the product or process; • Acquire the data collection or feedback from the developer, project or process; • Compare the current practices with new ones or detect deficiencies; • Analyse the data collection; • Propose a forthcoming improvement to be incorporated through new practices or acquiring a new technology. Related with the software process improvement, we must highlight the Quality Improvement Paradigm (QIP) (Basili, 1985; Basili & Green, 1994), the Experience Factory (Basili, 1989; Basili et al., 1992; Basili, Caldiera, & Rombach, 2002a; Basili & Seaman, 2002), the Knowledge Dust and Pearls (Basili et al., 2001) and the GQM (Basili, 1992; Basili et al., 2014) approaches. The QIP was developed as a process for applying the scientific method to software engineering in an industrial environment. The QIP consists of six basic steps (Basili, 2011): 1. Characterize the current project and its environment with respect to the appropriate models and metrics. ( What does our world look like? ) 2. Set quantifiable goals for successful project performance and improvement. ( What do we want to know about our world and what do we want to accomplish? ) 3. Choose the process model and supporting methods and tools for this project. ( What processes might work for these goals in this environment? )
48 behavior. Although these studies are performed in the organizational environment, there is still the isolation of the organizational productive processes. Such studies serve as test cases of technology use within the organizational environment. From the interaction between technology and organizational environment, problems and deficiencies can be identified and addressed, considering all knowledge built in the analysis of data from previous steps. At this point, one can conclude that the adoption of a technology can be prohibitive for certain organizational environments. In “Case Study – Use in industry”, the study will be performed in the production process of an organization. The risks of this type of study are the highest since ranging from training cost, lack of variables control and human behavior to the negative impact on the performing tasks in the supply chain of an organization. All the above steps have sought to minimize those risks associated with the introduction of new technology. The latest assessments can be made in order to identify any points not covered yet and if the observable results are inside of expected results, so that action can be taken if necessary. Figure 2.7: Risks associated with each type of study over the time Figure 2.7 presents the increased risks associated with the implementation of the different types of studies over time. Also observed is the fact that, in general, as the risks increase, control over organizational environmental variables decreases. However, the use of iterative approaches brings several other new challenges for researchers. Since the iterations imply several replications of the same experimental study. When the term replication is used, it is generally assumed that involve to replicate the study without any changes. In the scope of this thesis, we will consider a replication to be a study that is run, based on the design and results of a previous study, Feasibility Study Observational Study Case Study: Use in real lifecycle Case Study: Use in industry Risks associated with each type of study Time Control over organizational environment variables
49 whose goal is to either verify or broaden the applicability of the results of the initial study. If a researcher wished to explore the applicability of the results in a different context, then the design of the original study may be slightly modified but still considered a replication (Shull et al., 2001). Based on the experience gained from Readers’ Project (Shull et al., 2002; Shull et al., 2004), a bilateral project supported by the Brazilian (CNPq - Conselho Nacional de Desenvolvimento Científico e Tecnológico) and American national science agencies (NSF - National Science Fundation) were investigated replications and transfer of experimental know-how issues in experimental studies performing. According to Shull even when the experiment packages are effectively specified and exist, researchers find difficulties to understand and select an appropriate study to replicate it. The main difficulty is to understand the concepts underlying the techniques under study and to master the knowledge involved in running the experiment. This problem can be thought of as the difficulty in transferring experimental knowhow between the original experimenters – the knowledge providers – and the replicators – the knowledge users (Shull et al., 2002). Moreover, hardly in an experimental study replication will be possible reproduce all variables from the original study. The environment and the sample population will be different, and perhaps, it will be necessary adapt the instruments to extend the applicability of the original study. Thus, Shull et al. draw attention to develop mechanisms to understanding and defining the experimental knowledge transfer process and evolution of the artifacts of an experiment package, through collaborative structures to facilitate interaction between researchers (Shull et al., 2002). In the field of Empirical Software Engineering, a central challenge is to efficiently share experimental knowledge between replicators in order to facilitate replication comparability. Absorption tacit knowledge was a major source of difficulty during the replications done so far in the Readers’ Project (Shull et al., 2004). In Shull et al. , is realized an adaptation to the knowledge evolution spirally model of Nonaka-Takechi (Nonaka & Takeuchi, 1995) for Software Engineering experimentation context. The authors called Experimentation Knowledge-Sharing Model (EKSM) to this model adaption (Shull et al., 2004). In summary, the EKSM acts iteratively on the knowledge sharing issues among researchers in each of its steps. In the first step, tacit knowledge is shared through socialization among researchers. In the second step this tacit knowledge, when possible, is explained and embodied on the experiment package. Finally, the explicit knowledge can be improved and internalized, and thus, it can be used in the experiment package evolution.
50 2.6. Conclusion In this chapter we were presented topics related to experimentation in Software Engineering, including: • The definition of key concepts and terms (hypothesis, factor, treatment, etc.) used in the software engineering experimental studies; • An overview of qualitative and quantitative research methods used in Software Engineering experimental research, elucidating its main objectives and differences; • An overview of experimentation process proposed by Wholin et al. (Wohlin et al., 2012), showing its main tasks and issues, such as, the threat to validity, hypotheses formulating, the realism in experimental studies and the participants selection; • The discussion of some taxonomies to classify experimental studies in Software Engineering collected from the literature. We present also, some examples of this taxonomies; • The discussion of some approaches related to the Software Engineering experimentation, used as facilitators of process improvement and technology transfer. Finally, it is noteworthy that due to the specific characteristics of experimentation applied in Software Engineering area, such as, hardware/software resources and the availability of participants, the experiment operation step is the most critical activity of the experimentation process. After experiment planning step, a failure in the operation experiment step commits all study results and, as a rule, invalidates them. The main risks are related to the lack of participants to conduct the experimental study. Thus, some lessons learned in the Readers' Project should be considered when we perform software engineering experimental studies, such as: (1) run pilot studies to anticipate deviations from the experimental plan and adapt it to these deviations; (2) train the researchers in the object of the study and in experimental knowledge necessary to replicate a particular study; (3) select external reviewers (individuals not involved in the planning and performing of the study) to revise the artefacts produced. This must done, before actually performing the study and thus anticipate deviations and adjust the experimental plan.
51 Chapter 3 Software Process and Project Management 3.1. Introduction In the subsection 3.2 of this this chapter, an overview of the software development processes is presented. In a chronological way the different software development models will be presented and detailed. Thus, in this section we can see an overview about evolution of the most recognizes processes models used in software development. These software development models are classified into traditional, plan-driven models, and iterative and change-driven models. In addition, the background and fundamentals of agile software development are defined in the last part of this section. In the subsection 3.3 of this chapter, an overview of the main project management approaches is also presented. The PMBOK ( Project Management Body of Knowledge ) (PMI, 2021) shall be presented with more detail. Throughout the research work of this thesis, there were several themes that focused on this area of knowledge, which is why it is addressed in some detail in this chapter. In the subsection 3.4 of this chapter, an overview the software metrics is presented. This subject is discussed in some detail, given that in the chapters five and six we will present two demonstration cases based on two methods of software metrics, namely, the Use Case Points (UCP) and the Function Points (FPs). Thus, much of the research work of this thesis falls into this area. Before starting to expose the concepts involved in all these research areas, we present a formal definition for literature review. A systematic literature review is defined by Kitchenham and Charters as, “a means of evaluating and interpreting all available research relevant to a particular research question, topic area, or phenomenon of interest. Systematic reviews aim to present a fair evaluation of a research topic by using a trustworthy, rigorous, and auditable methodology” (Kitchenham & Charters, 2007). The authors present this
52 formal definition in the report with comprehensive guidelines for systematic literature reviews appropriate for software engineering researchers, including PhD students. The literature review includes in this research focused on three important subjects: software development models, project management approaches and software metrics. There are several links between these areas of knowledge. Firstly, in order to get an overview of evolution in software development models a literature review was carried out in this issue. This study provides the concepts and the background of the most popular software standards and process models. In order to get an overview in the most popular project management approaches, PMBOK, PRINCE2 and the main agile project management approaches will be presented. In this subsection, we present an ontology-based approach, namely PROMONT (Project Management Ontology) that intends to summarize all major project management standards and tools in one integrated reference model. This artifact can help us to understand the main concepts involved in the project management area. The notion of software metrics and the main metrics used over time are presented based on the collection and analysis of the most relevant documents in this area. As we will see below, there are several metrics found in the scientific literature in this area. 3.2. Software Development Processes It is crucial to distinguish the concept of a process model and a software method. According to Boehm, “a process model differs from a software method (often called a methodology) in that a method’s primary focus is on how to navigate through each phase (determining data, control, or ‘‘uses” hierarchies; partitioning functions; allocating requirements) and how to represent phase products (structure charts; stimulus-response threads; state transition diagrams)” (Boehm, 1988). Whereas, “a process model provide guidance on the order (phases, increments, prototypes, validation tasks, etc.) in which a project should carry out its major tasks” (Boehm, 1988). The primary function of a software life cycle models is to “serve as a high-level definition of the phases that occur during development” (Abran, Bourque, Dupuis, Moore, & Tripp, 2004). Boehm refers that the main function of software development process models is to “determine the order of the stages involved in software development and evolution and to establish the transition criteria for progressing from one stage to
53 the next” (Boehm, 1988). In this sense, they are not aimed at providing detailed definitions, but at highlighting the key activities and their interdependencies. During the history different models and approaches have been suggested for tackling the complexity and uncertainty of software development. Table 3.1 depicts the evolution of software process models in the past decades. As can be seen in the Table 3.1, it has also been suggested that the evolution of software development models originates from the problems of ad hoc programming that, at first, led towards traditional plan-driven models and towards iterative change-driven models of software development. The original meaning of the Latin term ‘ad hoc’ refers to a methodology that has been designed for a special purpose (‘ad hoc - “for the special purpose or end presently under consideration”). In Latin, ad hoc literally means “for this”. However, in this context, as often in software engineering literature, the term ‘ad hoc’ is used to refer to the low degree of methodological discipline (Basili & Reiter, 1981). Table 3.1: The Evolution of Software Process Models Year Model Ad hoc 1950 Code-and-Fix Model 1960 Stagewise Model Plan-Driven 1970 Waterfall Model 1975 Prototyping Model 1981 Transform Model 1992 V-Model Iterative and Change-Driven 1975 Iterative and Incremental Model 1981 Evolutionary Model 1986 Spiral Model 2001 Agile Software Development Before the 1970’s the development of software was based on ad hoc programming. In these early days of the software development, a very simple model was used, namely, code-and-fix model. This type of model consists of two steps: first, write some code and second, fix the problems in that code (Boehm, 1988). Basic problems with this model had led to the need to explicit sequencing of the phases of software development. In particular, the need to design prior to coding, to define requirements prior to design, and the
54 need for early preparation for testing and modification were identified (Boehm, 1988). One of the first models to rise to that challenge was the stagewise model as early as in the middle of the 1950s (Benington, 1983). This model stipulated that software be developed in successive stages and comes with the need to develop large software systems. According to the literature we can classify the software processes models in: (1) plan-driven and (2) iterative and change-driven. The plan-driven models of processes have more emphasis on defining the scope, schedule and costs of the project upfront including an early fixing stage and extensive documentation of the end product requirements. Whereas iterative and change-driven models have more focus in the overall lifecycle model in which the software is built in several iterations in sequence. Software development life cycles, traditional processes models and agile processes are another approach to classify the software processes models. There are many software development life cycles available, however, this literature review only covers the most used when designing and developing software systems. The most well-known are: (1) waterfall model, (2) V-model, (3) transform model, (4) evolutionary model, (5) prototyping model, (6) spiral model and (7) iterative and incremental model (see Table 3.1) Waterfall, classic software development life cycle (phases and activities), prototyping, Rapid Application Development (RAD) and evolutionary models is another possible classification of the software processes models. In this classification, the evolutionary models include the incremental development, the spiral development, the Object-oriented models (e.g., RUP (Rational Unified Process)) and the Agile Software Development (ASD) models. Early classification of the software process models is followed in this thesis. In the following subsections, the evolution of software development process models is discussed in more detail. 3.2.1. Plan-Driven Models for Software Development The plan-driven approaches of software development have been defined as document-driven, codedriven, and traditional process models (Boehm, 1988). One common characteristic of these approaches could also be the recurrence of the software development phases only once during the development process, i.e., with only hints of interactivity (Larman & Basili, 2003). In the following sections of this thesis, the process models of this category will be referred to as traditional software development. The two-step process model of code-and-fix, used in the early days of software development, resulted in difficulties that necessitated explicit sequencing of the phases of software development (Boehm, 1988). In
55 particular, the need to design prior to coding, to define requirements prior to design, and the need for early preparation for testing and modification were identified (Boehm, 1988). One of the first models to rise to that challenge was the stagewise model as early as in the middle of the 1950s (Benington, 1983). This model evolved from the problems caused by the increasing size of software programs, which could not be handled by a single programmer (Benington, 1983). In 1968, the North Atlantic Treaty Organization (NATO) Science Committee held a software engineering conference in Garmisch, Germany, where the “software crisis”, or “software gap” was discussed (NATO Science Committee, 1969). Perceived problems in software development, the key conference recommendations sought to standardize the software development process with emphasis on quality, costs, and development practices (Lycett, Macredie, Patel, & Paul, 2003). After this, the software development has since come to rely on a methodical approach. In 1970, as a refinement of the stepwise model, Royce introduces the waterfall model (Royce, 1970). In that year, Winston Royce, publishes an article where introduces his “personal views about managing large software developments” and it has since evolved into a concept consisting of the sequential phases of requirements analysis, design, and development (Larman & Basili, 2003). According to Boehm, the waterfall model provided two main advances over the stepwise model: “recognition of the feedback loops between stages, and a guideline to confine the feedback loops to successive stages to minimize the expensive rework involved in feedback across many stages” and “an initial incorporation of prototyping in the software life cycle” (Boehm, 1988). The waterfall model has become adopted for most software acquisition standards in government and industry. However, this model has solved various core problems in software development, it also includes features not appropriate for every software development context. Boehm argues that “a primary source of difficulty with the waterfall model has been its emphasis on fully elaborated documents as completion criteria for early requirements and design phases” (Boehm, 1988). These problems led to the formulation of alternative process models. The V-Model can be considered a variation of the waterfall model which emphasizes traceability between the requirements, design, and implementation. The original V-Model includes similar phases to the waterfall model, but its phases are not defined as a linear activity but form a V-shape (Bruegge & Dutoit, 2010). In 1997, with the publication of the development standards for IT (Information Technology) systems of the Federal Republic of Germany, the V-Model entered into force as standard for all civil and military federal agencies (KBSt, 2004).
56 As we can see in Figure 3.1, the coding phase is situated in the intersection of the V, while the requirement gathering, system analysis, software design and module design form the system verification of the V-Model, and the acceptance testing, system testing, integration testing and unit testing form the system validation of the V-Model. The latter version of the V-Model, with public name V-Modell® XTV-Model is a Software development Life Cycle (SDLC) that emphasizes the concept of “Verification and Validation”. In each step of development in V-Model, there will be a corresponding testing phase that will be validating such a process. Testing Phases will be planned in parallel with the development of the stage which they are supposed to be tested against and will be joined at the bottom by the actual coding process, hence the name V-Model. It is also considered to be an extended form of Waterfall Model since one step cannot be done without the completion of a previous process first. Each verification process in V-Model SDLC and their parallel testing counterpart. Figure 3.1: V-Model Software Development The latter version of the V-Model has been extended to cover the entire system life-cycle and aims to be compatible with standards such as CMMI and to increase the scalability and adaptability of the model. In addition, the later version of the V-Model also perceives the possibility of conducting a series of subsequent V-cycles which increases the possibility of applying the model in a more iterative manner (KBSt, 2004). More commonly, it has been argued, that “no life-cycle scheme, even with variations, can be applied to all system development” (McCracken & Jackson, 1982). On the other hand, according to the survey study of Fitzgerald (1998), despite numerous existing software development methodologies, as much as 60% of
57 software development organizations do not apply any development methodologies. An additional problem has been identified in using a disciplined approach to software development which is that, “rather than focusing on the end (the development of software), developers become pre-occupied with the means (the software development method)” (Fitzgerald, 1998). In practice, the result may be the disparity between the organizational software development process and its actual implementation in the software development teams. The findings of the Fitzgerald study suggest that practitioners will not adopt formalized methodologies in their prescribed form and, indeed, that they may be modifying and omitting aspects of methodologies in a very pragmatic and knowledgeable fashion (Fitzgerald, 1997). Another dilemma identified among plan-driven approaches to software development, is the pursuit of certainty. The up-front requirements definition, and locking of the project scope, leads to contracts and decisions based on estimations of costs, time, and resources. However, such estimates have been found to be highly prone to uncertainty (Morien, 2005). Nonetheless, the success of software projects is often measured against these estimates as it may be appealing, from the viewpoint of both an acquirer and supplier, to agree fixed costs, scope, and schedule for the project up-front. However, it has been stated that “certainty is a myth and is the most uncertain part of any project” (Morien, 2005). In fact, it could be argued that the quest for certainty, in both time and money, may not only fail to pay off in these respects but may also seriously affect the quality of the end product. In his study, Morien concludes that the traditional approaches to system development have proven unsuccessful too often and the agile development approaches, that emphasize lean, change-oriented development, have been demonstrated to be effective (Morien, 2005). It can be argued that the plan-driven models of software development can and should be applied in a dynamic way by repeating the phases or even the entire process, if necessary. However, the original purpose of these process models was not to welcome changes during the development, but rather to try to fix factors, such as scope, time, and money, up-front in order to eliminate change which was considered a risk factor. 3.2.2. Iterative Change-Driven Models for Software Development Software development processes, developed after the waterfall model, seem to have the common aim of enabling, at least to some degree, the evolution of product requirements during the process of software development. This contributed one main modification to the earlier software development models: the adoption of the iterative and incremental approach. According to Larman, “iterative development is an
64 Cockburn suggest that the novelty of agile software development is, "if anything, the bundling of the techniques into a theoretical and practical framework" (Williams & Cockburn, 2003). Abrahamsson et. al did a valuable comparative review of the agile software development methods. The authors conclude that “although agile software development methods have caught the attention of software engineers and researchers worldwide, scientific research still remains quite scarce” (Abrahamsson, Oza, & Siponen, 2010). They performed a comparative review from the standpoint of using the following features as the analytical perspectives: project management support, life-cycle coverage, type of practical guidance, adaptability in actual use, type of research objectives and existence of empirical evidence. The results that they found show that agile software development methods cover, without offering any rationale, different phases of the software development life-cycle and that most of these methods fail to provide adequate project management support. Moreover, quite a few methods continue to offer little concrete guidance on how to use their solutions or how to adapt them in different development situations (Abrahamsson et al., 2010). In conclusion, the fundamentals of agile software development propose a very different view to the certainty aspect in the software development process, compared to the plan-driven approaches (see subsection 3.2.1.). In agile software development, the uncertainty of schedule, scope and budget of any software development project can be considered as a baseline assumption. Thus, agile software development methodologies can be regarded as a means of responding to the uncertainty of software development, rather than as a means of achieving certainty. In the last years, there has been a considerable discussion in scientific forums both in favor and against agile methodologies. The early agile methodologies, especially, received criticism for the lack of scientific evidence (Abrahamsson, Salo, Ronkainen, & Warsta, 2002; Lindvall et al., 2002), and their suitability only for software development contexts where small and co-located teams were producing non-safety-critical products with volatile requirements (Williams & Cockburn, 2003). Since the early days of agile software development, an increasing amount of interest has been paid to agile methods, by both practitioners and researchers, thus creating a growing body of empirical data on the different aspects of agile software development. Apart from the individual methods and practices of agile software development, problematic issues have arisen, such as the scalability of agile software development for large and multisite projects (Eckstein, 2004; Lindvall et al., 2004) and the compatibility of agile methods with existing standards (Lycett et al., 2003; Paulk, 2001; Reifer, 2003). Another issue that the international community has paid attention to is the organizational and business aspects of agility (Baskerville, Mathiassen,
65 & Pries-Heje, 2005; Coplien & Harrison, 2005; Oleson, 1998). Accordingly, the early agile methods and techniques have been evolving and are being updated, e. g., XP (Beck & Andres, 2004), Scrum (Schwaber, 2004; Schwaber & Beedle, 2002), Crystal (Cockburn, 2005), Test-Driven Development (TDD) (Beck, 2003), and DSDM (DSDMConsortium, 2003). Currently, as more empirical evidence on the agile methodologies is available, it seems that the main arguments for and against their use is nowadays not so much about their benefits, but rather about the need to extend their scope and adapt them to organizations with established and mature plan-driven processes (Boehm & Turner, 2005). For instance, it has been suggested that one major problem in adopting agile methodologies can be found in balancing the currently dominating engineering ideologies and methodologies of manageable, predictable and repeatable processes with agile software development methods, which again embrace self-organization, process adaptation and constant changes (Lycett et al., 2003). Balancing the two approaches has been suggested in order to benefit from their strengths, and to compensate for their weaknesses (Boehm & Turner, 2003b). Bohem and Turner in this paper (Boehm & Turner, 2003b) present a risk-based approach for structuring projects to incorporate both agile and plan-driven approaches in proportion to a project’s needs. In the early days of its implementation, there was some confusion regarding the relationship between ad hoc coding and agile software development. It was proposed that one reason for this confusion is the piecemeal approach of agile software development (Highsmith & Cockburn, 2001). For instance, quality in design in agile software development is prioritized in ongoing design done in smaller chunks instead of massive up-front design of the system (Highsmith & Cockburn, 2001). In fact, the existing agile methodologies, such as Scrum for agile project management and XP for implementation of software, all seem to propose a rather disciplined approach to conducting the tasks of software development. In addition, studies (Kähkönen & Pekka, 2004; Nawrocki, Walter, & Wojciechowski, 2001; Paulk, 2001) indicate that by adopting different agile methods and practices, individual agile software development teams can accomplish a methodology that meets with the goals of CMMI level 2. However, there still seems to be a need to extend agile methodologies in order to meet, for example, CMMI requirements related to more organizational level practices. In the last years, some early agile methodologies have been evolving and are being updated, for example, Extreme Programming (XP) (Beck & Andres, 2004) and Scrum (Schwaber, 2004). These changes involved organizational and business aspects of agility.
66 As it is the most agile and widely used, some more details about Extreme Programming (XP) will be presented next. Thus, XP is one of the numerous agile frameworks applied by IT companies. But its key feature is emphasis on technical aspects of software development, this distinguishes XP from the other approaches. XP was introduced by the Software Engineer Ken Beck in the 90s with the goal of finding ways to write high-qualitative software quickly and being able to adapt to customers’ changing requirements. The XP framework normally involves five phases or stages of the development process that iterate continuously: planning, designing, coding, testing and listening (Beck & Andres, 2004). XP involves seven interconnected processes, namely: (1) Identify (new) requirements with the customer; (2) Write (new) story lines and validate them with the customer; (3) Prioritize requirements. Select first from the list; (4) Write tests (5) Programming and testing; (6) Deliver to customer; (7) Review with the customer: skip to (1). The pair programming practice is widely used in the process of the step 5. Such a development process entails the cooperation between several participants, each having his or her own tasks and responsibilities. Extreme programming (XP) puts people in the center of the system, emphasizing the value and importance of such social skills as communication, cooperation, responsiveness, and feedback. 3.3. Project Management Approaches This section begins with some essential definitions about project management collected from the literature. Thus, this section first provides a short overview of the theorical basis of project management, based on several bibliographic references. It then describes the importance of project management from an organization’ s perspective, and the meaning of a project and project management based on project management literature. We then describe the Project Management Body of Knowledge (PMBOK) as one of project management process used extensively in industry. Firstly, the main definition that we must know is the definition of project. According to the PMBOK, “a project is a temporary endeavor undertaken to create a unique product, service, or result” (PMI, 2021). The temporary nature of projects indicates a beginning and an end to the project work or a phase of the project work. Projects can stand alone or be part of a program or portfolio. Project and operation are two concepts which are sometimes confused. Thus, projects are temporary in nature, while operations are ongoing. Projects have definitive start dates and definitive end dates. The project is completed when the goals and objectives of the project are accomplished. Operations involve work that is continuous without an ending date
67 and often repeat the same process (PMI, 2021). Every project must work within the triple constraint combination of time, money, and quality. According to Kerzner, “a project can be considered to be any series of activities and tasks that: • Have a specific objective, with a focus on the creation of business value, to be completed within certain specifications; • Have defined start and end dates; • Have funding limits (if applicable); • Consume human and nonhuman resources (i.e., money, people, equipment); • Are multifunctional (i.e., cut across several functional lines)” (Kerzner, 2017). Kerzner also argues that the result or outcome of the project can be unique or repetitive and must be achieved within a finite period of time. Because companies have very limited resources, care must be taken that the right mix of projects is approved (Kerzner, 2017). Although there is no single definition of a project, there are four dimensions of projects that most project management writers have described, based on (Pinto & Kharbanda, 1995). These four dimensions are: • Projects are constrained by a finite budget and time frame to completion; that is, they typically have a specific budget allocated to them as well as a defined start and completion time; • Projects comprise a set of complex and interrelated activities that require effective coordination; • Projects are directed toward the attainment of a clearly defined goal or set of goals; • To some degree, each project is unique. Project Management is the application of knowledge, skills, tools and techniques to project activities to meet specific project requirements (PMI, 2021). According, Pinto and Kharbanda, project management “is the dynamic process of leading, coordinating, planning and controlling a diverse and complex set of processes and people in the pursuit of achieving project objectives” (Pinto & Kharbanda, 1995). Koskela and Howell argue that project management has generally been seen without an explicit theory (Koskela & Howell, 2002). They contend that it is actually possible to precisely point out the underlying theoretical foundation of project management as espoused in the PMBOK of Project Management Institute (PMI). This foundation can be divided into a theory of project and a theory of management. The productoriented process of the PMBOK that specify and create the project product refer to the theory of project. The
68 process of initiating, planning, executing, controlling and closing the project of the PMBOK refer to the theory of management (Koskela & Howell, 2002). In their description of the theory of project, Koskela and Howell refer to J. R. Turner’ s theoretical view of project management (Turner, 2009). First, Turner claims that project management is about managing work; secondly, work can be managed by dividing the total work effort into smaller chunks of work – these are called tasks in the PMBOK; and finally, the divided tasks are related by sequential dependence (Turner, 2009). In describing the other theoretical basis of project management as result of analyzing the PMBOK, Koskela and Howell suggest that project management is based on three narrow theories of management: management-as-planning, the dispatching model and thermostat model (model of management control). The first is evident from the structure and emphasis of the PMBOK. The second is apparent from the discussion of execution int PMBOK. The third is very clearly embodied in the closed loop of planning, execution and controlling. The planning process provide a plan that is realized by executing process, and variances from the baseline or requests for change lead to corrections in execution or changes in further plans (Koskela & Howell, 2002). The software engineering can be viewed according two basic dimensions: process management and project management. Processes management are pertinent techniques and tools applied to a process to implement and improve process effectiveness, hold the gains, and ensure process integrity in fulfilling customer requirements. On the other hand, project management involves the planning, monitoring, and coordinating of people, processes, and events that occur as software evolves from a preliminary concept to full operational deployment (Pressman & Maxim, 2020). After the definition of project and project management, we continue the description of the meaning and importance from organization’ s perspective, based on project management literature. Projects can be viewed as critical stepping stones for organizational growth and productivity (Pinto & Kharbanda, 1995). Organizations worldwide are seeking ways to reduce bureaucracy and increase productivity and job satisfaction. Increasingly, project management processes are being used to create highly integrated organizations, controlled by project teams responsible for planning, controlling, coordinating and improving their own work (Kezsbom & Edward, 2001). Based on the increasing interest in project management, there has also been an explosion in the literature on project management.
69 Excellence in project management is defined as a continuous stream of successfully managed projects. Any project can be driven to success through formal authority and strong executive meddling. But in order for a continuous stream of successfully projects to occur, there must exist a strong corporate commitment to project management, and this must be visible (Kerzner, 2017). The successful project consists of four factors, described in (Pinto & Kharbanda, 1995), projects being on time, on budget, performs as expected and is accepted by the customers. In order for the customer to accept the project, the project managers must devote additional time an attention to maintaining close ties with and satisfying the demands of the external clients. This requires the project managers to adopt an outward focus in their efforts. They are not just the managers of the project activities, but also the company’ s sales representatives to the client base. When we begin to view project management as a technique for implementing overall corporate strategy, it is clear that the importance of project management and, hence, project managers cannot be underestimated. Project management becomes a framework for monitoring corporate progress as it further provides a basis on which the skillful manager can control the implementation process. No wonder, then, that there is growing interest in the project manager’ s role within the corporation (Pinto & Kharbanda, 1995). Despite the emergence of new project management approaches, the failure rate still remains high, especially in the Information Technology (IT) industry. Research investigating project management in IT has not been reassuring. The Standish Group of Dennis, Massachusetts, conducted a lengthy and thorough study of IT projects and determined that (Pinto, 2019): • 18% of IT application development projects are canceled before completion; • 43% of the remaining projects face significant cost and/or schedule overruns or changes in scope; • IT project failures cost U.S. companies and governmental agencies an estimated $1.2 trillion each year, with California the leading waster of IT projects funds at $164 billion annually. Worldwide, the values are not either encouraging, estimates for canceled IT projects range as high as $3 trillion, or 4.7% of the total Gross domestic product (GDP) on the planet, more than the entire economic output of Germany (Krigsman, 2012). Pinto mentions 10 signs of pending IT project failure (Pinto, 2019), namely: 1. Project managers do not understand users’ needs. 2. Scope is ill defined. 3. Project changes are poorly managed.
70 4. Chosen technology changes. 5. Business needs change. 6. Deadlines are unrealistic. 7. Users are resistant. 8. Sponsorship is lost. 9. Project lacks people with appropriate skills. 10. Best practices and lessons learned are ignored. To avoid project failure, it is critical to recognize the warning signs, including the inability to hit benchmark goals, the piling up of unresolved problems, communication breakdowns among the key project stakeholders, and escalating costs. Such red flags are sure signals that an IT project may be a candidate for termination (Pinto, 2019). Pressman and Maxim refers that “to avoid project failure, a software project manager and the software engineers who build the product must avoid a set of common warning signs, understand the critical success factors that lead to good project management, and develop a commonsense approach for planning, monitoring, and controlling the project“ (Pressman & Maxim, 2020). In a study of 250 large software projects between 1998 and 2004, Capers Jones found that “about 25 were deemed successful in that they achieved their schedule, cost, and quality objectives. About 50 had delays or overruns below 35 percent, while about 175 experienced major delays and overruns, or were terminated without completion” (Jones, 2004). Although the success rate for present-day software projects may have improved somewhat, our project failure rate remains much higher than it should be. The number and complexity of projects undertaken by organizations is on the rise globally. In its 2017 Job Growth and Talent Gap report (PMI, 2017b), the Project Management Institute (PMI) predicts that employers will need to fill nearly 2.2 million new project-oriented roles each year through 2027. In these report, PMI refers that “the global economy has become more project-oriented, as the practice of project management expands within industries that were traditionally less project-oriented, such as health care, publishing and professional services” (PMI, 2017b). With more projects to manage and more intricacy within those projects, project managers are increasingly turning to tried-and-true methodologies to help them stay organized and maximize workflow efficiency. Each project management approach works best for certain kinds of projects. According to a Hubstaff survey from 2021, 39% of the companies surveyed in 2021 said that their organization implemented hybrid project management practices (Hubstaff, 2021). In today’s project management world, forward-thinking managers and leaders do not adhere to a single methodology, they
71 become well-versed in many of them, and they learn how to mesh together various practices in order to accommodate whatever the project calls for. We will present below the most popular project management approaches. Traditional project management approaches The most popular traditional project management approaches are: • Waterfall - Perhaps the most common way to plan out a project, the Waterfall method is a simple sequential approach. Each project phase must be completed before beginning the next one, leading to the end deliverable. These project plans can be easily replicated for future use. The Waterfall system is the most traditional method for managing a project, with team members working linearly towards a set end goal. Each participant has a clearly defined role, and none of the phases or goals are expected to change. Applying this approach, we should plan projects fully, then executing through phases. Waterfall project management works best for projects with long, detailed plans that require a single timeline. Changes are often discouraged (and costly). Requirements, system design, implementation, testing, deployment (service) or delivery (product) and maintenance are the typical stages of Waterfall project management (Royce, 1970). • Critical Path Method (CPM) - Similar to the Waterfall methodology, the critical path method is a sequential approach that allows project managers to prioritize resources, putting more emphasis and investment into the most important work and rescheduling lower-priority tasks that may be slowing down the team. Critical path is a method for modeling projects where all necessary factors involved are input in the project and then the optimal timeline for completing it will output. Factors to input in the model include time estimates, task dependencies, milestones or deliverables, and any hard deadlines set by clients or stakeholders. The foundation of both critical path analysis and critical path method is that we cannot start a task until you finish the previous one. CPM was developed by the USA private sector in the 1950s.This methodology is related to the PERT (Program Evaluation and Review Technique) concept. • Critical Chain Project Management (CCPM) - This methodology focuses on the resources needed for each task in the project. Using this approach, the project manager identifies and allocates resources for the most crucial, high-priority tasks, the “critical chain”, and builds in buffers of time around these tasks to ensure the project’s main deadlines are met.
72 Agile project management approaches Agile project management is a collaborative methodology comprising short development cycles called “sprints” that incorporate feedback as the project progresses in an effort to embrace flexibility and continuous improvement. The methodology was developed by 17 people in 2001 as an optimized approach for software development (Agile Alliance, 2001). This methodology is characterized by building products using short cycles of work that allow for rapid production and constant revision. Agile project management focuses more on team collaboration and less on a hierarchical leadership structure. The most popular agile project management approaches are: • Scrum - This practice disperses the traditional responsibilities of the project manager among the team members, with a Scrum master serving as a leader and facilitator. Scrum is an approach to managing complicated projects that may have to adapt to changes in scope or requirements. By emphasizing productivity, focus and collaboration, Scrum teams build high-quality deliverables quickly and can more easily adapt to change (Bonnie, 2021). The main focus of this methodology is enabling a small, crossfunctional, self-managing to deliver fast. • Kanban - Suited for projects with priorities that can frequently change, Kanban is similar to Scrum but progresses continuously, rather than in predefined sprint periods. Work is pulled in when needed and when capacity allows. Unlike Scrum, Kanban is less time-based and more focused on to-do lists. The Kanban methodology was designed to provide a workload-centric method of project management. In other words, its emphasis is on managing multiple deliverables across a team so that no one member is overworked or overwhelmed. The main focus of this methodology is improving speed and quality of delivery by increasing visibility work in progress and limiting multi-tasking. • Extreme Programming (XP) - This approach was developed specifically for software engineering. It is ideal for clients who are not 100% sure what they need from the end product, and therefore need many opportunities for testing and feedback. It is a project management methodology designed to improve the quality of software and the development team’s ability to adapt to customer needs. Work is done in short cycles (AKA sprints) with frequent iterations and constant collaboration with stakeholders. The main focus of this methodology is doing development robustly to ensure quality. • Adaptive Project Framework (APF) - This approach is also suited to IT projects requiring a high level of flexibility and adaptability. It was developed by industry expert Robert Wysocki and is laid out step by
73 step in his book, Adaptive Project Framework: Managing Complexity in the Face of Uncertainty (Wysocki, 2010). It is a project management methodology that grew from the idea that most IT projects cannot be managed using traditional project management methods. Work is done in stages and evaluated after each one. This methodology focuses on the proposition that, since most current IT projects evolve as they go and begin with uncertain requirements, traditional project methods are not applicable (Freedman, 2010). • Lean - This project management methodology focuses on streamlining and cutting waste. The goal is to do more with less and deliver value to the customer using less manpower, money, and time. This methodology is also known as “lean manufacturing” or “lean production”. The main focus of this methodology is streamlining and eliminating waste to deliver more with less. PRINCE2 (Projects IN a Controlled Environment) (AXELOS, 2017) and PMBOK (Project Management Body of Knowledge) (PMI, 2021) are two project management references of global use. Both resulted from the experiences gained in thousands of projects. PRINCE2 is one of “the most widely used methods for managing projects in the world. It is a structured project management method based on experience drawn from thousands of projects and from the contributions of countless project sponsors, project managers, project teams, academics, trainers, and consultants” (AXELOS, 2017). The main premise of PRINCE2 is project management controlled that leaves nothing to chance. PRINCE2 is a project methodology for managing projects characterized by a productbased planning approach. Especially popular with the United Kingdom government, it gives teams greater control of resources and the ability to manage risk effectively. The PRINCE2 method addresses project management with four integrated elements of principles, themes, processes, and the project environment (see Figure 3.3). The complete structure of the PRINCE2 is showed in Figure 3.3. The principles are the guiding obligations and good practices which determine whether the project is genuinely being managed using PRINCE2. There are seven principles and unless all of them are applied, it is not a PRINCE2 project. The themes describe aspects of project management that must be addressed continually and in parallel throughout the project. The seven themes explain the specific treatment required by PRINCE2 for various project management disciplines and why they are necessary. The processes describe a progression from the pre-project activity of getting started, through the stages of the project lifecycle, to the final act of project closure. Each process has checklists of recommended activities, products, and related responsibilities. The project environment is related with the fact that organizations often want a
80 • Structural and complexity metrics; • Capability-maturity assessment; • Management by metrics; • Evaluation of methods and tools. There are a set of techniques currently in use for each facet of measurement. In their book "Software Metrics: A Rigorous and Practical Approach", Fenton and Bieman explore this set of techniques in detail (Fenton & Bieman, 2015). Preliminary estimates of effort always include many elements of insecurity. Reliable early estimates are difficult to obtain because of the lack of detailed information about the future system at an early stage. However, early estimates are required when bidding for a contract or determining whether a project is feasible in the terms of a cost-benefit analysis. Since process prediction guides decision-making, a prediction is useful only if it is reasonably accurate (Fenton & Bieman, 2015). Measurements are necessary to assess the status of the project, the product, the process, and resources. By using measurement, the project can be controlled. By determining appropriate productivity values for the local measurement environment, known as calibration, it is possible to make early effort predictions using methods or tools. Measurement can be used throughout a software project to assist in estimation, quality control, productivity assessment, and project control (Pressman & Maxim, 2020). Estimation of resources, cost, and schedule for software development requires experience, access to good historical information (e.g., process and product metrics), and the courage to commit to quantitative predictions when qualitative information is all that exists. Estimation carries inherent risk, and this risk leads to uncertainty. Project complexity, project size, and the degree of structural uncertainty all affect the reliability of estimates (Pressman & Maxim, 2020). Some cost estimation methods and tools are too difficult to use and interpret to be of much help in the estimation process. Numerous studies have attempted to evaluate cost models. Research has shown that estimation accuracy is improved if models are calibrated to a specific organization (Kitchenham, 1996a). Estimators often rely on their past experience when predicting effort for software projects. Cost estimation models can support expert estimation. It is therefore of crucial interest to the software industry to develop estimation methods that are easy to understand, calibrate, and use. Over time, several metrics of size estimation have been developed with some different specificities. Based on these specificities the organization, more specifically the software managers should select the most
81 appropriate for the size of a software project they have to build. The main metrics were developed based on the software functions such as: Function Points (Albrecht & Gaffney, 1983), Feature Points (Jones, 1988), Boeing' s 3D Function Points (Whitmire, 1992), Mark II (Symons, 1991), Use Case Points (Karner, 1993), COSMIC Full Function Points (COSMIC, 2020; Symons, 2020). In this section of the literature review we will present in more detail Use Case Points (UCP) and Function Points (FPs) metrics because this metrics were applied in two demonstration cases (see chapters 5 and 6). Traditional cost models take software size as an input parameter, and then apply a set of adjustment factors or 'cost drivers' to compute an estimate of total effort. In object-oriented software production, use cases describe functional requirements. The use case model may therefore be used to predict the size of the future software system at an early development stage. This thesis presents a demonstration case based on Use Case Points (UCP) method to estimate the software size of the projects performed in educational context. The method is not new but has not become popular although it is easy to learn. One of the reasons that the method has not caught on may be that there are no standards for use case writing. In order for the method to be used effectively, use cases must be written out in full. Many developers find it difficult to write use case descriptions at an appropriate level of detail. One way to solve this problem would be to provide guidelines for writing use cases for estimation purposes. The Use Case Points method was originally developed by karner in 1993 (Karner, 1993). Rosa and Wallshein (Rosa & Wallshein, 2017) found that knowing initial software requirements at the start of a project provides an adequate but not always accurate estimate of project completion times. To get more accurate estimates, it is also important to know the type of project and the experience of the team (Pressman & Maxim, 2020). Function Points and Use Case Points are estimation techniques that gives us the project size and the effort to build a software project in the early stages of your development. These estimation metrics examine the requirements model with the intent of predicting the “size” of the resultant system. Size is sometimes (but not always) an indicator of design complexity and is almost always an indicator of increased coding, integration, and testing effort. By measuring characteristics of the requirements model, it is possible to gain quantitative insight into its specificity and completeness (Pressman & Maxim, 2020). In 1993 the Use Case Points method for sizing and estimating projects developed with the objectoriented method was developed by Gustav Karner of Objectory Systems (later acquired by Rational Software Corporation). The method is an extension of Function Point Analysis and Mark II Function Point Analysis (an
82 adaption of FPA mainly used in the UK) and is based on the same philosophy as these methods. The philosophy is that the functionality seen by the user is the basis for estimating the size of the software. Karner's work on UCP metric was written as a diploma thesis at the University of Linköping (Sweden). It was based on just a few small projects, so more research is needed to establish the general usefulness of the method. The work is now copyright of Rational Software Corporation and is hard to obtain. However, Schneider and Winters wrote a book that help software engineers and project managers how to implement use cases effectively and to apply the UCP method. The authors deliver a “clearly presented tour of the basics of designing effective use cases organized around a single large case study for an order-processing system” (Schneider & Winters, 2001). In the years immediately following the creation of the metric by Karner, there is few research published using this metric. In 2002, Bente Anda reports the results from a study conducted to evaluate a method for estimating software development effort based on use cases, the UCP method, by comparing it with expert estimates. The UCP method gave an estimate that was closer to the actual effort spent on implementing the system than most estimates made by 37 experienced professional software developers divided into 11 groups. The author refers that “the results support existing claims that the use case points method may be used successfully in estimating software development effort. They also show that the combination of expert estimates and method based estimates may be particularly beneficial when the estimators lack specific experience with the application domain and the technology to be used” (Anda, 2002). Damodaran and Washington present a paper that looks at the potential of successful application of the UCP method for estimating the size and effort of software development projects, including the major limitations and offers some possible remedies. The author concludes that UCP method of effort estimation is a very valuable addition to the tools available for the project manager. The method can be very reliable or just as reliable as other effort estimation tools such as COCOMO (COnstructive COst Model), Function Point and Lines of Code (Damodaran & Washington, 2002). Cost models like COCOMO and sizing methods like Function Point Analysis (FPA) are well known and in widespread use in software engineering. But these approaches have some serious limitations. Counting function points requires experts. The COCOMO model uses lines of code as input, which is an ambiguous measure. None of these approaches are suited for sizing object-oriented or real-time software. Object-Oriented Analysis and Design (OOAD) apply the Unified Modeling Language (UML) to model the future system and use cases to describe the functional requirements. The use case model serves as the early requirements
83 specification, defining the size of the future product. The size may be translated into a number, which is used to compute the amount of effort needed to build the software. In 2005, Anda et al. investigated in more detail the UCP method. In their research, the authors resorted to four software companies developed equivalent functionality, but their development processes varied, ranging from a light, code-and-fix process with limited emphasis on code quality, to a heavy process with considerable emphasis on analysis, design, and code quality. The authors calculate the effort estimate based on the UCP method for each of the four companies' software projects. The found that their result was close to the actual effort of the company with the lightest development process. Concretely the estimate was 413 hours while actual effort of the four companies ranged from 431 to 943 hours. They concluded that these results show, that the UCP method needs modification to better handle effort related to the development process and the quality of the code (Anda, Benestad, & Hove, 2005). Ochodek et al. investigated the construction of UCP in order to find possible ways of simplifying it. The authors used a cross-validation procedure to compare the accuracy of the different variants of UCP (with and without the investigated simplifications). They performed an analysis based on data derived from a set of 14 projects for which effort ranged from 277 to 3593 man-hours. In their research, the factor analysis was performed to investigate the possibility of reducing the number of adjustment factors. The conclusion of their study was that the UCP method could be simplified by rejecting UAW (Unadjusted Actor Weight); calculating UCP based on steps instead of transactions; or just counting the total number of steps in use cases. Moreover, they proposed two use case based size metrics Transactions and TTPoints. They argue that could be used as an alternative to UCP to estimate effort at the early stages of software development (Ochodek, Nawrocki, & Kwarciak, 2011). Yavari et al. did a study to assessment weak points of use case complexity metrics specially transaction metric in UCP method. In their study, the authors introduced other metrics for determining use case complexity that it can be led to simplify calculating UUCW (Unadjusted Use Case Weight) and it can be also tried to cover the most of aspects of use cases. According to the authors, these metrics can improve accuracy effort estimation and it can provide more information about system under discussed (Yavari, Afsharchi, & Karami, 2011). The limitation of this study is that the authors claim that they were still collecting data from the project to test the proposed method. In another study, Popovic et al. created and cross-compared prediction models for estimating task type efforts by means of UCP size using an online analytical processing model and R packages on a set of 32 real-
84 world projects, with the goal of facilitating analysis of the correlation between project sizes and effort required to complete task types. In their research, the authors recognized the task types that are most correlated to the UCP size. According to authors, “task types that are most correlated to the UCP size can be estimated with acceptable accuracy for early estimates, while for the other task types one should use other estimation models ( e. g. expert judgement)”. They concluded that, requirements, scoping, functional specification, and functional testing task types have up to two times better estimation accuracies than project effort. The main conclusion of the authors was that using estimates of the most correlated task types and other techniques, such as expert judgment for others, they improved the overall project effort prediction accuracy and decreased the error from 26 to 16% (Popovic, Bojic, & Korolija, 2015). Iskandar et al. applied the UCP method to measure the software size of one knowledge management portal. They called BINUS KMS to that portal. With the results of this metric, the authors intended to help managers to know how better the software size, complexity level and effort to development in numbering. The measurement of software size with UCP method showed that the project had medium software size with score of 108.56 UCPs of estimate effort and it will be developed in 2,064 hours (or in 258 days or 51.6 weeks or 12.9 months) and it had a development cost with a value in Indonesian currency. The authors concluded that, UCP, estimate effort and project value will powerful to help management in order to make decision regarding the implementation of IT software project development in term of time, money and people (Iskandar, Gaol, Soewito, Warnars, & Kosala, 2016). Another example of UCP metric use was performed by Agtriadi et al. on employee software system. This software application realizes the latest personal data and provide accurate employee information for planning, development, welfare, and control of employees. The results of applying the metric showed that the project has small software size, they get a score of 70.34 UCPs. The authors conclude that, UCP method as part of measurement software size can be used to measure the software using internal product attribute which can show the effort, cost, and productivity (Agtriadi, Chandra, Warnars, & Gaol, 2017). Azzeh and Nassif studied the relationship between project productivity and UCP environmental factors and they found that they have a significant impact on the amount of productivity needed for a software project. The authors designed four studies, using various classification and regression methods, to examine the usefulness of that relationship and its impact on UCP effort estimation. The results that they obtained are encouraging and show potential improvement in effort estimation. Based on the findings, the author refer that is better to exclude environmental factors from calculating UCP and make them available only for
85 computing productivity. The authors also refers that “the study also encourages project managers to understand how to better assess the environmental factors, as they do have a significant impact on productivity” (Azzeh & Nassif, 2017). Kurniadi et al. applied the UCP method to measure the software size of Student Information Terminals (S-IT). This software application is an independent academic service information system for students, where this service makes it easy for students to obtain academic information in real time with information such as the transcript of academic achievement, finance, course, attendance, exam, lecturer, card examinees and announcements academic, and has the function to directly print the data independently on S-IT devices. The measurement of software size with UCP method showed that the project had a small size, the software had a score of 96.767 UCPs of estimate effort and it will be development in 1,452 hours or equivalent 9 months 1 week and it had a development cost with a value in Indonesian currency. The authors also refer that “the aims of measurement software size S-IT with the UCP is to help make decisions about the implementation of software development application project in terms of the estimated time, costs, and people” (Kurniadi, Hendric, Gaol, & Soewito, 2017). Another example of UCP metric use was performed by Safrizal et al. on academic information system at Satya Negara Indonesia university. This software application deals with academic activities processes, which support the teaching learning process activities. This academic information system serving students carry out lectures and gain value in the form of cards in each semester of study results. In order to rebuild this system, the authors applied the UCP metric to estimate the software size of the actual system to help managers to take better decisions. The software size measurement had a score 86.864 UCPs and it was categorized as small software size project because this value is smaller than 99. In fact, the authors use a scale that categorize the UCP size of project software development in four categories, they consider a small project with a score less than 99 UCPs, a medium project with UCP between 100 and 299, a large project with UCP between 300 and 799 and an extreme project with more than 799 UCP (Safrizal, Warnars, Gaol, & Abdurachman, 2017). Kurniadi et al. applied the UCP method to measure the software size of Online Admission System. This software system is part of the academic information system that exists in college. According to authors this system is useful in the management of new student enrolment. The results of applying the metric showed that the project has medium software size, they get a score of 103.86 UCPs, time work 1,454 hours and it had a development cost with a value in Indonesian currency (Kurniadi, Mulyani, Septiana, & Aulawi, 2018).
86 Concerned with adjusting the UCP method, Azzeh et al. propose a new ensemble construction mechanism applied for software project productivity prediction. According to authors ensemble is an effective technique when performance of base models is poor. They proposed a weighted mean method to aggregate predicted productivities based on average of errors produced by training model. The main goal of their study was to examine the efficiency of ensemble learning for predicting project productivity from environmental factors, and hence improve accuracy of effort estimation based on UCP. The obtained results by this study showed that “the using ensemble is a good alternative approach when accuracies of base models are not consistently accurate over different datasets, and when models behave diversely” (Azzeh, Nassif, Banitaan, & López-Martín, 2018). Bagheri and Shameli-Sendi proposed another study to improve UCP method. Concretely, they proposed a new approach for cost estimation, based on UCP method, by considering all the existing risks related to software projects. According to authors the UCP method suffers some limitations such as less accuracy, failure to consider software risks, failure to consider software quality aspects, failure to consider different levels of software security, and so on. Thus, the authors proposed a new approach for cost estimation, based on UCP method, by considering all the existing risks related to software projects. The results obtained by this study indicated that the new estimation approach can produce relatively accurate estimates and also declare various aspects of project risks during project estimation. According to authors, the results also provide guidance for organizations that want to develop a software project (Bagheri & Shameli- Sendi, 2018). Rak et al. proposed a new effort estimation model based on use case reuse, called the Use Case Reusability (UCR), intended for the projects that are reusing artifacts previously developed in past projects with similar scope. According to the authors “the UCR model introduces new classification of use cases based on their reusability, and it includes only those technical and environmental factors that according to the effort estimation experts have significant impact on effort for the target projects”. The authors conducted a study within industry and academic environments using industry project teams and postgraduate students as subjects to validate the UCR model. According to the authors, the analysis of the results showed that UCR model can be applied in different project environments and that according to the observed mean magnitude relative error, it produced very promising effort estimates (Rak, Car, & Lovrek, 2018). Silhavy et al. did a study to investigate the significance of using subset selection methods for the prediction accuracy of Multiple Linear Regression models, obtained by the stepwise approach. K-means,
87 Spectral Clustering, the Gaussian Mixture Model and Moving Window are evaluated as appropriate subset selection techniques. The authors concluded that this study proves subset selection techniques as a significant method for improving the prediction ability of linear regression models - which are used for software development effort prediction. They also concluded that the clustering method performs better than the moving window method (Silhavy, Silhavy, & Prokopova, 2018). Mahmood et al. did a systematic review of studies associated with the best practices of UCP and expert judgment–based software development effort estimation techniques. The primary aim and contribution of this systematic review are to support the researchers through an extensive review to ease to other researcher's search for effort estimation studies. The authors have performed a systematic review of studies which are published in the period of 2000 to 2019. They have selected a total of 34 primary studies of UCP and expert judgment–based estimation techniques to report the research questions stated in their review (Mahmood, Kama, & Azmi, 2020). Another systematic literature review to predicting software effort from UCP was performed by Azzeh et al. and published in Science of Computer Programming journal. With this systemic literature review, the authors intend to provide directions and supports for this research area of effort estimation. The objective of their study is twofold: 1) to classify UCP effort estimation papers based on four criteria: contribution type, research approach, dataset type and techniques used with UCP; and 2) to analyze these papers from different views: estimation accuracy, favorable estimation context and impact of combined techniques on the accuracy of UCP. The authors concluded that “there are multiple research directions for UCP method that have not been examined so far such as validating the algebraic construction of UCP based on industrial data. Also, there is a need for standard automated tools that govern the process of translating use case diagram into its corresponding UCP metrics”. The authors also refers that, “although there is an increase interest among researchers to collect industrial data and build effort prediction models based on machine learning methods, the quality of data is still subject to debate” (Azzeh, Nassif, & Attili, 2021). Azzeh et al. did a study to examines the impact of data locality approaches on productivity and effort prediction from multiple UCP variables. The results found by this research demonstrated that the prediction models that are created based on local data surpass models that use entire data. Also, the results showed that conforming to the hypothetical assumption between productivity and environmental factors is not necessarily a requirement for the success of locality (Azzeh, Nassif, & Martín, 2021).
88 In chapter 6 an overview of the Function Points (FPs) is presented from its origin. In this subsection is presented some research that has been published on UCP in conjunction with FPs. Additionally, some studies involving only FPs are also presented. Some work has been published on UCP in conjunction with FPs. Certain attempts have been made to combine FPs and UCP. A modification of Karner's method to fit the needs of a specific company is discussed by Arnold and Pedross, where UCP are converted to FPs (Arnold & Pedross, 1998). An attempt to map the object-oriented approach into FPs has been described by Thomas Fetke et al. (Fetcke, Abran, & Nguyen, 1997), and converting UCP counts to lines of code by John Smith (Smith, 1999). But there does not seem to be much research done on these ideas. FPs is one of the oldest metrics for software size measurement. It was proposed by Allan Albrecht in the 80s (Albrecht, 1979). This metric is based on functionality as perceived by the user and independent of the technology. In the literature review on this metric, some weaknesses in its application are found, namely: • Counting FP itself takes a long time; • Difficult to count consistently without an extensive training; • Difficulty of using automated tools; • Difficulty of counting embedded, highly algorithmic modules, and web systems. After the publication of the metric by Albrecht, there have been several studies that intend to make some adjustments or repairs to the FPs metric. In this sense, Charles Symons was one of the first researchers to make some adjustments to this metric. He did a close examination of the method, and he found some weaknesses. Based on this research, the author proposed a partial alternative for the FPA method. He call “Mark II” to this new approach and it and can be consulted in detail here (Symons, 1988; Symons, 1991). Whitmire was another researcher to propose some adjustments to FPA metric. He presented a 3D Function Points, a problem-based, technology-independent measure, so called because of its roots in FPs. He presented a discussion of the three-dimensional nature of an application problem. He identified measurable characteristics from each dimension that contribute to overall problem complexity. He provided rules for counting and assigning a level of complexity for the identified characteristics. Finally, Whitmire compared 3D Function Points to four existing problem-based size measures: Function Points, Feature Points, Mark II Function Points, and ASSET (Analytical Software Size Estimation Technique) Function Points (Whitmire, 1992).
89 Kitchenham and Känsäla did an empirical investigation of Albrecht FPs. Their study suggested that FPs are not well-formed metrics because there is a correlation between their constituent elements. It also suggested “that (for the dataset under investigation) two of the constituent elements were as good at predicting effort as the raw FP count and that the unweighted counts can be reasonable predictors of effort” (Kitchenham & Känsäla, 1993). In order to evaluate some details of the FPA method, Alan and Robiliard did an empirical study of its measurement process. According to authors FPA was “initially designed on the basis of expert judgments, without explicit reference to any theoretical foundation” (Abran & Robillard, 1996). The results of this empirical study demonstrated that in a homogeneous environment not burdened with major differences in productivity factors there is a clear relationship between FPA's primary components and work-effort. Alan and Robiliard refer that this empirical study also indicates that there is such a relationship for each step of the FPA measurement process prior to the mixing of scales and the assignments of weights (Abran & Robillard, 1996). In a “Why We Should Use Function Points” paper, Sean Furey refers that “FPs are technologically independent, consistent, repeatable, and help normalize data, enable comparisons, and set project scope and client expectations” (Furey, 1997). In his paper, Furey address these issues from the perspective of a practitioner who uses the International Function Point Users Group’s Counting Practices Manual, Release 4.0 rules for counting FPs. Kitchenham found some problems with FPs metric. In her opinion, if FPs are used with caution within a specific organization, we will probably have few problems. But if you want to use them for cross-company benchmarking, as the basis for development or support contracts between different companies, or to develop generic estimation models, there is a non-negligible risk that you will encounter problems (Kitchenham, 1997). Antoniol et al. presented and published a method for estimating the size, and consequently effort and duration, of object-oriented software development projects. They defined an adaptation of traditional function points, called “Object Oriented Function Points" (OOFP), to enable the measurement of object-oriented analysis and design specifications. They also constructed tools to automate the counting method. In summary, the authors showed that is possible to apply the concepts of FPs to object-oriented software and that results are accurate and useful in an industrial environment (Antoniol, Fiutem, & Lokan, 2003; Antoniol, Lokan, Caldiera, & Fiutem, 1999; Caldiera, Antoniol, Fiutem, & Lokan, 1998).
96 Unlike other mature disciplines, the field of Software Engineering (SE) continues to lack a research and development infrastructure that supports systematic testing of novel software engineering methods, techniques, and tools. In the early nineties, Basili et al. introduced, for the first time, the concept of experience factory . As the authors refer in (Basili et al., 1992) the concept was introduced to " institutionalize the collective learning of the organization that is at the root of continual improvement and competitive advantage ". Thus, the experience factory provides an organizational schema for collecting experiences on reuse of empirical results, for analyzing them and generalizing the knowledge contained (Visaggio, 2008). This scheme was designed based on many years of the Software Engineering Laboratory (SEL) work. Over several years, this well-known laboratory has conducted several studies and experiments for the purpose of understanding, assessing, and improving software and software processes within a production software development environment at the National Aeronautics and Space Administration/Goddard Space Flight Center (NASA/GSFC) (Basili et al., 1992). With our approach, we do not intend to create a new software engineering laboratory. Instead, we created an educational environment that allows us to conduct empirical studies in the software engineering area by involving students that are enrolled in our current software engineering courses (undergraduate (BA/BSc), graduate (MA/MSc) and doctorate (PhD) degrees). Our goal was to create a platform that allows us to perform empirical evaluations of the tools, techniques, and technologies used in software engineering. Our intention was to develop a new experience factory approach based on one explicit educational environment. In this stage of our work, we just worked with students as subjects of our first empirical studies, but in future we intend extend these studies using professionals as subjects. We are fully aware that we will face some problems with the validation of the results that obtained in our student-based experiments performed. It is impossible to be sure that techniques evaluated under such circumstances will scale up to industrial size systems or very novel software engineering problems. Even though, Kitchenham et al say that " students are the next generation of software professionals and, so, are relatively close to the population of interest " (Kitchenham et al., 2002). In the opposite, students in psychology studies are not representatives of the human population as a whole (Rosenthal, 1994).
97 4.2. ESE in an Educational Context ESE is a sub-field of software engineering which aims at applying empirical theories and methods for the measuring, understanding, and improvement of the software development process in real software companies (Jaccheri & Osterlie, 2005). This definition extends the concept for ESE proposed by Basili, when he said that " experimentation is performed in order to help us better evaluate, predict, understand, control, and improve the software development process and product" (Basili et al., 1986). It is important to be able to evaluate new techniques and methods in a structured way before they are introduced in the software process (Höst, 2002). Empirical methods have gained increased attention in software engineering; there are dedicated conferences such as the International Conference on Evaluation and Assessment in Software Engineering (EASE) (EASE, 2021), and there are dedicated journals such as the International Journal of Empirical Software Engineering (EMSE, 2021). Controlled experiments are the most commonly used empirical methods in software engineering. Sjøberg et al. define controlled experiment in software engineering as a " randomized experiment or a quasiexperiment in which individuals or teams (the experimental units) conduct one or more software engineering tasks for the sake of comparing different populations, processes, methods, techniques, languages, or tools (the treatments) ” (Sjøberg et al., 2005). Currently, some universities offer courses in the Software Engineering area, as is the case of Norwegian University of Science and Technology (NTNU) (Jaccheri & Osterlie, 2005; NTNU, 2021). This university has a research unit called Information Systems and Software Engineering (ISSE) (NTNU_ISSE, 2021)that perform several empirical studies in the ESE area. Another university that has a research group in the Software Engineering area is the Lund University in Sweden (SERG, 2021). This university has a Software Engineering Research Group (SERG) known for conducting relevant and rigorous research on the large-scale engineering of software systems, which have significant impact on industry and society. They use, particularly, empirical research methodology for longterm industry-academia collaboration. These two institutions have worked with students as subjects of experiments. These institutions run the experiments out of the courses’ context, whereas in our approach the students perform the experiments as part of their regular academic courses. The SERG is one of the two main research centers for ESE in Sweden. They conduct industry relevant research, published with the highest international standards. They focus their work on Software Startups,
98 Requirements Engineering, Software Testing, Continuous deployment and experimentation, Industryacademia collaboration, Cognitive aspects of software development, Open source and data ecosystems, Software Process Quality, and Software Management. They have also, some research in study aspects of the Digital Society in cross faculty settings. SERG conduct research with close industry contacts using empirical methods, including surveys, experiments, and case studies. They teach undergraduate and graduate courses in software engineering, which provide knowledge and understanding of large scale industry contexts (SERG, 2021). The Department of Computer Science of the University of Helsinki created an experimental software laboratory for basic and applied software development research and education. The name of this laboratory is Software Factory and they involve researchers, students, and industry partners in their projects (Software Factory, 2021). This infrastructure allows students to use state-of-the-art tools, modern processes, and best practices to prototype and develop great software for businesses in an environment made to support top-level research. The Software Factory is run by the Empirical Software Engineering Research Group (ESE) (ESE Helsinki, 2021)at the University of Helsinki in Finland. This research group address software engineering research problems and challenges with industrial relevance or origin. They emphasize the empirical aspect of the research, in particular by applying research methods that enable them to gain an in-depth understanding of software development. Software Factory ’s research trains PhD and Master students, performs basic and applied research in its operating context and performs tests for evaluating different research methods. Software Factory offers a PhD student an opportunity to develop his/her capabilities to conduct observation and participant observation, perform interventions and conduct interviews in a scientific manner. The PhD student can perform initial tests to their research design and see where it can be improved before conducting field studies on a large scale (Abrahamsson, 2010). As well Known the research in software engineering requires an authentic environment. At the Software Factory , they aim to provide an environment that emulates industry as closely as possible. Table 4.1 shows a strategic outlook of the Software Factory for all involved stakeholders (Kettunen, 2010). According to Petri Kettunen, Software Factory offers advances for both academic as well as industrial interest groups in terms of software business, research, and training/education. This goal is aligned with the overall strategy of University of Helsinki for fostering new linkages towards business life since 2010.
99 Table 4.1: Strategic Outlook of the Software Factory Interest Group Learn Share Grow Companies Global software development Open Innovation Future skill and competence needs Business-driven prototypes Investors Software product development Prospects Expectations Spin-offs Researchers Software business Experiments Cloud software competences Students Professional skills (e.g. teamwork) Teaching material Lessons learnt Careers Based in software technology advances, such as cloud computing and internet-based networked software services, the strategic intent of the Software Factory is to promote (Kettunen, 2010): • Learning: Train skilled and competent software professionals for the software-intensive industry; • Sharing: Facilitate intensive industrial-academic collaboration and relevant research knowledge creation; • Growth: Develop innovative software product ideas and prospective software business ventures. In the Software Factory , the team works constantly together just like in a real workplace. There is always a real business demand behind the project, which makes the project context valid for research. At the same time the researchers can observe the team members and even participate in projects if participant observation is considered useful (Software Factory, 2021). Methods, practices, and tools used in Software Factory has some particularities. Researchers can bring their own research equipment ( e.g. mobile devices that the team members use). Researchers can ask participants to answer questionnaires (paper or web) during the project. All written material ( e.g. code and documentation) provided by the team is available for the research purposes. Researchers can come to the Software Factory room and do direct observation. Researchers can also take part in the projects and do participant observation. Researchers can interview team members and customers after the projects (Software Factory, 2021). In Brazil, Guilherme Travassos leads an active group in ESE area. Experimental and Software Engineering Group (ESE Group) is one of research and development groups of the Systems Engineering and Computer Science Department of the Universidade Federal do Rio de Janeiro (UFRJ/COPPE). ESE Group is a research line of the Laboratory of Software Engineering (LENS) of that university (ESE Group, 2021a).
100 ESE Group aims at improving software engineering through applying experimentation (scientific method) for the construction and evaluation of software technologies (processes, methods, techniques, and tools). ESE Group also concerns with the field advance, by researching and proposing new models for the planning, implementation, and packaging of software engineering studies. These activities are fundamental for software engineering to increasingly incorporate the principles of engineering. ESE Group believes these are fundamental activities that will contribute to get software engineering more closed to the classical engineering and scientific principles (ESE Group, 2021a). The current research interests of the ESE Group are (ESE Group, 2021a): • Experimental Software Engineering: o Methodological support for conducting studies in Software Engineering; o Environments for Software Engineering and experimentation. • Experimentation applied to Software Engineering: o Search-Based Software Engineering; o Ubiquitous systems engineering; o Web application engineering; o Agility in Software Engineering; o Software maintenance and evolution; o Verification, validation, and software testing; o Software processes for innovation. As previously mentioned, the ESE group has its focus on the development of technologies (approaches, strategies, guidelines, methodologies, models, processes, among others) to support the planning, execution, and analysis of primary, secondary, and tertiary studies in Software Engineering. The computational environment developed by this research group is called eSEE (Experimental Software Engineering Environment), whose objective is to provide an environment (not necessarily just a set of integrated tools) to organize knowledge about experimentation and to support the conduction of large-scale (and science) studies in Software Engineering area (ESE Group, 2021a). In (ESE Group, 2021b) they have a glossary of concepts very useful for anyone that do research in this area. For being aware of the intervention area of the ESE Group, we list some research and development projects that the ESE laboratory is involved in (ESE Group, 2021a):
101 • Softex MPSBR, is a project to improve the software development capacity in Brazilian companies. Its main objective is to develop and disseminate a Brazilian process improvement model (the MPS (Melhoria do Processo de Software) reference model) aiming to establish an economically viable path for organizations, including small and medium-sized companies, to achieve the benefits of process improvement and the use of good software engineering practices in a reasonable amount of time. • eSEE: Experimentation in Software Engineering and Science on a Large Scale is a project that has the main goal building the eSEE ( Experimental Software Engineering Environment ), a computational infrastructure to support experimentation in Software Engineering and science on a large scale. • Dogs Project, the main goal of this project is to organize a DevOps software ecosystem to support the collaboration between software developers and IT operations staff, in the context of a startupcentric social environment. In particular, the project will address security, tool interoperability and data portability issues to enable data-driven knowledge transfer between development and operations staff. • CAcTUS Project, the goal of CAcTUS (Context-Awareness Testing for Ubiquitous Systems) project is to answer questions regarding ubiquitous systems, trying to define a strategy for planning and executing testing procedures considering the potential contexts of use and using measurements. Another important group of research in ESE area is the International Software Engineering Research Network (ISERN) group. ISERN is a community that believes that the software engineering research needs to be performed in an experimental context. ISERN members argue that by doing this we will be able to observe and experiment with the technologies in use, understand their weaknesses and strengths, tailor the technologies for the goals and characteristics of particular projects and package them together with empirically gained experience to enhance their potential reuse in future projects. The founding ISERN members chose the Quality Improvement Paradigm (QIP) as the reference model to provide a common terminology for their cooperation (ISERN, 2021). In (ISERN, 2021) we can read the “ ISERN Manifesto ” that describes with some detail contents such as: Purpose and Focus, Common Research Framework, Activities, Communication, Members, Membership Application, Meetings and Meeting participation, and Benefits from Network, to researchers and to companies.
102 The ISERN community holds annual meetings since 1993 in different countries of the world. For instance, in 2019, the ISERN meeting has taken place in Pernambuco, Brazil (ESEIW 2019) and in 2020, previously scheduled for Bari, Italy, it was taken in virtual mode due to the COVID-19 pandemic (ESEIW 2020). ISERN was initially created by relevant researchers in the ESE area from different parts of the world, namely: Prof. Dr. Koji Torii (Nara Institute of Science and Technology, Japan), Prof. Dr. Dieter Rombach (Fraunhofer IESE & University of Kaiserslautern, Germany), Prof. Dr. V. R. Basili (University of Maryland at College Park, USA), Prof. Dr. Ross Jeffery (University of New South Wales, Australia), Prof. Dr. Giovanni Cantone (University of Roma at Tor Vergata, Italy) and Dr. Markku Oivo (University of Oulu, Finland). Numerous other academic and industrial organizations have joint ISERN since. A list of all current ISERN members can be obtained in (ISERN, 2021). Fraunhofer Institute for Experimental Software Engineering (Fraunhofer IESE) is one of the founding organizations of Empirical Software Engineering (IESE, 2021). Fraunhofer IESE is one of 75 institutes and research institutions of the Fraunhofer-Gesellschaft. Together they have a major impact on shaping applied research in Europe and contribute to Germany’s competitiveness in international markets (Fraunhofer, 2021). As one of the founders and drivers of the ISERN, a unique network of more than 45 international software engineering research groups, Fraunhofer IESE have access to all relevant research groups and experts worldwide in ESE area. Fraunhofer IESE is one of allied institutes of the Department of Computer Science of the Kaiserslautern University. Fraunhofer IESE’s mission is to promote experimental software engineering, the best approach for introducing engineering style rigor into business practice (Rombach, 2000). Empiricism is one of the major competencies of Fraunhofer IESE. They support the customer in all steps of technology evaluation, and they have profound experience in conducting primary studies such as surveys, case studies, experiments, project retrospectives, and post-mortem studies. They support companies in mastering challenges in the areas of “Autonomous Systems”, “Industry 4.0”, “Smart Farming”, and “Digital Healthcare”, and offer digital solutions for rural and urban areas. In over 2,000 customer projects, they have already transferred cutting-edge research into sustainable business practices, with current focus topics being “Dependable AI (Artificial Intelligence)”, “Digital Ecosystems”, “Virtual Engineering”, and “System Modernization”. Their portfolio comprises quantitative as well as qualitative methods, and triangulation (IESE, 2021). Fraunhofer IESE perform several services ranging from planning and designing empirical studies, implementing data collection instruments, supervising the conduction of empirical studies, analyzing the
103 results of empirical studies, documenting empirical studies, and establishing the infrastructure and competencies for conducting your own studies. Fraunhofer IESE also provides a comprehensive support during the lifecycle of secondary studies, such as systematic literature reviews and meta-analysis approaches. They provide methods that allow synthesizing (i.e., summarizing and generalizing) evidence from individual empirical studies. Fraunhofer IESE also plays an important role in the technology transfer and piloting. They conduct demand analyses to identify key problems and demands in practice. They guide the development of new technologies by using empirical methods to systematically support the tailoring and transfer of technologies. Simula Research Laboratory is another research institution that works closely with the Norway universities. Simula was founded in 2001 and has since become a nationally and internationally acclaimed research institution. Simula's main objective is to create knowledge about fundamental scientific challenges that are of genuine value for society. The strong focus on basic research is combined with both teaching of postgraduate students and the development of commercial applications (Simula, 2021). Simula develops its research work in Communication Systems, Software Engineering and Scientific Computing fields. All activity within the research field of software engineering at Simula is concentrated in the Department of Software Engineering, and this research group focuses on the development of tools and methodologies for the validation and verification of large-scale systems, thereby aiming to ensure greater systems stability. They main activities has three vectors: research (Simula Research Laboratory, Simula Metropolitan, and Simula UiB), education (Simula School of Research and Innovation (SSRI)) and innovation (Simula Garage, Simula Innovation and Simula Consulting) (Simula, 2021). Simula was organized as a limited company owned by the Ministry of Education and Research of Norway government. Simula's main objectives are: • To conduct basic and long-term research in the fields of scientific computing, software engineering, machine learning, communication systems, and cryptography; • To educate students at the master, doctoral, and postdoctoral levels in partnership with Norwegian and international universities; • To promote the application of research in both private and public sectors. Simula is involved in many projects with public organizations and industrial settings. In all of these projects, the main objective is to apply research and technology transfer.
104 As shown, in this section we present the most relevant research institutions that involve students in their empirical studies. Probably, there other institutions that would be present in this section, but our research focus was centred in the best ones. 4.3. ESE using Students versus Professionals In this section, based on literature review we will describe the strengths/weaknesses of using students versus professionals in the ESE context. In the survey conducted in (Sjøberg et al., 2005), a total of 5,488 subjects took part in the 113 experiments investigated, eighty-seven percent were students and nine percent were professionals. This survey demonstrates the importance of using students in this context. Table 4.2 shows the subject types divided into the categories involved in all experiments. The authors quantified, also, the topics of the experiments and their subjects, tasks, and environments. Table 4.2: Subject categories using in experiments (adapted from (Sjøberg et al. , 2005)) Subject Category Reported Subject Types N % Undergraduates Undergraduates, Bachelors, Third and fourth-year students, Lastyear students, Honors and Majors 2969 54.1 Graduates Graduate students, Students following graduate courses or Master's programs, MSc and PhD students 594 10.8 Students, type unknown Students in computer science, Students 1203 21.9 Professionals Developers, Practitioners, Software engineers, Analysts, Domain experts, Business managers, Facilitators, Professionals 517 9.4 Scientists Professors, Post-doctorates, Staff members of educational institutions 74 1.3 Unknown 131 2.3 Total 5488 100 The lack of professionals in software engineering experiments is due to the conception of high costs and large organizational effort. Usually, companies do not provide their professionals to carry out empirical studies. Port and Klappholz refer that very little empirical research is done in industry and that, for competitive reasons, even when such research is done, its results are often withheld as proprietary or are too difficult to contextualize without divulging sensitive information (Port & Klappholz, 2004). In many studies, students are used instead of professional software developers, although the objective is to draw conclusions valid for professional software developers. The differences are only minor, and it is
105 concluded that software engineering students may be used instead of professional software developers under certain conditions. Höst et al. argue that the main reason to use students as subjects is often that they are available at universities and they are willing to participate in studies as part of courses they attend (Höst et al., 2000). In many cases, it is possible to combine the learning objectives of the courses with the research objectives of the studies. Tichy refers that software students are much closer to the world of software professionals than psychology students are to the general population (Tichy, 2000). In particular, software graduate students are so close to professional status that the differences are marginal. Software graduate students are technically more up to date than the "average" software developer who may not even have a degree in computing. Software professionals, on the other hand, may be better prepared in the application domain and may have learnt to deal with systems and organizations of larger scale than a student. Sjøberg et al. argue that the main reason of most subjects in software engineering experiments are students is that they are more accessible and easier to organize, and hiring them is generally inexpensive (Sjøberg et al., 2002). Consequently, it is easier to run an experiment with students than with professionals and the risks are low. The bad thing is that the variations among studies conducted with professionals are higher than the variations among students due to the more varied educational backgrounds and working experiences in the professionals. Jaccheri and Morasca refer that empirical studies are often carried out with students because they are viewed as inexpensive subjects for pilot studies. The authors also argue that the final goal of carrying out empirical studies with students is carrying out empirical studies in industrial organizations and establishing collaborations with them. In this sense, it is therefore useful to involve industry professionals in empirical studies with students, and they should actually play all of the stakeholders’ roles. When involved in empirical studies, the authors propose the following roles for professionals, namely: Professionals as students, Professionals as customers, Professionals as researchers, Professionals as teachers (Jaccheri & Morasca, 2006). Svahnberg et al. refer that the students are readily available, often willing to participate, and require no or little compensation. The authors carried out an empirical evaluation using students in requirement engineering area. They investigated what students imagine is important to professionals in requirements selection. The reason for this investigation was to understand whether the students are able to picture what
112 Academic Institution Tester Researche r User Advocate Instructor Domain Measurement Analysis Software Engineers Reliability Engineers Program/project Metric definition Goal-question-metric Factor-criteria-metric Metric validation Data collection Automatability Form design and test Objective vs. subjective Level of measurement Nominal/classificatory Ordinal/ranking Interval Ratio Quantitative vs. qualitative Preliminary data analysis Plots and histograms Model assumptions Primary data analysis Model application Scope Process Single project Multi-project Replicated project Blocked subject-project Teams Individuals Lifecycle Methodology Importance Product Safety-critical Mission-critical Quality of life Convenience Documentation Code Executable Database Presentation Demonstrations End User None Instructor Real-world-like Real-world Figure 4.2: Summary of the framework for course projects (adapted from (Hayes, 2002)) Hayes conclude that real-world problems are the best ones to assign as course projects and that these projects can be used as experimental studies also, with advanced planning and careful attention to the framework of the study/project. Goulão and Abreu created a model to experimental software engineering process (Goulao & Brito e Abreu, 2007). According to the authors, this model is aligned with recent proposals for best practices in experimental data dissemination. They further argue that the model can be used in the definition of software engineering experiments and in comparisons among experimental results. Their model relates the process activities with their deliverables. The deliverables are mapped into an underlying logical model of experimentrelated concepts that covers the information needs of the experiments’ reporting guidelines proposed in (Jedlitschka & Pfahl, 2005), and are represented in their model description with UML (Unified Modeling
113 Language) class diagrams. The activities carried out during the process are described using UML activity diagrams. The authors conclude that their model can be used as a guideline for practitioners involved in leveraging data collection activities to improve the software process in their organizations, both in industrial and educational contexts. They concluded also, that their model can may also be used as a framework for supporting experiments comparison, which was identified as one major need for future software engineering research (Goulao & Brito e Abreu, 2007). 4.4.1. Relevance and Objectives of the Framework Fundamental principles of software engineering must be supported by theory and sound empirical research (Bourque & Abran, 1996). Thus, empirical studies in software engineering play an important and significant role in the evaluation of tools, techniques, methods, and technologies before they are dynamically validated in industrial setup. As in all areas of science and engineering, empirical research can only be considered rigorous when it is conducted using a valid experimental approach or protocol. In this sense, we made an adapted framework to classify empirical studies performed in an educational context. The framework that we proposed for the first time in this paper (Alves, Ribeiro, & Machado, 2020), was based on the framework of experimentation proposed by Basili. The main goal of the authors was to build a framework for “analyzing most of the experimental work that has been performed in software engineering over the past several years”. Their framework is generic, so it does not refer specifically to empirical studies involving students. The main objective of the framework is to provide a classification scheme for understanding and evaluating empirical studies in software engineering area in an educational context. With this framework we can analyze most of the experimental work that has been done in our computing courses. The framework also has another purpose, it helps structuring experimental processes. We involved students with BSc, MSc and PhD degrees in computing from our university in developing a software project requested by real clients. The educational approach is mainly based on Project-Based Learning (PBL) principles. Working in a team for a limited period of time and delivering a high-quality product are some of the skills that students should gain during their studies at the university. After project presentations, students have a meeting with the teaching staff to discuss and analyze the strengths and weaknesses of their work. The analysis should be performed by keeping in mind the
114 documentation, the project plan and the work experience the team has gathered from the start to the end of the project. To learn from experience is the key to improvement. Performing empirical studies in real contexts is very difficult due to various obstacles, thus, we created a stable environment that allows the completion of reliable empirical studies with students. In many studies, software engineering students are used instead of professional software developers, although the objective is to draw conclusions valid for professional software developers. The differences may be considered only minor, and it is concluded that software engineering students may be used instead of professional software developers under certain conditions. Over the past eight years we had more than one thousand students involved in all computing unit courses. All these students, spread over several course units, develop software projects of medium to high complexity and constitute our main source of experimentation. In this thesis we present the results obtained from the classification using the framework of only one of our course units. From the academic year 2010/2011 to 2017/2018, the 105 students enrolled in the Project Management of Information Systems (PMIS) course developed 79 work projects (empirical studies) in different SWEBOK (Software Engineering Body of Knowledge) (Abran et al., 2004) KAs (Knowledge Areas). We classify these works projects to explain the usefulness and applicability of using the proposed framework. 4.4.2. The Framework Architecture In this section, we present the architecture of our adapted framework along with an explanation of its main components. It is very important to have an overview of the framework to understand the scope of our research. The main goal of our framework is to provide a classification scheme for understanding and evaluating empirical studies in PMIS area in an educational context. Firstly, we will use the framework to classify empirical studies performed by students of our courses and after a few iterations of refinement of our framework we will classify some experiments collected from the literature. The framework also serves as an instrument to guide us through the implementation of an experimental process with accuracy. The framework summarized in Figure 4.3 consists of four categories corresponding to phases of the Empirical Study (ES) performed in an educational context: 1) definition, 2) planning, 3) operation, and 4) interpretation. The downward arrows show the order that we must perform in an ES. The arrows “iteration” and “new execution” reveal the dynamic aspect of the experimentation process. This can help the student to
115 correctly follow the process. Same as the arrows, the parts written in blue are included by us in this new proposed framework. Figure 4.3: Framework for Cataloging Empirical Software Engineering Studies (Adapted from (Basili et al. , 1986))
116 The first phase of the ES is the definition phase. In our framework the definition phase contains six parts: 1) motivation, 2) object, 3) purpose, 4) perspective, 5) scope, and 6) end user. In this phase we excluded one part, the “domain” from the original framework. We think that this part is not important to classify empirical studies in an educational context. However, we added a new part called “end user” adapted from (Hayes, 2002). In this part we will define who uses the project work. The end user of the ES can be categorized as none, instructor, real-world-like, or real-world. The motivation of an ES can be to understand, learn, or assess the performance of a certain tool. The object of study is the primary entity examined in an ES. We are interested in characterizing the final product (software application) or understand and improve the software development process. In an educational context the teacher must provide a list of valid empirical studies, highlighting the object of study or validate a proposal made by the student. The purpose of an ES can be to characterize the change in development activities when using software management tools, to evaluate the effectiveness of these tools, to predict system development effort by using an estimation method, or to validate a theory by analyzing empirical evidence. Normally, empirical studies in the Information Technology (IT) area involve the following subjects: software engineering, computer science, information systems and project management. However, software engineering is a multi-disciplinary field that involves concepts from several disciplines. We think that these disciplines cover the domain of all empirical studies. In empirical studies that examine "software quality”, the interpretation usually includes correctness if it is from the perspective of a developer or reliability if it is from the perspective of a customer. Studies that examine metrics for a given project type from the perspective of the project manager may interest certain project managers, while corporate managers may only be interested if the metrics apply across several project types. The ES also can be performed from the researcher or instructor perspective. The scope of the ES can be categorized as single-project, multi-project, replicated project and blocked subject-project. This classification results from the number of teams and the number of projects involved in the ES. Thus, we have a single project when we have one team and one single project, multi-project variation one we have one team and more than one project, replicated project when we have more than one team and one single project and a blocked subject-project when we have more than team and more than one project. More details about this classification can be found in (Basili et al., 1986). The second phase of the ES is the planning phase. In our framework the planning phase contains three parts: 1) design, 2) criteria, and 3) measurement. In this phase we maintain the original parts, but we change the features inside each part to be in accordance with an ES in an educational context. In the design of an
117 ES, we must set the team’s formation and the analytical methods that we will use to analyze the data collected. We consider three types of team’s formation: randomized, grouped by teacher and self-organized. Multivariate analysis methods, including correlation, factor analysis, and regression generally can be used across all empirical studies scopes. Statistical models may be formulated and customized as necessary. Nonparametric methods should be planned only when limited data is available or distributional assumptions are not met. Sampling techniques can be used to select representative students and projects to examine (Basili et al., 1986). We divide the criteria of the ES planning in two dimensions, one from the perspective of external validity and another from the perspective of learning benefits. The external validity is a major concern in any domain of the ES. It defines the conditions that limit the ability to generalize the results of an experiment to an industrial context. We can classify an ES according to reliability, transferability, and deployability. From the perspective of learning benefits, we must evaluate if the ES was properly integrated with the course, if ethical issues were adequately addressed by the study design and if students played a valid role in the software project environment (Carver et al., 2010). In the ES planning we must define measurements and validate them to show if they capture what is intended. The data collection process includes surveys, normally, interviews or questionnaires and case studies. The required data may include both objective and subjective data and different levels of measurement: nominal (or classificatory), ordinal (or ranking), interval, or ratio. As metric definition the ES can follow a gool-question-metric (Basili & Selby, 1984; Basili & Weiss, 1984) or factor-question-metric paradigm (Cavano & McCall, 1978). The third phase of the ES is the operation phase. The operation of the ES consists of 1) preparation, 2) execution, and 3) analysis. Before conducting the actual ES, the student should analyze similar projects, review the literature about the object of study, participate actively in the classes, promote meetings with teachers and, if needed and possible, promote meetings with domain experts. Execution covers the actual project accomplishment by students as well as data collection, data validation (if it is also an experimental study), and verification of the student’s role and its validity. The analysis of the data may include a combination of quantitative and qualitative methods. The preliminary screening of the data, probably using plots and histograms, usually precedes the formal data analysis. The process of analyzing the data requires the investigation of any underlying assumptions before the application of the statistical models and tests (Basili et al., 1986). The fourth phase of the ES is the interpretation phase. The interpretation of the ES consists of 1) interpretation context, 2) extrapolation, and 3) impact. The contexts of interpretation are the statistical
118 framework of which the result is derived, the purpose of the particular study, and the knowledge in the field of research (Basili et al., 1986). The representativeness of the sampling analyzed in a study qualifies the extrapolation of the results to other environments. To classify the sample representativeness, we used a low, average, and high scale. This qualitative scale can easily be converted into a quantitative scale by scaling the sample size for each case. We classify the ES visibility from the academic perspective and from the industrial perspective. We must evaluate if an ES performed by a student can be publish in an international conference or if it should just be used inside university. We must evaluate if the results obtained from ES can be replicated by colleagues, or by professionals from the industry. We must also evaluate if the results from ES can be applied in real context. 4.4.3. Demonstration Case with the Framework In order to validate our adapted framework, a demonstration case was performed with project works elaborated by students from the University of Minho. This study can be full consulted in the paper “Classifying Empirical Studies in an Educational Context Through an Experimentation Framework” published in the 12th annual International Conference on Education and New Learning Technologies (EDULEARN20) (Alves et al., 2020). For the validation of our framework, we collected all projects carried out in the PMIS unit course in the period of 2010/2011 up to 2017/2018. In this period, 105 students enrolled in the PMIS course developed 79 projects. The last task of each project is to deliver a final document. This document in some cases has a report format and in other cases has a journal paper format. Students would have to follow the formatting as if they were submitting a paper to a journal, for example using a Springer template. Each one of these documents has between 20 to 50 pages. The total number of pages of all these documents, analyzed by the researcher (author of this thesis), are more than 1600. The work teams enrolled in these projects had one to four students. In order to follow our approach, to accomplish the treatment and analysis of the results, three steps were executed, namely: 1. Perform a literature review about frameworks that define the experimentation process; 2. Adapt the best framework found in the previous step; 3. Classify the PMIS projects with the adapted framework.
119 In the step one we found the Basili et al. experimentation framework (Basili et al., 1986). Although it is a framework with many years of existence its core concepts are still actual. To create our adapted framework in step two we collect from literature some other adapted experimentation frameworks, although rare they still exist. The results of steps 1 and 2 can be found in previous section. In the third step we used the adapted framework to classify the projects performed by the PMIS unit course students. Our main goal in using the framework is to achieve a critical improvement of the PMIS unit course. In fact, we intend to get answer to the following research questions: 1. Is the framework applicable to unit courses in an educational context? 2. Does the framework bring us relevant information about the PMIS unit course? Hereafter we explore the data collected from the classification of all projects using our framework in order to answer those questions. The classification was made based on the reading of documents delivered by students. For this, all components of the framework were reproduced in the Microsoft Excel. The classification was carried out manually, probably involving some subjectivity on the part of the researcher. Figure 4.4 presents the results of each part of the definition phase of the framework application in all projects. As a preliminary note we would like to clarify that some projects do not have only one value in each part. For example, work project x can have as motivation to understand and to learn some metric. This can happen in all different parts of all experimental phases. Analyzing Figure 4.4, we can conclude that 65.6% of students have as their main motivation to understand and to learn something, a metric, a model, a technique, etc. This is expected because we are in an educational context. The “object of study” is the primary entity examined in a study. In our classification we found that 39.6% of the projects handled any kind of process, for example the software process development or project management process. We also have a considerable percentage of projects focusing on the study of models, concretely 22.0%, for example, a software reliability model or a software quality model. Tools are the third object of study most chosen by our teams, concretely 15.4%. Some of these tools were applications to automatically calculate a measure to estimate the effort needed to develop a software product. Interestingly, we did not find any work that investigated a final software product or a theory. The purpose of a project can be to evaluate effectiveness of a design process, characterize a system over time, predict the system development cost by a cost model, motivate the validity of a theory by analyzing
120 empirical evidence, etc. We find in our classification that students in their projects focus their attention in characterize (46.9%) some model or system or evaluate (40.6%) some metric proposed. Figure 4.4: Definition phase: motivation, object, purpose, perspective, scope, and end user Given that all projects were carried out within the scope of PMIS unit course then it is expectable that most of the work was performed from the perspective of the Project Manager (59.5%). Since all students were enrolled in computer science courses then it is also expectable that a considerable number of projects were
121 performed from perspective of the Developer (27.4%). It is also no wonder that none of the work has been carried out from the customer’s perspective, as we are in an educational environment. Interestingly, we did not find any work performed from the perspective of the instructor. In the scope part of the definition phase, we analyzed four different cases: (1) single project, when a single team (or a single-person) performs a single project; (2) multi-project, when a single team performs a set of projects; (3) replicated project, when more than one team performs one project and (4) blocked subjectproject, when more than one team performs a set of projects. Thus, we found in our research that 65.5% of students performed a single project. In fact, in most cases the work project was chosen by students from a list of projects provided by the teacher staff. Some teams (22.4%) were enrolled in a set of projects of other unit courses in our university. As expectable we did not find any project within the blocked subject-project scope. The end user of a project is the entity (person, company, organization) that will use the work developed in the project. Thus, we found that 45.1% of the projects had real-world-like as end user. In fact, the goal of most projects was to improve a model, a metric, a technique, a process existing in the industrial world. However, in most cases all research was performed in the educational environment. We classified 5.6% of projects as real word end users. Those projects had some data collect from industrial companies. Finally, we classified as none (40.8%) all projects that we cannot clearly find the end user of the project. Figure 4.5 presents the results of each part of the planning phase of the application of the framework in all projects. This phase refers to the project planning phase, the time when an instructor designs the work project. The design of an experiment couples the study scope with analytical methods and indicates the domain samples to be examined. This part is relevant if an instructor is engaged in the research, and he/she wants to experimentally study an aspect of software or quality engineering as part of the project. In our framework we added a new item that was how the teams were formed. We conclude that 56.3% of the teams were selforganized and 42.5% were randomized by an algorithm proposed by the teacher staff. Interestingly, we did not find teams grouped by the teacher staff. We can also observe that the statistical issues (multivariate analysis, statistical models, parametric models, and non-parametric sampling) were not much used by our students in their projects. Different motivations, objects, purposes, perspectives, scopes, and end users require the examination of different criteria. From the external validity perspective, we collected 32.2%, 17.8% and 3.9% of the work
128 scientific context there is a great divide between methods and research questions (Finkelstein, 2011; Gregg, Kulkarni, & Vinzé, 2001). The cross-fertilization between the two disciplines has allowed the cooperative and coordinated development of the engineering and requirement management, modeling and systems architecture, process development and project management approaches (Avison & Wilson, 2001; Birk et al., 2003; McBride, 2003). This is why, in the context of project technology-based solutions in problems of organizational nature, the two disciplines (and corresponding professional performances) merge into a blend of common methodologies, techniques and tools (Fung, Tam, Ip, & Lau, 2002; Hellens, 1997; Jayaratna & Sommerville, 1998) demonstrating the existence of an SE/IS convergence. The understanding of the intersection between the two disciplines allows students to develop projects of better quality, since the whole project is grounded in the knowledge of both disciplines. When we are to deliver knowledge and skills to IT students, we should be able to teach engineering and software management. The success of a software engineer is related to the ability of engineering and software management methodologies to adapt to the huge demands that professionals are subject to nowadays, which include dealing with all procedural issues of software production, along with technological competence and sensitivity to the needs and expectations of users (Platt, 2011). The rationalization of all decisions relating to issues not explicitly technological is fundamental for a correct (effective and efficient) operation of a software development team (Dutoit, McCall, Mistrík, & Paech, 2006). Into this set of concerns and attitudes also fit the aforementioned software economics issues (Tockey, 1997). When properly reconciled with the technological dimension, Software Engineering Management has adopted the designation of Software Engineering and Management (Shere, 1988). This designation, which reinforces the existence of a management dimension within the SE (as in any other Engineering specialty), represents a break with the CS discipline and an assumption of the socio-technical nature of the SE, and its inevitable convergence with the IS discipline (Kurbel, 2008). In our approach SPM and DCA courses unit intend to provide students an environment of software development projects similar to an environment in organization context. They introduce engineering and management software techniques to collect and specify the requirements of the software development projects. They also deal with the software lifecycle management issues. These two courses unit are mainly responsible for software development methodologies and software project planning teaching. The ADIS and PMIS courses unit intend to instill in students an engineering approach to information systems development. This attitude derives from the SE/IS convergence mentioned above and is materialized
129 in the business solutions development study (enterprise business applications). Thus, the engineering and requirements management techniques and modeling and systems architecture are complemented, and the maturity and software processes improvement issues are systematized, as well as the processes management and project development. The Department of Information Systems (DSI) of the School of Engineering (EEUM) of the University of Minho, where this research is performed, offers an educational portfolio in the Information Systems and Technologies (IST) area that covers all levels of higher education. When this research was performed, before school year 2021/2022, the Master’ s degree had a integrate format. The study plan included five years and conferring a Master' s degree. Currently, due to legislative decisions, the study plan has three years for Bachelor’ s degree and, separately, more two years for Master’ s degree. Our experimental environment was build based in previous study plan of the courses. Thus, all the research presented here should be seen in light of this assumption. The initial training of IST professionals is achieved through the integrated Master in Engineering and Management of Information Systems (MIEGSI). This is the main master course that has SPM, DCA, ADIS and PMIS courses unit in its curriculum. The challenges of keeping up with the constant evolution of IST professional training and the demands of adjusting higher education programs to the new principles and rules for higher education have been addressed through several changes in the program structure of this Master’s degree. The MIEGSI results from the Information Systems and Technologies BSc degree and the Engineering and Management of Information Systems MSc degree combination. These courses were the result of the adaptation (appropriateness) of the Information Management course to the higher education model established in 2006 (the Bologna Process). Although the current Model Curriculum and Guidelines for Undergraduate Degree Programs in Information Systems is IS 2010 (ACM-Curricula-IS, 2010), MIEGSI was originally structured according to the previous version of the standard, the IS 2002. Based on knowledge of the areas and their comparison we can infer that the MIEGSI is a course in the IS area, but with less depth in topics of Information Technology curriculum area than suggested by IS 2002. The SPM and DCA curricular units deal with some topics in great depth whose inclusion in ISBOK ( Information Systems Body of Knowledge ) has its origin in the SWEBOK ( Software Engineering Body of Knowledge ) (Abran et al., 2004). These courses unit belong to a curriculum plan of IS and not CS or SE. The main difference is on the software organizational nature focus (business or enterprise software applications), in conjunction with
130 the strategy and culture of the enterprise, the existence of a great diversity of requirements sources (from traditional business stakeholders to contexts in which the architecture of information systems already appears rudimentarily conceived) and the coexistence with professionals with very different perspectives on ITs (functional consultants, information systems architect, manager of technology infrastructure, ...), all of which require a large capacity of flexibility in the implementation and management of development processes. The publication of IS 2010 for updating the IS 2002 model resulted from the natural changes of the technological and industrial practices that the domain has been permanently subject to from its beginnings. The IS 2010 model introduced some adjustments in the courses unit recommended as mandatory (core courses) and significantly increased the range of elective courses. The SPM course unit fulfill the stipulated of IS 2010.4 IS Project Management course. In the case of DCA course unit, its syllabus covers what is stipulated in IS 2010.6 Systems Analysis and Design and Application Development courses. This last course unit, despite being classified as elective type, appears to be referenced as mandatory for all profiles of professional training (career track) considered by IS 2010. Notwithstanding the structural and programmatic adjustments, the author of this thesis considers that the syllabus of MIEGSI is aligned with the recommendations of IS 2010. In the case of ADIS and the PMIS courses unit from MIEGSI integrated master, the study of alignment with the curriculum frameworks requires analyzing the MSIS 2006 (ACM-Curricula-MSIS, 2006). The framework belongs to the Computing Curricula program, which in the AIS (Association for Information Systems) leadership focuses on post-graduate education in IS. This framework presents a strict balance between curricular areas of IT Technology and IS Management treated in mandatory courses which recommends. The ADIS course unit is aligned with the MSIS 2006.2 Analysis Modeling and Design course. Following the recommendations of MSIS 2006, the ADIS course unit complement the training received, particularly in DCA course unit, on modeling and development cycles issues of the technology-based solutions. The PMIS course unit is aligned with the MSIS 2006.5 Project and Change Management course. Following the recommendations of MSIS 2006, the PMIS course unit complement the training received, particularly in SPM course unit, on management of the development process issues, introducing the whole socio-technical dimension of the IS and considering the projects as drivers of technological and organizational change. The curriculum frameworks under the Computing Curricula program were developed with the explicit aim of being adopted in university education in the USA (United States of America) and Canada. However,
131 the use of its recommendations outside this geographical context has proven to be a useful practice, with many more advantages than disadvantages. Given that the IT area (in its various forms) is still in its infancy (and therefore remains subject to rapid evolution, which makes it extremely difficult to keep up with the various curricular offerings) and that the abovementioned two countries are at the forefront of technological development, it is a recommended practice to regularly peruse what is being said about the training of their professionals. Despite the enormous worldwide spread of the frameworks produced under the Computing Curricula program, there are countries that choose to follow different paths to develop their own frameworks as a result of a concerted effort within their universities. One example is Australia, where, in some universities, an approach has been adapted to training in IS with a specific curriculum (Tatnall & Burgess, 2009). The Australian approach has evolved from a perspective called "Information Management" and for decades was designated "Business Computing" (Retzer, Fisher, & Lamp, 2003). Another example is Germany, which has developed a body of knowledge suitable for framing how the courses in IS should be taught (Kurbel, Krybus, & Nowakowski, 2021). In the German language, this area has historically been designated "Wirtschaftsinformatik" which over the years has been translated into English as "Business Informatics" or "Business Computer Science". Recently the accepted term for the IS area has been “Business & Information Systems Engineering". The variability of possible approaches in teaching, not only in the IS sub-area, but, generally, in the IT (Computing) area suggests, sometimes, the use of accreditation curriculum and professional certification as a way to introduce some order in the training of professionals and to recognize, unequivocally, the specific skills that a professional must have in a set of sub-domains required by the industry. 4.5.2. Our Project Based Learning Approach This section describes how the integration of the four courses units mentioned in the previous section has been managed, as well the solutions tried to promote educational cooperation in the teaching practices context based in projects. This integration has been carried out over the last twelve years. More precisely, it began in the academic year 2009/2010. This integration has been managed to allow minor changes over the years and to improve some relevant aspects. It is in this controlled context that we developed our PBL approach.
132 The Bologna Declaration (European Commission, 2021) was a political commitment to achieve in the short term, a clear set of objectives recognized as fundamental to the construction of the "European Higher Education Area" and to promote "European System of Higher Education" throughout the planet. Integrated in the changes recommended by the Bologna Process , the ECTS is part of a set of procedures that support the new paradigm of organizing student-centered learning (and training objectives) and move from a traditional system curriculum based on the "juxtaposition" of knowledge to a system focused on developing broad curricular areas, defined in terms of training objectives to pursue. This argument reinforces the relevance of integrating a group of courses units around global goals so that we can instill in students several skills in a way not comparable with skills obtained with the same courses in isolation mode. In ECTS, the work done by students in the subject area is expressed by a numerical value that takes into account the hours of student work, in their overall activities, including contact hours and hours spent on internships, projects, works in ground study and evaluation. The entire work done by the student in each course unit is expressed in ECTS credits and each ECTS credit corresponds to a total of 28 hours per semester. The ECTS system is suited to changes in training, mainly in the development and adoption of: (1) new learning methodologies (more active and participatory), (2) horizontal capabilities and skills (learning to think, learning to learn, learning to teach), (3) specific skills of the profession, (4) general skills (communication capabilities, integration team, leadership, innovation, and adaptation to change). All these dimensions were considered and are thought to be adequately incorporated in the joint project that integrates the four courses of our approach. In many classrooms, learning is a passive activity. Students take notes during lectures and repeat the same information in the exams. When students read a chapter indicated by the teacher and they answer questions about that, the answers can be found in the chapter and are already known. Even in more experimental areas, the teachers rarely allow to students discover principles themselves; instead, the teachers present laws and techniques, and then they build exercises where students simply practice what they have been taught. This teaching is essentially based on the transmission of knowledge. The Bologna Process suggests switching to a school based on the students' work and the effective acquisition of skills, however, it should not put into question a proper proportion of more traditional activities also dedicated to the “simple” transmission of knowledge.
133 Although the Bologna Process , apparently "censors" the "teaching based on the transmission of knowledge", what is called contact time is no more than a series of moments in which teachers and students synchronize spatially to exchange knowledge with the perspective of developing, in students, certain skills. The Bologna Process should not avoid the transmission of knowledge between teachers and students, but rather aim to go further, catalyzing the emergence of new skills in students during the transfer of knowledge process. In this context, the transmission of knowledge is desirable and beneficial, so the pedagogical action in circumstances where every student has limited opportunities to interact with teachers does not foresee success. It is in the laboratory classes that transcendence of “skills transfer” can occur if each student is given the opportunity to receive knowledge. Consequently, the number of students spatio-temporally synchronized with the teachers in laboratory activities must be carefully determined, taking into account the expected level of depth of the “quasi-tangible” learning outcomes. It was based on this change promoted by the Bologna Process that in the academic year 2006/07, it was decided to adopt teaching and learning practices based on the PBL (Barrows & Tamblyn, 1980b) principles in the DCA course unit (since it is DCA course which catalyzes the main project work that integrates other courses). The teaching and learning context that PBL facilitates has been shown to be appropriate to the group of courses that integrate our environment (approach), where we want students to develop real skills in the production of technological artifacts imbued with a spirit of great rigor and methodological and procedural awareness and not simply to reproduce texts and definitions held in any book or manual timelessly accepted on any shelf or in any drawer. What drives the student to want to persist in school learning has to do mainly with the way we create and organize educational environments and all activities that we develop there. Solving a problem according to the PBL approach requires the participation of students. The teacher helps and advises but does not drive. Learning becomes an act of discovery as students examine the problem by investigating its base, analyze possible solutions, develop proposals, and produce a final result. This active learning is not only more interesting and committed to the students but also develops a greater understanding of the syllabus since the students themselves seek information and then use it in an active way with the skills they already hold to complete the project. This way of organizing the teaching and learning activities for skills development promoted by the four courses is considered appropriate. Svinicki and McKeachie argue that “problem-based education is based on the assumptions that human being evolved as individuals who are motivated to solve problems, and that problem solvers will seek and learn whatever knowledge is needed for
134 successful problem solving. Thus, if an appropriate realistic problem is present before study, students will identify needed information and be motivated to learn it. However, as in introducing any other method, you need to explain to students your purposes" (Svinicki & McKeachie, 2014). PBL requires the realization by students that learning lies in the prosecution of skills, not with the teacher to tell them that they are right but based on experimentation with the artifacts and documents that they produce. In cooperative learning promoted by PBL, students learn from each other, and they work together to develop the project. This aspect is extremely important in the context of our group of courses, in which there is the involvement of students with different academic degrees and maturity. In PBL, students grow more thoughtful and are harder working than in exercises that require rote memorization. In our approach, the emulation of a real project (with a real client) forces the students to learn from a variety of different sources and to make decisions based on their own research. This process allows students to achieve more advanced levels of cognitive skills, research skills and problem-solving skills. The PBL’s real academic goal is not to develop a final response to the project. The students do not find just one true answer to the problem that, instantly, they agree can be the “correct” solution. Instead, the real learning occurs through the process of solving a problem: thinking through various steps, investigating the subjects, and developing one solution. With the continuing explosion of knowledge and the pace of technological change, the universities cannot continue to provide all the information to the students that they need for their lives. Increasingly, the most important skill that the university can teach students is to learn by themselves. Within the group of courses units integrated in our approach, this issue arises repeatedly when we want students to understand by themselves that throughout their careers will have to learn how to use and design new development processes, notation models, standards, paradigms, frameworks, management, process improvement and project standards. The recognition of the effectiveness of the PBL approach in engineering teaching has resulted in several initiatives, including scientific projects of a pedagogical nature, in order to produce guidelines for the teaching and learning activities organization under PBL principles. In some forums, the use of PBL in engineering teaching has adopted the Project-Led Engineering Education (PLEE) designation (Powell, Powell, & Weenk, 2003). The project that is presented every academic year to the SPM and DCA students requires energetic learners. Nobody will give them all the necessary information, nor will the answers be found in the books. To solve this problem requires that students “discover complaints”, “investigate the reasons” and develop the
135 best way to resolve the situation. Thus, our approach, which is based on this project, presents some crucial features for creating a context of enormous catalyzing of the phenomena of teaching and learning, namely: 1. Real client . The existence of a real client, who interacts with, gathers and receives students in his organization, promotes in students the ability to feel, in practice, the difficulty of organizational software development with incomplete information and systematic doubts from the client, but with explicit business support needs (Trendowicz, Heidrich, & Shintani, 2011). It also allows students to understand how the client thinks and evaluates the effort put into the development of the solution (Burge & Troy, 2006). 2. Project proposal versus project . In the first semester, in the SPM course unit, the project proposal phase is created, in which feasibility studies are designed and carried out, with some initial incursion into requirement elicitation. This phase ends with a project proposal elaboration, including time and cost estimates and an initial definition of generic features of the solution. This separation between the project proposal phase (emulated in SPM course unit) and the project phase (emulated in DCA course unit) allows the students to understand the different requirements and planning approaches that they are required to adopt in each of those circumstances and perceive the difference between a more commercial nature (required in the project proposal phase) and a more technically oriented approach (essential in the implementation phase of the project) (Brazier, Garcia, & Vaca, 2007). 3. Large Teams . The high dimension teams allow the recreation of the complexity of an industrial context in terms of the multiplicity of tasks to be performed (Blake, 2005) and the enormous need for interaction between the different roles, promoting the development of skills of an inter-personal nature (Slaten, Droujkova, Berenson, Williams, & Layman, 2005). The development of the soft skills is one of the great gains acquired by students as a result of their involvement in the project. 4. Rigor in software process development . The adoption of a configurable software process development permits the instillation of awareness and rigor in how students decide the management and implementation of the project (Suri & Sebern, 2004). During several academic years, this procedural rigor resulted from the RUP framework adoption with the reduced model of roles (Borges, Monteiro, & Machado, 2011), the obligation to follow the CMMI model practices and to adopt the PMBOK ( Project Management Body of Knowledge ) (PMI, 2021) and SWEBOK (Abran et al., 2004) bodies of knowledge. With these standards, the relationship between the project management and the software process development adopted becomes explicit, allowing
136 sensitization of the students to the dire need to own specific methodological skills in the area in order to be able to manage projects in the field of technology and information systems. Additionally, it allows the creation of a true perception of the relationship between the structures of the solution implementation and the requirements that gave rise to it (Burgstaller & Egyed, 2010), as well as between product quality and the rigor of process practices adopted by the team. 5. Complexity of the solution . The project can create conditions in the educational context where students are engaged in designing and building medium-size software solutions based on requirements from the "real world". This makes for the experience of conceiving an architecture which is methodologically plausible (Naveda, 1999), while developing the students' sensitivity to the effectively effort needed to conceptualize artifacts with similar complexity to those developed in industrial contexts (Wohlin, 1997). 6. Others . In every academic year a mechanism or new feature in project work is introduced in the second semester that cumulatively add some novelty to the operational mode of the previous year. Over the years, the following features or mechanisms were introduced (not in chronological order): alignment with SWEBOK, alignment with PMBOK, RUP model, internal evaluation and promotion of human resources, CMMI level 2 practices, CMMI level 3 practices, real client, final presentation with a commercial focus, formalization of the product delivery, outsourcing, technological interoperability between partial solutions, consulting of outside services, use of patterns, formal documentation with RUP templates. Recently, in the last academic years, the following mechanisms or features were adopted, namely: agile practices, reinforcement and hiring human resources, competition between enterprises and corporate bankruptcy. Over the years it has only been possible to cumulatively manage all these features and mechanisms because the teaching staff is stable, cohesive, and aligned in the way it organizes and engages with students who annually attend the four courses (about a hundred students in SPM and DCA and from about three-and four dozen students in ADIS and PMIS). The curriculum integration and the pedagogical cooperation among the four courses units have also been decisive in making possible the management of all these educational processes that converge in the laboratory classes in the DCA course unit, since it consists of the place of convergence by the students from both levels of education that functionally associate in the project (see Figure 4.8): (1) the ADIS students provide external services (regarding to the functional consultant or senior analyst role) to the SPM students and PMIS students provide external services (regarding to the project
137 facilitator, senior project manager or process engineer role) to the DCA students; (2) the SPM students emulate phenomena studied by ADIS students and DCA students emulate phenomena studied by PMIS students. Often ADIS and PMIS students choose for their dissertations some of the themes that they dealt when they worked with SPM and DCA students. Figure 4.8: Integration among courses In the last academic years, some of the PhD students in the SEMAG (Software-based Information Systems Engineering and Management Group) (SEMAG, 2001) research group also began to engage with the students of the four courses units, in order to carry out scientific studies supported in educational context experiments and this work has given rise to international publications (some involving ADIS and PMIS students) (Alves, Machado, & Ribeiro, 2012; Alves, Oliveira, Ribeiro, & Machado, 2014; Alves, Ribeiro, & Machado, 2014, 2016, 2018; Alves et al., 2020; Alves, Sousa, Ribeiro, & Machado, 2013; Alves, Souza, Ribeiro, & Machado, 2021; Monteiro, Borges, Machado, & Ribeiro, 2012; Monteiro et al., 2013). Thus, this group of four courses units is simultaneously a space of pedagogical and scientific innovation from which all stakeholders benefit (Siqueira, Barbaran, & Becerra, 2008). It is our perception that almost all stakeholders in this huge process (students, teaching staff and researchers) feel “pleasure” with the involvement in the project (Glass, 2007a; Glass, 2007b), despite the great dedication and tremendous effort that is demanded from all involved. Although not addressed in this thesis, the pass rate of these curricular units is extremely high, in large part due to our experimental environment (PBL approach).