Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

7322 results about "Test case" patented technology

A test case is a specification of the inputs, execution conditions, testing procedure, and expected results that define a single test to be executed to achieve a particular software testing objective, such as to exercise a particular program path or to verify compliance with a specific requirement. Test cases underlie testing that is methodical rather than haphazard. A battery of test cases can be built to produce the desired coverage of the software being tested. Formally defined test cases allow the same tests to be run repeatedly against successive versions of the software, allowing for effective and consistent regression testing.

Test case generation using generating artificial intelligence

An example operation may include one or more of receiving a request to test a software program from a user device, the request comprising a description of requirements of the software program, generating a plurality of testing elements based on execution of a generative artificial intelligence (GenAI) model on the description of the requirements of the software program and a repository of test cases, generating a test case for testing the software program where the test case comprises the plurality of testing elements generated by the GenAI model, and storing the test case within a storage device.
Owner:THE TORONTO DOMINION BANK

Large language model training for test case generation

An example operation may include one or more of generating a large language model via a user interface, executing the large language model on a repository of software test cases and requirements of the software test cases to train the large language model to understand connections between test case components and test case requirements, receiving a description of features of a software program to be tested, and in response to receiving the description of the features, generating a software test case based on execution of the large language model on the received descriptions, and displaying the software test case via the user interface.
Owner:THE TORONTO DOMINION BANK

Cross-chip platform compiling tool chain method

The embodiment of the invention provides a cross-chip platform compiling tool chain method which comprises the following steps: scanning a target platform architecture specification file to extract instruction set features, constructing a platform difference matrix based on the instruction set features to record instruction formats and system call differences of different chip platforms, and normalizing a multi-language syntax tree into a unified intermediate representation; constructing a cross-platform compiler to convert the intermediate representation into a target code; designing a unified intermediate language based on a platform difference matrix to support multi-language compilation; creating an instruction mapper to convert the intermediate representation into a target platform instruction; identifying a target architecture type through a platform identification code; designing a test case to verify a compiling result, and deploying the optimized target program to a target platform; according to the method and the device, the expandability and the code quality of the compiling tool chain can be improved by constructing the unified intermediate presentation layer and the optimization framework, and more efficient cross-platform support is realized.
Owner:UNIVERSAL UBIQUITOUS TECH CO LTD

Unit test case generation system based on large language model

The invention provides a unit test case generation system based on a large language model, and the system comprises a function dependency analysis engine module which is used for preprocessing a target project, extracting a function dependency relationship, and generating an abstract syntax tree and a source code file; the large model module is used for automatically generating a test case through the code context information and the optimized cue word; and the verification and optimization module is used for verifying whether the test cases can be successfully executed or not by compiling and running the test cases, marking part of the test cases needing to be further processed, automatically analyzing error reasons, optimizing cue words and realizing automatic repair of the part of the test cases. According to the unit test case generation system based on the large language model, the function dependency analysis and the large language model are combined, the high-quality test case can be automatically generated, dependence on manpower or existing test cases is not needed, manual intervention is reduced, and the test efficiency and comprehensiveness are improved.
Owner:SHANGHAI ANBAN INFORMATION TECH CO LTD

Large language models for creating a multi-lingual, low-resource code translation dataset

One or more unit-test cases are generated from a monolingual code corpus and the generated unit-test cases are filtered to generate a corpus of unit-test cases which have acceptability scores exceeding one or more predefined thresholds. One or more of the code samples of the monolingual code corpus are translated from a source language to a target language using a pretrained Large Language Model and the generated unit-test cases are translated from the source language to the target language. The LLM-translated code samples are validated using the translated unit-test cases and a parallel-data training corpus comprising the LLM-translated code samples that pass the validation is created. The pretrained large language model (LLM) is fine-tuned using the parallel-data training corpus, a given code segment is translated using the fine-tuned large language model (LLM), the translated given code segment is tested and the tested given code segment is deployed.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION +1

Verification method and system of chip simulation model, medium and program product

