Master of science thesis aparna vijaya



Download 310.9 Kb.
Page9/9
Date28.01.2017
Size310.9 Kb.
#9774
1   2   3   4   5   6   7   8   9

9. Evaluation Method

This section aims to describe the work process as well as motivate how conclusions and results have been drawn during the evaluation project. In this chapter the workflow of the thesis is described in detail.


9.1 The Work Process

The work process during this master’s thesis builds on six phases: initiation, theory, data acquisition, analysis, implementation and closure. These represent the five different stages that a master’s thesis has to go through to complete a good work. A graphical description of the working process is given in figure 15 below.

Initiation

Defining Goals



Data acquisition

Analysis

Prototype Implementation

Closure


Figure 15: Work process

9.1.1 Initiation (phase 1)


During the initiation phase the project was roughly planned, time and resource plans were created with preliminary dates on when the different milestones in the project were to be finished and how time would be spent during the master’s thesis project. The initiation phase also a time for a light study on the concepts of the master’s thesis, understood what the goals of the project are and how they could be fulfilled.

9.1.2 Defining goals (phase 2)


The general method was to read documentation about each general concept. These were based on a discussion with the supervisor of this project on what aspects to look at. Based on the study a theoretical framework was created in this project. The purpose of the theory phase was to break down the concepts into hands-on usable questions. The goal here has not been to make all the answers measurable, in fact in many cases it is more interesting to get subjective answers and opinions from the experts.

9.1.3 Data acquisition (phase 3)


During the data acquisition phase, information was gathered about how testing is performed today at Ericsson and what effects could be expected in using MBT. In this phase a sample project was tried out in some of the possible open source and academic MBT tools. Also the various approaches that are available for test case generation was studied as well their pros and cons.

9.1.4 Analysis (phase 4)


The analysis phase of this master’s thesis consisted of drawing reasonable conclusions out of the results from the data acquisition phase. After a hands on experience with some of the existing MBT tools, two tables were created to compare the tools. First table is created with some of the attributes which was general and Table 2 with the quality attributes specified using ISO/IEC 9126 standard.

9.1.5 Prototype Implementation (phase 5)


A prototype implementation for the test case generation is proposed. Two different possible approaches are implemented. Analyses of these two approaches are noted.

9.1.6 Closure (phase 6)


After the analysis was done and conclusions had been drawn the project was finished and the closure phase began. In this phase the project was presented both on MDH and for Ericsson. A report summarizing the details of the thesis right from the start up is created.

10. Validity and Reliability

MBT as a method is very young on the market of software testing; therefore it is very hard to find documentation evaluating the various commercial and academic tools. This fact has of course affected the reliability and validity of this. A few suggestions needed to make an improvement on the future of MBT, especially at Ericsson are discussed with respect to the manual test approach they are following. I have mainly been working with three different examples (simple lamp example, communication protocol, real example from Ericsson) for creating models and tests in the case of each tool used. This was to ensure the efficiency and reliability of the models and tests created.





11. Analysis


Model-based testing has become an emerging trend in industry because of [54]:
(i) The need for quality assurance for increasingly complex systems

(ii) The emerging model-centric development paradigm

(iii) Increasingly powerful formal verification technology
Model-based testing relies on execution traces of behavior models, both of a system under test and its environment, at different levels of abstraction. These traces are used as test cases for an implementation: input and expected output [54].
One advantage of using models for test case description is that application specific parts are modeled with UML-diagrams and other technical parts like connection to frameworks, error handling, or communication are handled by the parameterized code generator. This allows developing models that are independent of any technology and platform. Only during the generation process platform dependent elements are added. When the technology changes, we only need to update the generator, but the application defining models as well as test models can directly be reused. Another advantage is that the production code and automatically executable tests at any level are modeled by the same UML diagrams. Therefore, developers use a single homogeneous language to describe implementation and tests [54].







12. Related Work

The work related to this paper is vast and for brevity, so I highlight here some of the most relevant one’s. The automatic generation of test cases and oracles is done in various tools in different methods. In particular, I have analyzed some of the existing tools (open source academic and research tools) and worked some examples on them.


