Software test auxiliary information generation method and device, storage medium and program product

By obtaining user demand information and automatically generating software testing auxiliary information using large language models, the problems of long test cycles and high error rates caused by manual generation of test cases and recording defects in the prior art are solved, and efficient and accurate software testing is achieved process.

CN118885403AInactive Publication Date: 2024-11-01ALIBABA CLOUD COMPUTING CO LTD

Patent Information

Application Number
CN202411375898.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing software testing methods rely on manual generation of test cases and record defects, resulting in long test cycles and error-prone, affecting efficiency and accuracy.

Method used

By obtaining user demand information, using pre-trained large language models for intention recognition and natural language processing, automatically generate auxiliary information related to software testing, including test cases, defect reports and test reports, optimize the test process, and reduce human errors.

Benefits of technology

Significantly shorten the test cycle, improve testing efficiency and accuracy, reduce human errors, and enhance test coverage and software quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885403A_ABST
    Figure CN118885403A_ABST
Patent Text Reader

Abstract

The invention provides a software testing auxiliary information generation method and device, a storage medium and a program product, and relates to the technical field of artificial intelligence. The method comprises the steps that firstly, demand information of a user for software testing is acquired; performing intention recognition on the demand information to obtain a user intention; then, according to the intention of the user, determining an information processing flow related to the software test corresponding to the demand information; and finally, according to the demand information and the information processing flow, generating software test auxiliary information. In the embodiment, intention recognition is performed on the demand information of the software test, the information processing flow related to the software test corresponding to the demand information is determined, the software test auxiliary information is automatically generated according to the information processing flow, and the user is assisted to perform the software test, so that the test period can be greatly shortened, human errors are reduced, and the test efficiency is improved. And the test efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, storage medium and program product for generating software testing auxiliary information. Background Art

[0002] Software testing refers to verifying whether the development of a software application or system meets the specified requirements and ensures that there are no defects or errors in the software. The main purpose of software testing is to improve the quality of software and reduce the risks and costs after the software is released.

[0003] Software testing is a key link in the software development process, and its quality directly affects the reliability and stability of the software. The software testing methods in related technologies mainly rely on manually generating the information required for software testing, such as manually generating test cases, manually recording defects and writing reports, which leads to a long testing cycle and is prone to errors, affecting the efficiency and accuracy of software testing. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and program product for generating software testing auxiliary information to improve software testing efficiency and accuracy.

[0005] In a first aspect, an embodiment of the present application provides a method for generating software testing auxiliary information, including: obtaining user requirement information for software testing; performing intent recognition on the requirement information to obtain user intent; determining, based on the user intent, an information processing flow related to the software testing corresponding to the requirement information; and generating software testing auxiliary information based on the requirement information and the information processing flow.

[0006] In a second aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the above methods when executing the computer program.

[0007] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any of the above methods is implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a computer program product, the computer program product including a computer program, and the computer program implements any of the above methods when executed by a processor.

[0009] Compared with the prior art, this application has the following advantages: The present application provides a method, device, storage medium and program product for generating software testing auxiliary information, which obtains user demand information for software testing; performs intent recognition on the demand information to obtain user intent; determines the information processing flow related to software testing corresponding to the demand information according to the user intent; generates software testing auxiliary information according to the demand information and the information processing flow. In this embodiment, by performing intent recognition on the demand information for software testing, determining the information processing flow related to software testing corresponding to the demand information, automatically generating software testing auxiliary information according to the information processing flow, and assisting users in software testing, the test cycle can be greatly shortened, human errors can be reduced, and test efficiency and accuracy can be improved.

[0010] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.

[0012] Figure 1 Schematic diagram of the system architecture of a method for generating software testing auxiliary information according to an embodiment of the present application.

[0013] Figure 2 This is a flowchart of a method for generating software testing auxiliary information according to an embodiment of the present application.

[0014] Figure 3 This is a flowchart of a method for generating software testing auxiliary information according to an embodiment of the present application.

[0015] Figure 4 A schematic diagram of an interactive interface of an intelligent testing assistant according to an embodiment of the present application.

[0016] Figure 5 This is a structural block diagram of a software testing auxiliary information generating device according to an embodiment of the present application.

[0017] Figure 6 A block diagram of an electronic device used to implement an embodiment of the present application. DETAILED DESCRIPTION

[0018] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the concept or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary in nature and not restrictive.

[0019] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the related technologies of the embodiments of the present application. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0020] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0021] Figure 1 A schematic diagram of the system architecture of the software testing auxiliary information generation method provided in this application. Figure 1 As shown, the system includes an interaction layer, an intermediate layer, and a service layer. The interaction layer, the intermediate layer, and the service layer can be deployed on the same device or on different devices. In the technical solution of the present application, the test case generation model, the defect report generation model, the test report generation model, and the risk prediction model can be obtained by training a pre-trained large language model using different training samples. It can be a multifunctional model or multiple models, and the present application does not limit this. Among them, the pre-trained large language model (Large Language Model, LLM) can include a bidirectional encoder based on a transformer (Bidirectional Encoder Representations from Transformers, BERT) model, etc.

[0022] The interactive layer is used to provide an interactive interface through the user's personal computer (PC) and receive interactive operation instructions input by the user through the interactive interface.

[0023] The middle layer includes a data collection module and a natural language processing module. The data collection module is used to collect and store the data required to generate test cases. On the one hand, it receives the developer's demand information on the interactive interface, and on the other hand, it collects test requirements, code changes, and test result information from the version control system, continuous integration or continuous delivery (CI / CD) pipeline, and stores the collected data information. The specific workflow is as follows: First, collect data from the developer's input. Receive the developer's input information on the interactive page, such as test case description information. Second, collect data from the version control system. Specifically include: Change record extraction: The data collection module is connected to the version control system (such as the Git system) to automatically extract the change record and log information of each submission. Code difference analysis: Analyze code differences and identify the specific code modification location and content. Version tracking: Perform version tracking, record the code snapshot of each version, and associate it with the corresponding test data to facilitate subsequent defect location and regression testing. Third, collect data from the CI / CD pipeline. Collect detailed information about each test case build from the CI / CD system (such as the continuous integration tool Jenkins, the code hosting platform Gitee / GitLab), including build status, time, trigger events, etc. Automatically extract the result data of each test case build and test execution, such as test pass rate, failed cases, error logs, etc. Record the configuration information of the test environment, such as the operating system version, hardware configuration, dependent library version, etc., to provide a basis for defect location and test reproduction. Fourth, data storage and management. Data cleaning: Preprocess and clean the collected data to remove redundant and noisy information. Structured storage: Store the processed data in a structured database for subsequent query and analysis. Data indexing: Create indexes for key data to improve the efficiency of data retrieval.

