Skip to main content
Top
Published in: Software Quality Journal 3-4/2012

01-09-2012

Model-based pairwise testing for feature interaction coverage in software product line engineering

Authors: Malte Lochau, Sebastian Oster, Ursula Goltz, Andy Schürr

Published in: Software Quality Journal | Issue 3-4/2012

Log in

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Testing software product lines (SPLs) is very challenging due to a high degree of variability leading to an enormous number of possible products. The vast majority of today’s testing approaches for SPLs validate products individually using different kinds of reuse techniques for testing. Because of their reusability and adaptability capabilities, model-based approaches are suitable to describe variability and are therefore frequently used for implementation and testing purposes of SPLs. Due to the enormous number of possible products, individual product testing becomes more and more infeasible. Pairwise testing offers one possibility to test a subset of all possible products. However, according to the best of our knowledge, there is no contribution discussing and rating this approach in the SPL context. In this contribution, we provide a mapping between feature models describing the common and variable parts of an SPL and a reusable test model in the form of statecharts. Thereby, we interrelate feature model-based coverage criteria and test model-based coverage criteria such as control and data flow coverage and are therefore able to discuss the potentials and limitations of pairwise testing. We pay particular attention to test requirements for feature interactions constituting a major challenge in SPL engineering. We give a concise definition of feature dependencies and feature interactions from a testing point of view, and we discuss adequacy criteria for SPL coverage under pairwise feature interaction testing and give a generalization to the T-wise case. The concept and implementation of our approach are evaluated by means of a case study from the automotive domain.

Dont have a licence yet? Then find out more about our products and how to get one now:

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!

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!

