Journal of Intelligent Systems and Internet of Things

Deep Neural Network Graph with Reinforcement Learning for Test Case Prioritization

Shankar Ramakrishnan, E. K. Girisan
Volume 18, Issue 2, pp. 361-374 (2026)
DOI: https://doi.org/10.54216/JISIoT.180225
Online: https://www.americaspg.com/journal/18/article/4079

Abstract

Recently, Deep learning (DL) models are increasingly used in Test Case Prioritization (TCP) tasks combining partial and imperfect test case (TC) information into accurate prediction models. Various DL algorithms have been created to improve TC failure prediction and prioritization in CI settings. Among them, Deep Reinforcement Prioritizer (DeepRP) model is developed using Deep Reinforcement Learning (DRL) and Deep Neural Network (DNN) for efficient TCP on huge test suites. But, the model's labelling task is interrupted early, creating difficulty in learning TC features for unlabeled training TCs due to limited resources. To solve this, Deep Graph Reinforcement Prioritizer (DeepGRP) is proposed in this paper to learn the TC features from unlabeled training data for efficient TCP in Regression Testing (RT). In this method, graph neuron stimulation attributes for TCs are created to retrieve the activation graph across DNN layers of DeepRP. The connectivity neuron link defines the activation graph. The proposed deep graph (DG) recognizes the DNN neurons as nodes and the adjacency matrix as the connectivity link among the nodes. Also, the message passing mechanism is applied to aggregate the structural information from the adjacency matrix with neighbouring node features to enhance TCP. By applying this mechanism, DeepGRP captures the high-order dependencies among neurons for efficient activation features which overcomes the traditional activation models and improves the TCP at large scale RT.  The DG model prioritizes TCs using Learning-to-Rank (L2R) which learns node attributes from TCs. This enables for better DNN testing efficiency by detecting vulnerabilities early and lower development time for efficient TCP and tackling the difficulty of learning TC characteristics for efficient TCP. Finally, the testing findings suggest that the DeepRP can improve the TCP for large TSs when compared to other common algorithms.

Keywords: Test Case Prioritization; Regression Testing; Deep Graph; Graph-Level Neuron Activation; Learning-to-Rank

1. Introduction

Software Testing (ST) is an important aspect of the software development process since it detects defects and faults in a system and ensures that it works as planned [1]. In ST, Regression Testing (RT) is a crucial process for spotting fresh defects or errors particularly when improving existing systems. It also assures developers that the modified program will not cause new faults in the software testing applications [2].

Continuous Integration (CI) is now widely used in software projects. It streamlines program releases and incorporates RT frequently [3, 4]. All TCs are challenging to run, nevertheless, depending on time, money and resource limits. Furthermore, the fast delivery intervals for changed software raise the time utilization, therefore restricting the RT efficacy. In software, RT defines the operating expenditures and case resources by utilizing the methods like minimization, selection and prioritizing [5, 6]. While minimization [7] removes irrelevant TCs and selection [8] chooses the most important ones for software testing. By reordering the TS to find the optimal sequence of TCs, TCP models [9] improve goals including pre-mature failure detection. These approaches assist to lower test sets depending on certain criteria.

Among these three TCP approaches, the software sector makes great use of TCP ones to improve RT [10] efficiency. By means of overlapping software TC testing and troubleshooting, they reduce testing costs. Initially, Although TCP prioritizes the most important TCs, it permits continuous testing until either resources are exhausted or all TCs have been executed. TCP is crucial for streamlining software development and making the most of analyzing resources [11, 12]. It may be challenging to prioritize TCs, however, due to the abundance of TCs, unpredictable changes in requirements and complex relationships. Moreover, it will be easier to spot issues in the RT if significant TCs are consistently given considerable scrutiny.

Artificial intelligence (AI) like Machine Learning (ML) and DL has considerably lowered software failure rates by simplifying processes in software engineering, notably, which may assist address, the TCP issue. DL-based TCP techniques estimate TC priority in large TSs utilizing TC duration and history execution status [15, 16] unlike ML models. One of the sophisticated DL models, Reinforcement Learning (RL) showed great promise in regression testing by continuously changing prioritizing techniques depending on test comments [17, 18]. For example, Different ranking techniques help to simulate the sequential links between the CI platform and the TCP into the RL issue [19]. Excellent ranking reliability for TCs regression involves the RL models could continually and automatically demonstrate the TCP method. Nonetheless, lack scalability, inability to handle large-scale TCs and difficulty modifying and optimizing hyperactive parameters define RL-based algorithms as problematic. Furthermore, DNN techniques cannot retain significant information for longer, therefore the network architecture becomes complicated.

Deep Reinforcement Prioritizer (DeepRP) is developed in this article to solve the above-mentioned issues. This model uses DRL to train additional TC information, including modifications to source code, revision regulation and code coverage, thus improving the self-optimization and flexible capacity for TCP. Value operation, Q function, transformation system and reward function are among the many RL functions approximatively modelled in DRL training by DNN. A RL system called Q-Learning bases agent behavior on TC attributes as input and priority as output. It entails updating observations, organizing TCs, calculating incentives and maintaining particular marks. The disparity among allocated and ideal rankings determines the incentive to improve TC efficiency.