[0024] The natural language processing module is used to process the natural language data collected by the data collection module using a pre-trained large language model, such as word segmentation, entity recognition, syntactic analysis, etc., and convert it into structured data. The specific workflow is as follows: First, perform data preprocessing, specifically including: Text cleaning: Remove stop words (such as "de", "le", "zai", etc.) and normalization processing (for example, convert different encoding formats to a unified format). Word segmentation: Perform word segmentation on the input natural language text and identify each word using a word library and rules. Part-of-speech tagging: Tag the part of speech of each word (such as noun, verb, adjective, etc.) to provide a basis for subsequent sentence analysis. Second, perform sentence analysis, specifically including: Entity recognition: Use named entity recognition (NER) technology to identify key entities in the sentence (such as person names, locations, organizations, dates, etc.). Dependency syntactic analysis: Use dependency syntactic analysis technology to establish a dependency relationship tree between words and identify the subject-predicate-object structure, modification relationship, etc. Third, perform semantic understanding, specifically including: Intent recognition: Use the pre-trained large language model to analyze the global semantics of the sentence and identify the user's intent (such as generating test cases, test problem descriptions, defect reports, etc.). Slot filling: According to the identified user intent, extract and fill in slot information, such as the operation object, conditions, expected results, etc. Finally, perform data structuring processing, specifically including: Semantic role labeling: Assign semantic roles (such as actions, subjects, objects, etc.) to each word in the sentence to form a structured semantic representation. Structured data generation: Convert the extracted information into structured data (such as JSON format) according to a predefined data structure.

[0025] The test case module includes a conversational test case generation unit and a test case optimization and suggestion unit. The test case generation unit is used to automatically generate test cases based on the requirement information input by the user. The test case optimization and suggestion unit is used to optimize the test cases, reduce redundancy and increase coverage. The specific workflow is as follows: First, demand extraction is performed, including: Requirement extraction: extracting test requirements from user input information (requirement documents, requirement records or natural language descriptions). Data preprocessing: format cleaning and word segmentation of test requirements, and converting natural language into a processable input form. Requirement identification: using natural language processing technology to identify test case description information in the requirements, such as key functions, operation steps, expected results and other elements. Secondly, test case generation is performed, including: using the test case generation model to generate initial test cases based on the extracted test case description information. The test case generation model is obtained by training the pre-trained large language model using data collected from the version control system and CI / CD pipeline. The generated initial test case is matched with the preset test case template to ensure that the generated case meets the format and content specifications. Complete the missing and incomplete parts, including input data, environment settings, expected results, etc. Then the test case optimization is carried out, including: Redundancy detection: analyze whether there is redundancy in the test cases, merge similar cases, and improve test efficiency. Coverage analysis: use the coverage analysis tool to evaluate the coverage of the case and find the test blind spots. Optimization suggestions: based on the coverage analysis and redundancy detection results, make optimization suggestions, including adding boundary tests, exception tests, etc. Automatic optimization: automatically generate optimized test cases through the test case generation model, and update the test case library. Finally, the case verification and release are carried out, including: Case verification: verify the generated and optimized test cases to ensure their accuracy and effectiveness. User review: provide an interface for users to review and modify test cases, and collect user feedback. Use case release: publish the final test case to the test management system for actual test execution.

[0026] The question answering module includes a real-time question answering unit and a defect solution recommendation unit. The real-time question answering unit is used to provide real-time test question answering services. The defect solution recommendation unit is used to generate solutions based on defect descriptions and recommend relevant documents. The specific workflow is as follows: First, problem identification is performed, including: receiving test questions from the user's natural language input (such as text, voice). The input text is cleaned and segmented, noise and stop words are removed, and normalization is performed. The input content is analyzed using a pre-trained large language model to identify the user's question intent, such as "query the reason for login failure". Secondly, answer generation is performed, including: database query: using the pre-trained large language model to retrieve the preset knowledge base and historical problem solving records, and query matching questions and answers. Large language model generation: using the pre-trained large language model to generate detailed answers and suggestions based on the matching questions and answers queried. Answer optimization: optimize and supplement the generated answers to ensure the accuracy and comprehensiveness of the answers. Then answer verification is performed, including: manual verification: providing an interface for users to review and confirm the generated answers. Automatic verification: using unit tests or automated test cases to verify the generated solutions to ensure their feasibility. Finally, the answer is output, including: Answer display: Output the result to the user and display the detailed answer through text, voice or visual interface. Record and learn: Record and store user feedback and actual verification results in the knowledge base, and continuously optimize and update the knowledge base.

[0027] The problem tracking module includes a conversational defect report generation unit and a real-time collaborative debugging unit. The conversational defect report generation unit is used to automatically generate standardized defect reports and record the progress of the solution. The real-time collaborative debugging unit is used to support multi-person collaborative debugging and share debugging status and information through dialogue. The specific workflow is as follows: Defect report generation and tracking, including: Defect report generation: According to the problems found during software debugging, a standardized defect report is automatically generated using a defect report generation model. The defect report generation model is obtained by training a pre-trained large language model using problem samples, defect report samples, and debugging suggestion samples. The report content includes problem description, reproduction steps, log information, stack trace, impact range, etc. Report submission: The generated defect report is automatically submitted to the defect management system and relevant personnel are notified. Progress tracking: Update the defect status in real time, such as newly discovered, being solved, solved, etc. Record the progress of the solution and the change history to facilitate subsequent query and analysis. Perform real-time collaborative debugging, including: Debug session creation: After the developer finds the problem, a collaborative debugging session is created according to the session creation instruction entered by the developer. After creating a session, an invitation message is sent to the relevant developers to invite them to join the session, so that developers can communicate in real time via text, voice or video. Status sharing: Share debugging information such as current code status, stack traces, variable values, etc. in real time. Supports multiple parties to edit and view code in real time, and all participants can see the latest debugging status. Intelligent suggestions: Use the defect report generation model to analyze the current debugging information and provide real-time intelligent debugging suggestions and solutions. Update the problem status, including: Status update: Automatically synchronize the status changes of each problem during the debugging process, such as being processed, fixed, requiring further analysis, etc. History: Save all debugging processes, problem status changes and solution records for subsequent viewing and analysis. Data visualization: Display problem status, solution progress and history through dashboards or other visualization tools, providing an intuitive debugging and problem management view.