Literature
go back to reference Belli, F., Hollmann, A. (2008). Test generation and minimization with "Basic" statecharts. In: Proceedings of the 2008 ACM symposium on applied computing (pp. 718–723). New York, NY, USA: ACM. Belli, F., Hollmann, A. (2008). Test generation and minimization with "Basic" statecharts. In: Proceedings of the 2008 ACM symposium on applied computing (pp. 718–723). New York, NY, USA: ACM.
go back to reference Bogdanov, K., Holcombe, M., & Singh, H. (1999) Automated test set generation for statecharts. In Proceedings of the international workshop on current trends in applied formal method (pp. 107–121). London, UK: Springer. Bogdanov, K., Holcombe, M., & Singh, H. (1999) Automated test set generation for statecharts. In Proceedings of the international workshop on current trends in applied formal method (pp. 107–121). London, UK: Springer.
go back to reference Calder, M., Kolberg, M., Magill, E. H., & Reiff-Marganiec, S. (2003). Feature interaction: A critical review and onsidered forecast. Computer Networks, 41, 115–141.MATHCrossRef Calder, M., Kolberg, M., Magill, E. H., & Reiff-Marganiec, S. (2003). Feature interaction: A critical review and onsidered forecast. Computer Networks, 41, 115–141.MATHCrossRef
go back to reference Cichos, H., Oster, S., Lochau, M., & Schürr, A. (2011). Model-based coverage-driven test suite generation for software product lines. In Proceedings of the ACM/IEEE 14th international conference on model driven engineering languages and systems. Lecture notes in computer science (LNCS). Heidelberg: Springer. Accepted for publication. Cichos, H., Oster, S., Lochau, M., & Schürr, A. (2011). Model-based coverage-driven test suite generation for software product lines. In Proceedings of the ACM/IEEE 14th international conference on model driven engineering languages and systems. Lecture notes in computer science (LNCS). Heidelberg: Springer. Accepted for publication.
go back to reference Clements, P., & Northrop, L. (2001). Software product lines: Practices and patterns. Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc. Clements, P., & Northrop, L. (2001). Software product lines: Practices and patterns. Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc.
go back to reference Cohen, D. M., Dalal, S. R., Kajla, A., & Patton, G. (1994). The automatic efficient tests generator. In Proceedings of the 5th international symposium on software reliability engineering IEEE, pp. 303–309. Cohen, D. M., Dalal, S. R., Kajla, A., & Patton, G. (1994). The automatic efficient tests generator. In Proceedings of the 5th international symposium on software reliability engineering IEEE, pp. 303–309.
go back to reference Cohen, M. B., Dwyer, M. B., & Shi, J. (2006). Coverage and adequacy in software product line testing. In Proceedings of the ISSTA 2006 workshop ROSATEA ’06 (pp. 53–63). New York, NY, USA: ACM. Cohen, M. B., Dwyer, M. B., & Shi, J. (2006). Coverage and adequacy in software product line testing. In Proceedings of the ISSTA 2006 workshop ROSATEA ’06 (pp. 53–63). New York, NY, USA: ACM.
go back to reference Cohen, M., Dwyer, M., & Shi, J. (2007). Interaction testing of highly-configurable systems in the presence of constraints. In Proceedings of the international symposium on software testing and analysis, pp. 129–139. Cohen, M., Dwyer, M., & Shi, J. (2007). Interaction testing of highly-configurable systems in the presence of constraints. In Proceedings of the international symposium on software testing and analysis, pp. 129–139.
go back to reference Cormen, T., Leiserson, C., Rivest, R., & Stein, C. (2001). Introduction to algorithms. Cambridge, Ma: MIT Press.MATH Cormen, T., Leiserson, C., Rivest, R., & Stein, C. (2001). Introduction to algorithms. Cambridge, Ma: MIT Press.MATH
go back to reference Czarnecki, K., Helsen, S., & Eisenecker, U. (2005a). Staged configuration through specialization and multilevel configuration of feature models. Software Process: Improvement and Practice, 10, 143–169.CrossRef Czarnecki, K., Helsen, S., & Eisenecker, U. (2005a). Staged configuration through specialization and multilevel configuration of feature models. Software Process: Improvement and Practice, 10, 143–169.CrossRef
go back to reference Czarnecki, K., Helsen, S., & Eisenecker, U. (2005b). Formalizing cardinality-based feature models and their specialization. In Software process: Improvement and practice, pp. 7–29. Czarnecki, K., Helsen, S., & Eisenecker, U. (2005b). Formalizing cardinality-based feature models and their specialization. In Software process: Improvement and practice, pp. 7–29.
go back to reference Czarnecki, K., She, S., & Wasowski, A. (2008). Sample spaces and feature models: There and back again. In SPLC ’08 (pp. 22–31). Washington, DC, USA: IEEE CS. Czarnecki, K., She, S., & Wasowski, A. (2008). Sample spaces and feature models: There and back again. In SPLC ’08 (pp. 22–31). Washington, DC, USA: IEEE CS.
go back to reference Dziobek, C., & Weiland, J. (2009). Variantenmodellierung und -konfiguration eingebetteter automotive Software mit Simulink. In MBEES, pp. 36–45. Dziobek, C., & Weiland, J. (2009). Variantenmodellierung und -konfiguration eingebetteter automotive Software mit Simulink. In MBEES, pp. 36–45.
go back to reference Ferber, S., Haag, J., & Savolainen, J. (2002). Feature interaction and dependencies: Modeling features for reengineering a legacy product line. In Proceedings of the 2nd international conference on software product lines (pp. 235–256). London, UK: Springer. Ferber, S., Haag, J., & Savolainen, J. (2002). Feature interaction and dependencies: Modeling features for reengineering a legacy product line. In Proceedings of the 2nd international conference on software product lines (pp. 235–256). London, UK: Springer.
go back to reference Gonzalez, A., & Luna, C. (2008). Behavior specification of product lines via feature models and UML statecharts with variabilities. In Proceedings of the international conference of the chilean computer science society (pp. 32–41). Washington, DC, USA: IEEE Computer Society. Gonzalez, A., & Luna, C. (2008). Behavior specification of product lines via feature models and UML statecharts with variabilities. In Proceedings of the international conference of the chilean computer science society (pp. 32–41). Washington, DC, USA: IEEE Computer Society.
go back to reference Grönniger, H., Krahn, H., Pinkernell, C., & Rumpe, B. (2008). Modeling variants of automotive systems using views. In Modellierung. Grönniger, H., Krahn, H., Pinkernell, C., & Rumpe, B. (2008). Modeling variants of automotive systems using views. In Modellierung.
go back to reference Harel, D., & Naamad, A. (1996). The STATEMATE semantics of statecharts. ACM Transactions on Software Engineering and Methodology, 5, 293–333.CrossRef Harel, D., & Naamad, A. (1996). The STATEMATE semantics of statecharts. ACM Transactions on Software Engineering and Methodology, 5, 293–333.CrossRef
go back to reference Hartmann, J., Vieira, M., & Ruder, A. (2004). A UML-based approach for validating product lines. In: B. Geppert, C. Krueger, & J. Li (Eds.). Proceedings of the international workshop on software product line testing, pp 58–65. Hartmann, J., Vieira, M., & Ruder, A. (2004). A UML-based approach for validating product lines. In: B. Geppert, C. Krueger, & J. Li (Eds.). Proceedings of the international workshop on software product line testing, pp 58–65.
go back to reference Heymans, P., Schobbens, P. Y., Trigaux, J. C., Bontemps, Y., Matulevicius, R., & Classen, A. (2008). Evaluating formal properties of feature diagram languages. Software, IET, 2, 281–302.CrossRef Heymans, P., Schobbens, P. Y., Trigaux, J. C., Bontemps, Y., Matulevicius, R., & Classen, A. (2008). Evaluating formal properties of feature diagram languages. Software, IET, 2, 281–302.CrossRef
go back to reference Hong, H. S., Kim, Y. G., Cha, S. D., Bae, D. H., & Ural, H. (2000). A test sequence selection method for statecharts. Software Testing, Verification and Reliability, 10, 203–227.CrossRef Hong, H. S., Kim, Y. G., Cha, S. D., Bae, D. H., & Ural, H. (2000). A test sequence selection method for statecharts. Software Testing, Verification and Reliability, 10, 203–227.CrossRef
go back to reference Juarez-Dominguez, A. L., Day, N. A., & Joyce, J. J. (2008). Modelling feature interactions in the automotive domain. In Proceedings of the international workshop on models in software engineering. MiSE ’08 (pp. 45–50). New York, NY, USA: ACM. Juarez-Dominguez, A. L., Day, N. A., & Joyce, J. J. (2008). Modelling feature interactions in the automotive domain. In Proceedings of the international workshop on models in software engineering. MiSE ’08 (pp. 45–50). New York, NY, USA: ACM.
go back to reference Kang, K. C., Cohen, S. G., Hess, J. A., Novak, W. E., & Peterson, A. S. (1990). Feature-oriented domain analysis (FODA) feasibility study. Technical report, CMU Software Engineering Institute. Kang, K. C., Cohen, S. G., Hess, J. A., Novak, W. E., & Peterson, A. S. (1990). Feature-oriented domain analysis (FODA) feasibility study. Technical report, CMU Software Engineering Institute.
go back to reference Kishi, T., & Noda, N. (2004). Design testing for product line development based on test scenarios. In B. Geppert, C. Krueger, & J. Li (Eds.). Proceedings of the international workshop on software product line testing, pp. 19–26. Kishi, T., & Noda, N. (2004). Design testing for product line development based on test scenarios. In B. Geppert, C. Krueger, & J. Li (Eds.). Proceedings of the international workshop on software product line testing, pp. 19–26.
go back to reference Kolb, R., & Muthig, D. (2003). Challenges in testing software product lines. In Proceedings of conference on quality engineering in software technology, pp. 81–95. Kolb, R., & Muthig, D. (2003). Challenges in testing software product lines. In Proceedings of conference on quality engineering in software technology, pp. 81–95.
go back to reference Lei, Y., & Tai, K. (1998). In-parameter-order: A test generation strategy for pairwise testing. In IEEE high assurance systems engineering symposium, pp. 254–261. Lei, Y., & Tai, K. (1998). In-parameter-order: A test generation strategy for pairwise testing. In IEEE high assurance systems engineering symposium, pp. 254–261.
go back to reference Lochau, M., & Goltz, U. (2010). Feature interaction aware test case generation for embedded control systems. In Proceedings of the 6th international workshop on model-based testing. Lochau, M., & Goltz, U. (2010). Feature interaction aware test case generation for embedded control systems. In Proceedings of the 6th international workshop on model-based testing.
go back to reference Masiero, P., Maldonado, J., & Boaventura, I. (1994). A reachability tree for statecharts and analysis of some properties. Information and Software Technology, 36, 615–624.CrossRef Masiero, P., Maldonado, J., & Boaventura, I. (1994). A reachability tree for statecharts and analysis of some properties. Information and Software Technology, 36, 615–624.CrossRef
go back to reference McGregor, J. D. (2001). Testing a software product line. Technical report CMU/SEI-2001-TR-022, Software Engineering Institute. McGregor, J. D. (2001). Testing a software product line. Technical report CMU/SEI-2001-TR-022, Software Engineering Institute.
go back to reference Metzger, A. (2004). Feature interactions in embedded control systems. Computer Networks, 45, 625–644.MATHCrossRef Metzger, A. (2004). Feature interactions in embedded control systems. Computer Networks, 45, 625–644.MATHCrossRef
go back to reference Metzger, A., Bhne, S., Lauenroth, K., & Pohl, K. (2005). Considering feature interactions in product lines: Towards the automatic derivation of dependencies between product variants. In S. Reiff-Marganiec & M. Ryan (Eds.). Feature interactions in telecommunications and software systems VIII (pp. 198–216). Leicester, UK: IOS Press. Metzger, A., Bhne, S., Lauenroth, K., & Pohl, K. (2005). Considering feature interactions in product lines: Towards the automatic derivation of dependencies between product variants. In S. Reiff-Marganiec & M. Ryan (Eds.). Feature interactions in telecommunications and software systems VIII (pp. 198–216). Leicester, UK: IOS Press.
go back to reference Metzger, A., Pohl, K., Heymans, P., Schobbens, P. Y., & Saval, G. (2007). Disambiguating the documentation of variability in software product lines: A separation of concerns, formalization and automated analysis. In Proceedings of the international requirements engineering conference, pp. 243–253. Metzger, A., Pohl, K., Heymans, P., Schobbens, P. Y., & Saval, G. (2007). Disambiguating the documentation of variability in software product lines: A separation of concerns, formalization and automated analysis. In Proceedings of the international requirements engineering conference, pp. 243–253.
go back to reference Müller, T., Lochau, M., Detering, S., Saust, F., Garbers, H., Märtin, L., et al. (2009). A comprehensive Descr. of a model-based, continuous develop. Process for AUTOSAR systems with integrated quality assurance. Technical report 06, TU BS. Müller, T., Lochau, M., Detering, S., Saust, F., Garbers, H., Märtin, L., et al. (2009). A comprehensive Descr. of a model-based, continuous develop. Process for AUTOSAR systems with integrated quality assurance. Technical report 06, TU BS.
go back to reference Olimpiew, E. M. (2008). Model-based testing for software product lines. PhD thesis, George Mason University. Olimpiew, E. M. (2008). Model-based testing for software product lines. PhD thesis, George Mason University.
go back to reference Oster, S., Markert, F., & Ritter, P. (2010). Automated incremental pairwise testing of software product lines. In: Proceedings of the international software product line conference, pp. 196–210. Oster, S., Markert, F., & Ritter, P. (2010). Automated incremental pairwise testing of software product lines. In: Proceedings of the international software product line conference, pp. 196–210.
go back to reference Oster, S., Markert, F., & Schürr, A. (2009). Integrated modeling of software product lines with feature models and classification trees. In Proceedings of the international software product line conference. MAPLE 2009 Ws, Springer. Oster, S., Markert, F., & Schürr, A. (2009). Integrated modeling of software product lines with feature models and classification trees. In Proceedings of the international software product line conference. MAPLE 2009 Ws, Springer.
go back to reference Oster, S., Wübbeke, A., Engels, G., & Schürr, A. (2010). Model-based software product lines testing survey. In J. Zander, I. Schieferdecker, & P. Mosterman (Eds.). Model-based testing for embedded systems. Boca Raton: CRC Press/Taylor and Francis, to appear. Oster, S., Wübbeke, A., Engels, G., & Schürr, A. (2010). Model-based software product lines testing survey. In J. Zander, I. Schieferdecker, & P. Mosterman (Eds.). Model-based testing for embedded systems. Boca Raton: CRC Press/Taylor and Francis, to appear.
go back to reference Oster, S., Zorcic, I., Markert, F., & Lochau, M. (2011). MoSo-PoLiTe—tool support for pairwise and model-based software product line testing. In K. Czarnecki & U. Eisenecker (Eds.). 5th International workshop on variability modelling of software-intensive systems, Namur, Belgium. ACM international conference proceedings series (pp. 79–82). New York: ACM Press. Oster, S., Zorcic, I., Markert, F., & Lochau, M. (2011). MoSo-PoLiTe—tool support for pairwise and model-based software product line testing. In K. Czarnecki & U. Eisenecker (Eds.). 5th International workshop on variability modelling of software-intensive systems, Namur, Belgium. ACM international conference proceedings series (pp. 79–82). New York: ACM Press.
go back to reference Perrouin, G., Sen, S., Klein, J., Baudry, B., & Traon, Y. L. (2010). Automated and scalable T-wise test case generation strategies for software product lines. In Third international conference on software testing, verification and validation, pp. 459–468. Perrouin, G., Sen, S., Klein, J., Baudry, B., & Traon, Y. L. (2010). Automated and scalable T-wise test case generation strategies for software product lines. In Third international conference on software testing, verification and validation, pp. 459–468.
go back to reference Pohl, K., Böckle, G., & Linden, F. J. V. D. (2005). Software product line engineering: Foundations, principles and techniques. New York: Springer. Pohl, K., Böckle, G., & Linden, F. J. V. D. (2005). Software product line engineering: Foundations, principles and techniques. New York: Springer.
go back to reference Pretschner, A., & Philipps, J. (2004). Methodological issues in model-based testing. In Model-based testing of reactive systems, pp. 281–291. Pretschner, A., & Philipps, J. (2004). Methodological issues in model-based testing. In Model-based testing of reactive systems, pp. 281–291.
go back to reference Reuys, A., Kamsties, E., Pohl, K., & Reis, S. (2005). Model-based system testing of software product families. In CAiSE, pp. 519–534. Reuys, A., Kamsties, E., Pohl, K., & Reis, S. (2005). Model-based system testing of software product families. In CAiSE, pp. 519–534.
go back to reference Robinson, H. (2000). Intelligent test automation. Software Testing and Quality Engineering, 5, 24–32. Robinson, H. (2000). Intelligent test automation. Software Testing and Quality Engineering, 5, 24–32.
go back to reference Scheidemann, K. (2007). Verifying families of system configurations. PhD thesis, Technical University of Munich. Scheidemann, K. (2007). Verifying families of system configurations. PhD thesis, Technical University of Munich.
go back to reference Souza, S., Maldonado, J., Fabbri, S., & Masiero, P. (2000). Statecharts specifications: A family of coverage testing criteria. In Proceedings of the Latin-American conference of informatics, pp 167–185. Souza, S., Maldonado, J., Fabbri, S., & Masiero, P. (2000). Statecharts specifications: A family of coverage testing criteria. In Proceedings of the Latin-American conference of informatics, pp 167–185.
go back to reference Stevens, B., & Mendelsohn, E. (1998). Efficient software testing protocols. In Conference of the centre for advanced studies on collaborative research (pp. 22–37). IBM Press. Stevens, B., & Mendelsohn, E. (1998). Efficient software testing protocols. In Conference of the centre for advanced studies on collaborative research (pp. 22–37). IBM Press.
go back to reference Szasz, N., & Vilanova, P. (2008). Statecharts and variabilities. In Proceedings of 2nd international workshop on variability modelling of software-intensive systems, pp. 131–140. Szasz, N., & Vilanova, P. (2008). Statecharts and variabilities. In Proceedings of 2nd international workshop on variability modelling of software-intensive systems, pp. 131–140.
go back to reference Tevanlinna, A., Taina, J., & Kauppinen, R. (2004). Product family testing: A survey. ACM SIGSOFT Software Engineering Notes, 29, 12–18CrossRef Tevanlinna, A., Taina, J., & Kauppinen, R. (2004). Product family testing: A survey. ACM SIGSOFT Software Engineering Notes, 29, 12–18CrossRef
go back to reference Utting, M., & Legeard, B. (2007). Practical model-based testing. A tools approach. Morgan Kaufmann. Utting, M., & Legeard, B. (2007). Practical model-based testing. A tools approach. Morgan Kaufmann.
go back to reference van Glabbeek, R. J., & Goltz, U. (2001). Refinement of actions and equivalence notions for concurrent systems. Acta Informatica, 37, 229–327.MathSciNetMATHCrossRef van Glabbeek, R. J., & Goltz, U. (2001). Refinement of actions and equivalence notions for concurrent systems. Acta Informatica, 37, 229–327.MathSciNetMATHCrossRef
go back to reference von der Beeck, M. (1994). A comparison of statecharts variants. In: Formal techniques in real-time and fault-tolerant systems, pp. 128–148. von der Beeck, M. (1994). A comparison of statecharts variants. In: Formal techniques in real-time and fault-tolerant systems, pp. 128–148.
go back to reference Weißleder, S., Sokenou, D., & Schlingloff, H. (2008). Reusing state machines for automatic test generation in product lines. In Proceedings of the 1st workshop on model-based testing in practice (MoTiP2008). Weißleder, S., Sokenou, D., & Schlingloff, H. (2008). Reusing state machines for automatic test generation in product lines. In Proceedings of the 1st workshop on model-based testing in practice (MoTiP2008).
go back to reference White, J., Dougherty, B., & Schmidt, D. C. (2009). Selecting highly optimal architect. Feature sets with filtered cartesian flattening. Journal of Systems and Software, 82, 1268–1284.CrossRef White, J., Dougherty, B., & Schmidt, D. C. (2009). Selecting highly optimal architect. Feature sets with filtered cartesian flattening. Journal of Systems and Software, 82, 1268–1284.CrossRef
Metadata
Title
Model-based pairwise testing for feature interaction coverage in software product line engineering
Authors
Malte Lochau
Sebastian Oster
Ursula Goltz
Andy Schürr
Publication date
01-09-2012
Publisher
Springer US
Published in
Software Quality Journal / Issue 3-4/2012
Print ISSN: 0963-9314
Electronic ISSN: 1573-1367
DOI
https://doi.org/10.1007/s11219-011-9165-4

Other articles of this Issue 3-4/2012

Software Quality Journal 3-4/2012 Go to the issue

EditorialNotes

In this issue

Premium Partner