The invention discloses a verification method and system of a chip simulation model, a medium and a program product, and relates to the technical field of chip verification, and the method comprises the steps: obtaining a simulation model and a performance parameter index of a to-be-verified chip; generating model training data based on the historical performance indexes, the corresponding historical use case set and the historical verification result, and performing model training based on the model training data to obtain a use case generation model; inputting the performance parameter indexes to a case generation model to obtain a test case set and a test verification expectation; executing a plurality of test cases in the test case set based on the simulation model, and recording an actual response result of the simulation model; based on the actual response result and the test verification expectation, generating a test log, and determining an abnormal mark in the test log; and marking the fault features corresponding to the exception, taking the test cases as newly added training data, and optimizing the case generation model based on the newly added training data. According to the invention, the chip verification efficiency can be improved.
Owner:SHENZHEN CHENG XIN WEI TECH CO LTD

System and method for ai safety red-teaming with policy fuzzing and adversarial prompting

The present invention discloses a system and method for performing artificial intelligence (AI) safety red-teaming with integrated policy fuzzing and adversarial prompting to systematically identify, characterize, and mitigate unsafe or non-compliant behaviors in AI models. The disclosed invention automates the process of generating, executing, and analyzing adversarial test cases through coordinated functional units comprising a policy fuzzing unit, an adversarial prompting unit, an execution sandbox, a telemetry processing unit, a scoring and triage processor, and a cryptographic provenance processor. The system applies grammar-driven and reinforcement-based fuzzing techniques to vary policy descriptors, model configuration parameters, and instruction hierarchies, while a learned adversarial prompt generator synthesizes contextually coherent adversarial prompts optimized for maximum policy violation likelihood. The generated prompts and policy vectors are executed in an isolated, instrumented sandbox that records input-output interactions, timing characteristics, and intermediate representations.
Owner:MOGALI SUNEEL KUMAR +3

Vulnerability remediation code detection method and related device

The present application provides a vulnerability remediation code identification method, comprising: acquiring commit information of open-source software, the commit information comprising a committed code snippet and text information associated with the code snippet; inputting the commit information into a first language model and performing identification to obtain function change information and test case information; inputting the function change information into a vulnerability remediation identification model to obtain a vulnerability remediation code snippet for a target vulnerability, and inputting the test case information into a vulnerability test case identification model to obtain a test case code snippet for the target vulnerability; and inputting the vulnerability remediation code snippet for the target vulnerability and the test case code snippet for the target vulnerability into a second language model and performing integration and identification to obtain an identification result. On the basis of notable characteristics in a test case for a vulnerability, the identification rate of vulnerability remediation code can be effectively increased. In this way, a user can discover potential vulnerabilities in advance, thus reducing security risks.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Unmanned aerial vehicle flight control system vulnerability detection method based on data flow analysis and LLM

The invention discloses an unmanned aerial vehicle flight control system vulnerability detection method based on data flow analysis and LLM, and belongs to the technical field of intelligent software testing. Comprising the following steps: extracting a code function module associated with user operation in an unmanned aerial vehicle flight control system through a data flow analysis method, and establishing an operation-code mapping relation library; generating a structured natural language semantic description for each function module code by adopting a large language model LLM, and forming a multi-dimensional semantic feature vector; based on correlation analysis of multi-module semantic features, a combined test scene is constructed, and a natural language test case is generated; the natural language test case is converted into an executable test code through reverse semantic mapping, and coding reconstruction of test logic is completed; and executing a test code and capturing a runtime log in an unmanned aerial vehicle simulation environment, and performing vulnerability feature extraction and root cause positioning by using a large language model. According to the method, the efficiency is improved, and meanwhile, the deep coverage test of a complex interaction scene is supported.
Owner:HUAZHONG UNIV OF SCI & TECH

Safety evaluation method based on large language model and related device

The invention relates to the field of data processing, in particular to a security evaluation method based on a large language model and a related device. The method comprises the following steps: identifying a security evaluation dimension matched with a large language model; generating an autonomous test case of the large language model based on the security evaluation dimension; the autonomous test case comprises a normal user and an abnormal case; the information content in the abnormal use case corresponds to the type of the large language model; the autonomous test case is input into the large language model to execute a model function, and a response result of the large language model to the autonomous test case is obtained; and generating a security evaluation report for the large language model based on the response result. According to the method, the autonomous test case is adopted to actively evaluate the safety of the model, the automatic comprehensive evaluation of the model is realized, the model safety evaluation efficiency and accuracy are improved, the adaptability to models in different fields and scales is enhanced, the automation and continuous optimization of safety evaluation are realized, and the operation safety of the model is ensured.
Owner:BEIJING LIXIN INTELLIGENT TECH CO LTD