[0028] The document generation and management module includes a test report automatic generation unit and a customized test report unit. The test report automatic generation unit is used to automatically generate a detailed test report based on information such as test results and coverage. The customized test report unit is used to provide customized report options to meet different needs. The specific workflow is as follows: Test report automatic generation, including: Data collection: receiving the user input requirement information, parsing to obtain the test report description information, such as test execution results, coverage, defects found, etc. Information parsing: using the pre-trained large language model to parse the test report description information and perform structured storage. Report generation: using the test report generation model to automatically generate a detailed test report based on the parsed information, including test case execution status, test coverage statistics, and a list of defects found. The test report generation model is obtained by training the pre-trained large language model using report description samples and test report samples. Customized report generation, including: User demand acquisition: understanding the specific demand information of the customized report through dialogue with the user, including report content, format, key indicators, etc. Template generation: generating a report template according to user needs, including the data to be displayed and a specific format. Report filling: Fill the collected and parsed test data into the report template to generate a customized test report that meets the user's requirements. Standardized defect report generation, including: Defect description parsing: Receive the defects described by the user in natural language, and the pre-trained large language model parses and extracts key information. Generate defect report template: The defect report generation model automatically generates a standardized defect report template based on the extracted key information, including defect description, impact range, priority, reproduction steps and recommended solutions. The test report generation model is obtained by training the pre-trained large language model using report description samples and test report samples. Information filling and review: Fill the defect report template and support user review and modification. Version control and management, including: Version record: Provide a version number for each generated document (i.e. test report) and record detailed information of each modification, such as the modifier, modification content and time. Version comparison: Support comparison between different versions of documents, display the changed content, and ensure the consistency and traceability of the documents. Rollback mechanism: Provide version rollback function, when errors are found or requirements change, you can quickly roll back to the previous version. Document review and approval, including: Process settings: Provide document review and approval processes, and set specific reviewers and approvers. Status tracking: Real-time tracking of document review and approval status, recording the operator and time of each link, to ensure the accuracy and compliance of the document. Notification function: When a document enters the review and approval process, it automatically notifies relevant personnel to ensure timely processing. Security and permission control, including: Access permission settings: Set document access permissions based on user roles and needs to ensure the security of sensitive information.Operation records: Record every access, modification, and download operation of a document to ensure document security and operation traceability.

[0029] The intelligent prediction and task allocation module includes a defect risk prediction unit and a defect solution recommendation unit. The defect risk prediction unit is used to predict test risks, provide warnings and handling suggestions. The defect solution recommendation unit is used to intelligently allocate tasks and schedule resources to improve team efficiency. The specific workflow is as follows: Defect risk prediction, including: Data input: Receive user input information through the interactive interface, and determine the current test status, project progress, historical defect data, etc. based on the input information. Information parsing: Use the pre-trained large language model to parse the input information, extract relevant features and generate structured data. Risk analysis and prediction, including: Model training: Use historical test data to train the risk prediction model based on the pre-trained large language model. Risk prediction: Apply the trained risk prediction model to predict risks and identify potential high-risk areas and possible defect types. Result output: The risk prediction results are displayed in a visual way, and detailed risk descriptions and warning suggestions are provided. Task classification and priority management, including: Task classification: Classify tasks according to actual needs and defect risk prediction results, for example, classify tasks into critical tasks, urgent tasks and ordinary tasks. Priority setting: Set priorities for various tasks based on actual test progress and resource conditions. Resource assessment and task allocation, including: Resource assessment: Evaluate the workload, skill matching and available time of current team members. Task allocation: Based on priority and resource assessment results, intelligently allocate test and repair tasks to optimize resource utilization. Progress tracking and adjustment, including: Real-time tracking: Real-time tracking of task completion progress, obtaining and updating task status through a conversational interactive interface. Dynamic adjustment: Dynamically adjust task priority and resource allocation based on task progress and real-time feedback to ensure that test tasks are completed within the scheduled time. Collaborative work support, including: Task notification and communication: Automatically notify relevant team members of assigned tasks and provide necessary task background and related information. Communication and collaboration platform: Based on a conversational interactive interface, support multi-user real-time communication and collaboration, share task progress and instant feedback. Problem reporting and resolution: Support team members to report problems encountered in tasks in real time, and use large language models to provide solutions and support. Effect evaluation and continuous improvement, including: Effect evaluation: After the test task is completed, compare the actual results with the predicted results to evaluate the effect of risk prediction and task allocation. Feedback collection: Collect user feedback and system operation data to analyze task completion quality, efficiency and user experience. Model optimization: Use evaluation and feedback results to continuously optimize risk prediction models and task allocation algorithms to improve system performance.

[0030] In this embodiment, by utilizing deep learning and natural language processing technology, test cases can be automatically generated and optimized, test questions can be answered in real time, defect reports and test reports can be generated, test risks can be predicted, and tasks can be intelligently assigned, thereby significantly shortening the test cycle, reducing human errors, and improving software test coverage and software quality.

[0031] An embodiment of the present application provides a method for generating software testing auxiliary information. The method in this embodiment can be applied to servers, terminal devices, platforms, devices, etc. with computing and processing capabilities, wherein the server can be a server cluster or a single server, a server deployed in the cloud, or a local server.

[0032] like Figure 2 The flowchart of the method for generating software test auxiliary information according to an embodiment of the present application is shown, comprising: Step S201, obtaining user demand information for software testing. During the software testing process, users may generate various types of requirements to assist the smooth progress of software testing. Requirement information input by the user through the interactive interface is received, and the specific types of the requirement information may include but are not limited to text type or voice type.