The aim of this paper is to address the issues of creating automatic tests using models built using bridgepoint. Bridgepoint as such does not support this facility. Several different approaches have been analyzed for this. Finally two different methods have been proposed for this.
Model based generated test cases can be used to ensure that the translation (code generation) from the model to the code is proper. Manual testing techniques using these models might not be efficient as they may not cover all the possible transitions and it may be time consuming as well. Therefore many approaches have been proposed for automatic generation of test cases, some of which are mentioned in chapter 6 of this paper. The most closely related approaches to my thesis are the ones mainly using test generation using class diagrams (reference [51]) ,Model-Based Test Driven Development of the Tefkat Model-Transformation Engine (reference [50]) and Test selection criteria using FSM (reference [52]). The Ctest scheme for test case generation prototype is implemented in UML behavioral Test case generator tool (UTG) (reference [55]).


13. Results and Conclusions

Two different frameworks/methods were proposed for model based test case generation based on UML representations. These UML models are built in the bridgepoint modeling tool. The UML diagrams that are being considered here is class diagrams and sequence diagrams. Various transformation rules are applied on these models to produce the state diagrams from the XMI snippets. Further TTCN 3 is used to generate the test cases and oracles from them based on different test and coverage techniques.


These frameworks support a systematic testing process, which makes it easier to choose test cases, trace test executions, and analyze test results. Analyses reveal that this is a better way to trace the various deficiencies in the models since there are possibilities that it covers every aspect of the system (both static and dynamic, if class diagrams could include pre and post conditions). Moreover this underlying framework for translation and test generation is very flexible and easily extendable such that it can be customized for further enhancements.

13.1 Recommendations and Future Work

In the future, the framework can be modified to make it more robust and to enhance the criteria’s for creating the test oracle. More efficient test cases could be generated using the technique described in section 8.1, if the class diagrams which are the input models could facilitate a method for including the pre and post conditions of the particular state. More case studies based on various real-life applications have to be performed to evaluate the proposals. Also how work needed in automatic test case generation could be done as a background process while the user is creating models could also be a research area. In this way the user could receive about impossible paths and transitions in the model.












14. References


[1]Curt Schwaderer , “Pioneering Model Driven Development”, http://www.compactpci-systems.com/dl.php?pdf=/columns/software_corner/pdfs/2006,10.pdf Last Accessed 27.05.2009

[2]Reiko Heckel, Marc Lohmann , “Towards Model-Driven Testing” , Electronic Notes in Theoretical Computer Science 82 No. 6 (2003), URL: http://elsevier.nl/locate/entcs/volume82.html Last Accessed 27.05.2009

[3]Franck Fleurey, Jim Steel, Benoit Baudry, “Validation In Model-Driven Engineering: Testing Model Transformations” Model, Design and Validation, 2004. Proceedings.

[4]Jan Peleska, M. Oliver Moller, “Model-Based Testing For Model-Driven Development With UML 2.0 – Extended Abstract”, http://www.informatik.uni-bremen.de/agbs/jp/papers/moeller-loeding-peleska-sqc-2008.pdf Last Accessed 27.05.2009

[5]Marc Born, Ina Schieferdecker, Hans-Gerhard Gross, Pedro Santos, “Model-Driven Development And Testing – A Case Study”, http://modeldrivenarchitecture.esi.es/pdf/paper4-3.pdf Last Accessed 27.05.2009

[6]Pierre-Henri , “Top-Down Model-Driven Testing Reduces Risk ”, http://www.Cotsjournalonline.Com/Home/Article.Php?Id=100171 Last Accessed 27.05.2009

[7]Joseph Hofstader , “Model-Driven Development”http://Msdn.Microsoft.Com/En-Us/Library/Aa964145.Aspx

[8]Michael Azoff, "The Benefits Of Model Driven Development" - White Paper, http://www.Ca.Com/Files/Industryanalystreports/The_Benefits_Of_Model_Driven_Development.Pdf Last Accessed 27.05.2009

