T153 : DevOps and Continuous Delivery through automated regression testing

Supervision:
Contact person: Dimitri Van Landuyt
Supervisor(s): Wouter Joosen
Daily advisor(s): Dimitri Van Landuyt
Research group:
Distributed Software & Software Security
Context:

Recent evolutions related to DevOps and Continuous Development, Continuous Integration and Continuous Delivery stress the importance of short feedback cycles between software development and service operation. Example techniques are AB testing in which a new version of a certain component is deployed alongside the running production version and the outputs of both versions are compared to detect discrepancies.

Regression testing is a sub-domain of software testing focused on identifying software regressions over time; i.e. changes to certain properties of the software (e.g. behavior of classes or methods, performance indicators, etc.) that occur throughout the development process. This pertains comparing these properties to earlier-observed values and notifying the developer/operator when significant changes might have occurred. Although there are obvious limitations in the types of regressions that can be detected automatically, automated regression testing has large potential. Especially beyond the active development phases (e.g. during extension, evolution, or maintenance), monitoring the effects of late adaptations w.r.t. previously-established software qualities is a challenging task.

Capture-and-replay (C&R) testing is a technique for regression testing which is conducted in two phases: (I) the capture phase, in which the software property of interest is measured, and (ii) the replay phase, in which the earlier-captured scenario is replayed in the context of the changed software and potential changes w.r.t. the software property of interest are identified.

To draw valid conclusions at the basis of individual units of software (e.g. a method), it is important to ensure that these observed differences can only be attributed to changes internal to that unit of software, and not to external factors (e.g. object state, dependencies, the context or environment it operates in, etc.). In software, this is a difficult condition to attain: methods or classes are almost never entirely isolated entities: they depend on internal object state, on other classes or libraries, the underlying platform, the specific deployment environment, all of which might be subject to evolution, change and/or non-determinism in between the moment of capture and the moment of replay. Mocking is a common technique to simulate or mimick the original, captured environment at replay time and therefore to eliminate potential discrepancies caused by these external factors. Mocking is an essential ingredient to make tests independent of state and external dependencies and as such is a key enabler for embedding C&R tools in realistic development scenarios, and to be able to use and re-use captured tests for longer periods of time.

Aim:

You start from the exsting implementation of the core engine for a automated brute-force regression testing framework that implements mock-driven capture-and-replay testing. You will extend and improve this initial prototype, run the prototype against known benchmarks such as Defects4J, and experiment with its application an integration in the context of realistic cloud applications and cloud dashboard.

Possible research questions:
  • Can we validate the approach on existing benchmarks such as Defects4J?
  • What is the run-time performance impact/overhead introduced and how can we minimze it?
  • What is the impact of such techniques in the context of multi-tenancy, and more specifically, how do we avoid breaking desired properties such as Tenant Isolation?
Approach:

You start from the exsting implementation of the core engine for a automated brute-force regression testing framework that implements mock-driven capture-and-replay testing. You will extend and improve this initial prototype, run the prototype against known benchmarks such as Defects4J, and experiment with its application an integration in the context of realistic cloud applications and cloud dashboard.

Relevant literature:
  • Schaefer, Andreas, Marc Reichenbach, and Dietmar Fey. "Continuous integration and automation for DevOps." IAENG Transactions on Engineering Technologies. Springer Netherlands, 2013. 345-358.
  • Fitzgerald, Brian, and Klaas-Jan Stol. "Continuous software engineering and beyond: trends and challenges." Proceedings of the 1st International Workshop on Rapid Continuous Software Engineering. ACM, 2014.
  • Just, René, Darioush Jalali, and Michael D. Ernst. "Defects4J: A database of existing faults to enable controlled testing studies for Java programs." Proceedings of the 2014 International Symposium on Software Testing and Analysis. ACM, 2014.
  • Durieux, Thomas, et al. "Automatic repair of real bugs: An experience report on the Defects4J dataset." arXiv preprint arXiv:1505.07002 (2015).
  • Joshi, Shrinivas, and Alessandro Orso. "Scarpe: A technique and tool for selective capture and replay of program executions." Software Maintenance, 2007. ICSM 2007. IEEE International Conference on. IEEE, 2007.
  • Tillmann, Nikolai, Jonathan De Halleux, and Tao Xie. "Transferring an automated test generation tool to practice: From Pex to Fakes and Code Digger." Proceedings of the 29th ACM/IEEE international conference on Automated software engineering. ACM, 2014.
Student profile:

• Creative and analytic

• Interest in research

• Successful completion of the master courses on Distributed Systems and Software Architecture

This topic is for 1 student(s).

This topic can be selected by

  • all Master in de Ingenieurswetenschappen: Computerwetenschappen (ir) students
  • all Master of Engineering: Computer Science students
  • all Master Toegepaste Informatica (toeinf) students

Clusters, in which this topic appears:
  • Software engineering
  • Distributed Software
18-07-2008