Please use this identifier to cite or link to this item:
https://www.um.edu.mt/library/oar/handle/123456789/92994
Full metadata record
DC Field | Value | Language |
---|---|---|
dc.date.accessioned | 2022-04-05T08:01:57Z | - |
dc.date.available | 2022-04-05T08:01:57Z | - |
dc.date.issued | 2008 | - |
dc.identifier.citation | Mifsud, C. M. (2008). Code profiling for typical scenario testing (Bachelor’s dissertation). | en_GB |
dc.identifier.uri | https://www.um.edu.mt/library/oar/handle/123456789/92994 | - |
dc.description | B.SC.(HONS)COMP.SCI. | en_GB |
dc.description.abstract | The process of testing all possible inputs and preconditions is becoming more unfeasible for systems as they are increasing in complexity. In this dissertation we propose a framework which amalgamates testing and machine learning to test libraries by using typical usage execution paths. A typical usage execution path of a library can be expressed as a sequence or a regular grammar. We use Aspect Oriented Programming (AOP) to log the method calls from a library at run time. Clustering techniques such as Complete Link and Single Link are used to extract all the important features from a large set of execution logs A subset of all the logs is used as the input to the two state merging algorithms, Evidence Driven State Merging (EDSM), proposed by Rodney Price and Alergia by Rafael C.Carraco and Jose Oncina. These two algorithms output deterministic finite state automata (DF A) and deterministic stochastic finite state automata (DSF A) which describe the typical usage of the library in different notations. The automata also cover other typical usages which are not part of the sample of the input execution traces. The general automaton induced is tested in a test bench which asserts the effectiveness of the pattern by using black box tests and random testing. This dissertation uses SMTP and SSH to test two open source libraries, DotNetOpenMail and SharpSSH The results obtained show that machine learning and testing can be used hand in hand to provide a testing environment to a library; A library is profiled using execution traces obtained by its users to test the typical ordering of method call routines. The final pattern induced reflects the typical execution traces and other atypical execution traces. Thus other execution traces are covered while testing for a specific usage of the library, providing an attractive alternative to brute force testing. More over the automata obtained can guide future users to develop correct routines from the APL. | en_GB |
dc.language.iso | en | en_GB |
dc.rights | info:eu-repo/semantics/restrictedAccess | en_GB |
dc.subject | Lattice theory | en_GB |
dc.subject | Aspect-oriented programming | en_GB |
dc.subject | Algorithms | en_GB |
dc.subject | Artificial intelligence | en_GB |
dc.title | Code profiling for typical scenario testing | en_GB |
dc.type | bachelorThesis | en_GB |
dc.rights.holder | The copyright of this work belongs to the author(s)/publisher. The rights of this work are as defined by the appropriate Copyright Legislation or as modified by any successive legislation. Users may access this work and can make use of the information contained in accordance with the Copyright Legislation provided that the author must be properly acknowledged. Further distribution or reproduction in any format is prohibited without the prior permission of the copyright holder. | en_GB |
dc.publisher.institution | University of Malta | en_GB |
dc.publisher.department | Faculty of Information and Communication Technology. Department of Computer Science | en_GB |
dc.description.reviewed | N/A | en_GB |
dc.contributor.creator | Mifsud, Clinton Mario (2008) | - |
Appears in Collections: | Dissertations - FacICT - 1999-2009 Dissertations - FacICTCS - 2008 |
Files in This Item:
File | Description | Size | Format | |
---|---|---|---|---|
BSC(HONS)PHYSICS_COMPSCI_Mifsud_Clinton_Mario_2008.PDF Restricted Access | 6.48 MB | Adobe PDF | View/Open Request a copy |
Items in OAR@UM are protected by copyright, with all rights reserved, unless otherwise indicated.