[0033] The text type demand information includes text directly input by the user, documents uploaded by the user, etc. If the user inputs the voice type demand information, the voice information can be recognized to obtain text information for subsequent processing.

[0034] Step S202: perform intent recognition on the demand information to obtain the user's intent.

[0035] By performing natural language processing and recognition on demand information, the user's intention, that is, the purpose of the user inputting the demand information, can be obtained.

[0036] Step S203: determining the information processing flow related to the software test corresponding to the requirement information according to the user's intention.

[0037] The information processing flow related to software testing includes the acquisition process of the auxiliary information required in the software testing process, for example, what information to obtain, how to process it, the specific steps of processing, etc. Different user intentions have different corresponding information processing flows.

[0038] Step S204: Generate software test auxiliary information according to the demand information and the information processing flow.

[0039] The requirement information may include at least one of instruction information, specific description information of the requirement, document information, etc. By parsing the requirement information, the specific content of the requirement information is obtained. According to the parsing result of the requirement information and the information processing flow corresponding to the requirement information, software test auxiliary information required by the user is generated. The software test auxiliary information refers to the auxiliary information required in the software test process, including but not limited to test cases, answers to test questions, defect reports, test reports, test risk prediction results, test task assignment results, etc.

[0040] The method for generating software test auxiliary information provided by this application is as follows: First, obtain the requirement information of the user for software testing; perform intent recognition on the requirement information to obtain the user intent; then, according to the user intent, determine the information processing flow related to software testing corresponding to the requirement information; finally, generate software test auxiliary information according to the requirement information and the information processing flow. In this embodiment, by performing intent recognition on the requirement information of software testing, the information processing flow related to software testing corresponding to the requirement information is determined, and software test auxiliary information is automatically generated according to the information processing flow to assist the user in software testing, which can greatly shorten the test cycle, reduce human errors, and improve test efficiency and accuracy.

[0041] The following introduces the specific implementation processes of the above steps through multiple implementation methods: In one implementation method, in step S202, performing intent recognition on the requirement information to obtain the user intent includes: using a pre-trained large language model to perform intent recognition on the requirement information to obtain the user intent.

[0042] Specifically, using a pre-trained large language model for natural language processing, first, perform data preprocessing, which specifically includes: Text cleaning: Remove stop words (such as "de", "le", "zai", etc.) and normalization processing (for example, convert different encoding formats to a unified format). Word segmentation: Perform word segmentation on the input natural language text, and use a word library and rules to identify each word. Part-of-speech tagging: Tag the part of speech of each word (such as noun, verb, adjective, etc.) to provide a basis for subsequent sentence analysis. Secondly, perform sentence analysis, which specifically includes: Entity recognition: Use NER technology to identify key entities in the sentence (such as person names, locations, organizations, dates, etc.). Dependency syntax analysis: Use dependency syntax analysis technology to establish a dependency relationship tree between words and identify the subject-predicate-object structure, modification relationship, etc. Thirdly, perform semantic understanding, which specifically includes: Intent recognition: Use the large language model to analyze the global semantics of the sentence and identify the user intent. Among them, the user intent includes any one of the following: generating test cases, answering test questions, generating defect reports, generating test reports, predicting test risks, or test task assignment.

[0043] In this embodiment, a pre-trained large language model is used for intent recognition, and the recognition result is more accurate, so as to accurately determine the information processing flow corresponding to the demand information, which serves as the basis for the subsequent generation of software testing auxiliary information.

[0044] In one implementation, the user intends to generate a test case. In step S204, software testing auxiliary information is generated according to the requirement information and the information processing flow, including: determining the test case description information according to the requirement information; generating the test case according to the test case description information using a test case generation model, wherein the test case generation model is obtained by training a pre-trained large language model using data collected from a version control system and a continuous integration / continuous delivery pipeline; the software testing auxiliary information includes the test case.

[0045] In actual applications, the user's intention is to generate test cases. By parsing the requirement information, the test case description information is obtained to describe the specific content of the test case required by the user. For example, key functions, operation steps, expected results and other elements. The large language model is used to generate test cases based on the extracted test case description information.

[0046] Among them, test requirements, code changes, and test result information are collected from the version control system and CI / CD pipeline in advance as training samples to train the pre-trained large language model. The test case generation model is used to generate the test cases required by users based on the test case description information.

[0047] In this embodiment, the test case generation model is used to generate the test case, which is convenient and fast and can improve the test efficiency.

[0048] In one implementation, the software testing auxiliary information generation method further includes: comparing the test case with a preset test case template to obtain a comparison result; if the comparison result indicates that the test case does not match the preset test case template, completing the test case.

[0049] Specifically, the generated test cases are matched with the preset test case templates to ensure that the generated test cases meet the format and content specifications. The missing and incomplete parts are completed, including input data, environment settings, expected results, etc.

[0050] In this embodiment, by completing the test case, the test case can be made more complete and standardized, ensuring that the generated test case can be successfully used in subsequent software testing.

[0051] In one implementation, the software testing auxiliary information generation method also includes: receiving test case optimization instructions input by a user, analyzing and processing the test case to obtain analysis and processing results; the analysis and processing includes at least one of redundancy detection or coverage analysis; according to the analysis and processing results, determining optimization suggestion information; based on the optimization suggestion information, using the test case generation model to generate optimized test cases.

[0052] In actual applications, test cases can be optimized according to the user's test case optimization instructions. Optionally, redundancy detection can be performed on test cases to analyze whether there is redundancy in test cases, merge similar test cases, and improve test efficiency. Optionally, coverage analysis can be performed on test cases. Use coverage analysis tools to evaluate the coverage of test cases and find test blind spots. Based on the coverage analysis and redundancy detection results, optimization suggestions are proposed, including adding boundary tests, exception tests, etc. The optimization suggestions are input into the test case generation model, and the optimized test cases are automatically generated through the test case generation model, and the test case library is updated.

[0053] In this embodiment, through test case optimization, redundancy can be reduced, coverage can be increased, and the effectiveness of test cases can be improved.

[0054] Optionally, the generated and optimized test cases are verified to ensure their accuracy and effectiveness.