DeepGRP model is then proposed to learn the TC features for unlabeled training TCs for efficient TCP in RT. In this method, Graph-level neuron activation characteristics for TCs are used in this technique to derive the activation graph among the DNN layers. The neural connection relationship is the definition of the activation graph. While certain finer-grained properties, such as the activation of the neuron, have been recovered by the existing model activation-based prioritization algorithms as they neglect other parameters that are of more hidden layer. Consequently, the suggested DNN views the adjacency matrix as the connection relationship between the nodes, including the DNN neurons. In order to get integrated node characteristics, the adjacency matrix and node attributes are sent together via messages. These features include nearby node properties and structural data among nodes, which may be extremely beneficial for TCP. By collecting finest activation features from TCs and converting model activations into spatial neuron connections, the DG overcomes limitations based on model activation methodologies. By learning one kind of scenario, it may use for multiple TCP, making it more comprehensive than model activation-based techniques. This DG model uses L2R to rank test instances by learning node attributes. Early vulnerability detection reduces processing time for efficient TCP and resolves learning TC attribute complexity, increasing the effectiveness of DNN testing.

The following sets the stage for the remainder of the article: In Section II, the researchers describe their findings on TCP prediction using DL algorithms. Section III describes the proposed approach, and Section IV compares its results to those of the existing algorithms. In Section V, we provide the study's findings and suggestions for enhancements.

2. Literature Survey Huang et al. [20] suggested a sorting mechanism using the Enlarged Finite State Machine (EFSM) for TCP testing. This method includes random forest with heuristic prioritization techniques to rectify the fault security level and time cost of TC implementation potentially affecting construct validity. Nevertheless, it generates high temporal computational complexity.Yang et al. [21] developed two TCP active descending frame models for TCP. Initially, a fixed-size sliding window was used to allocate a pre-set duration of recent historical data for all CI tests. After that, dynamic sliding window approaches were created, in which the size of the window was continually adaptable to all CI tests. However, in many TC iterations provided delayed learning or convoluted convergence due to ineffective reward levels. Pan et al. [22] developed a DNN for TCP based on Gini impurity. This system organizes TCs using metric values and Gini impurity formula, which produces reliant functions into a guided acyclic network. This TCP filters out TCs, fed into DNN, and ensures data feature engineering was performed appropriately for the TCP. However, this model only considered independent unit TCs, requiring the use of more advanced models.Yaraghi et al. [23] devised a conceptual data model to facilitate CI for data resources and their associations. Then, a complete set of characteristics including all features previously used in related investigations was defined using this data model. Moreover, these features were applied to train machine-learning models and accurately prioritize TCs. On the other hand, this model necessitates high-quality datasets to evaluate TCP models. Chen et al. [24] developed a LogTCP, which constitutes log pre-analysis, log depiction and TCP components. This model states that by fusing various log exemplification techniques with various prioritization strategies and several log-based schemes were built using the conceptualization of LogTCP. However, this approach results in high time complexity issues.Waqar et al. [25] developed TS prioritization by combining an optimization technique with an RL model. Initially, the administration log files were compiled by employing the behavior tracing models. Then, RL model was applied on the gathered log data to establish the possible future beneficial rewards. Finally, the error seeding approach was employed to check the performance from the software specialists. However, total reward activities were more time-consuming than their partial reward counterparts were. Abdelkarim & ElAdawi, [26] constructed a TCP Using End-to-End DNN (TCP-Net++). TC metadata, coverage details and failure records are among the characteristics that this model incorporates to discover high-dimensional connection between source code and TCs. It prioritizes failure frequencies and coverage criteria for real-life industrial software packages, but results are not statistically verified due to the use of existing datasets.Chen et al. [27] developed a DNN model to prioritize the teat case using the activation graph (Actgraph). The adjacency matrix represents the connections between the DNN neurons, which are identified by the algorithm as nodes. Through message forwarding, it gathers neighbor node attributes and structural data, which might be used for TCP. Node features and the adjacency matrix were then combined. But, this model results with high time complexity issues. Manikkannan & Babu, [28] presented a TCP for Software Superiority Assertion that uses an Embedded Auto Encoder (EAE) for TCP. To reduce noise, each benchmark's code reportage was accessed using the resource code repositories. The data was then fed into the EAE, which prioritizes tasks and reduces phases to produce highquality software free from defects. However, more features like source code modifications were needed to enhance efficiency. In comparison to coverage-based approaches, DL-based approaches prioritize test cases more efficiently and effectively, according to a statistical view of DNN. It typically takes a lot of time and effort to label testing in the actual world because they do not have labels. In earlier models, the labelling was better. However, because to limitations in resources, the tagging process is abruptly stopped at an arbitrary moment. To label with little resource use, the TCP approaches are necessary. Achieving maximum advantage is possible with such a priority strategy. The model proposed in this study learn the test case features for unlabelled training test cases.

