NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Software Test Data Management Based on Knowledge Graph

Li Gao, Junlin Qiu, Guanhua ChenInformatica 2024

Abstract

With the maturity of software development models and methods, large-scale software is born. However, the current problem is the lack of a software test data management model that integrates basic data management and advanced knowledge reasoning. To solve this problem, we constructed a software test data management model based on knowledge graph, so as to realize the intelligent management and reasoning of software test data. The model adopts the entity extraction model based on feed-forward neural network, the knowledge graph integration method based on graph database, and the knowledge reasoning submodule based on deep learning. In order to validate the model effect, we evaluated the functions of the three modules separately. Specifically, the knowledge graph construction accuracy, knowledge query response time, and knowledge inference accuracy are higher than the currently existing methods.

Introduction

As software systems grow in complexity, the volume of data generated during testing—including requirements, test cases, execution results, and bug reports—has reached a scale that traditional management methods struggle to handle effectively. Conventional approaches relying on relational databases (SQL), XML files, or cloud storage often suffer from a "semantic gap." While these systems are efficient at storing data, they lack the inherent ability to understand the complex relationships between disparate data points. This limitation hinders the automation of intelligent tasks, such as predicting test failures or identifying gaps in coverage based on requirement changes.

System Architecture

To bridge this semantic gap, we propose a framework that transitions from traditional data storage to intelligent processing. This model focuses on transforming raw software testing process data—whether structured, semi-structured, or unstructured—into an actionable Knowledge Graph (KG).

The proposed framework contrasts intelligent processing with traditional methods for handling structured and unstructured test data.

As illustrated in the framework, the system moves beyond simple data handling to incorporate knowledge discovery, sharing, and application. By combining intelligent approaches like CNNs and feed-forward neural networks, the system can process data that traditional methods find unprocessable, creating a unified knowledge base for reasoning.

Methodology

The proposed model is built upon three core pillars:

  1. Entity Extraction: Utilizing a deep learning pipeline, the model employs a Feed-forward Neural Network combined with Bi-LSTM (Bidirectional Long Short-Term Memory) and CRF (Conditional Random Fields) layers. This allows for the precise identification of entities (e.g., "Test Case," "Bug") and their attributes from unstructured text, achieving a high degree of accuracy compared to manual or rule-based methods.
  2. Knowledge Graph Integration: Extracted entities are mapped into a graph database. By using the Cypher query language, the system can navigate complex, non-linear relationships between nodes and edges, avoiding the performance bottlenecks associated with traditional SQL "JOIN" operations.
  3. Knowledge Reasoning: The system features a CNN-based inference submodule. By representing entities and relationships as mathematical vectors (embeddings), the system can calculate a "plausibility score" for potential links. This enables the discovery of hidden relationships, such as inferring compatibility between different automation frameworks based on existing graph data.

Comparative Analysis

The shift toward a Knowledge Graph-based approach addresses several critical research gaps found in traditional data management strategies.

A comparison of various data management approaches highlighting the unique strengths and gaps addressed by the proposed knowledge graph method.

As shown in the comparison table, while traditional and rule-based methods offer familiarity and reliability for structured data, they fail to adapt to new data sources or provide semantic enrichment. The proposed KG approach provides a unified representation of data, semantic annotation, and intelligent reasoning support, effectively integrating data and knowledge into a single management framework.

Results and Discussion

The model was validated using two large-scale datasets: the Software Testing Data Set (~100,000 records) and the Software Engineering Data Set (~200,000 records). Key performance metrics include:

  • Extraction Accuracy: The deep learning model achieved an accuracy of 0.92, significantly higher than dictionary-based (0.68) or regular expression (0.78) methods.
  • Query Performance: Utilizing Cypher on a graph database resulted in a response time of 0.12 seconds, nearly twice as fast as SQL (0.23s).
  • Reasoning Capability: The CNN-based reasoning achieved 0.89 accuracy and 0.81 site coverage, outperforming standard ontology-based reasoning.

Conclusion

This research demonstrates that a Knowledge Graph-based approach effectively addresses the limitations of traditional software test data management. By integrating entity extraction, graph-based storage, and deep learning reasoning, the model transforms passive archives into active, intelligent assistants. Future work will focus on scaling these reasoning techniques for enterprise systems containing millions of entities and addressing the "cold start" problem for new projects with limited initial data.

Summary updated

BibTeX
@inproceedings{gao2024software,
  author = {Li Gao and Junlin Qiu and Guanhua Chen},
  title = {{Software Test Data Management Based on Knowledge Graph}},
  booktitle = {Informatica},
  year = {2024},
  doi = {10.31449/inf.v48i16.6416},
}
Figure