Vulnerability detection method and related device

The present application provides a vulnerability detection method, comprising: acquiring a target branch of a target API in a detected code; generating a test case of the target API on the basis of proof information of a vulnerability API, wherein the test case of the target API is used for testing whether the target API has a vulnerability; determining an original seed for performing fuzz testing on the target branch of the target API; inputting the original seed into the test case of the target API; testing the target branch by means of the test case into which the original seed is inputted; screening for a seed on the basis of a test result; mutating the screened seed, and then inputting the mutated seed into the test case of the target API; and performing the next round of testing on the target branch by means of the test case into which the mutated seed is inputted so as to detect the vulnerability in the detected code. According to the method, saturation fuzz testing is performed on a specific branch (i.e., the target branch) of a specific API in a detected code, thereby achieving the objective of triggering the vulnerability quickly, realizing efficient fuzz testing for a vulnerability discovery scenario, and improving the vulnerability discovery efficiency.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Automated System for Detecting Likelihood of Falsified Outputs from Large Language Models (LLM)

A computing platform may generate, using a test case generation model, a plurality of large language model (LLM) test cases. The computing platform may input, into an LLM, the plurality of LLM test cases, which may produce a plurality of unverified LLM test results. The computing platform may input, into a validation model, the plurality of LLM test cases, which may produce a plurality of validated LLM test results. The computing platform may compare, using a falsified output evaluation model, the plurality of unverified LLM test results with the corresponding plurality of validated LLM test results, which may produce an LLM compliance score for the LLM. The computing platform may compare the LLM compliance score to a compliance threshold. Based on identifying that the LLM compliance score meets or exceeds the compliance threshold, the computing platform may automatically deploy the LLM for use in an enterprise environment.
Owner:BANK OF AMERICA CORP

Automatic test case generation method based on large model and particle swarm optimization

The invention discloses an automatic test case generation method based on a large model and a particle swarm algorithm, and the method comprises the steps: designing a large language model demand analysis module, carrying out the semantic analysis of a demand document or code annotation of a software system through a large model, and generating a preliminary test case template; designing a particle swarm optimization module, and globally optimizing an input parameter combination and an execution path of the test case through a particle swarm optimization so as to improve the test coverage rate and the defect detection capability; and an automatic test execution and feedback module is designed, the particle swarm optimization evaluates the effectiveness of the test case according to the fitness function, a strategy is iteratively optimized and generated, and the test case is adjusted through a feedback mechanism. According to the method, efficient test cases can be effectively generated, various functions and boundary conditions of the system are covered, dynamic optimization of the test cases is achieved through a feedback mechanism, and comprehensiveness and reliability of system testing are ensured.
Owner:BEIHANG UNIV

Test case generation method and system based on large model and retrieval enhancement generation

The invention provides a test case generation method and system based on a large model and retrieval enhancement generation, and the method comprises the steps: obtaining a software description document, carrying out text fragment segmentation and vectorization, and constructing a software knowledge base; obtaining and vectorizing a demand document, and recalling a content optimization demand document in the reference software knowledge base based on the retrieval enhancement generation framework; constructing a first Prompt instruction, and splitting the optimized demand document into demand fragments of different test points by using a large language model; and finally, constructing a second Prompt instruction for the demand fragment of each test point, generating a test case by using a large language model, and establishing a mapping relationship between each test point and the test case for linkage output. According to the method, the understanding ability of the large model on the demand document is effectively enhanced; meanwhile, the requirements are decomposed into test points, mapping is carried out on the test points and related test cases, and completeness and accuracy of the requirements and the test cases can be conveniently sorted.
Owner:GUANGDONG UNIV OF TECH

Fuzzy testing method, device and equipment based on large language model

The invention relates to a fuzzy testing method, device and equipment based on a large language model, and the method comprises the steps: analyzing and analyzing RFC standard documents of various network protocols through the large language model, and extracting protocol rules and constraint conditions; according to the protocol rule and the constraint condition, a large language model driving method is adopted to generate a test case conforming to protocol characteristics; and performing a differential test through the test case, and verifying the consistency between the actual software of the network protocol and the RFC standard document. According to the invention, the accuracy and security of implementation of the complex network protocol can be improved, and the test efficiency and coverage rate are optimized.
Owner:TIANJIN UNIV

AI large model-based unit test case rapid generation method