3. Proposed Methodology

Figure 1. depicts the entire structure of the proposed DeepGRP model.

3.1 Preliminaries

A proposed TCP method DeepGRP is mainly based on the model activation graph task. The three phases involved in this model are (i) TC Impulsation (ii) Feature Extraction by DNN DeepRP and (iii) Ranking Model Construction. Emphasizing its dynamic features, activation graph models have turned DNN into graphs. Though they do not provide TC stimulation data, in which the undirect weighted network with neurons are considered as nodes and model weights as edges. Rather, a guided weighted graph with model weights as the skeleton and authorization values as the graph is employed.

Figure 1. Pipeline of the proposed model
Figure 1. Pipeline of the proposed model

3.2 Test Case Prioritization using Deep Reinforcement Learning

In RT, prioritizing the TC on large TSs is important to eliminate the loss of information issues. So, DeepRP [20] model is proposed for TCP on large TSs. DeepRP uses a DRL and DNN. In proposed DeepGRP, the concept of DNN from DeepRP is used for feature extraction to learn the TC features for unlabeled training TC for efficient TCP.

3.2.1 Test Case Impulsation (TCI)

During testing, the proposed DeepGRP uses a TCP paradigm based on model activation. In TCI, the trained DNN's layers provide initialization values in response to the TCs they receive. The process of building graphs involves aggregating and standardizing the activations and weights of all neurons. The TC a is created by training the DNN with layers l with 𝑥𝑡ℎ neuron the 𝐿𝑡ℎ layer as 𝑁𝑥

𝐿. In TC, 𝑎𝑡ℎ will be fed into DNN and acquire an output neuron layer in the DNN. The activation value 𝛷𝑥

𝐿and  𝑁𝑥

𝐿 is computed in Eq. (1),

1 𝐿(𝑎) = 𝐿(𝑎) 𝑊𝐿 𝐻𝐿 (1) 𝐻𝐿∗𝑊𝐿∑ ∑ ℱ𝑥 𝛷𝑥

where ℱ𝑥

𝐿 when i is input. 𝐻, 𝑊 and 𝐶 represents the height, width and channels respectively with respect to neuron layers L. In case of the convolutional layer, the output dimension of 𝐻𝐿∗𝑊𝐿with the fully connected (FC) dimension will be 1 ∗1.

𝐿(𝑎) ∈ ℝ𝐻𝐿∗𝑊𝐿∗𝐶𝐿is the attribute output map of 𝑁𝑥

In order to normalize the neuron stimulation integer 𝛷𝐿 (𝑎) within the range [0,1], the max-min normalization is triggered by computing it in Eq. (2) for all layers.

𝛷𝐿(𝑎)−min (𝛷𝐿(𝑎)) 𝛷𝐿(𝑎) = (𝑚𝑎𝑥 𝛷𝐿(𝑎))−(𝑚𝑖𝑛𝛷𝐿(𝑎))                                                                                                            (2) 𝐿, 1 𝜃 (3) 𝜃 𝐻𝐿 𝜃∗𝑊𝐿 𝐻𝐿 𝜃∗𝑊𝐿 𝜃∗𝑊𝐿

Eq. (3) depicts the neuron weight of 𝑁𝑥

1 𝐿−1,𝐿= 𝐿−1,𝐿 𝑊𝐿 𝜃 (3) 𝜃∑ ∑ 𝜃𝑥,𝑦 𝑤𝑦,𝑥 𝜃 𝐻𝐿 𝜃∗𝑊𝐿 𝐻𝐿

𝜃. The weight dimension of FC layer is 1*1 in which the dimension of convolutional layer weight Lth will be 𝐻𝐿

𝜃∗𝑊𝐿 𝐿−1,𝐿 ∈ ℝ𝐻𝐿 𝜃∗𝑊𝐿

The weight variable among the neuron 𝑁𝑦

𝐿−1 and 𝑁𝑥

𝐿 will be slightly indicated to 𝜃𝑥,𝑦 𝜃. In Eq. (4), neuron weight 𝑤𝑥,𝑦

𝐿−1,𝐿 of each layer is standardized and transform 𝑤𝑥,𝑦

𝐿−1,𝐿) of each layer within the range [0,1].

