Knowledge base based ai assisted test design method, apparatus, and storage medium
By identifying modeling methods, extracting structured elements, and calling AI models to retrieve test strategies, the problem of tool and platform disconnect in test design is solved, achieving seamless intelligent auxiliary recommendations and improving the efficiency and accuracy of test design.
Patent Information
- Application Number
- CN202611440892.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-16
- Publication Date
- 2026-11-24
AI Technical Summary
Existing test design support tools are disconnected from test design platforms and business model diagram elements, resulting in low efficiency in test support and reliance on manual operation and platform switching, which cannot meet the needs of efficient test design.
By identifying the modeling method of the business model diagram, determining the scope of elements, extracting structured element information from the test design platform page, constructing prompt words, calling the AI model to retrieve test strategies from the product test strategy knowledge base, and displaying the results on the current page, the system achieves intelligent recommendation without the need for manual questioning or platform switching.
This approach transforms test design assistance from passive manual retrieval to proactive intelligent recommendation, resolving the inefficiency caused by the disconnect between auxiliary tools and model graph elements, and improving the efficiency and accuracy of test design assistance.
Smart Images

Figure CN123157602A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of software test design technology, and in particular to an AI-assisted test design method, device and storage medium based on a knowledge base. Background Technology
[0002] In the software test design process, test designers typically need to utilize information from the enterprise knowledge base to assist in analyzing business models and formulating test strategies. However, most of the assistance methods in this area rely on manual input of prompts, followed by retrieval and matching from the knowledge base. While this approach can provide some assistance, the overall process remains primarily manual, with limited levels of automation.
[0003] The lack of tight integration between auxiliary tools and test design platforms requires test designers to frequently switch between different platforms. This fragmented operation mode disrupts the continuity of design thinking, increases operational steps and time costs, and makes it difficult to improve auxiliary efficiency, thus failing to meet the needs of efficient test design.
[0004] The quality of assistance provided is highly dependent on the test designers' familiarity with the business and the quality of the questions they ask. Designers must first analyze the business and extract questions themselves, and then retrieve answers from the knowledge base. This makes it difficult to control the accuracy and comprehensiveness of the assistance suggestions. For inexperienced personnel or those unfamiliar with the business, the effectiveness of the assistance decreases significantly. Furthermore, the enterprise knowledge base is fragmented, with different departments or centers maintaining their own knowledge bases. Searching requires logging in and switching between them one by one, which is cumbersome and inefficient.
[0005] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The main purpose of this application is to provide an AI-assisted test design method, device, and storage medium based on a knowledge base, aiming to solve the technical problem that existing test design assistance tools are disconnected from test design platforms and business model diagram elements, resulting in low efficiency of assisted testing.
[0007] To achieve the above objectives, this application proposes a knowledge-based AI-assisted test design method, the method comprising: In response to the user's triggering operation on the business model diagram in the test design platform, the modeling method of the business model diagram is identified; The range of elements to be extracted is determined according to the modeling method, and the structured element information of the business model diagram is extracted from the page of the test design platform based on the range of elements. The structured element information includes node type, node description, expected result and function item path. Based on the extracted structured element information, prompt words are constructed, and the corresponding test strategies are retrieved from the product test strategy knowledge base by calling an AI model; The search results are displayed on the current page of the test design platform.
[0008] In one embodiment, the step of determining the range of features to be extracted based on the modeling method includes: If the modeling method is a new feature addition, all structured elements of the business model diagram are determined as the range of elements to be extracted; If the modeling method is a function modification, the modification point description is extracted from the version description information of the business model diagram, and the modification point description is determined as the range of elements to be extracted.
[0009] In one embodiment, the step of extracting the structured element information of the business model diagram based on the element range on the page of the test design platform includes: Locate the node elements of the business model diagram on the test design platform page using a browser plugin; According to the extraction rules corresponding to the modeling method, the attribute information of the node elements is parsed to obtain the structured element information.
[0010] In one embodiment, the step of retrieving the test strategy corresponding to the prompt word from the product test strategy knowledge base by calling an AI model includes: Based on the function entry path, match the function-level strategy from the product testing strategy knowledge base; Based on the node description and the expected result, a product-level strategy is matched from the product testing strategy knowledge base; Based on the configuration type keywords in the node description or the expected result, match the central-level strategy from the product testing strategy knowledge base; The matched functional-level strategy, product-level strategy, and central-level strategy are combined to form the search results.
[0011] In one embodiment, after the step of displaying the search results on the current page of the test design platform, the method further includes: In response to a user's query operation for historical issues in the business model diagram, candidate historical issues are retrieved from the historical typical issue database based on the functional item paths in the structured element information. Based on the details of the candidate historical issues or the reasons for the defects not being found, typical historical issues similar to the scenario in the business model diagram are selected. The current page of the test design platform displays a selection of typical historical questions.
[0012] In one embodiment, prior to the step of responding to a user's triggering operation on the business model diagram in the test design platform, the method further includes: Receive uploaded project requirements documents and detailed design documents; Analyze the project requirements document and the detailed design document to construct comparison prompts; The AI model is invoked to compare the project requirements document and the detailed design document based on the comparison prompts, and the comparison results are obtained. The comparison results include unfulfilled requirements and parts that are inconsistent with the fulfillment of requirements. The comparison results were sent to the test manager via an internal messaging notification tool.
[0013] In one embodiment, after the step of displaying the search results on the current page of the test design platform, the method further includes: Receive knowledge base question-and-answer requests input by users on the test design platform; The departmental knowledge base and the test center knowledge base are retrieved sequentially according to the preset cascading order. If the answer is found in the departmental knowledge base, the answer from the departmental knowledge base is returned. If the departmental knowledge base does not find the answer, the test center knowledge base is invoked to perform the search, and the answer from the test center knowledge base is returned.
[0014] In one embodiment, after the step of displaying the search results on the current page of the test design platform, the method further includes: Receive user feedback on their acceptance of the search results; The search strategy or the rules for constructing the suggestion words are adjusted based on the adoption feedback information; The adjusted search strategy or suggestion word construction rules will be applied to assist in subsequent test design.
[0015] Furthermore, to achieve the above objectives, this application also proposes a knowledge-based AI-assisted test design device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the knowledge-based AI-assisted test design method described above.
[0016] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the knowledge base-based AI-assisted test design method described above.
[0017] One or more technical solutions proposed in this application have at least the following technical effects: The technical solution of this application, in response to a user's triggering operation on a business model diagram on a test design platform, identifies the modeling method of the business model diagram; determines the range of elements to be extracted based on the modeling method, and extracts structured element information of the business model diagram on the test design platform page based on the element range. The structured element information includes node type, node description, expected result, and function item path; constructs prompt words based on the extracted structured element information, and retrieves the test strategy corresponding to the prompt words from the product test strategy knowledge base by calling an AI model; and displays the search results on the current page of the test design platform.
[0018] This application achieves automatic matching of model diagram elements and testing strategies without the need for manual questioning or platform switching. It solves the technical problem of low auxiliary testing effectiveness caused by the disconnect between auxiliary tools, platforms and model diagram elements. It realizes a technical leap in test design assistance from passive manual retrieval to proactive intelligent recommendation, and from isolated platform operation to seamless integration with the design platform. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating the first embodiment of the knowledge-based AI-assisted test design method of this application. Figure 2 This is a detailed schematic diagram of step S30 in one embodiment; Figure 3 This is a flowchart illustrating the second embodiment of the AI-assisted test design method based on a knowledge base according to the present invention. Figure 4 This is a flowchart illustrating the third embodiment of the AI-assisted test design method based on a knowledge base according to the present invention. Figure 5 This is a flowchart illustrating the fourth embodiment of the knowledge-based AI-assisted test design method of the present invention. Figure 6 This is a schematic diagram of the data architecture of the present invention; Figure 7 This is a flowchart illustrating the process of calling an AI model based on prompt words. Figure 8This is a diagram illustrating the knowledge base retrieval process. Figure 9 This is a schematic diagram of the test strategy retrieval process; Figure 10 This is a flowchart illustrating typical historical issues. Figure 11 This is a schematic diagram of the device structure of the hardware operating environment involved in the knowledge base-based AI-assisted test design method in the embodiments of this application.
[0022] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0023] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0024] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0025] In the field of software test design assistance, the main approach follows the technical path of matching knowledge base based on prompt words, which makes it difficult to balance assistance efficiency and quality.
[0026] These types of solutions require manual analysis of business processes and problem extraction before retrieval, or uploading documents to generate use cases. Essentially, they are passive, reactive assistance methods that fail to incorporate real-time design elements of the model diagram into a closed loop. Manual questioning relies on experience, resulting in search results that are disconnected from the design context. Platform switching and fragmented knowledge bases further contribute to inefficiency.
[0027] The core dilemma lies in the disconnect between model elements, auxiliary tools, and design platforms, making it impossible to proactively provide auxiliary suggestions that accurately match the model.
[0028] To address the aforementioned shortcomings, this application proposes an AI-assisted test design method based on a knowledge base. Responding to triggered operations, the method identifies the modeling approach to determine the scope of elements. It extracts structured elements from the platform page, such as node type, node description, expected results, and function item paths. Prompt words are then used to invoke the AI model to retrieve matching strategies from the product test strategy knowledge base and display them on the current page. When adding new elements, all elements are extracted; when modifying, only the modification points are extracted. Hierarchical matching of functional, product, and central-level strategies is possible. This achieves proactive intelligent recommendations without manual questioning or platform switching, solving the technical problem of low auxiliary effectiveness caused by the disconnect between auxiliary tools, platforms, and model graph elements.
[0029] Based on this, embodiments of this application provide an AI-assisted test design method based on a knowledge base, referring to... Figure 1 , Figure 1This is a flowchart illustrating the first embodiment of the knowledge-based AI-assisted test design method of this application. In this embodiment, the knowledge-based AI-assisted test design method includes steps S10 to S40: Step S10: In response to the user's trigger operation on the business model diagram in the test design platform, identify the modeling method of the business model diagram; In this embodiment, during business analysis using the test design platform, when obtaining intelligent assistance for the currently edited business model diagram, a trigger operation is initiated through a preset interaction entry point. This trigger operation can be a user clicking an integrated assistance function button on the test design platform page, or an operation command initiated by the user via a preset gesture or shortcut key. Upon receiving the trigger operation, the test design platform transmits the identification information of the current business model diagram to the backend processing module, which then initiates the subsequent recognition process.
[0030] The modeling method described above for the business model diagram is used to characterize the type of functional change corresponding to the current model diagram, specifically including two scenarios: adding a function and modifying a function. The process of identifying the modeling method can be achieved by reading the attribute information of the business model diagram. In one implementation, the business model diagram is assigned a modeling method tag upon creation, and this tag is stored in the model diagram metadata of the test design platform. After receiving a trigger operation, the backend processing module queries its metadata based on the identification information of the business model diagram, reads the modeling method tag from it, and thus determines the modeling method of the current model diagram. In another implementation, the modeling method can be specified by the user through a selection control when triggering an operation, such as selecting whether the current operation is adding or modifying a function from the options that pop up after clicking the accessibility button. The backend processing module receives the user's selection result and uses it as the modeling method of the current model diagram.
[0031] The purpose of identifying the modeling method is to provide a basis for subsequently determining the scope of element extraction. In the scenario of adding new features, the business model diagram usually contains a complete business logic design, including the new nodes, the flow relationships between nodes, and the expected results description of each node. All structured elements need to be extracted to comprehensively retrieve relevant testing strategies. In the scenario of modifying features, the business model diagram often only adjusts some nodes or version descriptions of existing features. If all elements are still extracted for retrieval, it not only increases the amount of data processing but may also introduce redundant information unrelated to the current modification, affecting the accuracy of the retrieval results. Therefore, identifying the modeling method lays the foundation for subsequent differentiated extraction and accurate retrieval.
[0032] The response to the aforementioned trigger operation and the identification of the modeling method are sequentially related. The system initiates the modeling method identification process only after confirming the receipt of a valid trigger operation. If the trigger operation is not successfully received or the user does not complete the operation confirmation, the system will not execute subsequent steps. This sequential relationship ensures that the initiation of the auxiliary process is actively controlled by the user, avoiding resource waste and operational interference caused by the system automatically executing when the user does not intend to obtain assistance. Through the above method, this step realizes a complete data processing link from user triggering to modeling method identification, providing a clear processing basis for subsequent steps.
[0033] Step S20: Determine the range of elements to be extracted according to the modeling method, and extract the structured element information of the business model diagram from the page of the test design platform based on the range of elements. The structured element information includes node type, node description, expected result and function item path. In this embodiment, the range of elements to be extracted is determined according to the above modeling method, and the structured element information of the business model diagram is extracted from the test design platform page based on the above element range. The structured element information includes node type, node description, expected result, and function item path. After identifying the modeling method, the corresponding element extraction range is determined according to the different modeling methods, and then the structured element information of the business model diagram is extracted from the test design platform page according to the determined element range.
[0034] The process of determining the scope of elements to be extracted based on the modeling method follows the principle of differentiated extraction. When the modeling method is for adding a new function, all structured elements of the business model diagram are determined as the scope of elements to be extracted. All structured elements cover the node type, node description, expected results, and functional entry paths to which each node belongs in the model diagram. When the modeling method is for modifying a function, the system extracts the modification point description from the version description information of the business model diagram, and determines the nodes involved in the modification point description and their associated information as the scope of elements to be extracted. Version description information is usually recorded in the version management field of the model diagram, including the functional points involved in the modification, the reason for the modification, and a summary of the modification content. By parsing the modification point description in the version description information, the system locates the nodes affected by the modification and extracts only the structured elements of these nodes. The above differentiated extraction method significantly reduces the amount of data processing in the scenario of function modification, while avoiding interference from historical elements unrelated to the current modification in the search results.
[0035] The process of extracting structured element information from the business model diagram on the test design platform page can be achieved through a browser plugin injected into the test design platform page. The browser plugin is activated after the test design platform page loads and obtains the node elements of the business model diagram through the interface provided by the page. During extraction, the browser plugin parses the attribute information of the node elements according to the extraction rules corresponding to the modeling method. The node type represents the role of the current node in the business process, such as a start node, processing node, judgment node, or end node. The node description records the business function description of the node. The expected result records the state that the system should reach after the node is executed. The function entry path identifies the functional module level to which the node belongs. The browser plugin organizes the above parsed information according to a preset data structure, forming structured element information, and transmits it to the backend processing module.
[0036] The extraction of the aforementioned structured element information occurs within the test design platform's webpage, eliminating the need for manual input or document uploads by the user. The extraction process is automated, requiring only a single trigger action from the user to obtain the complete element extraction results. This approach eliminates the need for manual business analysis and input organization, significantly lowering the barrier to entry for the auxiliary process. Through this method, this step establishes a complete data processing chain, from modeling method identification to element scope determination and structured element information extraction, providing a data foundation for subsequent prompt word construction.
[0037] Specifically, the step of determining the range of features to be extracted based on the modeling method includes: If the modeling method is a new feature addition, all structured elements of the business model diagram are determined as the range of elements to be extracted; If the modeling method is a function modification, the modification point description is extracted from the version description information of the business model diagram, and the modification point description is determined as the range of elements to be extracted.
[0038] This embodiment defines a specific implementation method for determining the range of elements to be extracted based on the modeling method. After identifying the modeling method of the business model diagram, the range of elements to be extracted is determined according to the principle of differentiation based on the different modeling methods. The modeling methods shown include two scenarios: adding functions and modifying functions, each corresponding to different rules for determining the range of elements.
[0039] When the above modeling method involves adding a new feature, all structured elements of the business model diagram are identified as the scope of elements to be extracted. Adding a new feature means that the functional module corresponding to the current business model diagram is being designed for the first time or included in the testing scope for the first time; its node types, node descriptions, expected results, and functional item paths are all new content generated in this design. In this case, complete information from the model diagram is obtained to comprehensively retrieve testing strategies related to the added feature. The process of determining all structured elements is completed automatically by the system, without requiring manual selection or specification by the user. The system reads all node elements and their attribute information from the business model diagram, including the node types, node descriptions, expected results, and functional item paths in the scope of elements to be extracted. This method ensures the comprehensiveness of auxiliary suggestions in the scenario of adding a new feature, avoiding the problem of incomplete search results due to missing elements.
[0040] When the above modeling method involves functional modification, the modification point description is extracted from the version description information of the business model diagram, and this modification point description is used to determine the scope of elements to be extracted. Functional modification means that the current business model diagram is a partial adjustment based on existing functions, and its modification content is usually recorded in the version description information of the model diagram. The version description information includes the functional points involved in this modification, the reason for the modification, and a summary of the modification content. By parsing the version description information, the nodes affected by this modification and their associated node descriptions and expected results are located, and only the elements related to the modification point description are included in the scope of elements to be extracted. This method significantly reduces the amount of data processing in functional modification scenarios, while avoiding interference from historical elements unrelated to the current modification on the search results. For example, when the modification point recorded in the version description information is an adjustment to the expected result of a certain node, the system only extracts the node type, node description, expected result, and functional item path of that node, without needing to extract the element information of other unmodified nodes in the model diagram.
[0041] The technical significance of the differentiated extraction method shown lies in establishing a dynamic binding relationship between the modeling method and the feature scope. When a new feature is added, all features are extracted, ensuring the completeness of the search criteria; when a feature is modified, only the description of the modification points is extracted, ensuring the accuracy of the search criteria. Together, these two methods ensure that the subsequently constructed prompts accurately reflect the actual design intent of the current model diagram, thereby improving the matching degree of the AI model's search testing strategy. Through the above methods, this step realizes a complete data processing logic from modeling method identification to feature scope determination, providing a clear processing object for extracting structured feature information on the test design platform page.
[0042] Furthermore, the step of extracting the structured element information of the business model diagram from the page of the test design platform based on the element range includes: Locate the node elements of the business model diagram on the test design platform page using a browser plugin; According to the extraction rules corresponding to the modeling method, the attribute information of the node elements is parsed to obtain the structured element information.
[0043] This embodiment defines a specific implementation method for extracting structured element information of a business model diagram from a test design platform page based on the element range. After determining the element range to be extracted, the node elements of the business model diagram are located on the test design platform page using a browser plugin. The attribute information of these node elements is then parsed according to the extraction rules corresponding to the modeling method to obtain the structured element information.
[0044] The process of locating node elements of the business model diagram within a test design platform page using a browser plugin is based on the interaction between the browser plugin and the test design platform page. The browser plugin is activated upon installation and when the test design platform page loads, accessing elements on the page through the Document Object Model (DOM) interface provided by the page. The business model diagram on the test design platform page is typically presented as a canvas or scalable vector graphics, with its node elements possessing predefined identifier attributes and hierarchical structures. Based on these identifier attributes and hierarchical structures, the browser plugin locates the set of node elements corresponding to the business model diagram within the page. This location process does not rely on manual selection by the user; instead, it is automatically completed by the browser plugin based on the model diagram data already loaded on the current page.
[0045] The process of parsing the attribute information of the aforementioned node elements to obtain the structured element information, according to the extraction rules corresponding to the modeling method, employs different parsing strategies depending on the modeling method. When the modeling method is "Adding a new function," the browser plugin parses all located node elements, iterating through the attribute information of each node element one by one. The parsed content includes node type, node description, expected result, and function entry path. The node type is obtained by reading the type identifier attribute of the node element. The node description is obtained by reading the text content attribute of the node element. The expected result is obtained by reading the output attribute or remarks attribute of the node element. The function entry path is obtained by reading the path information of the node element in the model layer-level structure. When the modeling method is "Modifying a new function," the browser plugin locates the node elements involved in this modification based on the modification point description, and only parses these node elements. The parsed content is consistent with the "Adding a new function" scenario, but the parsing scope is limited to the nodes involved in the modification point description. This differentiated parsing method based on the modeling method enables the browser plugin to accurately obtain structured element information matching the current design intent in different scenarios.
[0046] The browser plugin organizes the parsed node types, node descriptions, expected results, and function item paths according to a preset data structure. This data structure can be in key-value pair format, using node identifiers as indexes to store the attribute information of each node. The organized structured element information is then transmitted to the backend processing module via the browser plugin for use in subsequent prompt word construction. This transmission process can be achieved through a communication interface between the browser plugin and the backend processing module, and the transmitted data format can be structured text or serialized data objects.
[0047] The extraction process described above occurs within the test design platform's webpage and is automatically completed by a browser plugin, eliminating the need for manual user input or document uploads. Users only need to initiate a single trigger operation, and the system automatically completes node location, attribute parsing, and information organization after successful permission verification. This method ensures that the extraction of structured element information remains synchronized with the actual design state of the business model diagram, guaranteeing the accuracy and timeliness of the extraction results. Through this approach, this step implements a complete data processing logic from element scope determination to node location, attribute parsing, and information organization, providing an accurate data source for subsequent prompt word construction.
[0048] Step S30: Construct prompt words based on the extracted structured element information, and retrieve the test strategy corresponding to the prompt words from the product test strategy knowledge base by calling the AI model; In this embodiment, after extracting the structured element information, the structured element information is organized according to a preset prompt word template to construct prompt words for inputting into the AI model. Then, the AI model is called to retrieve the test strategy matching the prompt word from the product test strategy knowledge base.
[0049] The prompt word construction process transforms structured element information into an input format understandable by the AI model. The corresponding prompt word template is selected based on the current modeling method. In the scenario of adding a new feature, the prompt word template includes the locations for filling in all structured element information, filling in node type, node description, expected result, and function item path item by item. In the scenario of modifying a feature, the prompt word template only includes the locations for filling in the node information related to the modified point description. The prompt word template also includes instructions for the retrieval task, instructing the AI model to retrieve test strategies related to the current business model graph from the product test strategy knowledge base. These prompt word templates are pre-configured in the background processing module and are automatically filled in by the system during construction, requiring no manual intervention.
[0050] After receiving a prompt, the AI model retrieves a matching test strategy from the product test strategy knowledge base. This knowledge base stores test strategy data organized at different levels. The retrieval process can be performed at multiple levels separately. Based on the function item path, function-level strategies are matched from the knowledge base. These strategies correspond to the key test points and verification methods that should be addressed under that function item path. Based on the node description and expected results, product-level strategies are matched from the knowledge base. These strategies correspond to the test dimensions and abnormal scenarios that should be covered in that business scenario. Based on the configuration type keywords in the structured element information, the system matches central-level strategies from the knowledge base. These central-level strategies correspond to the unified test specifications that should be followed under that configuration type. The matching of these three levels of strategies can be executed in parallel or sequentially according to a preset priority.
[0051] After the AI model completes the retrieval, it combines the matched functional-level strategies, product-level strategies, and central-level strategies into the search results. The combination can be listed separately according to strategy hierarchy or sorted by matching degree and then output uniformly. The search results include the source identifier of each strategy, facilitating user traceability and verification. This approach achieves a complete data processing chain from structured element information to prompt word construction and AI model retrieval testing strategies, ensuring that the search results accurately correspond to the design context of the current business model diagram. This implementation process can be viewed... Figure 7 , Figure 7 This is a flowchart illustrating the process of calling an AI model based on prompt words.
[0052] Step S40: Display the search results on the current page of the test design platform.
[0053] In this embodiment, after completing the AI model retrieval and obtaining the retrieval results, the retrieval results are returned to the current page of the test design platform for display, so that test designers can view the test strategy that matches the current business model diagram without switching platforms.
[0054] Search results are displayed on the current page in a preset format. The results are categorized by strategy level, with functional, product-level, and central-level strategies presented in separate areas, arranged sequentially by matching degree or strategy number. Each strategy entry includes a summary and a source identifier; users can click the source identifier to view the strategy's detailed content. The display area can be placed in the sidebar or floating panel of the test design platform page, ensuring it doesn't interfere with normal editing of the business model diagram. Users can continue designing and adjusting the business model diagram while viewing search results, enabling parallel processing of auxiliary information and design operations.
[0055] The display of search results remains linked to the current state of the business model diagram. When a user modifies the business model diagram and then initiates a trigger operation again, steps S10 to S30 are re-executed, and the new search results are updated in the current page's display area. This update process overwrites the original search results, ensuring that the displayed content always remains consistent with the current state of the business model diagram. If the user does not initiate a new trigger operation, the display area retains the previous search results for the user to review at any time.
[0056] After displaying the search results, the system can also receive user feedback on their acceptance of those results. This feedback indicates the user's level of acceptance of the search results, specifically including whether the user has adopted, ignored, or annotated a particular strategy. The system adjusts subsequent search strategies or suggestion rules based on this feedback. For example, if a user frequently ignores a certain level of strategy, the system reduces the matching weight of that level of strategy in subsequent searches; if a user has a high adoption rate for a certain type of strategy, the system increases the matching priority of that type of strategy in subsequent searches. These adjustments are applied to subsequent test design support processes, ensuring that the support suggestions gradually align with the user's actual needs.
[0057] Through the above methods, this step achieves a complete data processing chain from returning search results to page display, and then to feedback optimization. Users do not need to switch between the test design platform and the knowledge base search tool; they can directly obtain test strategies that accurately match the business model diagram on the current page, significantly improving efficiency.
[0058] Furthermore, after the step of displaying the search results on the current page of the test design platform, the following steps are also included: Receive knowledge base question-and-answer requests input by users on the test design platform; The departmental knowledge base and the test center knowledge base are retrieved sequentially according to the preset cascading order. If the answer is found in the departmental knowledge base, the answer from the departmental knowledge base is returned. If the departmental knowledge base does not find the answer, the test center knowledge base is invoked to perform the search, and the answer from the test center knowledge base is returned.
[0059] In this embodiment, after displaying the search results on the current page of the test design platform, a knowledge base Q&A function is also provided. This function receives knowledge base Q&A requests input by the user on the test design platform and sequentially calls the departmental knowledge base and the test center knowledge base for retrieval according to a preset cascading order. This knowledge base Q&A function serves as a supplementary means to assist in testing strategies, allowing users to obtain answers directly on the current page when they have questions about the design of the current business model diagram, without having to switch to other knowledge base retrieval systems. This function primarily addresses the problem of scattered enterprise knowledge base sources and inconsistent search entry points by integrating the search capabilities of multiple knowledge bases into a single entry point, thereby improving the convenience of knowledge acquisition.
[0060] The process of receiving knowledge base Q&A requests from users on the test design platform is implemented through the Q&A input area provided on the current page of the test design platform. Users can enter the text of the question they want to query in the input area while viewing the search results, and then submit the request. Upon receiving the request, the question text and user identity information are extracted for subsequent knowledge base retrieval and access control. This Q&A input area can be placed in a floating panel or sidebar on the test design platform page, displayed alongside the search results area, allowing users to initiate queries without interrupting their design operations. After receiving a request, the platform does not immediately search all knowledge bases, but instead calls them sequentially according to a preset cascading order to balance search efficiency and answer relevance.
[0061] The system sequentially calls the departmental knowledge base and the test center knowledge base in a pre-defined cascading order, prioritizing the departmental knowledge base and then the test center knowledge base. The departmental knowledge base, maintained by the user's department, typically covers specifications, cases, and frequently asked questions related to the department's daily operations, making it highly relevant to the user's current business. The system first calls the departmental knowledge base's search interface, passing the question text to it. The departmental knowledge base then performs the search and returns matching results. If the departmental knowledge base finds an answer, it directly returns that answer along with the source of the answer. Source information may include the knowledge base name, document title, or document number, used to identify the answer's origin for user traceability and verification. If the departmental knowledge base does not find an answer, the system continues searching the test center knowledge base. The test center knowledge base is a broader, centrally-level knowledge base, containing cross-departmental general specifications, technical standards, and typical cases. The system passes the question text to the test center knowledge base's search interface, which then performs the search and returns matching results. If the answer is found in the test center knowledge base, the system returns the answer from that knowledge base and its source. If the answer is still not found in the test center knowledge base, the system returns an empty result or a message indicating that no relevant answer was found, allowing the user to adjust the question and resubmit the request.
[0062] Through the aforementioned cascading search method, the scattered departmental knowledge bases and test center knowledge bases are integrated into a unified Q&A portal. Users can obtain departmental and center-level answers sequentially on the current page without having to log in separately or switch between different knowledge base systems. Prioritizing departmental knowledge base searches ensures answers are more relevant to users' actual business scenarios, improving the relevance of search results; automatically expanding to the test center knowledge base when no results are found in the departmental knowledge base guarantees comprehensive answer coverage. This process, along with the step of displaying search results, forms a complete functional system for test design assistance, enabling users to receive proactively recommended test strategies and obtain necessary knowledge support through proactive questioning while designing business model diagrams. The application interaction logic of this knowledge base can be viewed... Figure 8 , Figure 8 This is a schematic diagram of the knowledge base retrieval process.
[0063] Further details can be found here. Figure 2 , Figure 2 This is a detailed schematic diagram of step S30 in one embodiment, based on the shown... Figure 2 The step of retrieving the test strategy corresponding to the prompt word from the product test strategy knowledge base by calling an AI model includes S31~S34: Step S31: Match functional-level strategies from the product testing strategy knowledge base according to the functional item path; Step S32: Match product-level strategies from the product testing strategy knowledge base based on the node description and the expected results; Step S33: Match the central-level strategy from the product testing strategy knowledge base based on the configuration type keyword in the node description or the expected result; Step S34: Combine the matched functional-level strategy, product-level strategy, and central-level strategy into the search results.
[0064] In this embodiment, after constructing the prompt words, the AI model matches the corresponding level of test strategies from the product test strategy knowledge base according to three dimensions: function item path, node description and expected result, and configuration type keywords, and outputs the combined matching results. The aforementioned product test strategy knowledge base stores test strategy data organized according to different levels, with each level of strategy corresponding to different retrieval criteria and matching rules.
[0065] Based on the aforementioned functional item paths, functional-level strategies are matched from the product testing strategy knowledge base. Functional item paths identify the functional module hierarchy to which the current node in the business model diagram belongs; they are typically represented as hierarchical paths, such as a combination of product name, module name, and function name. Functional-level strategies in the product testing strategy knowledge base are organized and stored according to the same hierarchical paths. The AI model uses the aforementioned functional item paths as search keys to find functional-level strategies in the product testing strategy knowledge base that match those paths. Matching methods can include path prefix matching or path full matching. Path prefix matching is suitable when functional item paths have hierarchical inclusion relationships; for example, when the current functional item path is a sub-function under a module, it can match functional-level strategies defined under that module hierarchy. Path full matching is suitable when the functional item path and the strategy storage path are completely identical. The matched functional-level strategies contain the testing points, verification methods, and precautions that should be addressed under that functional item path.
[0066] Based on the node descriptions and expected results described above, product-level strategies are matched from the product testing strategy knowledge base. The node description records the business function specification of the node, and the expected result records the state the system should reach after the node is executed. These two pieces of information together characterize the business semantics of the current node. The AI model uses the node descriptions and expected results as the basis for semantic retrieval, searching for semantically similar product-level strategies in the product testing strategy knowledge base. The matching method can employ semantic similarity calculation. After converting the node descriptions and expected results into semantic vectors, the similarity is compared with the semantic vectors of each product-level strategy in the product testing strategy knowledge base. Strategies with similarity exceeding a preset threshold are selected as the matching results. Product-level strategies include the testing dimensions, abnormal scenarios, and boundary conditions that should be covered in this business scenario.
[0067] Based on the configuration type keywords in the node descriptions or expected results above, a central-level strategy is matched from the product testing strategy knowledge base. Configuration type keywords characterize the configuration type involved in the current node and can be obtained from the node descriptions or expected results through keyword extraction. The AI model performs keyword recognition on the node descriptions and expected results, extracting configuration type-related terms. Using these extracted keywords as the retrieval basis, the central-level strategy matching the configuration type is searched in the product testing strategy knowledge base. The central-level strategy includes the unified testing specifications, security requirements, and compliance checks that should be followed under this configuration type. If the node descriptions or expected results do not contain configuration type keywords, this step does not perform a matching operation or returns an empty result.
[0068] The matched functional-level, product-level, and central-level strategies are combined to form the search results. The combination can be done by listing strategies hierarchically, categorizing functional-level, product-level, and central-level strategies into different display categories. During combination, each strategy can be labeled with its matching source and matching degree information, facilitating user assessment of the strategy's relevance to the current model graph. The matching of these three levels of strategies can be performed in parallel or sequentially, in the order of functional, product, and central levels. This approach achieves a complete data processing logic, from prompt word input to matching the three levels of strategies separately, and then outputting the combined search results. This ensures that the search results comprehensively cover the testing strategy requirements of the current business model graph from three dimensions: functional path, business semantics, and configuration type. The above processing logic can be viewed... Figure 9 , Figure 9 This is a schematic diagram of the test strategy retrieval process.
[0069] Furthermore, you can also view Figure 3 , Figure 3 This is a flowchart illustrating the second embodiment of the AI-assisted test design method based on a knowledge base according to the present invention. Figure 3 Following the step of displaying the search results on the current page of the test design platform, steps S50~S70 are also included: Step S50: In response to the user's query operation on the historical issues of the business model diagram, candidate historical issues are retrieved from the historical typical issues database based on the functional item paths in the structured element information. Step S60: Based on the details of the candidate historical issues or the reasons for the defects not being found, filter out typical historical issues that are similar to the scenario in the business model diagram; Step S70: Display the filtered historical typical problems on the current page of the test design platform.
[0070] In this embodiment, after displaying the search results on the current page of the test design platform, in response to the user's query operation for historical issues in the aforementioned business model diagram, candidate historical issues are retrieved from the historical typical issue database based on the functional item paths in the aforementioned structured element information. Then, based on the issue details or reasons for undiscovered defects in the candidate historical issues, historical typical issues similar to the business model diagram scenario are selected and displayed on the current page of the test design platform. The aforementioned historical issue query operation is independent of the aforementioned test strategy retrieval. After viewing the test strategy retrieval results, the user can initiate a separate historical issue query as needed to obtain historical typical issues related to the current business model diagram as a test design reference.
[0071] Specifically, in response to a user's query for historical issues in the aforementioned business model diagram, candidate historical issues are retrieved from the historical typical issue database based on the functional item paths in the structured element information. The historical issue query can be initiated through the query entry on the current page of the test design platform. This entry can be placed near the search results display area, allowing users to easily initiate a query after reviewing the test strategy. Upon receiving the historical issue query, the functional item paths in the acquired structured element information are extracted. These functional item paths are used as the retrieval basis to search for historical issue records in the historical typical issue database that match the functional item path. The historical typical issue database stores historical issue data organized according to functional item paths. Each historical issue record includes the functional item path to which the issue belongs, issue details, the reason why the defect was not found, and a description of the corresponding business scenario. During the retrieval, a path matching method can be used to compare the functional item paths of the current business model diagram with the functional item paths of each record in the historical typical issue database, selecting records with the same path or a hierarchical inclusion relationship as candidate historical issues. The number of candidate historical questions can be determined based on the matching results. If there are many matched records, they can be initially sorted according to the path matching degree, and the records with higher matching degree can be retained first.
[0072] Based on the issue details or reasons for undiscovered defects of the aforementioned candidate historical issues, typical historical issues similar to the scenarios in the aforementioned business model diagram are selected. Although candidate historical issues are related to the current business model diagram in terms of functional item paths, their business scenarios may not be completely consistent with the current model diagram. To further improve the scenario relevance of the selection results, each candidate historical issue is analyzed. During the analysis, the issue details and reasons for undiscovered defects of the candidate historical issues are extracted, and the issue details and reasons for undiscovered defects are compared with the node descriptions and expected results of the current business model diagram to determine scenario similarity. The issue details describe the specific business operations and abnormal behaviors involved in the historical issue, and the reasons for undiscovered defects describe why the issue was not discovered during historical testing. The above information is semantically compared with the node descriptions and expected results of the current model diagram to calculate scenario similarity. Candidate historical issues with scenario similarity exceeding a preset threshold are selected as the selection results. This selection process makes the returned typical historical issues closer to the current model diagram in terms of business scenarios, avoiding scenario-irrelevant issues introduced solely based on functional item path matching.
[0073] The selected historical typical issues are displayed on the current page of the test design platform. These issues are sorted by scenario similarity and presented in the display area of the current page. Each historical typical issue includes a summary of the issue details, the reason why the defect was not found, and a description of the corresponding business scenario. Users can view the complete issue record by clicking the summary. This display area can be set up side-by-side with the display area of the test strategy retrieval results for easy comparison. This step implements a complete data processing logic from initiating a historical issue query, to retrieving candidate issues based on function item paths, and then to filtering and displaying historical typical issues based on scenario similarity. This allows users to easily obtain historical typical issues similar to the current scenario as a reference when designing business model diagrams, improving the comprehensiveness of test design. Detailed information on the above data processing logic can be found in [link to documentation]. Figure 10 , Figure 10 This is a flowchart for reference to typical historical issues.
[0074] Furthermore, you can also view Figure 4 , Figure 4 This is a flowchart illustrating the third embodiment of the AI-assisted test design method based on a knowledge base of the present invention. Figure 4 Prior to the step of responding to the user's triggering operation on the business model diagram in the test design platform, steps S80~S110 are also included: Step S80: Receive the uploaded project requirements document and detailed design document; Step S90: parse the project requirements document and the detailed design document, and construct comparison prompt words; Step S100: Call the AI model to compare the project requirements document and the detailed design document based on the comparison prompt words to obtain the comparison results. The comparison results include unfulfilled requirements and parts that are inconsistent with the fulfillment of requirements. Step S110: Send the comparison results to the test manager via an internal message notification tool.
[0075] In this embodiment, before responding to the user's trigger operation on the business model diagram on the test design platform, the system receives the uploaded project requirement document and detailed design document, parses them to construct comparison prompts, calls the AI model to compare the project requirement document and detailed design document based on the comparison prompts, obtains the comparison results, and sends the comparison results to the test manager via an internal message notification tool. This requirement-design comparison function is executed before the formal start of test design work, used to identify omissions and inconsistencies between requirements and design before test designers write the business model diagram, providing accurate input for subsequent test design.
[0076] The system receives uploaded project requirement documents and detailed design documents. Before starting test design, test designers submit the project requirement document and detailed design document corresponding to the current project through the upload portal provided by the test design platform. The project requirement document records the business functional requirements to be implemented in this project, and the detailed design document records the technical implementation plan formulated by the developers for the above requirements. The upload portal can be set in the test design platform page and supports the submission of various document formats. After receiving the project requirement document and detailed design document, the system stores the documents in a preset storage area and records the association between the document and the current test task. The establishment of the above association can be achieved through the test task identifier. When receiving the document, the system simultaneously obtains the identifier information of the current test task and binds the identifier information to the storage address of the document. If the system detects that there is no corresponding test task, it terminates the subsequent processing flow to avoid performing comparison operations on invalid tasks.
[0077] The system parses the aforementioned project requirements document and detailed design document to construct comparison prompts. The received project requirements document and detailed design document are parsed separately. The parsing content includes the document's chapter structure, item numbering, and the corresponding text content for each item. After parsing, the system organizes the parsing results of the project requirements document and the detailed design document according to a preset comparison prompt template. This template contains instructions for the comparison task, directing the AI model to compare each requirement item in the project requirements document with each design item in the detailed design document. The template also includes explanations of the comparison rules, such as requiring the AI model to identify whether a corresponding implementation scheme exists for each requirement item in the detailed design document, and whether the implementation scheme in the detailed design document matches the function described by the requirement item. The system fills the parsed document content item by item into the comparison prompt template to form complete comparison prompts. The construction of these comparison prompts is completed automatically by the system, eliminating the need for manual document organization by the user.
[0078] The AI model is invoked to compare the project requirements document and the detailed design document based on the comparison prompts, obtaining comparison results. These results include unimplemented requirements and parts inconsistent with the implemented requirements. Upon receiving the comparison prompts, the AI model analyzes each requirement item in the project requirements document according to the instructions. For each requirement item, the AI model searches the detailed design document for a corresponding implementation solution. If no corresponding implementation solution is found in the detailed design document, the requirement item is classified as an unimplemented requirement. If a corresponding implementation solution exists in the detailed design document, but the implementation solution differs from the function described in the requirement item, the requirement item is classified as inconsistent with the implemented requirements. After comparing all requirement items, the AI model organizes the unimplemented requirements and inconsistent parts according to a preset output format to form the comparison results. The comparison results also include summary information for all comparisons, representing the overall situation of unimplemented requirements and inconsistent parts in this comparison.
[0079] The comparison results are sent to the test manager via an internal messaging tool. Upon receiving the comparison results, the test manager information corresponding to the current test task is retrieved. This test manager information can be pre-stored in the test task's management data, and the test manager's identifier is obtained by reading this management data. The comparison results are then sent to the test manager via the internal messaging tool, which can be an internal chat tool or an internal email system. The sent comparison results include a list of unimplemented requirements, a list of parts inconsistent with the implemented requirements, and the aforementioned summary information. After receiving the comparison results, the test manager can assess the consistency between the project requirements and the detailed design, and coordinate with relevant personnel to confirm and address any issues before test design begins. This embodiment implements a complete data processing logic from document upload, parsing, comparison to result notification, enabling omissions and inconsistencies between requirements and design to be identified promptly before test design begins, providing an accurate requirement basis for subsequent business model design and test strategy retrieval.
[0080] Furthermore, you can also view Figure 5 , Figure 5 This is a flowchart illustrating the fourth embodiment of the AI-assisted test design method based on a knowledge base of the present invention. Figure 5 After the step of displaying the search results on the current page of the test design platform, steps S120~S140 are further included: Step S120: Receive user feedback on the adoption of the search results; Step S130: Adjust the retrieval strategy or the construction rules of the prompt words according to the adoption feedback information; Step S140: Apply the adjusted search strategy or prompt word construction rules to subsequent test design assistance.
[0081] In this embodiment, after the search results are displayed on the current page of the test design platform, user feedback on the search results is received. Based on this feedback, the search strategy or the suggestion word construction rules are adjusted, and the adjusted strategy or suggestion word construction rules are applied to subsequent test design assistance implementations. This feedback optimization function enables the test design assistance process to continuously improve, dynamically adjusting subsequent search behaviors and suggestion word construction methods based on user adoption of search results during actual use, thus gradually aligning assistance suggestions with users' actual needs.
[0082] The system receives user feedback on the search results. After the search results are displayed on the current page of the test design platform, users can view and evaluate the displayed test strategies and submit feedback through the feedback controls provided on the page. This feedback indicates the user's level of acceptance of each strategy in the search results, specifically including the user's acceptance, ignore, or annotation actions. An acceptance action indicates that the user approves of the strategy and incorporates it into the current test design. An ignore action indicates that the user believes the strategy is irrelevant or inapplicable to the current business model diagram. An annotation action indicates that the user has questions about the strategy or needs further confirmation. After receiving the feedback, the system associates and stores this feedback with the structured element information of the current business model diagram, as well as the search strategy and prompt word construction rules used in this search. This associated storage allows the system to trace the actual user feedback on the search results under specific model diagram elements and search conditions.
[0083] The system adjusts the search strategy or suggestion keyword construction rules based on the aforementioned adoption feedback information. Statistical analysis is performed on the stored adoption feedback information. This analysis includes the adoption rate and ignore rate of strategies at each level. If a strategy at a certain level is frequently ignored, the system determines that the strategy at that level has a low matching degree with the current business scenario, and reduces the matching weight of that strategy or adjusts the search conditions for that strategy in subsequent searches. If a certain type of strategy is frequently adopted, the system determines that this type of strategy has a high matching degree with the current business scenario, and increases the matching priority of this type of strategy in subsequent searches. The system can also adjust the suggestion keyword construction rules based on the aforementioned adoption feedback information. This adjustment includes the weight allocation and filling order of various structured elements in the suggestion keyword template. For example, if users have a high adoption rate for strategies matched based on node descriptions, the system increases the weight of node descriptions in the suggestion keywords when constructing subsequent keywords. If users have a high adoption rate for strategies matched based on expected results, the system correspondingly increases the weight of expected results in the suggestion keywords. The above adjustment process is completed automatically by the system and does not require manual configuration by the user. The adjusted search strategy or suggestion word construction rules are stored in the backend processing module, replacing the original corresponding rules.
[0084] The adjusted search strategy or prompt word construction rules are applied to subsequent test design assistance. When a user triggers an operation again on the same business model diagram or other business model diagrams under the same functional module, the adjusted search strategy or prompt word construction rules are read during execution, prompt words are constructed according to the adjusted rules, and the search is executed. The above application process is consistent with the prompt word construction process, the only difference being that the search strategy or prompt word construction rules used are versions optimized based on feedback. As the number of user visits increases, the system accumulates more and more adoption feedback information, and the adjustments to the search strategy and prompt word construction rules gradually converge, resulting in a continuous improvement in the matching degree between the search results and the user's actual needs. Through the above method, this embodiment realizes a complete data processing logic from the collection of adoption feedback information to the adjustment of search strategy and prompt word construction rules, and then to its application to subsequent test design assistance, enabling the test design assistance process to continuously optimize based on actual user feedback.
[0085] Furthermore, you can also view Figure 6 , Figure 6This is a schematic diagram of the data architecture of the present invention. This embodiment describes the overall data architecture of AI-assisted test design based on a knowledge base. The data architecture is divided into four parts according to functional hierarchy: a front-end interaction layer, a back-end processing layer, an AI model layer, and a data storage layer. The front-end interaction layer is embedded in the test design platform as a browser plugin, responsible for receiving user trigger operations, uploading documents, inputting question-and-answer requests, and displaying search results. The back-end processing layer is deployed as a Python service, responsible for permission verification, document parsing, model graph element extraction, search strategy determination, and result assembly. The AI model layer is responsible for receiving prompts constructed by the back-end processing layer and performing semantic understanding and strategy matching. The data storage layer is used to store data resources such as the product test strategy knowledge base, historical typical problem base, departmental knowledge base, and test center knowledge base. The above four parts achieve data flow through interface calls, together forming a complete auxiliary test design system.
[0086] The browser plugin in the front-end interaction layer is activated when the test design platform page loads. The plugin obtains the current user's login information through the test design platform's page interface and passes this information to the back-end processing layer for permission verification. The plugin provides auxiliary function entry points on the page, including entry points for requirement design comparison, test strategy prompts, historical typical issues queries, and knowledge base Q&A. When a user initiates an operation through these entry points, the plugin passes the operation type, user information, and the identifier information of the current business model diagram to the back-end processing layer. The plugin is also responsible for receiving the search results and comparison results returned by the back-end processing layer and presenting them in a preset display format on the current page of the test design platform.
[0087] After receiving a request from the front-end interaction layer, the back-end processing layer first performs permission verification based on the user's login information. Once permission verification is successful, the back-end processing layer executes the corresponding processing flow based on the request type. For requirement design comparison requests, the back-end processing layer checks if the test task exists. If it does, it parses the uploaded project requirement document and detailed design document, constructs comparison prompts, and calls the AI model layer to perform comparison analysis. Finally, it sends the comparison results to the test manager via an internal message notification tool. For test strategy prompt requests, the back-end processing layer performs structured parsing of the business model diagram, extracting elements such as business logic, expected results, business function checks, and function item paths based on node types and modeling methods. It then tailors the central strategy according to business rules based on the extracted model elements. For historical typical problem query requests, the back-end processing layer performs structured parsing of the business model diagram, extracting element information and version descriptions, constructing prompts, and calling the AI model layer to perform the retrieval. For knowledge base question-and-answer requests, the back-end processing layer sequentially calls the department knowledge base and the test center knowledge base in a preset cascading order for retrieval.
[0088] After receiving prompts from the backend processing layer, the AI model layer performs semantic understanding and strategy matching based on the instructions in the prompts. For test strategy prompt requests, the AI model layer performs retrieval at three levels: functional-level strategy matching, product-level strategy matching, and central-level strategy matching. Functional-level strategy matching matches strategies under the corresponding paths of product strategies based on the paths of functional modules. Product-level strategy matching uses the AI to retrieve product strategies and return relevant matching strategy information based on node descriptions, expected result check descriptions, and version information in the model graph. Central-level strategy matching matches corresponding strategy information in the central-level strategy database based on whether there are keywords such as configuration type in the extracted model information. The AI model layer also distinguishes between new and modified function scenarios. When adding a function, it performs a full search using all information such as node descriptions, expected result check descriptions, and version information in the model graph. When modifying a function, it only extracts the modified points in the model version information description to retrieve relevant strategies. For historical typical problem query requests, the AI model layer searches the typical problem database through RAG, prioritizing the retrieval of historical typical problems based on the function or module in which the model is located, and then returns similar scenarios based on problem details or reasons for defects not being found.
[0089] The data storage layer provides data support for the retrieval of the AI model layer. The product testing strategy knowledge base stores testing strategy data organized at three levels: functional, product, and central. The historical typical issue database stores historical issue data organized by functional item path; each record includes the functional item path to which the issue belongs, issue details, the reason why the defect was not found, and a description of the corresponding business scenario. The departmental knowledge base is maintained by the user's department, while the test center knowledge base is a more comprehensive central-level knowledge base. These four parts form a complete data flow chain through interface calls, enabling test designers to access auxiliary functions such as requirement design comparison, test strategy prompts, historical typical issue references, and knowledge base retrieval within the test design platform without switching platforms.
[0090] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the knowledge base-based AI-assisted test design method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0091] This application provides a knowledge-based AI-assisted test design device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the knowledge-based AI-assisted test design method in the first embodiment described above.
[0092] The following is for reference. Figure 11 The diagram illustrates a structural schematic of a knowledge-based AI-assisted test design device suitable for implementing embodiments of this application. The knowledge-based AI-assisted test design device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 11 The AI-assisted test design device based on a knowledge base shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0093] like Figure 11 As shown, the knowledge-based AI-assisted test design device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the knowledge-based AI-assisted test design device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the knowledge-based AI-assisted test design device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a knowledge-based AI-assisted test design device with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0094] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0095] The knowledge-based AI-assisted test design device provided in this application, employing the knowledge-based AI-assisted test design method described in the above embodiments, can solve the technical problem of low efficiency in assisted testing caused by the disconnect between existing test design assistance tools and test design platforms and business model diagram elements. Compared with the prior art, the beneficial effects of the knowledge-based AI-assisted test design device provided in this application are the same as those of the knowledge-based AI-assisted test design method provided in the above embodiments, and other technical features in this knowledge-based AI-assisted test design device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0096] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0097] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0098] This application provides a storage medium, which is a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the knowledge base-based AI-assisted test design method in the above embodiments.
[0099] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0100] The aforementioned computer-readable storage medium may be included in a knowledge-based AI-assisted test design device; or it may exist independently and not be assembled into a knowledge-based AI-assisted test design device.
[0101] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the knowledge-based AI-assisted test design device, the knowledge-based AI-assisted test design device implements the technical content of the knowledge-based AI-assisted test design method embodiment shown above.
[0102] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0103] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0104] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0105] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., computer programs) for executing the aforementioned knowledge-based AI-assisted test design method. This solves the technical problem of low efficiency in assisted testing caused by the disconnect between existing test design assistance tools and test design platforms and business model diagram elements. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the knowledge-based AI-assisted test design method provided in the above embodiments, and will not be repeated here.
Claims
1. A knowledge base based AI assisted test design method, characterized by, The knowledge-based AI-assisted test design method includes the following steps: In response to the user's triggering operation on the business model diagram in the test design platform, the modeling method of the business model diagram is identified; The range of elements to be extracted is determined according to the modeling method, and the structured element information of the business model diagram is extracted from the page of the test design platform based on the range of elements. The structured element information includes node type, node description, expected result and function item path. Based on the extracted structured element information, prompt words are constructed, and the corresponding test strategies are retrieved from the product test strategy knowledge base by calling an AI model; The search results are displayed on the current page of the test design platform.
2. The knowledge base based AI assisted test design method of claim 1, wherein, The steps for determining the range of features to be extracted based on the modeling method include: If the modeling method is a new feature addition, all structured elements of the business model diagram are determined as the range of elements to be extracted; If the modeling method is a function modification, the modification point description is extracted from the version description information of the business model diagram, and the modification point description is determined as the range of elements to be extracted.
3. The knowledge base based AI assisted test design method of claim 1, wherein, The step of extracting the structured element information of the business model diagram based on the element range on the test design platform page includes: Locate the node elements of the business model diagram on the test design platform page using a browser plugin; According to the extraction rules corresponding to the modeling method, the attribute information of the node elements is parsed to obtain the structured element information.
4. The knowledge-based AI-assisted test design method as described in claim 1, characterized in that, The step of retrieving the test strategy corresponding to the prompt word from the product test strategy knowledge base by calling an AI model includes: Based on the function entry path, match the function-level strategy from the product testing strategy knowledge base; Based on the node description and the expected result, a product-level strategy is matched from the product testing strategy knowledge base; Based on the configuration type keywords in the node description or the expected result, match the central-level strategy from the product testing strategy knowledge base; The matched functional-level strategy, product-level strategy, and central-level strategy are combined to form the search results.
5. The knowledge-based AI-assisted test design method as described in claim 1, characterized in that, Following the step of displaying the search results on the current page of the test design platform, the method further includes: In response to a user's query operation for historical issues in the business model diagram, candidate historical issues are retrieved from the historical typical issue database based on the functional item paths in the structured element information. Based on the details of the candidate historical issues or the reasons for the defects not being found, typical historical issues similar to the scenario in the business model diagram are selected. The current page of the test design platform displays a selection of typical historical questions.
6. The knowledge-based AI-assisted test design method as described in claim 1, characterized in that, Prior to the step of responding to the user's triggering operation on the business model diagram in the test design platform, it also includes: Receive uploaded project requirements documents and detailed design documents; Analyze the project requirements document and the detailed design document to construct comparison prompts; The AI model is invoked to compare the project requirements document and the detailed design document based on the comparison prompts, and the comparison results are obtained. The comparison results include unfulfilled requirements and parts that are inconsistent with the fulfillment of requirements. The comparison results were sent to the test manager via an internal messaging notification tool.
7. The knowledge-based AI-assisted test design method as described in claim 1, characterized in that, Following the step of displaying the search results on the current page of the test design platform, the method further includes: Receive knowledge base question-and-answer requests input by users on the test design platform; The departmental knowledge base and the test center knowledge base are retrieved sequentially according to the preset cascading order. If the answer is found in the departmental knowledge base, the answer from the departmental knowledge base is returned. If the departmental knowledge base does not find the answer, the test center knowledge base is invoked to perform the search, and the answer from the test center knowledge base is returned.
8. The knowledge-based AI-assisted test design method as described in claim 1, characterized in that, Following the step of displaying the search results on the current page of the test design platform, the method further includes: Receive user feedback on their acceptance of the search results; The search strategy or the rules for constructing the suggestion words are adjusted based on the adoption feedback information; The adjusted search strategy or suggestion word construction rules will be applied to assist in subsequent test design.
9. A knowledge-based AI-assisted test design device, characterized in that, The knowledge-based AI-assisted test design device stores a computer program, which, when executed by a processor, implements the knowledge-based AI-assisted test design method according to any one of claims 1-8.
10. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the knowledge-based AI-assisted test design method according to any one of claims 1-8.
