A software testing knowledge association analysis method based on EPOST field ontology modeling
By constructing a software testing knowledge platform using domain ontology modeling methods, the problems of knowledge updating and cross-reuse in software testing are solved, and unified knowledge management and efficient correlation analysis are achieved, making it suitable for multi-level software testing needs.
Patent Information
- Application Number
- CN202311604489.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-11-28
AI Technical Summary
Existing technologies struggle to quickly update and integrate massive amounts of external technical knowledge, posing challenges to traditional software testing. Furthermore, testing experts suffer from significant knowledge overlap and reuse, and there is a lack of a unified knowledge platform and efficient testing methods.
By adopting a domain ontology-based modeling approach, a unified software testing knowledge platform is constructed through information acquisition, archiving, knowledge ontology modeling, preprocessing, document annotation, knowledge network establishment, self-organization, and analysis, enabling knowledge association analysis and recommendation.
This enables software testing organizations with different business types to build comprehensive knowledge models, ensuring unified management and display of knowledge, and improving the efficiency of correlation analysis of test knowledge and the relevance of results.
Smart Images

Figure CN117762780B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software testing knowledge engineering, specifically to a software testing knowledge association analysis method based on EPOST domain ontology modeling. Background Technology
[0002] As software systems become increasingly complex and domain knowledge grows explosively, testers struggle to quickly update and connect massive amounts of external technical knowledge within projects. This poses a significant challenge to traditional software testing. Furthermore, software testing typically requires mastering multiple levels of knowledge, including software requirements, design, code implementation, runtime / test environment setup, and common defect patterns, with overlapping and reusable knowledge. Test experts, however, usually specialize in only certain specific knowledge aspects. Therefore, building a unified knowledge platform to aggregate expert knowledge is crucial for breaking down the barriers of testing experience. The construction of this knowledge platform must consider coverage of business requirements, ensuring the sufficiency of test design, the consistency and executability of test case environment knowledge, and the correlation analysis of typical common defect patterns to ensure testing efficiency and relevance. Therefore, the construction of unified test knowledge urgently requires a hierarchical conceptual modeling model, upon which methods for updating, maintaining, and analyzing correlations can be developed. Summary of the Invention
[0003] The purpose of this invention is to provide a method based on A software testing knowledge association analysis method based on domain ontology modeling is proposed to address the problems mentioned in the background.
[0004] To achieve the above objectives, the present invention provides the following technical solution:
[0005] A type based on The software testing knowledge association analysis method based on domain ontology modeling includes the following steps:
[0006] Step S1, Information Acquisition and Archiving: Acquire various documents and materials in the field of software testing, as well as data record information carriers of the testing process, and archive and classify them. After the processing is completed, proceed to step S2.
[0007] Step S2, Knowledge Ontology Modeling: Based on the content of the information carrier, according to... Knowledge elements covered by the model as well as Five types of knowledge ontology modeling were carried out.
[0008] Step S3, Information carrier preprocessing and segmentation: The coarse document set of information carriers obtained in step S1 is preprocessed and then segmented into a training set and a set to be processed;
[0009] Step S4, Document annotation: Annotate the documents in the training set, train the knowledge extraction model, and after multiple rounds of optimization, proceed to step S5;
[0010] Step S5, establish an instantiated knowledge network: import the documents to be processed into the model for knowledge recognition and extraction, automatically convert the output knowledge data to the correct format, and input it into the system. A relational database for model mapping is used to establish an instantiated knowledge network.
[0011] Step S6, Organize and refresh: Perform self-organization and refresh of cluster knowledge in the knowledge network;
[0012] Step S7, Analysis and Results: Provide users with input analysis parameters, and complete the chain-like correlation analysis of knowledge and output knowledge items according to the parameter requirements.
[0013] Furthermore, in step S1, based on the value data involved in software testing, the knowledge elements involved in the domain knowledge are identified, wherein the knowledge elements are specifically divided into different categories:
[0014] The structure, function, size, modules, and test requirement breakdown of the software object under test;
[0015] The testing techniques, methods, and experience used in the test execution process, as well as knowledge of testing tools, testing environments, and test scripts;
[0016] Work products generated along with testing activities include test plans, test cases, test summaries, and software defect reports;
[0017] Failure modes, typical defects, and vulnerability information generated from software failure analysis based on test results;
[0018] The testing activities rely on system standards, organizational management, personnel information, and other related content.
[0019] Furthermore, in step S2, the framework prototype of the knowledge ontology is formed by enriching and expanding the entities, attributes and relationships of the knowledge elements to create a hierarchical structure of concepts with relationships. This serves as an expression structure for the semantics of knowledge in the assessment domain, supporting better knowledge organization and representation of test data and information. As the ontology construction progresses and develops, it supports the modification, addition and deletion of the concepts and relationships established in the framework prototype.
[0020] Furthermore, in step S3, the existing coarse document data is processed to extract the knowledge contained in the data, which is divided into entity and attribute extraction and relation mapping. Since the evaluation knowledge entity and attribute information has strong domain characteristics, mainly manifested in the large number of specialized terms and specific names, it is necessary to extract entities and attributes through a trained recognition model. Relation mapping is the process of obtaining the association relationship of knowledge units and is the basis for instantiating the knowledge model. Through agreed rules and intelligent models, the automatic extraction of entities and attributes and the automatic mapping of ontology relations are realized.
[0021] Furthermore, in step S4, the software testing field lacks open-source datasets related to testing knowledge, and the training text corpus is obtained and organized by ourselves. Therefore, named entities need to be manually labeled. The manual labeling is done by using a simple and efficient BIO labeling method to label the corpus. Then, the segmented and labeled text and the labeled text are used as the training dataset for the recognition model.
[0022] Furthermore, in step S5, the manager, based on the knowledge network constructed from the extracted data, performs deduplication and disambiguation, and conflict detection on all knowledge units in the network through a traversal algorithm, using customized software features. Defect Label Time-limited label The triplet rule enables consistent updates of the knowledge network and maintains the database according to the latest time-sensitive identifier;
[0023] Furthermore, in step S5, a three-step method is used to generate failure modes in the knowledge network:
[0024] Step 1: Extracting RDF triples of software failure factors along the defect association path;
[0025] Step 2: Bottom-up semi-automatic classification based on RDF type and set scores;
[0026] Step 3, based on The semantic similarity calculation with the dictionary of the test domain ultimately forms knowledge clusters and automatically completes relation tags. The three-step method can also be used to generate other specified types of knowledge patterns, which are preset and entered into the knowledge network.
[0027] Furthermore, in step S6, a relevance matrix is designed based on the data information entries in the knowledge network. Energy Efficiency Matrix This represents the relationships between entities, attributes, relational chains, and input test feature words in a knowledge network, integrates knowledge network information into a multi-matrix factorization model, and correlates it with a defined scoring matrix. The similarity of the matrix model is calculated to obtain high prediction accuracy and recommendation effect.
[0028] Furthermore, in step S7, the user sets their top k most critical knowledge items instead of all of them, and then sorts the candidate knowledge items from high to low according to the set relevance prediction weights, and constructs... Recommended list.
[0029] Furthermore, in step S2, the knowledge ontology The model is based on by The five types of elements are designed as a hierarchical conceptual structure with relationships.
[0030] Compared with the prior art, the beneficial effects of the present invention are:
[0031] 1. This invention is applicable to software testing organizations of different business types, and provides a method for constructing a software testing knowledge model according to its own needs. This method achieves the most comprehensive coverage of the domain knowledge structure and realizes the purpose of multi-level knowledge aggregation.
[0032] 2. This invention is suitable for testing organizations to extract knowledge and construct instantiated knowledge networks according to a set knowledge structure, so as to ensure unified management and display of software testing knowledge;
[0033] 3. This invention is suitable for testing organizations to analyze and utilize various types of knowledge in knowledge networks, so as to ensure the effectiveness of correlation analysis and result push of software testing knowledge. Attached Figure Description
[0034] Figure 1 For the present invention A diagram illustrating the relationship between the domain ontology model and software testing knowledge elements;
[0035] Figure 2 Based on the present invention Flowchart of software evaluation knowledge network construction method for domain ontology modeling;
[0036] Figure 3 A flowchart is provided for the software testing knowledge association analysis method of the present invention. Detailed Implementation
[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0038] This invention provides a technical solution: a method based on The software testing knowledge association analysis method based on domain ontology modeling includes the following steps:
[0039] Step S1, Information Acquisition and Archiving: Acquire various documents and materials in the field of software testing, as well as data record information carriers of the testing process, and archive and classify them. After the processing is completed, proceed to step S2.
[0040] Step S2, Knowledge Ontology Modeling: Based on the content of the information carrier, and according to the knowledge elements covered by the EPOST model... as well as Five types of knowledge ontology modeling were carried out.
[0041] Step S3, Information carrier preprocessing and segmentation: The coarse document set of information carriers obtained in step S1 is preprocessed and then segmented into a training set and a set to be processed;
[0042] Step S4, Document annotation: Annotate the documents in the training set, train the knowledge extraction model, and after multiple rounds of optimization, proceed to step S5;
[0043] Step S5, establish an instantiated knowledge network: import the documents to be processed into the model for knowledge recognition and extraction, automatically convert the output knowledge data to the correct format, and input it into the system. A relational database for model mapping is used to establish an instantiated knowledge network.
[0044] Step S6, Organize and refresh: Perform self-organization and refresh of cluster knowledge in the knowledge network;
[0045] Step S7, Analysis and Results: Provide users with input analysis parameters, and complete the chain-like correlation analysis of knowledge and output knowledge items according to the parameter requirements;
[0046] In this embodiment, the present invention integrates various types of software testing knowledge elements into a unified domain ontology knowledge model. Based on this model, the standardization and consistency of knowledge extraction from the test documentation are ensured—that is, the process of extracting data information into a knowledge network. Furthermore, a method for real-time updating and maintaining the knowledge network according to triplet rules is designed, thus proposing a knowledge analysis method based on time-sensitive knowledge. Finally, through knowledge normalization modeling, knowledge network instantiation, and knowledge analysis and recommendation algorithms, the knowledge empowerment level of test requirement analysis, test case design, and result judgment is effectively improved.
[0047] A type based on The specific methodology for knowledge association analysis in software testing based on domain ontology modeling is as follows:
[0048] Test knowledge elements: Based on the value data involved in software testing, identify the knowledge elements involved in the domain knowledge. These knowledge elements are specifically categorized as follows: The structure, function, size, modules, and test requirement breakdown of the software object under test; The testing techniques, methods, and experience used in the test execution process, as well as knowledge of testing tools, testing environments, and test scripts; Work products generated along with testing activities include test plans, test cases, test summaries, and software defect reports; Failure modes, typical defects, and vulnerability information generated from software failure analysis based on test results; The testing activities rely on system standards, organizational management, personnel information, and other related content.
[0049] Testing the knowledge ontology model: Knowledge Ontology The model is based on
[0050] as well as The five types of elements are designed as a hierarchical conceptual structure with relationships. The framework prototype of the knowledge ontology is formed by enriching and expanding the entities, attributes and relationships of the knowledge elements to form a hierarchical conceptual structure with relationships. This serves as an expression structure for the semantics of knowledge in the assessment domain, so as to support the better organization and representation of test data and information. As the ontology construction progresses and develops, it supports the modification, addition and deletion of the concepts and relationships established in the framework prototype.
[0051] Cluster analysis:
[0052] Algorithm: This is used to divide data points into different categories. The formula for updating cluster centers is:
[0053] in, Indicates the first A sample set, Indicates the first in the cluster A sample vector, Represents a set The sample size, Indicates the first A sample set;
[0054] Semantic similarity calculation: using cosine similarity to represent two vectors and The similarity between texts is used to calculate semantic similarity, and is expressed as follows:
[0055] in, Vector 1 is the vector whose similarity is to be calculated. It is vector 2 whose similarity is to be calculated. It is a vector with vector dot product operation, It is a vector The Euclidean norm, It is a vector The Euclidean norm.
[0056] Test knowledge training and annotation: Existing coarse document data is processed to extract knowledge from the data, divided into entity and attribute extraction and relation mapping. Because the entity and attribute information in the assessment knowledge exhibits strong domain characteristics, mainly manifested in numerous specialized terms and specific names, it is necessary to extract entities and attributes using a trained recognition model. Relation mapping is the process of obtaining the relationships between knowledge units and is the basis for instantiating the knowledge model. Through agreed-upon rules and intelligent models, automated entity and attribute extraction and automated ontology relation mapping are achieved. Entity and attribute extraction:
[0057] Named entity recognition: Using a Conditional Random Field (CRF) model, the goal is to find the most likely sequence of labels, where each label represents whether a word in the input text belongs to a named entity. The objective function of the CRF model is expressed as follows:
[0058]
[0059] in, It is a label sequence. It is the input text. These are model parameters. It is a characteristic function. It is a normalization term. This is a fractional operation identifier, representing the numerator (1) and the denominator (1). Perform division operations. This is the natural exponent operation function.
[0060] Entity relation extraction: Using deep learning models, such as Long Short-Term Memory (LSTM) networks, the goal is to learn a model representing the relationships between entities. The relation extraction model based on LSM networks is expressed as follows:
[0061]
[0062]
[0063] in, yes Input feature vector at any time, yes The time-mapping model outputs the hidden state. yes The time-mapping model outputs the hidden state. It is a Long Short-Term Memory network operator. yes Predict the output result in real time. It is the normalized exponentiation operator. It is the model weight parameter matrix. It is the model bias parameter vector.
[0064] Coarse document knowledge extraction: The software testing field lacks open source datasets related to test knowledge. The training text corpus is obtained and organized by ourselves. Therefore, named entities need to be manually labeled. The manual labeling adopts a simple and efficient BIO labeling method to label the corpus. Then, the segmented and labeled text and the labeled text are used as the training dataset for the recognition model.
[0065] Knowledge network update and maintenance testing: Based on the extracted data, the administrator constructs a knowledge network and uses a traversal algorithm to perform deduplication, disambiguation, and conflict detection on all knowledge units in the network, using custom software features. Defect Label Time-limited label The triplet rule enables consistent updates of the knowledge network and maintains the database according to the latest time-sensitive identifier.
[0066] Knowledge clustering analysis: A three-step method is used to generate failure modes in the knowledge network: Step 1, software failure factors on the defect association path. Triple extraction; Step 2, based on Bottom-up semi-automatic classification based on type and set score; Step 3, based on The semantic similarity calculation with the dictionary of the test domain ultimately forms knowledge clusters and automatically completes relation tags. The three-step method can also be used to generate other specified types of knowledge patterns, which are preset and entered into the knowledge network.
[0067] Chain-based correlation calculation: Designing a correlation matrix based on data information items in the knowledge network. Energy Efficiency Matrix This represents the relationships between entities, attributes, relational chains, and input test feature words in a knowledge network, integrates knowledge network information into a multi-matrix factorization model, and correlates it with a defined scoring matrix. The similarity of the matrix model is calculated to obtain high prediction accuracy and recommendation effect.
[0068] Association analysis results push: Users set their top k most critical knowledge items, rather than all of them. Then, according to the set association prediction weights, the candidate knowledge items are sorted from high to low, and a [data structure / database] is constructed. Recommended list;
[0069] Weighted sorting algorithm: The weighted sorting algorithm can be represented by the following iterative method:
[0070]
[0071] in, It is a node association weight operation operator. It is the target knowledge node. Is there a pointer? Neighbor knowledge nodes with linked relationships It is the damping coefficient. It is the summation operator. It points to a node The set of incoming edge nodes, It is a node The degree of departure;
[0072] The knowledge network construction employs a highly automated corpus preprocessing-knowledge extraction-update maintenance process, utilizing test knowledge training and annotation, coarse document knowledge extraction, and test knowledge network new dimension path methods. The knowledge push results are derived from data fusion calculations, including knowledge cluster labels generated by knowledge clustering analysis and predicted knowledge chain correlation values generated in chain correlation calculations. The ranking of the pushed knowledge items and... The list output is related to the correlation prediction weight value set in the correlation analysis results push;
[0073] like Figure 1 As shown, the specific relationship between the ontology model and software testing knowledge elements is as follows:
[0074] In this embodiment, the modeling path graph contains start nodes, end nodes, process nodes, and association keys between nodes. Start node 101 identifies the beginning of ontology model construction. A new assessment knowledge ontology model always starts with conceptual design, and its state is often only a coarse-grained knowledge structure representation. A model can only have one start node. Main node 102 represents the relationships between the test knowledge ontology model and... Refining the substructures related to management knowledge elements, such as system standards, organizational management, and personnel information, is a process node that further clarifies the names, categories, and attributes of fine-grained knowledge entities. At this process node, it is also necessary to complete... Mapping related to the testing laboratory's technology / personnel / equipment resources, thereby establishing knowledge associations with subsequent project nodes / sub-nodes. Related node 103 is a mapping of the testing knowledge ontology model related to... The process nodes for refining the substructures related to the knowledge elements of the test project, nodes 104, 105, and 106, are specific to the test knowledge ontology model. Test methods Test product documentation, The process nodes for refining substructures related to knowledge elements such as defects and vulnerabilities include node 104, which also requires building the association keys between test projects, test methods and management, and resource substructures in the model. The end node 107 is used to mark the end of the test knowledge ontology model construction, which means that the entire process from conceptual design to the completion of all substructures of the model has entered the final state. A model can only have one end node.
[0075] like Figure 2 As shown, in this embodiment, the method for constructing a software evaluation knowledge network specifically includes the following steps:
[0076] Step 201: Start the program and import the original rough document set in the assessment field;
[0077] Step 202: Identify rough document information and perform data cleaning;
[0078] Step 203: Perform regular timeliness checks, conflict checks, and correctness checks on the cleaned documents to determine whether they meet the requirements for proceeding to the next step.
[0079] Step 204: If the detection in step 203 fails, prompt the user to check and modify the cleaning rules, and return to step 202;
[0080] Step 205: If the detection in step 203 passes, the document set obtained from cleaning is further segmented, and a representative part is extracted from the entire set as the training set, while the remaining part is left to be processed.
[0081] Step 206: Analyze the training set obtained in step 205 according to... Document annotation is performed in a way that indicates The tags to be extracted from the model, such as entities and attributes: B - tags starting with the prefix indicate the first index word of the entity / attribute; I - tags starting with the prefix indicate the middle and end content of the entity;
[0082] Annotations starting with the 'O' prefix indicate non-entity / attribute;
[0083] After the annotation is completed, the training sample construction is finished;
[0084] Step 207: Based on the training samples obtained in step 206, train a knowledge extraction model to achieve the hitting and extraction of knowledge in semi-structured documents;
[0085] Step 208: Check the accuracy and recall of the knowledge extraction model. If the requirements are not met, proceed to step 209 to optimize the model; if the requirements are met, proceed to step 210.
[0086] Step 209: Perform multiple rounds of model optimization using methods such as parameter tuning and adjusting training samples;
[0087] Step 210: Import the set to be processed and obtain knowledge entries through batch processing using the model.
[0088] Step 211: Automatically convert the knowledge data recognized by the intelligent model into a new format and input it into the relational database mapped by the EPOST model, while manually completing and verifying it.
[0089] Step 212: Link the database to the knowledge platform tool;
[0090] Step 212: In the knowledge platform tool, according to the knowledge organization and display requirements of the EPOST model, initialize the knowledge network and establish a knowledge index for analysis and retrieval.
[0091] like Figure 3 As shown in the figure, the design process of the software testing knowledge association analysis method in this embodiment is as follows:
[0092] Step 301: According to the custom software features Defect Label Time-limited label The triplet rule enables consistent updates of the knowledge network and yields a local knowledge network subgraph.
[0093] Step 302: Determine whether the knowledge network subgraph has completed self-organization. If so, proceed to step 312 and directly enter the user usage steps of knowledge analysis and recommendation. Otherwise, proceed to steps 303-311.
[0094] Step 303: Traverse the knowledge network subgraph starting from high-priority entities and attributes according to the knowledge network subgraph traversal algorithm, while simultaneously executing steps 304, 305, and 306 in parallel;
[0095] Step 304: Based on the various software characteristics in the subgraph, collect past knowledge chain patterns, such as failure modes, and summarize several common types to extract high-value association paths (RDF) from the knowledge network subgraph;
[0096] The virtual nodes derived from the Bi-LSTM+CRF model for entity nodes at each layer on the associated path are uniformly represented as a set of RDF triples <Attribute, Class, Content>.
[0097] By using the "Content" field of the RDF triples derived from entity nodes at different levels as the head entity h and the tail entity t respectively, and predicting the relation vector r, a new set of triples (h, r, t) is constructed. The relation vector r mainly includes causality, transmission, influence and composition.
[0098] Step 305: For each type, construct a corresponding dictionary containing stop words and domain keywords;
[0099] Step 306: In the dictionary, assign different scores based on the word frequency and part of speech of the keywords;
[0100] Step 307: First, use the NLPIR word segmentation tool to segment the text. Then, use the dedicated stop word list built in step 305 to filter the segmented results. This method implements short text clustering and extracts cluster labels. During the clustering process, an improved [method / mechanism] is used. A coefficient is used to represent text similarity in the calculation. When calculating coefficients, combining the constructed dictionary and the extracted path RDF improves the accuracy of text similarity calculation;
[0101] Step 308: Determine whether the cluster tags extracted in step 307 exist in the current knowledge network. If they exist, proceed to step 309; otherwise, proceed to step 310.
[0102] Step 309: Merge the extracted clusters and knowledge content into the corresponding knowledge clusters;
[0103] Step 310: Create a new knowledge cluster, and merge the currently extracted clusters and knowledge content into the new cluster;
[0104] Step 311: Update the current knowledge network;
[0105] Step 312: Open the tool parameter input interface, input the knowledge analysis parameters, including natural language short text, document, etc. Values, etc., read in parameters;
[0106] Step 313: Obtain knowledge analysis feature words from the natural semantic text document in the input parameters;
[0107] Step 314: Obtain from the input parameters value;
[0108] Step 315: Perform chain-like association calculations between the various clusters in the knowledge network and the knowledge analysis parameters:
[0109] Design a relevance matrix based on the cluster information entries in the knowledge network. Energy Efficiency Matrix It represents the relationships between entities, attributes, relational chains, and input test feature words in a knowledge network;
[0110] The current knowledge network is integrated into a multi-matrix factorization model, and then combined with a defined scoring matrix. The similarity of the matrix models is calculated;
[0111] Obtain chain correlation calculation results with high prediction accuracy, and output the strong correlation results as knowledge entries;
[0112] Step 316: Determine if the total number of generated entries is less than or equal to... If the value passes the judgment, proceed to step 318; otherwise, proceed to step 317. Step 317: Import the generated entries into the knowledge priority sorting algorithm and output the first... One knowledge item;
[0113] Step 318: Output not exceeding Each knowledge analysis and recommended item;
[0114] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.
[0115] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A software testing knowledge association analysis method based on EPOST domain ontology modeling, characterized in that, Includes the following steps: Step S1, Information Acquisition and Archiving: Acquire various documents and materials in the field of software testing, as well as data record information carriers of the testing process, and archive and classify them. After the processing is completed, proceed to step S2. Step S2, Knowledge Ontology Modeling: Based on the information carrier content, knowledge ontology modeling is carried out according to the five types of knowledge elements covered by the EPOST model: EPO-SUT, EPO-MED, EPO-REP, EPO-WEAK&VUL, and EPO-MAG. Based on the value data involved in software testing, the knowledge elements involved in the domain knowledge are identified. Specifically, the knowledge elements are categorized as follows: EPO-SUT: The structure, function, scale, modules, and test requirement decomposition of the software object under test; EPO-MED: The testing techniques, methods, and experience used in the test execution process, as well as knowledge of testing tools, testing environments, and test scripts; EPO-REP: Work products generated along with testing activities, such as test plans, test cases, test summaries, and software defect reports; EPO-WEAK&VUL: Failure modes, typical defects, and vulnerability information generated from software failure analysis based on test results; EPO-MAG: Relevant content such as system standards, organizational management, and personnel information upon which testing activities depend. Step S3, Information carrier preprocessing and segmentation: The coarse document set of information carriers obtained in step S1 is preprocessed and then segmented into a training set and a set to be processed; The existing coarse document data is processed to extract the knowledge contained in the data, which is divided into entity and attribute extraction and relation mapping. Since the entity and attribute information of the assessment knowledge has strong domain characteristics, mainly manifested in the large number of specialized terms and specific names, it is necessary to extract entities and attributes through trained recognition models. Relation mapping is the process of obtaining the relationship between knowledge units and is the basis for instantiating the knowledge model. Through agreed rules and intelligent models, the automatic extraction of entities and attributes and the automatic mapping of ontology relations are realized. Entity and attribute extraction: Named entity recognition: Using a Conditional Random Field (CRF) model, the goal is to find the most likely sequence of labels, where each label represents whether a word in the input text belongs to a named entity. The objective function of the CRF model is expressed as follows: in, It is a label sequence. It is the input text. These are model parameters. It is a characteristic function. It is a normalization term. This is a fractional operation identifier, representing the numerator (1) and the denominator (1). Perform division operations. This is the natural exponent operation function; Entity relation extraction: Using deep learning models, such as Long Short-Term Memory (LSTM) networks, the goal is to learn a model representing the relationships between entities. The relation extraction model based on LSM networks is expressed as follows: in, yes Input feature vector at any time, yes The time-mapping model outputs the hidden state. yes The time-mapping model outputs the hidden state. It is a Long Short-Term Memory network operator. yes Predict the output result in real time. It is the normalized exponentiation operator. It is the model weight parameter matrix. It is the model bias parameter vector; Step S4, Document annotation: Annotate the documents in the training set, train the knowledge extraction model, and after multiple rounds of optimization, proceed to step S5; Step S5: Establish an instantiated knowledge network: Import the documents to be processed into the model for knowledge recognition and extraction, automatically convert the output knowledge data into a format, and enter it into the relational database mapped by the EPOST model to establish an instantiated knowledge network. Step S6, Organize and refresh: Perform self-organization and refresh of cluster knowledge in the knowledge network; Step S7, Analysis and Results: Provide users with input analysis parameters, and complete the chain-like correlation analysis of knowledge and output knowledge items according to the parameter requirements.
2. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S2, the framework prototype of the knowledge ontology is formed by enriching and expanding the entities, attributes and relationships of the knowledge elements to form a hierarchical structure of concepts with relationships. This serves as an expression structure for the semantics of knowledge in the evaluation domain, so as to support the better organization and representation of test data and information. As the ontology construction progresses and develops, it supports the modification, addition and deletion of the concepts and relationships established in the framework prototype. Cluster analysis: Algorithm: This is used to divide data points into different categories. The formula for updating cluster centers is: in, Indicates the first A sample set, Indicates the first in the cluster A sample vector, Represents a set The sample size, Indicates the first A sample set; Semantic similarity calculation: using cosine similarity to represent two vectors and The similarity between texts is used to calculate semantic similarity, and is expressed as follows: in, Vector 1 is the vector whose similarity is to be calculated. It is vector 2 whose similarity is to be calculated. It is a vector with vector dot product operation, It is a vector The Euclidean norm, It is a vector The Euclidean norm.
3. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S4, the software testing field lacks open-source datasets related to testing knowledge, and the training text corpus is obtained and organized by ourselves. Therefore, named entities need to be manually labeled. The manual labeling is done by using a simple and efficient BIO labeling method to label the corpus. Then, the segmented and labeled text and the labeled text are used as the training dataset for the recognition model.
4. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S5, a traversal algorithm is used to perform deduplication, disambiguation, and conflict detection on all knowledge units in the network. The backend operation and maintenance manager uses the knowledge network constructed from the extracted data and a custom triple rule of software feature, defect label, and time stamp to achieve consistent updates of the knowledge network and maintain the library according to the latest time stamp.
5. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S5, a three-step method is used to generate failure modes in the knowledge network: Step 1: Extracting RDF triples of software failure factors along the defect association path; Step 2: Bottom-up semi-automatic classification based on RDF type and set scores; Step 3: Based on K-means and the semantic similarity calculation of the test domain dictionary, knowledge clusters are finally formed and relation labels are automatically completed. The three-step method can also be used to generate other specified types of knowledge patterns, which are preset and entered into the knowledge network.
6. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S6, based on the data information entries in the knowledge network, a relevance matrix matrix-X and an energy efficiency matrix matrix-Y are designed to represent the relationships between entities, attributes, relationship chains, and input test feature words in the knowledge network. The knowledge network information is integrated into a multi-matrix decomposition model, and the similarity with the matrix model of the set scoring matrix matrix-A is calculated to obtain high prediction accuracy and recommendation effect.
7. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S7, the test service uses users to set their top k most critical knowledge items instead of all of them, and then sorts the candidate knowledge items from high to low according to the set relevance prediction weights, and constructs a Top-k recommendation list. Recommendation system: Weighted sorting algorithm: The weighted sorting algorithm can be represented by the following iterative method: in, It is a node association weight operation operator. It is the target knowledge node. Is there a pointer? Neighbor knowledge nodes with linked relationships It is the damping coefficient. It is the summation operator. It points to a node The set of incoming edge nodes, It is a node The degree of departure; Top-k recommendation list construction: Select the top k most relevant items based on the sorting results.
8. The software testing knowledge association analysis method based on EPOST domain ontology modeling according to claim 1, characterized in that: In step S2, the knowledge ontology EPOST model is designed as a hierarchical conceptual structure with relationships based on five types of elements: EPO-SUT, EPO-MED, EPO-REP, EPO-WEAK&VUL, and EPO-MAG.
Citation Information
Patent Citations
A distributed software fabrication system and process for fabricating business applications
CA2459423A1
Military software defect multi-modal knowledge graph construction method, device and system
CN116860986A