[9]http://portal.acm.org/toc.cfm?Id=1165093&Coll=GUIDE&Dl=GUIDE&Type=Issue&CFID=15478 233&CFTOKEN=30689758 Last Accessed On 25/11/2008

[10]Douglas C. Schmidt , “Model-Driven Engineering”, Published by IEEE Computer society, February 2006

[11]IBM Webcast, “A Model Driven Approach To Software Development Of Systems” Last Accessed On 16.12.2008

[12]http://Planet-Mde.Org/ , Last Accessed 27.05.2009

[13]Tony Clark, Andy Evans, Paul Sammut, James Willans, “Applied Metamodelling - A Foundation For Language Driven Development”, http://lambda-the-ultimate.org/node/2711 Last Accessed 27.05.2009

[14]Stephen J. Mellor, Anthony N. Clark, Takao Futagami , “Model-Driven Development”

[15] Jean Bézivin , “On The Unification Power Of Models”, http://www.sciences.univ-nantes.fr/lina/atl/www/papers/OnTheUnificationPowerOfModels.pdf Last Accessed 27.05.2009

[16]Tommy Lennhamn, “Model Driven Development: Are MDD Models Assets Or Liabilities?”, http://www.ibm.com/developerworks/rational/library/jul07/lennhamn, Last Accessed 27.05.2009

[17]International Workshop On Models And Model-Driven Methods For Enterprise Computing (3M4EC), http://www.Inf.Ufes.Br/~Jpalmeida/3m4ec2008

[18]Antonio Cicchetti, Davide Di Ruscio, Romina Eramo, Alfonso Pierantonio, “Automating Co-Evolution In Model-Driven Engineering”, 12th international IEEE Entreprise Distributed Object Computing Conference

[19]Markus Scheidgen, “Model Patterns For Model Transformations In Model Driven Development”

[20]Margarida Afonso, Regis Vogel, Jose Teixeira, “From Code Centric To Model Centric Software Engineering: Practical Case Study Of MDD Infusion In A Systems Integration Company”

[21]Cecilia Hasluns, “Model Driven Deve1opment:Integrating Tools With Practices”, Last Accessed 27.05.2009

[22]Colin Atkinson, Thomas Kühne, “Model-Driven Development: A Metamodeling Foundation”, http://Homepages.Mcs.Vuw.Ac.Nz/~Tk/Publications/Papers/Mda-Foundation.Pdf Last Accessed 27.05.2009

[23]Bran Selic, “The Theory And Practice Of Modeling Language For Model Based Software Engineering”, http://www.aadl.info/aadl/documents/UML_AADL_Comparison.pdf Last Accessed 27.05.2009

[24]http://www.Mdh.Se/Ide/Eng/Msc/Index.Php?Choice=Show&Id=0883 Last Accessed On 26/12/2008

[25]Composition With Guarantees For High-Integrity Embedded Software Components Assembly (CHESS) Document.

[26]Guest Talk Presentation Given At The UML-2003 Conference In San Francisco And Entitled: "MDA™: From Hype To Hope, And Reality" , http://www.sciences.univnantes.fr/info/perso/permanents/bezivin/UML.2003/UML.SF.JB.GT.ppt Last Accessed 27.05.2009

[27]Jean Bézivin, “On The Unification Power Of Models”, http://www.sciences.univ-nantes.fr/lina/atl/www/papers/ontheunificationpowerofmodels.pdf Last Accessed 27.05.2009

[28]S. R. Dalal, A. Jain, N. Karunanithi, J. M. Leaton, C. M. Lott, G. C. Patton B. M. Horowitz, “ Model-Based Testing In Practice”, http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=841019 Last Accessed 27.05.2009

[29] Mark Blackburn, Robert Busser, Aaron Nauman , “Why Model-Based Test Automation Is Different And What You Should Know To Get Started ”, http://www.psqtconference.com/2004east/tracks/Tuesday/PSTT_2004_blackburn.pdf Last Accessed 27.05.2009