The invention particularly relates to a unit test case rapid generation method based on an AI large model. According to the unit test case rapid generation method based on the AI large model, structure information is extracted through a static AST, an execution path is tracked through dynamic instrumentation, and code analysis is achieved; an analysis result is converted into cue words through AI, a multi-scene use case is generated through reasoning, and the multi-scene use case is matched with a language framework; counting row / branch / path coverage, identifying gaps and optimizing loop logic; hot spots and paths are displayed through a visual report, IDE one-key repair and manual correction of a feedback model are supported, intelligent retrieval and reuse of historical cases are realized by relying on FAISS, and the generation accuracy is continuously improved. According to the unit test case rapid generation method based on the AI large model, high-coverage-rate test case generation is achieved through the AI large model, the test case generation efficiency is remarkably improved, the test period is shortened, the software quality is improved, the workload of manually compiling and maintaining the test case is reduced, and the development cost is reduced.
Owner:INSPUR TIANYUAN COMM INFORMATION SYST CO LTD

Test case determination method and device, computer readable storage medium and processor

The invention discloses a test case determination method and device, a computer readable storage medium and a processor. The method comprises the following steps: identifying a source code of software by utilizing a pre-trained large model to obtain a plurality of functional modules in the software and a dependency relationship among the plurality of functional modules; in response to updating of the source code of the software, determining a code updating part in the source code; determining a test case matched with the code updating part from a test case library of the software based on the code updating part and a dependency relationship among the plurality of functional modules, the test case being used for testing the code updating part; based on a test result of the test case, adjusting a selection strategy of the test case; and re-determining the test case for testing the code updating part based on the adjusted selection strategy of the test case. The technical problem that a traditional regression test strategy is low in test efficiency is solved.
Owner:CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD

Python program test case generation method based on large language model

The invention belongs to the field of test case generation in traditional software engineering, and discloses a Python program test case generation method based on a large language model. The method can automatically generate and optimize a unit test case of a Python program, and comprises the following steps of: extracting public basic context and function information by utilizing project dependent structure scanning and an AST abstract syntax tree, and constructing an accurate cue word template; verification of grammar, operation logic and coverage rate is carried out on the test case generated by the large language model; aiming at the failed test case, designing a new cue word template and an iteration process so as to automatically iterate and improve, and setting the maximum number of iterations so as to ensure the efficiency; and finally, outputting an optimized high-quality successful test case set so as to improve the test efficiency and reduce the waste of manpower and material resources.
Owner:DALIAN UNIV OF TECH

Validation of code translation using intermediate representation

In some implementations, a code translation validation platform may convert source code, associated with a source application, to an intermediate representation that supports a source programing language and a target programing language. The code translation validation platform may identify metamorphic relations in the intermediate representation based on program constructs and program interactions. The code translation validation platform may generate test cases based on the identified metamorphic relations. The code translation validation platform may perform symbolic execution of the intermediate representation to generated test cases. The code translation validation platform may apply the generated test cases to the source programming language and to the target programming language.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Performance test and verification method, system and device for multi-core heterogeneous chip and medium

The invention discloses a performance test and verification method, system and device for a multi-core heterogeneous chip and a medium, and the method comprises the steps: configuring a test parameter set according to a target application scene, the test parameter set comprising a processor core type recognition parameter, a communication topology weight parameter and a load balancing threshold parameter; generating a test case covering the heterogeneous computing core cooperative working mode; the method comprises the following steps: acquiring characteristic data during testing through a reconfigurable monitoring sub-module, wherein the characteristic data comprises inter-core communication delay information, shared cache hit rate information and power consumption distribution thermodynamic information; and performing quantitative analysis on the feature data through a multi-dimensional evaluation model to obtain a performance deviation index and an architecture optimization suggestion parameter. By optimizing the chip performance verification process under the multi-core heterogeneous architecture, the verification precision is effectively improved, and the chip performance verification method can be widely applied to the technical field of chip design.
Owner:GUANGZHOU KETENG INFORMATION TECH

Test case generation method based on parameter characteristics and related product