[0055] Optionally, provide an interface for users to review and modify test cases and collect user feedback.

[0056] In one implementation, the user intends to answer the test question, and step S204 generates software test auxiliary information based on the demand information and the information processing flow, including: determining the question information to be answered based on the demand information; using a pre-trained large language model to query questions and answers matching the question information in a preset database, and generating reply information corresponding to the question information based on the questions and answers matching the question information, wherein the software test auxiliary information includes the reply information.

[0057] In actual applications, the user's intention is to answer the test question, and then the pre-trained large language model is used to analyze the input demand information and identify the user's question intention, such as "query the reason for login failure". The pre-trained large language model is used to retrieve the preset knowledge base and historical problem solving records to query matching questions and answers. The pre-trained large language model is used to generate detailed answers and suggestions based on the queried matching questions and answers, and output as reply information. The results are output to the user, and the detailed answers can be displayed through text, voice or visual interface.

[0058] In this embodiment, using a pre-trained large language model for question answering can improve the efficiency and accuracy of test question answering.

[0059] Optionally, an interface is provided for users to review and confirm the generated answers to ensure the accuracy and comprehensiveness of the answers.

[0060] Optionally, use unit tests or automated test cases to verify the generated solution to ensure its feasibility.

[0061] Optionally, user feedback and actual verification results are recorded and stored in a preset knowledge base, and the knowledge base is continuously optimized and updated.

[0062] In one implementation, the user intends to generate a defect report. In step S204, software testing auxiliary information is generated according to the requirement information and the information processing flow, including: determining problem information in the debugging process according to the requirement information; generating a software defect report based on the problem information in the debugging process using a defect report generation model, wherein the defect report generation model is obtained by training a pre-trained large language model using problem samples, defect report samples, and debugging suggestion samples; the software testing auxiliary information includes a software defect report.

[0063] In actual applications, problem samples, defect report samples, and debugging suggestion samples are obtained in advance, and the pre-trained large language model is trained to obtain a defect report generation model. If the user's intention is to generate a defect report, natural language processing is used, that is, preprocessing, statement parsing, and semantic understanding of the requirement information are performed to obtain the problem information found by the user during the software debugging process, and the defect report generation model is used to automatically generate a standardized defect report. The report content includes but is not limited to the problem description, reproduction steps, log information, stack trace, impact range, etc. The generated defect report is automatically submitted to the defect management system and the relevant personnel are notified.

[0064] Optionally, update the defect status in the report in real time, such as newly discovered, being resolved, resolved, etc. Record the resolution progress and change history to facilitate subsequent query and analysis.

[0065] In one implementation, the software testing auxiliary information generation method further includes: creating a collaborative debugging session according to a session creation instruction; acquiring software debugging information based on the collaborative debugging session; and generating debugging suggestion information based on the software debugging information using a defect report generation model.

[0066] In actual applications, it is also possible to receive session creation instructions input by users, create collaborative debugging sessions, invite relevant developers to join the sessions as multiple participants of collaborative debugging sessions, and multiple participants communicate in real time through text, voice or video, and share software debugging information such as current code status, stack traces, and variable values ​​in real time through collaborative debugging sessions. Collaborative debugging sessions can support multiple participants to edit and view code in real time, and all participants can see the latest debugging status. Use defect report generation models to analyze software debugging information and provide real-time debugging suggestions and solutions.

[0067] In addition, the status changes of various issues during the debugging process can be automatically synchronized based on the collaborative debugging session, such as being processed, fixed, and requiring further analysis. The debugging process, problem status changes, and solution records are saved for subsequent review and analysis.

[0068] In this embodiment, by creating a collaborative debugging session, the fact sharing of the problem status and the progress of the solution can be achieved, and the defect report generation model is used to provide real-time debugging suggestion information and solutions, which can improve the efficiency of software debugging.

[0069] In one implementation, the user intends to generate a test report, and step S204 generates software test auxiliary information according to the requirement information and the information processing flow, including: determining the test report description information according to the requirement information; generating the test report based on the test report description information using a test report generation model, wherein the test report generation model is obtained by training a pre-trained large language model using report description samples and test report samples; the software test auxiliary information includes a test report; wherein the test report includes at least one of the following: test case execution status, test coverage statistics, and a list of defects found.

[0070] In actual applications, it is recognized that the user's intention is to generate a test report. By parsing the requirement information, the test report description information is obtained, such as test execution results, coverage, and defects found. The report description samples and test report samples are obtained in advance, and the pre-trained large language model is trained to obtain a test report generation model. The test report description information is input into the test report generation model, and a detailed test report is automatically generated and output. The test report includes but is not limited to: test case execution status, test coverage statistics, and a list of defects found.

[0071] In this embodiment, a detailed test report is generated using a test report generation model, so that the user can understand the test process more comprehensively and intuitively.

[0072] Optionally, you can also generate customized reports based on the user's personalized needs. Through conversations with users, understand the specific needs of customized reports, including report content, format, key indicators, etc. Generate a report template based on user needs, including the data to be displayed and a specific format. Fill the collected and parsed test data into the report template to generate a customized test report that meets user requirements.

[0073] In one implementation, the software test auxiliary information generation method further includes: determining a version number of the test report, and storing a modification record of the test report corresponding to the version number; and comparing multiple test reports with different version numbers to determine the changed content.

[0074] In actual applications, a version number can be provided for each generated test report, and detailed information of each modification can be recorded, such as the person who modified it, the content of the modification, and the time. Test reports of different versions can be compared to display the changes to ensure the consistency and traceability of the test reports. A test report rollback function can also be provided, so that when errors are found or requirements are changed, the previous version can be quickly rolled back.

[0075] In this embodiment, by performing version management and control on the test report, it is easy to find problems and solve them in time, thereby ensuring the traceability of the test report.

[0076] Optionally, provide a review and approval process for test reports, and set specific reviewers and approvers. Track the review and approval status of test reports in real time, record the operator and time of each link, and ensure the accuracy and compliance of test reports. When a test report enters the review and approval process, automatically notify relevant personnel to ensure timely processing.

[0077] Optionally, set access rights to test reports based on user roles and needs to ensure the security of sensitive information. Record every access, modification, and download operation of the test report to ensure the security of the test report and the traceability of the operation.

