For software to be reliable and resilient, it is widely accepted that tests must be created and maintained alongside the software itself. One safeguard from vulnerabilities and failures in code is to ensure correct behavior on the boundaries between the input space sub-domains. So-called boundary value analysis (BVA) and boundary value testing (BVT) techniques aim to exercise those boundaries and increase test effectiveness. However, the concepts of BVA and BVT themselves are not generally well defined, and it is not clear how to identify relevant sub-domains, and thus the boundaries delineating them, given a specification. This has limited adoption and hindered automation. We clarify BVA and BVT and introduce Boundary Value Exploration (BVE) to describe techniques that support them by helping to detect and identify boundary inputs. Additionally, we propose two concrete BVE techniques based on information-theoretic distance functions: (i) an algorithm for boundary detection and (ii) the usage of software visualization to explore the behavior of the software under test and identify its boundary behavior. As an initial evaluation, we apply these techniques on a much used and well-tested date handling library. Our results reveal questionable behavior at boundaries highlighted by our techniques. In conclusion, we argue that the boundary value exploration that our techniques enable is a step towards automated boundary value analysis and testing, fostering their wider use and improving test effectiveness and efficiency.
翻译:为使软件可靠和具有复原力,人们普遍认为,测试必须与软件本身同时创建和维护,这是人们普遍接受的。代码中的一项防止弱点和故障的保障措施,是确保输入空间子域之间的界限正确行为。所谓的边界值分析(BVA)和边界值测试(BVT)技术旨在行使这些边界,提高测试效力。但是,对于BVA和BVT本身的概念,一般没有很好地界定,而且不清楚如何根据规格确定相关次级域,从而划定其界限。这限制了采用和自动化。我们澄清了BVA和BVT,并引入边界值探索(BVE),以描述支持这些输入空间子域之间的界限的正确行为。所谓的边界值分析(BVT)和边界值测试(BVT)技术旨在运用这些边界值分析(BVE),此外,我们提议基于信息理论距离功能的两种具体的BVE技术:(一) 边界探测算法,以及(二) 使用软件直观来探索测试软件的行为,并查明其边界行为。作为初步评估,我们将这些技术应用于一个使用并经过广泛测试的日期处理图书馆的图书馆。我们的结果显示有疑问的边界值。我们用的方法显示边界的边界的边界检验方法。