[30]Pierre-Henri STANEK, “Top-Down Model-Driven Testing Reduces Risk”, IBM Rational Software, http://www.cotsjournalonline.com/home/article.php?id=100171 Last Accessed 27.05.2009

[31]“Model-Driven Testing”, http://www.haifa.ibm.com/projectsvVerification/mdt/index.html Last Accessed On 27.05.2009

[32]“Model Driven Testing Tutorial At TTCN-3 User Conference”, http://www.conformiq.com/Blog/2007/05/29/Model-Driven-Testing-Tutorial-At-Ttcn-3-User-Conference Last Accessed On 15.01.2009

[33]“Model-Based Testing”, http://www.goldpractices.com/practices/mbt/index.php Last Accessed On 27.05.2009

[34]Henry Muccini, “Model-Based Testing Principles”

[35]“Model Based Testing An Introduction”, http://blogs.msdn.com/Nihitk/Pages/144664.Aspx Last Accessed On 27.05.2009

[36]A. Hartman And K. Nagin, “The AGEDIS Tools For Model Based Testing”, IBM Haifa Research Laboratory, http://www.agedis.de/documents/p144-hartman.pdf Last Accessed 27.05.2009

[37]Alexander Pretschner1 And Jan Philipps, “Methodological Issues In Model-Based Testing”

[38]The AGEDIS Project, “http://www.agedis.de”, Last Accessed On 27.05.2009

[39]Scott.W.Ambler, Agile Model Driven Development (AMDD): The Key To Scaling Agile Software Development, http://www.agilemodeling.com/essays/amdd.htm Last Accessed On 27.05.2009

[40]“Practical Model Based Testing- A Tools Approach”, Mark Utting, Bruno Legeard.

[41]An Evaluation On Model Based Testing At Ericsson, Master Thesis By Jenny Florin

[42]Staffan Andersson, Toni Siljamäki, “Performance Benchmarking Of Real Time Critical Function Using Bridgepoint Xtuml”

[43]Evaluation Of Model-Based Testing On A Base Station Controller, Master Thesis By Stefan Trimmel

[44]David M. Cohen, Siddhartha R. Dalal, Jesse Parelius, and Gardner C. Patton,” “The Combinatorial Design Approach to Automatic Test Generation”, IEEE Software September 1996, pp. 83-87

[45]Clementine Nebut, Franck Fleurey, Yves Le Traon, and Jean-Marc Jezequel, “Automatic Test Generation: A Use Case Driven Approach”, IEEE Transcations on software Enginerring, March 2006

[46]http://www.mail-archive.com/topcased-mm-users@lists.gforge.enseeiht.fr/msg00871.html last acessed on 27.05.2009

[47]http://www.roseindia.net/eclipse/plugins/testing Last Accessed on 27.05.2009

[48]http://www.mentor.com/products/sm/model_development/bridgepoint/upload/datasheet.pdf Last Accessed on 27.05.2009

[49]Bill Venners,“Design by contract”, http://www.artima.com/intv/contracts.html Last Accessed on 27.05.2009

[50]Jim Steel And Michael Lawley, “Model-based test driven development of the tefkat model-transformation engine”

[51]T.H. Tse Zhinong Xu, “Test Case Generation for Class-Level Object-Oriented Testing,

[52]Amit Paradkar, “Plannable Test Selection Criteria for FSMs Extracted From Operational Specifications

[53]C. Grandpierre, B. Legeard, F. Peureux , F. Bouquet , “A Test Generation Solution to Automate Software Testing”

[54]Bernhard Rumpe, “Model-based Testing of Object-Oriented Systems ”

[55]Philip Samuel, Rajib Mall, Pratyush Kanth, “Automatic test case generation from UML communication diagrams”

[56]Alexandre David, Paul Pettersson, “ Uppaal Tutorial- Modeling Patterns”, RTSS’05













Download 310.9 Kb.

Share with your friends:
1   2   3   4   5   6   7   8   9




The database is protected by copyright ©ininet.org 2024
send message

    Main page