Skip to main content

2015 | OriginalPaper | Buchkapitel

A Study of the Relationship Between Class Testability and Runtime Properties

verfasst von : Amjed Tahir, Stephen MacDonell, Jim Buchan

Erschienen in: Evaluation of Novel Approaches to Software Engineering

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Software testing is known to be expensive, time consuming and challenging. Although previous research has investigated relationships between several software properties and software testability the focus has been on static software properties. In this work we present the results of an empirical investigation into the possible relationship between runtime properties (dynamic coupling and key classes) and class testability. We measure both properties using dynamic metrics and argue that data gathered using dynamic metrics are both broader and more precise than data gathered using static metrics. Based on statistical analysis, we find that dynamic coupling and key classes are significantly correlated with class testability. We therefore suggest that these properties could be used as useful indicators of class testability.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Bertolino, A., Strigini, L.: On the use of testability measures for dependability assessment. IEEE Trans. Softw. Eng. 22(2), 97–108 (1996)CrossRef Bertolino, A., Strigini, L.: On the use of testability measures for dependability assessment. IEEE Trans. Softw. Eng. 22(2), 97–108 (1996)CrossRef
2.
Zurück zum Zitat Myers, G.J., Sandler, C., Badgett, T.: The Art of Software Testing, p. 240. Wiley Publishing, New York (2011) Myers, G.J., Sandler, C., Badgett, T.: The Art of Software Testing, p. 240. Wiley Publishing, New York (2011)
3.
Zurück zum Zitat Sommerville, I., et al.: Large-scale complex IT systems. Commun. ACM 55(7), 71–77 (2012)CrossRef Sommerville, I., et al.: Large-scale complex IT systems. Commun. ACM 55(7), 71–77 (2012)CrossRef
4.
Zurück zum Zitat Mouchawrab, S., Briand, L.C., Labiche, Y.: A measurement framework for object-oriented software testability. Inf. Softw. Technol. 47(15), 979–997 (2005)CrossRef Mouchawrab, S., Briand, L.C., Labiche, Y.: A measurement framework for object-oriented software testability. Inf. Softw. Technol. 47(15), 979–997 (2005)CrossRef
5.
Zurück zum Zitat ISO, Software engineering - Product quality-Part 1. In: Quality model 2001, International Organization for Standardization Geneva ISO, Software engineering - Product quality-Part 1. In: Quality model 2001, International Organization for Standardization Geneva
6.
Zurück zum Zitat Binder, R.V.: Design for testability in object-oriented systems. Commun. ACM 37(9), 87–101 (1994)CrossRef Binder, R.V.: Design for testability in object-oriented systems. Commun. ACM 37(9), 87–101 (1994)CrossRef
7.
Zurück zum Zitat Traon, Y.L., Robach, C.: From hardware to software testability. In: International Test Conference on Driving Down the Cost of Test, pp. 710–719. IEEE Computer Society (1995) Traon, Y.L., Robach, C.: From hardware to software testability. In: International Test Conference on Driving Down the Cost of Test, pp. 710–719. IEEE Computer Society (1995)
8.
Zurück zum Zitat Gao, J.Z., Jacob, H.-S., Wu, Y.: Testing and Quality Assurance for Component-Based Software. Artech House Publishers, Norwood (2003)MATH Gao, J.Z., Jacob, H.-S., Wu, Y.: Testing and Quality Assurance for Component-Based Software. Artech House Publishers, Norwood (2003)MATH
9.
Zurück zum Zitat Bruntink, M., van Deursen, A.: An empirical study into class testability. J. Syst. Softw. 79(9), 1219–1232 (2006)CrossRef Bruntink, M., van Deursen, A.: An empirical study into class testability. J. Syst. Softw. 79(9), 1219–1232 (2006)CrossRef
10.
Zurück zum Zitat Badri, L., Badri, M., Toure, F.: An empirical analysis of lack of cohesion metrics for predicting testability of classes. Int. J. Softw. Eng. Appl. 5(2), 69–86 (2011) Badri, L., Badri, M., Toure, F.: An empirical analysis of lack of cohesion metrics for predicting testability of classes. Int. J. Softw. Eng. Appl. 5(2), 69–86 (2011)
11.
Zurück zum Zitat Chidamber, S.R., Kemerer, C.F.: A metrics suite for object oriented design. IEEE Trans. Softw. Eng. 20(6), 476–493 (1994)CrossRef Chidamber, S.R., Kemerer, C.F.: A metrics suite for object oriented design. IEEE Trans. Softw. Eng. 20(6), 476–493 (1994)CrossRef
12.
Zurück zum Zitat Basili, V.R., Briand, L.C., Melo, W.L.: A validation of object-oriented design metrics as quality indicators. IEEE Trans. Softw. Eng. 22(10), 751–761 (1996)CrossRef Basili, V.R., Briand, L.C., Melo, W.L.: A validation of object-oriented design metrics as quality indicators. IEEE Trans. Softw. Eng. 22(10), 751–761 (1996)CrossRef
13.
Zurück zum Zitat Cai, Y.: Assessing the effectiveness of software modularization techniques through the dynamics of software evolution. In: 3rd Workshop on Assessment of COntemporary Modularization Techniques, Orlando (2008) Cai, Y.: Assessing the effectiveness of software modularization techniques through the dynamics of software evolution. In: 3rd Workshop on Assessment of COntemporary Modularization Techniques, Orlando (2008)
14.
Zurück zum Zitat Scotto, M., et al.: A non-invasive approach to product metrics collection. J. Syst. Architect. 52(11), 668–675 (2006)CrossRef Scotto, M., et al.: A non-invasive approach to product metrics collection. J. Syst. Architect. 52(11), 668–675 (2006)CrossRef
15.
Zurück zum Zitat Dufour, B., et al.: Dynamic metrics for java. In: 18th Annual ACM SIGPLAN Conference on Object-Oriented Programing, Systems, Languages, and Applications, pp. 149–168. ACM, Anaheim (2003) Dufour, B., et al.: Dynamic metrics for java. In: 18th Annual ACM SIGPLAN Conference on Object-Oriented Programing, Systems, Languages, and Applications, pp. 149–168. ACM, Anaheim (2003)
16.
Zurück zum Zitat Tahir, A., MacDonell, S.G.: A systematic mapping study on dynamic metrics and software quality. In: International Conference on Software Maintenance. IEEE Computer Society (2012) Tahir, A., MacDonell, S.G.: A systematic mapping study on dynamic metrics and software quality. In: International Conference on Software Maintenance. IEEE Computer Society (2012)
17.
Zurück zum Zitat Tahir, A., MacDonell, S.G., Buchan, J.: Understanding class-level testability through dynamic analysis. In: 9th International Conference on Evaluation of Novel Approaches to Software Engineering (ENASE), pp. 38–47, Lisbon (2014) Tahir, A., MacDonell, S.G., Buchan, J.: Understanding class-level testability through dynamic analysis. In: 9th International Conference on Evaluation of Novel Approaches to Software Engineering (ENASE), pp. 38–47, Lisbon (2014)
18.
Zurück zum Zitat Zhou, Y., et al.: An in-depth investigation into the relationships between structural metrics and unit testability in object-oriented systems. Sci. China Inf. Sci. 55(12), 2800–2815 (2012)CrossRef Zhou, Y., et al.: An in-depth investigation into the relationships between structural metrics and unit testability in object-oriented systems. Sci. China Inf. Sci. 55(12), 2800–2815 (2012)CrossRef
19.
Zurück zum Zitat Arisholm, E., Briand, L.C., Foyen, A.: Dynamic coupling measurement for object-oriented software. IEEE Trans. Softw. Eng. 30(8), 491–506 (2004)CrossRef Arisholm, E., Briand, L.C., Foyen, A.: Dynamic coupling measurement for object-oriented software. IEEE Trans. Softw. Eng. 30(8), 491–506 (2004)CrossRef
20.
Zurück zum Zitat Offutt, J., Abdurazik, A., Schach, S.: Quantitatively measuring object-oriented couplings. Softw. Qual. J. 16(4), 489–512 (2008)CrossRef Offutt, J., Abdurazik, A., Schach, S.: Quantitatively measuring object-oriented couplings. Softw. Qual. J. 16(4), 489–512 (2008)CrossRef
21.
Zurück zum Zitat Al Dallal, J.: Object-oriented class maintainability prediction using internal quality attributes. Inf. Softw. Technol. 55(11), 2028–2048 (2013)CrossRef Al Dallal, J.: Object-oriented class maintainability prediction using internal quality attributes. Inf. Softw. Technol. 55(11), 2028–2048 (2013)CrossRef
22.
Zurück zum Zitat Chaumun, M.A., et al.: Design properties and object-oriented software changeability. In: European Conference on Software Maintenance and Reengineering, p. 45. IEEE Computer Society (2000) Chaumun, M.A., et al.: Design properties and object-oriented software changeability. In: European Conference on Software Maintenance and Reengineering, p. 45. IEEE Computer Society (2000)
23.
Zurück zum Zitat Tahir, A., Ahmad, R., Kasirun, Z.M.: Maintainability dynamic metrics data collection based on aspect-oriented technology. Malays. J. Comput. Sci. 23(3), 177–194 (2010) Tahir, A., Ahmad, R., Kasirun, Z.M.: Maintainability dynamic metrics data collection based on aspect-oriented technology. Malays. J. Comput. Sci. 23(3), 177–194 (2010)
24.
Zurück zum Zitat Zaidman, A., Demeyer, S.: Automatic identification of key classes in a software system using webmining techniques. J. Softw. Maintenance Evol. 20(6), 387–417 (2008)CrossRef Zaidman, A., Demeyer, S.: Automatic identification of key classes in a software system using webmining techniques. J. Softw. Maintenance Evol. 20(6), 387–417 (2008)CrossRef
25.
Zurück zum Zitat Basili, V.R., Weiss, D.M.: A methodology for collecting valid software engineering data. IEEE Trans. Softw. Eng. 10(6), 728–738 (1984)CrossRef Basili, V.R., Weiss, D.M.: A methodology for collecting valid software engineering data. IEEE Trans. Softw. Eng. 10(6), 728–738 (1984)CrossRef
26.
Zurück zum Zitat Briand, L.C., Morasca, S., Basili, V.R.: An operational process for goal-driven definition of measures. IEEE Trans. Softw. Eng. 28(12), 1106–1125 (2002)CrossRef Briand, L.C., Morasca, S., Basili, V.R.: An operational process for goal-driven definition of measures. IEEE Trans. Softw. Eng. 28(12), 1106–1125 (2002)CrossRef
27.
Zurück zum Zitat Cazzola, W., Marchetto, A.: AOP-HiddenMetrics: separation, extensibility and adaptability in SW measurement. J. Object Technol. 7(2), 53–68 (2008)CrossRef Cazzola, W., Marchetto, A.: AOP-HiddenMetrics: separation, extensibility and adaptability in SW measurement. J. Object Technol. 7(2), 53–68 (2008)CrossRef
28.
Zurück zum Zitat Adams, B., et al.: Using aspect orientation in legacy environments for reverse engineering using dynamic analysis–an industrial experience report. J. Syst. Softw. 82(4), 668–684 (2009)CrossRef Adams, B., et al.: Using aspect orientation in legacy environments for reverse engineering using dynamic analysis–an industrial experience report. J. Syst. Softw. 82(4), 668–684 (2009)CrossRef
29.
Zurück zum Zitat Rompaey, B.V., Demeyer S.: Establishing traceability links between unit test cases and units under test. In: European Conference on Software Maintenance and Reengineering, pp. 209–218. IEEE Computer Society, Kaiserslautern (2009) Rompaey, B.V., Demeyer S.: Establishing traceability links between unit test cases and units under test. In: European Conference on Software Maintenance and Reengineering, pp. 209–218. IEEE Computer Society, Kaiserslautern (2009)
30.
Zurück zum Zitat Zhao, L., Elbaum, S.: A survey on quality related activities in open source. SIGSOFT Softw. Eng. Notes 25(3), 54–57 (2000)CrossRef Zhao, L., Elbaum, S.: A survey on quality related activities in open source. SIGSOFT Softw. Eng. Notes 25(3), 54–57 (2000)CrossRef
31.
Zurück zum Zitat Cohen, J.: Statistical Power Analysis for the Behavioral Sciences, 2nd edn. Lawrence Erlbaum Associates, London (1988)MATH Cohen, J.: Statistical Power Analysis for the Behavioral Sciences, 2nd edn. Lawrence Erlbaum Associates, London (1988)MATH
32.
Zurück zum Zitat Daniel, W.W.: Applied Nonparametric Statistics. KENT Publishing Company, Boston (2000) Daniel, W.W.: Applied Nonparametric Statistics. KENT Publishing Company, Boston (2000)
Metadaten
Titel
A Study of the Relationship Between Class Testability and Runtime Properties
verfasst von
Amjed Tahir
Stephen MacDonell
Jim Buchan
Copyright-Jahr
2015
DOI
https://doi.org/10.1007/978-3-319-27218-4_5