Applied Sciences (Jul 2023)

Maximizing Test Coverage for Security Threats Using Optimal Test Data Generation

  • Talha Hussain,
  • Rizwan Bin Faiz,
  • Mohammad Aljaidi,
  • Adnan Khattak,
  • Ghassan Samara,
  • Ayoub Alsarhan,
  • Raed Alazaidah

DOI
https://doi.org/10.3390/app13148252
Journal volume & issue
Vol. 13, no. 14
p. 8252

Abstract

Read online

As time continues to advance, the need for robust security threat mitigation has become increasingly vital in software. It is a constant struggle to maximize test coverage through optimal data generation. We conducted explanatory research to maximize test coverage of security requirements as modeled in the structured misuse case description (SMCD). The acceptance test case is designed through the structured misuse case description for mitigation of security threats. Mal activity is designed from SMCD upon which constraints are specified in object constraint language (OCL) in order to minimize human dependency and improve consistency in the optimal test case design. The study compared two state-of-the-art test coverage maximization approaches through optimal test data generation. It was evident through the results that MC/DC generated optimal test data, i.e., n + 1 test conditions in comparison to the decision coverage approach, i.e., 2n test conditions for security threats. Thus, MC/DC resulted in a significantly lower number of test cases yet maximized test coverage of security threats. We, therefore, conclude that MC/DC maximizes test coverage through optimal test data in comparison to decision coverage at the design level for security threat mitigation.

Keywords