[0078] In one implementation, the user intends to predict test risks. In step S204, software test auxiliary information is generated according to the demand information and the information processing flow, including: determining test description information according to the demand information, the test description information including the test status and the test progress; based on the test description information, generating risk prediction results using a risk prediction model, the risk prediction model is obtained by training a large language model using historical test data of software testing, and the software test auxiliary information includes the risk prediction results.

[0079] In actual applications, the user's intention is to predict test risks. By parsing the demand information, test description information is obtained, such as the current test status, project progress, historical defect data, etc. The test description information is input into the risk prediction model to predict the test risk, and the risk prediction results are obtained, including: high-risk areas and possible defect types, etc., which are displayed in a visual way, and detailed risk descriptions and early warning suggestions are provided.

[0080] The risk prediction model is trained based on the pre-trained large language model using historical test data. The historical test data includes historical debugging process data, problem data that occurred during the debugging process, solution data, etc.

[0081] In this embodiment, by using a large language model to predict test risks, risk warnings can be performed, problems in the test process can be reduced, and test efficiency can be improved.

[0082] In one implementation, the user intends to allocate a test task, and step S204 generates software test auxiliary information based on the demand information and the information processing flow, including: determining the task category and task priority of the test task based on the demand information; evaluating the task resources of the test task to obtain a resource evaluation result; allocating task resources based on the task category, task priority and resource evaluation result to obtain a task allocation result, and the software test auxiliary information includes the task allocation result.

[0083] In actual applications, the user's intention is identified to allocate test tasks, and the demand information is parsed to obtain the task category and task priority of the test task. For example, tasks are classified into critical tasks, urgent tasks, and ordinary tasks. Priorities are set for various tasks based on the actual test progress and resource status. Task resources for test tasks are evaluated, and the workload, skill matching, and available time of current team members are evaluated. Based on the task category, task priority, and resource evaluation results, test and repair tasks are assigned.

[0084] In this embodiment, by intelligently allocating tasks and scheduling resources, resource utilization can be optimized and team efficiency can be improved.

[0085] In one implementation, the software testing auxiliary information generation method further includes: obtaining the completion progress and task status of the test task; adjusting the task priority according to the completion progress and task status; and allocating task resources according to the adjusted task priority.

[0086] In actual applications, you can also track task progress and dynamically adjust resource allocation. Obtain task progress and update task status through a conversational interactive interface. Based on task progress and real-time feedback, dynamically adjust task priority and resource allocation to ensure that test tasks are completed within the scheduled time.

[0087] Optionally, automatically notify relevant team members of the assigned tasks and provide necessary task background and related information. Based on a conversational interactive interface, support multi-user real-time communication and collaboration, share task progress and instant feedback. Support team members to report problems encountered in tasks in real time, and use large language models to provide solutions and support.

[0088] Optionally, after the test task is completed, compare the actual results with the predicted results to evaluate the effect of task allocation. Optionally, collect user feedback and system operation data to analyze the quality, efficiency and user experience of task completion. Use the evaluation and feedback results to continuously optimize the task allocation algorithm and improve system performance.

[0089] An embodiment of the present application provides a method for generating software testing auxiliary information. The method in this embodiment can be applied to servers, terminal devices, platforms, devices, etc. with computing and processing capabilities, wherein the server can be a server cluster or a single server, a server deployed in the cloud, or a local server.

[0090] like Figure 3 The figure shows a flow chart of a method for generating software testing auxiliary information according to an embodiment of the present application. The method in this embodiment can be implemented in the form of an intelligent testing assistant. The intelligent testing assistant receives user demand information through an interactive page, determines user intent through natural language processing, divides user needs into corresponding processing modules for processing, and finally outputs the processing results in the intelligent testing assistant.

[0091] The specific processing process is as follows: First, user demand input is received. Specifically, demand information input by the user through an interactive interface is received, and the specific type of the demand information may include but is not limited to text type or voice type.

[0092] The text type demand information includes text directly input by the user, documents uploaded by the user, etc. If the user inputs the voice type demand information, the voice information can be recognized to obtain text information for subsequent processing.

[0093] Second, natural language processing.

[0094] For natural language processing using large language models, first, data preprocessing is carried out, specifically including: Text cleaning: Removing stop words (such as "de", "le", "zai", etc.) and normalization processing (for example, converting different encoding formats into a unified format). Word segmentation: Performing word segmentation on the input natural language text, and using a word library and rules to identify each word. Part-of-speech tagging: Tagging the part of speech of each word (such as noun, verb, adjective, etc.), providing a basis for subsequent sentence analysis. Secondly, sentence analysis is carried out, specifically including: Entity recognition: Using NER technology to identify key entities in the sentence (such as person names, locations, organizations, dates, etc.). Dependency parsing: Using dependency parsing technology to establish a dependency relationship tree between words, and identifying the subject-predicate-object structure, modification relationship, etc. Thirdly, semantic understanding is carried out, specifically including: Intent recognition: Using a large language model to analyze the global semantics of the sentence and identify the user's intent. Among them, the user's intent includes any one of the following: generating test cases, answering test questions, generating defect reports, generating test reports, predicting test risks, or test task allocation.

[0095] Thirdly, according to the user's intent, determine the information processing flow related to software testing, and generate software testing auxiliary information according to the requirement information and the information processing flow.

[0096] If the user's intent is test case generation, that is, generating test cases. Then use the test case generation module to generate test cases through a large language model.

[0097] If the user's intent is problem solving, that is, answering test questions. Then use the question answering module to generate question answers through a large model.

[0098] If the user's intent is problem tracking, that is, generating defect reports. Then use the problem tracking module to generate defect reports through a large model.

[0099] If the user's intent is document generation, that is, generating test reports. Then use the document generation and management module to generate customized reports through a large model.

[0100] If the user's intent is intelligent prediction, that is, predicting test risks or test task allocation. Then use the intelligent prediction and task allocation module to perform defect risk prediction and task scheduling through a large model, and obtain risk prediction results and task allocation results.

[0101] Finally, the intelligent test assistant outputs software testing auxiliary information.