𝐿−1,𝐿−min (𝑤𝑥,𝑦 𝐿−1,𝐿) 𝑤𝑥,𝑦 𝐿−1,𝐿= 𝐿−1,𝐿)                                                                                                               (4) 𝑤𝑥,𝑦 𝐿−1,𝐿)−min(𝑤𝑥,𝑦 max(𝑤𝑥,𝑦

In order to save computation costs, DeepGRP retrieves the neuron stimulation and weights of the last m layers of the DNN.

3.2.2 Feature Extraction

The proposed method involves extracting the activation graph between DNN layers using graph-level neuron activation features for TCs. The suggested graph-level neuron activation differs from ActGraph [27] and other DNN-based TCP approaches in several ways. Models as if ActGraph [27] constructs activation graphs by directly linking neuron connections with adjacency matrices highly suffers from high computational cost and limited scalability on large dataset. In addition, ActGraph primarily captures local neuron activations and immediate connectivity overlooking higher-order dependencies among neurons. In contrast, the proposed DeepGRP applies graph-level aggregation with message passing, which consolidates both activation values and structural node features from neighboring layers. Additionally, graph-level neuron activation enables higher-order dependencies by propagating information across multiple layers of the activation graph which highly presents the global structural patterns that are not captured by simple layer-wise activation. This reduces computational overhead, captures richer high-level structural relationships between the activation features and improves prioritization accuracy. Additionally, earlier DNN-based TCP methods handles test cases as isolated units, DeepGRP generalizes across unlabeled test cases by leveraging structural graph properties, making it more effective for large-scale regression testing.

In this model, stimulation graphs using DNN activations and node characteristics taken from the contiguity matrix are developed as the part of the feature extraction. By gathering features from the stimulation values of TCs, DeepGRP generates a grading model for each layer of the DNN model using the L2R architecture. The technique uses weighted edges to create dispersion variations among test instances, aiming to capture the neuron properties in a challenging manner. Priority TC from the stimulation graph are assisted using the Graph Neural Network (GNN) to improve the node characteristics efficacy. In DNN, initiation values are transmitted from the previous layer to the next layer, gathering the properties of current and neighboring nodes. The directed activation network is used to extract weighted in-degree node attributes to emphasize the importance of nodes. To highlight the significance of nodes, weighted in-degree node properties are extracted using the influenced activation network. Higher-order node characteristics with the centre node attributes are obtained by aggregating the proximity matrix. DNN is aligned as the directed weighted graph using the stimulation values as the bases for data drift. In accordance to Eq. (5), it is determined that d = (v, e), where v and e denotes the neuron set and directed weighted edges.

−(𝑉𝑥) 0 , 𝑉𝑦∉𝛱𝑑 𝑋𝑦,𝑥= { 𝑤𝑦,𝑥∗𝛷𝑥 , 𝑉𝑦∈ 𝛱𝑑 −(𝑉𝑥) (5)

Where 𝑋 represents the neighbouring matrix of 𝑑, 𝑉𝑥 will be the 𝑥𝑡ℎ node of 𝑑, 𝑤𝑥,𝑦 is the weight among 𝑉𝑦 and 𝑉𝑥 and 𝛱𝑑

−(𝑉𝑥) = {𝑉𝑦|𝑉𝑦∈𝑣(𝑑) ⋀〈𝑉𝑦, 𝑉𝑥〉∈𝑒(𝑑) ⋀𝑉𝑦≠𝑉𝑥} will be adjusted as processor in 𝑉𝑥. The weighted indegree is employed as the node attributes (𝒩𝒻). The easiest approach to evaluate the degree property is the way to capture links among the nodes. Since the weights of neighboring input edges are thought to be comparable to the weight of 𝑉𝑥 in Eq. (6), the weight of 𝑉𝑥 is determined by adding them.

−(𝑉𝑥)                                                                                                                        (6) 𝒩𝑓= ∑𝑋𝑦,𝑥 𝑦 , 𝑉𝑦∈ 𝛱𝑑

In this case, 𝒩𝒻 represents the node attributes of 𝑉𝑥. Features with lesser complexity degree will be weighted high.

Eq. (7) states that the center node feature (〖CN _f) is generated by combining the activation graph's node aspects and adjacent matrix during the GNN communication task.

𝒞𝒩𝑓= 𝛹(𝑋, 𝒩𝑓 )                                                                                                                                 (7)

Where, averaging operation 𝛹(. )can employ the 𝐴𝑑𝑑 (. ), 𝑀𝑎𝑥(. ) and 𝐴𝑣𝑒𝑟𝑎𝑔𝑒(. ). For the proposed TCP model, 𝐴𝑑𝑑 (. ) is executed. The proposed model calculates the 𝒞𝒩𝑓 of the last two layers after executing all nodes, aiming for deeper activation to fully express high-dimensional TC characteristics. Since the multiple-stage 𝒞𝒩𝒻 needs a minimum of four weight and activation layers, it set to 𝑚= 4.

Since, the last m = 4 layers are used in the DNN model, feature extraction focuses on the most informative and task-relevant representations. In DNN, these final (deeper) layers capture the high-level abstractions that are directly relevant for TCP and for distinguishing fault-prone test cases. Whereas, the earlier layers mainly capture the low-level patterns provides lower contribution on pritorization. Extracting activations from all layers adds substantial computational cost while using fewer than four layers reduces the pritorization efficiency. Empirical evaluation further demonstrated that m = 4 provides the best trade-off between accuracy and inference time making it well-suited for CI environments.

3.3 Constructions of Ranking Model

To build an L2R-based ranking model, DeepGRP employs the Extreme Boost (EB) model that adapts the dispersed gradient RL model. In this model, EB model is adopted as the L2R method due to its superior scalability and efficiency compared to other ranking algorithms like LambdaMART, RankNet and ListNet. Specifically, EB employs histogram based tree construction, parallel learning and build-in regularization allowing it to effectively handle the large-scale datasets like GSDTSR. In contrast, LambdaMART requires more complex pairwise or listwise transformations and were often more sensitive to noisy or partially labeled data, which are common in CI environments. Moreover, EB integrates effectively with the graph-level activation features extracted by DeepGRP enabling effective training and fast inference, making it suitable for deployment in real-time RT pipelines.

The EB ranking model is trained using the test set's 𝒞𝒩𝒻 and the DNN's prediction is marked as 0 (right) or 1 (wrong) according to the instances accuracy.

𝓞 (𝒞𝒩𝒻, 𝑏) = 𝓛(𝑏, 𝑏̂) + ∑ 𝛺(ℱ𝓉) 𝒯 𝓉=1 (8)

Where, 𝑏̂ = ∑ ℱ𝓉 𝒯 𝓉=1 (𝒞𝒩𝒻), ℱ𝓉(𝒞𝒩𝒻) represents an identified rate of 𝓉𝑡ℎ tree where 𝑏 is determined to be 0 or 1.

3.3.1 Practicality Inspection of Center Node Feature

The 𝒞𝒩𝒻 are determined by message transferring accumulation and defines the value of m in the proposed DeepGRP model. Eq. (9) and (10) determines the activation value 𝜕 and weight 𝒲 of each layer in DNN with 𝑁 neurons which are by case 𝑎 initiating the resultant value of each layer.

𝜕= [𝜕0(𝑎)𝜕1(𝑎) … 𝜕𝑛−1(𝑎)]1∗𝑛                                                                                                               (9) 𝑤0,0 𝑤1,0 ⋯ 𝑤𝑛−1,0 𝑤0,1 𝑤1,1 ⋯ 𝑤𝑛−1,1 𝑤0,𝑛−1 𝑤0,𝑛−1 ⋯ 𝑤𝑛−1,𝑛−1 ⋯ ⋯ ⋯ ⋯ (10) 𝓦=  [ ] 𝑛∗𝑛

Eq. (2) and (4), indicates the standardization of layers. As seen in Eq. (11), the adjacency matrix is computed concurrently in accordance with Eq. (5).

𝜕0. 𝑤0,0 𝜕0. 𝑤1,0 ⋯ 𝜕0. 𝑤𝑛−1,0 𝜕0. 𝑤0,1 𝜕0. 𝑤1,1 ⋯ 𝜕0. 𝑤𝑛−1,1 𝜕0. 𝑤0,𝑛−1 𝜕0. 𝑤0,𝑛−1 ⋯ 𝜕0. 𝑤𝑛−1,𝑛−1 ⋯ ⋯ ⋯ ⋯ 𝓦=  [ (11) ] 𝑛∗𝑛

Then, the 𝒩𝒻 is evaluated in Eq. (12),

𝑦 ⋯𝜕𝑛−1 ∑𝑤𝑦,𝑛−1 𝑦 ]1∗𝑛                                                                                        (12) 𝒩𝒻= [𝜕0 ∑𝑤𝑦,0

Where, the stimulation value and input edges of 𝑉𝑥 are averaged to yield the node attribute 𝒩𝒻 (𝑥) indicated as 𝒩𝒻 (𝑥) is 𝜕0 ∑𝑤𝑦,𝑥 𝑦 Finally, 𝒞𝒩𝒻 is analyzed using 𝑋 and 𝒩𝒻 as in Eq. (13),

𝑞 𝒩𝒻(𝑞) ⋯∑𝜕𝑞𝑤𝑞,𝑛−1 𝑞 𝒩𝒻(𝑞)]1∗𝑛                                                                         (13) 𝒞𝒩𝑓= [∑𝜕𝑞𝑤𝑞,0
𝑞 𝒩𝑓(𝑞). Typically, 𝒞𝒩𝑓(𝑥) Where, 𝒞𝒩𝑓(𝑥) of 𝑉𝑥 is ∑𝜕𝑞𝑤𝑞,𝑥
Where, 𝒞𝒩𝑓(𝑥) of 𝑉𝑥 is ∑𝜕𝑞𝑤𝑞,𝑥

𝑞 𝒩𝑓(𝑞) is produced from activation values by considering the 𝒩𝑓 𝑛eurons within higher layer of 𝑉𝑥. DeepGRP aggregates three network layers for analytical 𝒞𝒩𝑓 and adopts the latest four layers of DNN for effective 𝒞𝒩𝑓.

The Figure 2. and below algorithm illustrates the framework of DeepGRP.

Algorithm: DeepGRP

Input: DNN ℱ1 to be validated; The final 𝑚 layers are adopted; Testing Dataset 𝑎𝐺∈𝐴= {𝑎1, 𝑎2, . . , 𝑎𝑛}, the group of 𝒞𝒩𝑓

Output: Ranking Model ℱ2 for TCP

1. for 𝐿 in 𝑚 do 2. Calculate the neuron weight 𝑤𝐿−1,𝐿 as specified in Eq. (3) 3. Regularize the 𝑤𝐿−1,𝐿 using Eq. (4) 4. end for 5. 𝒞𝒩𝑓 = {𝜃} 6. for 𝑎𝐺 in 𝐴 do 7. for 𝐿 in 𝑚 do 8. Execute Neuron Activation 𝜕1(𝑎𝐺) utilizing the Eq. (1) 9. Define 𝜕1(𝑎𝐺) by using the Eq. (2) 10. end for 11. Initialize the directed weighted graph 𝑑𝐺 12. Obtain the Adjacency matrix 𝑋𝐺 as in Eq. (5) 13. Update the 𝒩𝑓(𝐺) using Eq. (6) 14. Calculate the 𝒞𝒩𝑓(𝐺) using Eq. (7) 15. 𝒞𝒩𝑓 ← 𝒩𝑓(𝐺) ∪𝒞𝒩𝑓(𝐺) 16. 𝑒𝑛𝑑 𝑓𝑜𝑟 17. Train the ranking model using Eq. (8) 18. Return ℱ2

Figure 2. Structure of DeepGRP
Figure 2. Structure of DeepGRP

3.4 Deployment in Cloud based IoT Testing Environments

DeepGRP could be deployed in cloud-based IoT testing environments by integrating it into continuous integration pipelines for automatic TCP across large-scale IoT testing environments. The graph-based feature extraction enables handling of unlabeled test data from diverse IoT devices while the ranking model ensures critical faults are detected early. Leveraging the scalability in cloud platforms, DeepGRP can process high volume IoT test executions in parallel, thereby reducing regression testing costs and enhancing reliability in dynamic IoT systems.

4. Simulation Results

4.1 Dataset Description

For the experimental purposes, Google Shared Dataset of TS results (GSDTSR) [30], Paint Control [29], and IOF/ROL [29] are examples of industrial databases that are utilized. In respect to the CI environment, the data sets in all case studies include past test implementation and evaluation data are analyzed across 300 CI iterations. The structure of the data sets is shown in Table 1.

Table 1. Gathered Information form the Datasets
Table 1. Gathered Information form the Datasets

“TCs” denotes the total number of test cases available in each dataset n Table 1., while “CI Cycles” refers to the number of continuous integration iterations during which those test cases were executed. The “Verdicts” represents the total number of test execution outcomes (pass or fail) generated across all CI cycles for each datasets. For example, in the Paint Control dataset, 114 test cases executed over 312 CI cycles produced 25,594 verdicts. Similarly, the IOF\ROL datasets accumulated their verdict counts based on the number of test cases executed per cycle. These verdicts evaluate fault detection performance, as the proposed model prioritizes test cases with a higher likelihood of producing failed verdicts. The “Failed” column indicates the proportion of these verdicts that resulted in failure, thereby reflecting the fault-proneness of each dataset.

The aforementioned datasets are all verified and categorized based on implementation duration, time update duration and most recent outcome. It is important to note that these datasets include only offer past execution details of TC. Since, the Paint Control dataset contains only 114 test cases, which is too small to represent the scalability challenges of real-world regression testing. Such a limited dataset risks overfitting, provides less fault diversity and reduces statistical reliability. Therefore, it is useful for preliminary evaluation and results on Paint Control must be interpreted cautiously validated against larger datasets such as IOF/ROL and GSDTSR.

4.2 Performance Evaluation Metrics

In order to efficient of the proposed DeepGRP model, it is compared with the existing algorithms like LogTCP [24], TCP-Net++ [26], Actgraph [27] and TCP-EAE [28]. The proposed and existing models were executed in Python 3.7.8 using the dataset illustrated in section 4.1. Table 2. depicts the hyperparameter for the proposed model.

Table 2. Hyperparameter Settings Models Hyperparameters Values
Table 2. Hyperparameter Settings Models  Hyperparameters  Values
Figure

The metrics exploited to evaluate proposed and existing models are provided below.

Average percentage of faults detected (APFD)

It influences the TS's speed at identifying errors. APFD determines the weighted mean of the mistakes found throughout TS run.

𝑇𝐹1+ 𝑇𝐹2+⋯+𝑇𝐹𝑚 1 2𝑛)                                                                                                       (14) 𝐴𝑃𝐹𝐷 = 1 – ( 𝑁𝑀 +

In Eq. (14), 𝑚 is the aggregate number of errors found in the program for TC execution and 𝑇 is the resultant TS. 𝑛 is the total TC number, 𝑇𝑓1, 𝑇𝑓2, … . , 𝑇𝑓𝑚 are the first 𝑇 points that disclose the 𝑚.

Average percentage of faults detected per cost (𝑨𝑷𝑭𝑫𝒄)

In order to execute TS 𝑇′, the usual percentage of cost-effective TCs is compared to the typical percentage of fault severity in order to get the weighted average proportion of mistakes.

∑ (𝑓𝑖∗(∑ 𝑡𝑗−1 2𝑡𝑇𝐹𝑖 𝑛 𝑗=𝑇𝐹𝑖 )) 𝑚 𝑖=1 ∑ 𝑡𝑗∗ 𝑛 𝑗=𝑇𝐹𝑖 ∑ (𝑓𝑖) 𝑚 𝑖=1 (15) 𝐴𝑃𝐹𝐷𝑐=

In Eq. (15), 𝑇 represents the TS including 𝑛 TCs with overheads 𝑡1, 𝑡2, … … , 𝑡𝑛 . 𝐹 be the set of 𝑚 mistakes revealed in 𝑇; the degrees of those mistakes 𝑓1, 𝑓2, ….., 𝑓𝑚. 𝑇𝐹𝑖 as the initial TC that identifies the issue 𝑖 is 𝑇𝐹𝑖.

Normalized Average Percentage of Faults Detected (NAPFD)

It integrates both the fault data and time detection to calculate TCP performance. It is signified in Eq. (16),

𝑇𝐹1+ 𝑇𝐹2+⋯+𝑇𝐹𝑚) 𝑝 2𝑛)                                                                                              (16) 𝑁𝐴𝑃𝐹𝐷 = 𝑝 – ( 𝑚∗𝑛 +

In Eq. (16), 𝑝 is calculated by dividing the identified faults to the prioritized TS of aggregate number of detected error. 𝑇𝐹𝑖 is the number of the TC in which fault 𝑖 is determined by testing the significance order. When no error is determined, 𝑇𝐹𝑖 is set to 0.

Average Percentage of Faults Detected (𝑨𝑷𝑭𝑫𝒂)

𝐴𝑃𝐹𝐷𝑎 is an enhanced version of 𝐴𝑃𝐹𝐷𝑐 which constitutes TC process for the testing task. The 𝐴𝑃𝐹𝐷𝑎 notation is provided in Eq. (17),

∑ 𝐶𝑗 𝑇𝐹𝑖 𝑗=1 𝑚∑ 𝐶𝑗 𝑛 𝑗=1 𝑚 𝑖=1 ) ∗100%                                                                                                 (17) 𝐴𝑃𝐹𝐷𝑎= (1 −∑

In above Eq. (17), 𝐶𝑗 is the cost obtained in the 𝑗𝑡ℎ TC.

Time-aware average percent of faults detected (𝑨𝑷𝑭𝑫𝑻𝑨)

It is the particular case of 𝐴𝑃𝐹𝐷𝑐 for sample instances with same test costs and mistake challenges.

∑ (∑ 𝐶𝑗−1 2𝐶𝑇𝐹𝑖 𝑛 𝑗=𝑇𝐹𝑖 )) 𝑚 𝑖=1 ∑ 𝐶𝑗∗ 𝑛 𝑗=1 |𝜎| (18) 𝐴𝑃𝐹𝐷𝑇𝐴=

In Eq. (18), 𝜎 is constant among the first and last TCs in the whole TS.

Root mean square error (RMSE)

It determines the variation among the observed and estimated NAPFD values. Using the dissimilar value calculated for 𝑇′ in a CI repetition specified by learning model (𝑢̂𝐶), the adjoint estimated value 𝑇′ is used by RL model.

𝑅𝑀𝑆𝐸 (𝛹) = √∑ (𝑢̂𝑞−𝑢𝑞 ) 𝐶𝐼 𝑞 𝐶𝐼 (19)

In Eq. (19), 𝐶𝐼 is the total system cycles. Lesser RMSE determines more precise results. 𝑢̂𝑞 defines the best prioritizing identified by RL for an ideal priority task.

Figure 3. demonstrates the APFD analysis for suggested and existing models on different TC dataset. DeepGRP models clearly show more efficiency than conventional models for TCP on large test sets. For instance, APFD value of DeepGRP is 46.77%, 35.82%, 26.39%, 16.67% and 7.06% higher than the LogTCP, TCP-Net++, Actgraph, TCP-EAE and DeepRP models respectively on GSDTSR dataset. Figure 4. shows that the suggested model attained higher 𝐴𝑃𝐹𝐷𝑐 than other methods. For example, 𝐴𝑃𝐹𝐷𝑐 of DeepGRP is 60%, 37.5%, 24.71%, 15.79% and 6.02% greater than the LogTCP, TCP-Net++, Actgraph, TCP-EAE and DeepRP models respectively on Paint Control dataset.

Figure 3. APFD Evaluation for Proposed and Existing Models
Figure 3. APFD Evaluation for Proposed and Existing Models
Figure 4. 𝐴𝑃𝐹𝐷𝑐 Analysis for various methods
Figure 4. 𝐴𝑃𝐹𝐷𝑐 Analysis for various methods
Figure 6. 𝐴𝑃𝐹𝐷𝑎 Analysis for Suggested and Traditional Models
Figure 6. 𝐴𝑃𝐹𝐷𝑎 Analysis for Suggested and Traditional Models
Figure 5. Evaluation of NAPFD Metric for different models
Figure 5. Evaluation of NAPFD Metric for different models
Figure 5. shows on many TC datasets the NAPFD assessment of produced and accessible models. For instances, NAPFD value of DeepGRP is 54.24%, 37.88%, 26.39%, 18.18% and 8.33% higher than
Figure 5. shows on many TC datasets the NAPFD assessment of produced and accessible models. For instances, NAPFD value of DeepGRP is 54.24%, 37.88%, 26.39%, 18.18% and 8.33% higher than

The LogTCP, TCP-Net++, Actgraph, TCP-EAE and DeepRP models on IOF/ROL dataset correspondingly.Figure 6. shows evaluation of 𝐴𝑃𝐹𝐷𝑎 of developed and classical methods on different dataset. 𝐴𝑃𝐹𝐷𝑎 value of DeepGRP is 55.17%, 38.46%, 25%, 15.38% and 8.43% higher than the LogTCP, TCP-Net++, Actgraph, TCP-EAE and DeepRP models respectively on GSDTSR dataset. In both the comparison, the proposed DeepGRP models achieves high NAPFD and 𝐴𝑃𝐹𝐷𝑎 results than other existing models.

Figure 7. 𝐴𝑃𝐹𝐷𝑇𝐴 Evaluation for Proposed and Existing models
Figure 7. 𝐴𝑃𝐹𝐷𝑇𝐴 Evaluation for Proposed and Existing models

Using a variety of TC datasets, Figure 7. Compare values for traditional and proposed models. es the𝐴𝑃𝐹𝐷𝑇𝐴This examination demonstrates that, in comparison to other TCP models, DeepGRP attains a high 𝐴𝑃𝐹𝐷𝑇𝐴. On the Paint Control dataset, for example, the 𝐴𝑃𝐹𝐷𝑇𝐴 of DeepGRP is 68.63% greater than that of LogTCP, 45.28% higher than TCP-Net++, 32.31% higher than Actgraph, 19.44% higher than TCP-EAE, and 8.86% higher than DeepRP.

Figure 8. RMSE Evaluation for Proposed and Existing models
Figure 8. RMSE Evaluation for Proposed and Existing models

The RMSE assessment of both current and proposed models on various TC datasets is shown in Figure 8. On the IOF/ROL dataset, DeepGRP outperforms the other models with RMSE values that are 49.52%, 43.94%, 34.55%, 25.52%, and 10.75% higher, respectively. Based on these results, it is clear that the proposed model outperforms more traditional approaches in terms of RMSE values.

Table 3. P-value Analysis for Proposed and Existing Models
Table 3. P-value Analysis for Proposed and Existing Models

Table 3. presents the p-value analysis for the proposed and existing models om all datasets. In this analysis, the proposed model provides lower p-values compared to TCP-Net++, Actgraph, DeepRP models. This indicates that the DeepGRP model has statistically stronger evidence against the null hypothesis, thereby confirming the reliability of its improvements in TCP effectiveness. However, han LogTCP produces even smaller p-values on these datasets. This is largely due to its simplified log-based heuristics, which make statistical variations easier to capture in limited or less complex datasets. Despite this, such heuristics lack robustness and generalization leading to weaker performance on larger RT scenarios. By contrast, DeepGRP leverages graph-based activation features and message passing to consistently deliver statistically significant improvements across varied datasets, balancing both accuracy and scalability.

Table 4. Inference Time (s) for Proposed and Existing Models
Table 4. Inference Time (s) for Proposed and Existing Models

Table 4. depicts the inference time of existing and proposed models on all datasets. In this analysis, the proposed model provides lower inference time compared to TCP-Net++, Actgraph, DeepRP models. However, slightly higher inference time than LogTCP. This difference arises because LogTCP performs minimal log pre-analysis with almost no complex feature extraction, making it extremely fast but also shallow in analysis. DeepGRP, on the other hand, incurs a modest computational overhead due to graph construction and message passing, but this cost enables it to capture higher-order dependencies among neurons. Importantly, the inference time of DeepGRP remains within real-time CI constraints, and its significant gains in APFD, NAPFD, and RMSE far outweigh this marginal overhead. Thus, DeepGRP provides an effective balance between fault detection capability and runtime efficiency for practical deployment in CI environments.

5. Conclusion

This framework suggests using DeepGRP to enhance TC characteristics for unlabelled training TCs for efficient TCP in RT. The DG can extract graph-level neural dynamic features by seeing DNN neurons as nodes and the proximity matrix as the association link among nodes. TCP may benefit from the consolidated node attributes including structural details and adjacent node data. By converting model activations into spatial associations of neurons, the DG solves restrictions depending on model stimulation techniques. Learning single cases assist to prioritize many TCs, so it is more generic than model activation-based approaches. Experimental results show DeepGRP can enhance TCP for large size test suits compared to other standard algorithms.

Funding: This research received no external funding

Conflicts of Interest: The authors declare no conflict of interest.

References

Figure
Figure