The invention discloses a parameter feature-based test case generation method and a related product. In the scheme, a parameter document of target simulation software is obtained; and extracting parameter feature information of the target simulation software based on the parameter document. And on the basis of the parameter feature information, matching a test case template and a code generation rule in a pre-constructed code knowledge base, and generating an initial test case code. And dynamically optimizing the initial test case code according to feedback data generated in a simulation test process to generate a target test case code. According to the technical scheme, the parameter feature information is automatically extracted, the complex dependency relationship between the parameters is accurately analyzed, the test case is automatically generated based on the knowledge base matching template and rule, software changes are adapted in real time in combination with a dynamic optimization mechanism, dynamic and efficient generation of test case codes is achieved, and the test efficiency is improved. The coverage degree and the adaptability of the test case codes are improved, and then the accuracy, the comprehensiveness and the efficiency of the test are improved.
Owner:BEIJING GLOBAL CROWN JINYANG TECH DEV CO LTD

Variation test method and device based on intelligent automation script

The invention discloses a variation test method and device based on an intelligent automation script. The method comprises the following steps: extracting a statement execution sequence and a branch dependency relationship in an original source code by using a context-aware syntax tree, and generating a control flow diagram and a data flow diagram; performing code semantic analysis on the multi-dimensional code features by using a large language model, identifying potential defect types and variation rules, predicting the test efficiency of variants in combination with a deep Q learning model, and generating to-be-processed variants; performing grammar check and equivalence analysis on the to-be-processed variants to obtain effective variants, and testing the effective variants; variation test indexes are calculated, code weak points are positioned, and test blind areas are identified according to survival variants, so that a visual analysis report is generated; and iteratively generating a new test case according to the current survival variant and the visual analysis report, and testing the current survival variant by using the new test case. According to the invention, the variation test efficiency can be improved.
Owner:BEIJING YULORE INNOVATION TECH

Multi-agent-based scene granularity interface test case generation method

The invention discloses a scene granularity interface test case generation method based on multiple agents, and the method comprises a plurality of large language model agents and related components, namely context memory, an observer, a decision maker, an executor, a supervisor, a recorder and a to-be-tested application. An observer identifies the interface control, detection and attribute identification of the control are effectively focused, and it is ensured that accurate data input is provided for subsequent testing steps. Based on the output of an observer, a decision maker generates a detailed plan of the next operation according to the current page state, and an operation strategy can be independently formulated, so that test generation is supported by business scene logic. And an executor analyzes and executes the generated plan operation, carries out test operation strictly according to the plan, and ensures the traceability and repeatability of the test process. Furthermore, the supervisor verifies whether the operation is executed according to the plan and meets the requirements of the target scene, and makes corresponding feedback according to the check result, thereby ensuring that the wrong operation is corrected in time, avoiding the continuous accumulation of errors, and ensuring the effectiveness of each test step. The recorder is responsible for storing the execution instruction and the context information of the test process to the context memory, and the operation history and result in the test process can be traced through the test context information, so that a better decision can be made in the subsequent iteration, and the result export after the test is completed can be effectively supported. And after the recording is finished, the test generation enters the next iteration until the coverage of the test scene is finished.
Owner:NANJING UNIV

Software configuration item test case automatic generation method based on large language model

The invention discloses a software configuration item test case automatic generation method based on a large language model, and relates to the technical field of software testing. In order to solve the problems that in the prior art, the flexibility and transportability of a system are limited, the system is difficult to adapt to constantly changing software requirements and designs, and manual intervention is still needed to generate and analyze a test sequence. According to the automatic generation method for the software configuration item test case based on the large language model, through intelligent text segmentation, prompt word construction and test case generation, the efficiency and accuracy of test case generation are improved, the pertinence and coverage of the test case are ensured, and the workload of manually compiling the test case is remarkably reduced; a knowledge graph of software configuration items is constructed, so that the understanding of the model on correlation and similarity among texts is enhanced, and the quality of test case generation is improved; and through a real-time feedback and optimization mechanism, the automation level and the test efficiency of software testing are effectively improved.
Owner:XIAN ZHONGLANG AL TECH CO LTD

Method for generating test cases

The disclosure discloses a method for generating test cases, an apparatus for generating test cases, an electronic device and a storage medium, and relates to a field of computer technology, in particular to a field of artificial intelligence such as a large model and natural language processing. The method includes: obtaining an original statement of work (SOW) of a target project and product information of a software product to be tested associated with the target project; obtaining product documentation and target historical test cases of the software product to be tested according to the product information; segmenting the original SOW and obtaining a plurality of segmented SOWs; and generating target test cases of the software product to be tested according to the plurality of segmented SOWs, the product documentation and the target historical test cases.
Owner:BEIJING BAIDU NETCOM SCI & TECH CO LTD