[0102] The interaction interface of the intelligent test assistant is as Figure 4 shown. Through the page input box of the intelligent test assistant (such as Figure 4) to receive the user's input requirement information: "Write a test case for the following requirement. Requirements description: 1-7 (For details, see Figure 4 )”, display the requirement information in the user interface, and extract the test case description information based on the requirement information, that is, the requirement description: 1-7. After natural language processing, the requirement is transferred to the test case generation module. The test case generation module generates the test case plan and expected results according to the description in the test case description information, such as Figure 4 Test case A shown includes: use case number, prerequisites, use case title, use case steps and use case expectations.

[0103] In addition, the intelligent test assistant can also generate specific executable test case code based on the test case plan. The input instruction format is [language type test case plan name]. For example, after receiving user input information "Python test case A", the intelligent test assistant outputs the execution code of test case A in Python language and displays it in the interactive interface.

[0104] After the test case is executed, the user can consult the possible reasons for the failure of the failed test case online and generate a defect report. For example, after receiving the user input "reason for the failure of test case A", the intelligent test assistant outputs "the possible reasons for the failure of test case A are as follows: when initiating a verification code verification request to the server, the expected result was not obtained" and gives the request log. After receiving the user input "test case A defect report generation", the intelligent test assistant outputs the test case A defect report for the user to download or view online.

[0105] In this embodiment, the specific process of each module generating corresponding software test auxiliary information has been described in detail in the above embodiment and will not be repeated here.

[0106] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a software testing auxiliary information generating device. Figure 5 The figure is a structural block diagram of a software testing auxiliary information generating device according to an embodiment of the present application, the device comprising: The information acquisition module 501 is used to acquire the user's requirement information for software testing. The intention recognition module 502 is used to perform intention recognition on the demand information to obtain the user intention.

[0107] The process determination module 503 is used to determine the information processing process related to the software test corresponding to the requirement information according to the user's intention.

[0108] The information generation module 504 is used to generate software test auxiliary information according to the demand information and the information processing flow.

[0109] The software testing auxiliary information generation device provided by the present application obtains the user's demand information for software testing; performs intent recognition on the demand information to obtain the user's intent; determines the information processing flow related to the software testing corresponding to the demand information according to the user's intent; and generates software testing auxiliary information according to the demand information and the information processing flow. In this embodiment, by performing intent recognition on the software testing demand information, determining the information processing flow related to the software testing corresponding to the demand information, automatically generating software testing auxiliary information according to the information processing flow, and assisting the user in software testing, the test cycle can be greatly shortened, human errors can be reduced, and the test efficiency and accuracy can be improved.

[0110] In one implementation, the intent recognition module 502 is used to: use a pre-trained large language model to perform intent recognition on demand information to obtain user intent; wherein the user intent includes any of the following: generating test cases, answering test questions, generating defect reports, generating test reports, predicting test risks or assigning test tasks.

[0111] In one implementation, the user intends to generate a test case, and the information generation module 505 is used to: determine the test case description information based on the requirement information; generate the test case based on the test case description information using a test case generation model, the test case generation model is obtained by training a pre-trained large language model using data collected from a version control system and a continuous integration / continuous delivery pipeline; the software testing auxiliary information includes the test case.

[0112] In one implementation, the software testing auxiliary information generating device is further used to: compare the test case with a preset test case template to obtain a comparison result; if the comparison result indicates that the test case does not match the preset test case template, then complete the test case.

[0113] In one implementation, the software testing auxiliary information generating device is also used to: receive test case optimization instructions input by a user, analyze and process the test case, and obtain analysis and processing results; the analysis and processing includes at least one of redundancy detection or coverage analysis; according to the analysis and processing results, determine optimization suggestion information; based on the optimization suggestion information, use the test case generation model to generate optimized test cases.

[0114] In one implementation, the user intends to answer the test questions, and the information generation module 505 is used to: determine the question information to be answered based on the demand information; use the pre-trained large language model to query the questions and answers that match the question information in the preset database, and generate reply information corresponding to the question information based on the questions and answers that match the question information. The software testing auxiliary information includes the reply information.

[0115] In one implementation, the user intends to generate a defect report, and the information generation module 505 is used to: determine the problem information in the debugging process based on the requirement information; based on the problem information in the debugging process, generate a software defect report using a defect report generation model, and the defect report generation model is obtained by training a pre-trained large language model using problem samples, defect report samples and debugging suggestion samples; software testing auxiliary information includes a software defect report.

[0116] In one implementation, the software testing auxiliary information generating device is further used to: create a collaborative debugging session according to a session creation instruction; obtain software debugging information based on the collaborative debugging session; and generate debugging suggestion information based on the software debugging information using a defect report generation model.

[0117] In one implementation, the user intends to generate a test report, and the information generation module 505 is used to: determine the test report description information based on the requirement information; based on the test report description information, generate the test report using a test report generation model, the test report generation model is obtained by training a pre-trained large language model using report description samples and test report samples; the software testing auxiliary information includes a test report; wherein the test report includes at least one of the following: test case execution status, test coverage statistics, and a list of defects found.

[0118] In one implementation, the software test auxiliary information generating device is further used to: determine the version number of the test report, and store the modification record of the test report corresponding to the version number; compare multiple test reports with different version numbers to determine the changed content.

[0119] In one implementation, the user intends to predict test risks, and the information generation module 505 is used to: determine the test description information based on the demand information, and the test description information includes the test status and test progress; based on the test description information, generate a risk prediction result using a risk prediction model, and the risk prediction model is obtained by training a large language model using historical test data of software testing, and the software testing auxiliary information includes the risk prediction result.

[0120] In one implementation, the user intends to assign a test task, and the information generation module 505 is used to: determine the task category and task priority of the test task based on the demand information; evaluate the task resources of the test task to obtain a resource evaluation result; allocate task resources based on the task category, task priority and resource evaluation result to obtain a task allocation result, and the software testing auxiliary information includes the task allocation result.

[0121] In one implementation, the software testing auxiliary information generating device is further used to: obtain the completion progress and task status of the test task; adjust the task priority according to the completion progress and task status; and allocate task resources according to the adjusted task priority.

[0122] Figure 6 is a block diagram of an electronic device used to implement an embodiment of the present application. Figure 6 As shown, the electronic device includes: a memory 610 and a processor 620. The memory 610 stores a computer program that can be run on the processor 620. When the processor 620 executes the computer program, the method in the above embodiment is implemented. The number of the memory 610 and the processor 620 can be one or more.

[0123] The electronic device also includes: The communication interface 630 is used to communicate with external devices and perform data exchange transmission.

[0124] If the memory 610, the processor 620 and the communication interface 630 are implemented independently, the memory 610, the processor 620 and the communication interface 630 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0125] Optionally, in a specific implementation, if the memory 610, the processor 620 and the communication interface 630 are integrated on a chip, the memory 610, the processor 620 and the communication interface 630 can communicate with each other through an internal interface.

[0126] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.

[0127] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0128] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.

[0129] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.

[0130] It should be understood that the above processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0131] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of exemplary but not limiting description, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0132] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0133] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0134] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0135] Any process or method described in the flow chart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.

[0136] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.

[0137] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0138] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0139] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope recorded in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for generating software testing auxiliary information, characterized in that: include: Obtain user demand information for software testing; Performing intent recognition on the demand information to obtain user intent; Determine, according to the user's intention, an information processing flow related to the software test corresponding to the requirement information; Software testing auxiliary information is generated according to the requirement information and the information processing flow.

2. The method according to claim 1, characterized in that The performing intention recognition on the demand information to obtain the user intention includes: Use a pre-trained large language model to identify the intent of the demand information to obtain the user's intent; The user intention includes any of the following: generating test cases, answering test questions, generating defect reports, generating test reports, predicting test risks or assigning test tasks.

3. The method according to claim 2, characterized in that The user intends to generate a test case, and the generating of software test auxiliary information according to the requirement information and the information processing flow includes: Determine test case description information according to the requirement information; According to the test case description information, a test case is generated using a test case generation model, wherein the test case generation model is obtained by training a pre-trained large language model using data collected from a version control system and a continuous integration / continuous delivery pipeline; the software testing auxiliary information includes the test case.

4. The method according to claim 3, characterized in that: The method further comprises: Compare the test case with a preset test case template to obtain a comparison result; If the comparison result indicates that the test case does not match the preset test case template, a completion operation is performed on the test case.

5. The method according to claim 3, characterized in that: The method further comprises: Receive a test case optimization instruction input by a user, analyze and process the test case, and obtain an analysis and processing result; the analysis and processing includes at least one of redundancy detection or coverage analysis; Determine optimization suggestion information according to the analysis and processing results; Based on the optimization suggestion information, the optimized test case is generated using the test case generation model.

6. The method according to claim 2, characterized in that The user intends to answer the test question, and the software test auxiliary information is generated according to the demand information and the information processing flow, including: Determine the question information to be answered according to the demand information; A pre-trained large language model is used to query questions and answers matching the question information in a preset database, and reply information corresponding to the question information is generated according to the questions and answers matching the question information, and the software testing auxiliary information includes the reply information.

7. The method according to claim 2, characterized in that The user intends to generate a defect report, and the software testing auxiliary information is generated according to the requirement information and the information processing flow, including: Determine problem information during debugging according to the requirement information; Based on the problem information in the debugging process, a software defect report is generated using a defect report generation model, wherein the defect report generation model is obtained by training a pre-trained large language model using problem samples, defect report samples and debugging suggestion samples; the software testing auxiliary information includes the software defect report.

8. The method according to claim 7, characterized in that The method further comprises: Create a collaborative debugging session according to the session creation instruction; Based on the collaborative debugging session, obtaining software debugging information; Based on the software debugging information, debugging suggestion information is generated using the defect report generation model.

9. The method according to claim 2, characterized in that: The user intends to generate a test report, and the software test auxiliary information is generated according to the requirement information and the information processing flow, including: Determine test report description information according to the requirement information; Based on the test report description information, a test report is generated using a test report generation model, wherein the test report generation model is obtained by training a pre-trained large language model using a report description sample and a test report sample; the software test auxiliary information includes the test report; The test report includes at least one of the following: test case execution status, test coverage statistics, and a list of defects found.

10. The method according to claim 9, characterized in that The method further comprises: Determine the version number of the test report, and store the modification record of the test report corresponding to the version number; Compare the multiple test reports with different version numbers to determine the changed content.

11. The method according to claim 2, characterized in that The user intends to predict test risks, and the software test auxiliary information is generated according to the demand information and the information processing flow, including: Determine test description information according to the requirement information, wherein the test description information includes test status and test progress; Based on the test description information, a risk prediction result is generated using a risk prediction model, wherein the risk prediction model is obtained by training a pre-trained large language model using historical test data of software testing, and the software testing auxiliary information includes the risk prediction result.

12. The method according to claim 2, characterized in that: The user intends to allocate a test task, and the generating of software test auxiliary information according to the requirement information and the information processing flow includes: Determine the task category and task priority of the test task according to the requirement information; Evaluate the task resources of the test task to obtain a resource evaluation result; Based on the task category, the task priority and the resource evaluation result, task resource allocation is performed to obtain a task allocation result, and the software test auxiliary information includes the task allocation result.

13. The method according to claim 12, characterized in that The method further comprises: Obtaining the completion progress and task status of the test task; Adjusting the task priority according to the completion progress and task status; Allocate task resources based on the adjusted task priorities.

14. An electronic device, characterized in that: The electronic device comprises a memory, a processor and a computer program stored in the memory, and the processor implements the method according to any one of claims 1 to 13 when executing the computer program.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.

16. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Task processing method, device, system and equipment and readable storage medium

    CN117094376A

  • Software function automatic test method and system, terminal and medium

    CN117421217A

  • Test case generation method and device, terminal equipment and readable storage medium

    CN117707922A

  • Automatic testing method and system, electronic equipment and readable storage medium

    CN118467402A

  • Test automation for data processing

    US10983904B1

Cited By

  • Household appliance testing method and related device

    CN119441055A

  • LLM model-based defect detection system

    CN119688686A

  • A defect detection system based on a LLM model

    CN119688686B

  • Test case generation method and device, equipment and storage medium

    CN119739635A

  • Software development and function detection system and method based on artificial intelligence

    CN120233991A