Prompt injection attack test case obtaining method for large language model

The invention relates to a method for obtaining a hint injection attack test case for a large language model, which combines a conditional variation auto-encoder cVAE and a Markov chain, and obtains a large language model test case through data generation and context modeling, gradual exposure of malicious instructions and simulation of multiple rounds of dialogue attacks in reality. Realizing multiple rounds of dialogue attacks on the large language model, and challenging the defense capability of the large language model; the design scheme introduces a concealment technology, role play attack, state transition and other technologies, improves the complexity and concealment of attacks, has the core advantages of automation, higher concealment, wide coverage, batch testing and the like, can evaluate the security defense capability of the large language model more truly and comprehensively, and improves the security defense capability of the large language model. The defects of an existing defense mechanism are found, and research on multi-round prompt injection attacks and improvement of a security defense mechanism are promoted.
Owner:信联科技(南京)有限公司 +1

Test case generation method and device

The embodiment of the invention provides a test case generation method and device.The method comprises the steps that a test case generation task is determined, and the test case generation task carries a target document, a task type and a document type of a to-be-generated test case; analyzing the target document according to the document type by using an information extraction agent to generate an analysis result of the target document; generating an intelligent agent by using a test point, and generating an initial test point according to the task type and the analysis result; and generating a first test case corresponding to the test case generation task by using a test case generation agent according to the initial test point and the analysis result. The analysis logic of a qualification test expert is simulated through a plurality of agents, and the efficiency and integrity of test case output are greatly improved.
Owner:CHONGQING ANT CONSUMER FINANCE CO LTD

Autonomous vehicle key signal test method and system based on real data driving

The invention discloses an automatic driving vehicle key signal testing method and system based on real data driving. According to the method, data are collected in a real road scene, test cases are automatically generated, a standard test case library is constructed, hierarchical or parallel testing is carried out in virtual simulation, hardware-in-the-loop and real vehicle environments, and result feedback and closed-loop iteration are achieved through automatic analysis. The system comprises a data collection module, a test case generation module, a standard test case library module, a test execution module and a result feedback module. According to the invention, the problems of insufficient scene coverage and low authenticity and efficiency of the existing test method are solved, the comprehensiveness, authenticity and test efficiency of the test scene are improved, and the safety and reliability of the key signal system of the automatic driving vehicle are guaranteed.
Owner:NANTONG VOCATIONAL COLLEGE

Automatic software testing method and system based on artificial intelligence

The invention provides an automatic software testing method and system based on artificial intelligence. The method comprises the following steps: analyzing a software demand document by using an NLP technology, converting the software demand document into structured data, extracting a key function point, and identifying a software function point; generating a test case covering all function points through a deep learning model in combination with historical test data training; automatically executing a test operation, analyzing a test result, analyzing a test log by using a machine learning algorithm, identifying and classifying potential defects by using a data mining and pattern recognition technology, and generating a repair suggestion report; and analyzing feedback data in the test process, dynamically adjusting a strategy according to a test result by using a reinforcement learning algorithm, and optimizing a test case and the strategy. According to the invention, intelligent analysis of test data, automatic generation of test cases and automatic execution of a test process are realized; flexible configuration and expansion can be carried out according to the actual condition of software; the test efficiency and quality are improved, and the test cost and manpower consumption are reduced.
Owner:北京鸿鹄元数科技有限公司

Test case generation method and device, equipment and medium

The invention discloses a test case generation method and device, equipment and a medium, and relates to the technical field of software testing, and the test case generation method comprises the following steps: storing request data subjected to structured processing into a seed case library; the request data are various types of request data in the operation process of the service system; determining a cue word according to the target information based on the large model, and generating an initial test case through the cue word and a generation rule; the target information comprises characteristics of request data in the seed case library, an interface document of the tested software and a business logic specification; executing the initial test case according to the test request of the tested software, performing statistical analysis on the code coverage rate of the tested software in the execution process, and screening the initial test case according to an analysis result to obtain a screened test case; and after the execution is finished, filtering the screened test cases according to the first execution result of each test case to obtain a target test case. Therefore, the testing efficiency and quality can be improved, and automatic testing is achieved.
Owner:JINAN INSPUR DATA TECH CO LTD