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

428 results about "Test code" patented technology

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

Test code repairing method and related device

The present application discloses a test code repairing method applied to a code development platform. The method comprises: obtaining a test code corresponding to a source code, and then executing the test code to obtain execution information of the test code, wherein the execution information comprises abnormal stack tracking information output during execution of the test code; on the basis of the execution information, performing fault localization on the test code to obtain location information of a faulty code; on the basis of the location information of the faulty code, extracting context information, wherein the context information comprises at least one of a faulty test case, a fault description, or the faulty content; and inputting a prompt constructed on the basis of the context information into a language model and performing inference, so as to obtain a first repaired code. The method is used to perform fault localization in light of the execution information, extract the context information on the basis of the location information of the faulty code, and, on the basis of the context information, generate accurate and complex repaired code via an advanced language model, thereby adapting to various complex fault scenarios and improving repair efficiency and accuracy.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1

Automatic network protocol testing method and system based on large language model

The invention provides an automatic network protocol testing method and system based on a large language model. According to the method, through three core technologies of structured protocol specification extraction, hybrid test case generation and retrieval feedback enhanced code generation, full-process automation from a protocol specification document to an executable test code is realized. The method comprises the following steps: firstly, carrying out preprocessing and structured analysis on an RFC document, and extracting protocol field information and state machine description; a complete test case covering normal, abnormal and boundary conditions is automatically generated based on protocol elements; and finally, an initial test code is generated in combination with a test equipment API document retrieval result, and multi-round iterative optimization is performed through running log analysis and an experience knowledge base. Compared with the prior art, according to the scheme, an end-to-end automatic test work chain is achieved, new protocol testing can be adapted without manual protocol modeling, meanwhile, a large language model and expert experience are fused through a feedback mechanism, and the test efficiency and the code quality are remarkably improved.
Owner:TSINGHUA UNIVERSITY

Full-process automatic unit testing method and device for AI chip operator and medium

The invention discloses a full-process automatic unit testing method, device and equipment for an AI chip operator, a medium and a product. The method comprises the following steps: generating an engineering directory and a test framework design document through an architect agent according to operator interface information and a DSL operator design document knowledge base; the method comprises the following steps of: generating a test code for unit test by a software engineer agent according to a test framework design document and a domain knowledge base, and storing the test code in an engineering directory; multiple rounds of interaction are carried out through a software engineer agent and a test engineer agent, a test code is gradually corrected into a target test code which can be successfully compiled, a generated test case can be successfully executed and the generated test case meets the code coverage rate requirement, and a target operator code passing a unit test is obtained; and submitting the target operator code and the target test code which pass the normativity check to a code warehouse through a code auditing engineer agent so as to automatically realize the whole-process unit test of the AI chip operator.
Owner:SHANGHAI YUNSUI TECHNOLOGY CO LTD

Test case generation method and device based on intelligent agent, equipment and medium

The invention discloses an agent-based test case generation method and device, equipment and a medium, and relates to the technical field of software testing, the method comprises the following steps: in response to a test case generation instruction for a target function, displaying a test case framework of the target function; in response to an interaction instruction for a preset position in the test case framework, obtaining a target test code of the target function; wherein the interaction instruction is used for triggering interaction between a first agent and a second agent, and the first agent is configured to be used for analyzing a logic structure of a function code of a target function to obtain a structure code of a test point of the target function; the second intelligent agent is configured to be used for generating a target test code based on the structure code of the test point; and displaying the target test code at a preset position to obtain a target test case of the target function. The problem that the generation accuracy of the test case is low can be solved.
Owner:BEIJING YOUZHUJU NETWORK TECH CO LTD

Communication protocol conformance test method and system

The invention provides a communication protocol consistency test method and system. Key function points are extracted by analyzing a target protocol document; based on the key function points, a predefined first prompt template is applied to generate a test case prompt, a large language model is guided to generate a standardized test case corresponding to each key function point, and the first prompt template comprises k few-sample examples; dynamically retrieving a related code context from a pre-constructed long-term memory library through a retrieval enhancement generation mechanism, generating a code generation prompt by applying a predefined second prompt template based on the standardized test case and the related code context, and generating an executable test code based on the code generation prompt; and performing iterative optimization on the executable test code through the large language model, and generating a new code generation prompt based on a code execution result of the previous iteration and the retrieved related code context in each iteration. The test case can be automatically generated and dynamically adapted, and the test coverage rate, efficiency and flexibility are improved.
Owner:TSINGHUA UNIVERSITY

Context engine test generation

The present disclosure is directed toward systems, methods, and non-transitory computer-readable media for generating function code and test code to determine that the function code satisfies an intent query. For example, the disclosed systems utilize a large language model to process an intent query and generate function code that defines one or more processes whose execution satisfies the intent query. In addition, the disclosed systems also utilize the large language model to generate test code that defines a function test for determining that the function code satisfies the intent query. Moreover, the disclosed systems can execute the test code to determine that the function code satisfies the intent query.
Owner:DROPBOX INC

Server test system and method, electronic equipment and storage medium

The invention discloses a server test system and method, electronic equipment and a storage medium, and relates to the technical field of data processing. Multi-level information of power-on self-test codes, test data and optical signals is collected for a server; meanwhile, the starting-up process of the server is divided into different starting-up stages according to the code stream, namely the starting-up self-test code, and the server is tested through different test strategies in the different starting-up stages; according to the method, multi-level state sensing and optical intelligent detection are carried out in combination with multi-level information, the coverage degree of server testing is improved, and meanwhile, the server testing efficiency is improved through testing of multiple starting-up stages of a full-automatic process and automatic analysis of testing data. Therefore, the technical problem of how to improve the test efficiency and the coverage degree of the server test can be solved, and the technical effect of improving the test efficiency and the coverage degree of the server test is achieved.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Code generation method and device based on large model, equipment, medium and product

The invention discloses a code generation method and device based on a large model, equipment, a medium and a product, and the method comprises the steps: carrying out the code generation through a first code large model according to target code demand data, and obtaining an initial code; according to the first code snippet, generating a test code through a second code large model to obtain a unit test code; according to the unit test code and the initial code, code repair based on editing distance regularization is conducted through a third code large model, and a to-be-analyzed code is obtained; performing iterative optimization on the to-be-analyzed code and the unit test code to obtain a target code corresponding to the target code demand data; according to the method, code generation, unit test generation and code repair are carried out in a multi-model cooperation mode, the reliability and accuracy of code generation can be effectively improved, software security vulnerabilities are reduced, and therefore the stability and security of a software system are improved.
Owner:CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

API test case rapid generation method and system based on AI large model

The invention relates to the technical field of software engineering and artificial intelligence crossing, in particular to an API test case rapid generation method and system based on an AI large model.The method comprises the following steps that joint analysis and semantic fusion are conducted on an API document and a demand document through a multi-modal data analysis layer, and a complete test context is constructed; generating a test case based on the pre-trained large model by using a hybrid inference engine; the method has the beneficial effects that the association constraint of the API document and the demand document is automatically extracted through semantic understanding; a parameter combination strategy is optimized through reinforcement learning, and the problem of combination explosion is solved; constructing a self-adaptive test case maintenance mechanism, and responding to API version iteration; an executable test code that can be directly integrated into the CI / CD pipeline is generated.
Owner:INSPUR TIANYUAN COMM INFORMATION SYST CO LTD

Platform and method for automatically testing and generating kernel export function of operating system

The invention provides an automatic test generation platform and method for an operating system kernel derived function. The method comprises the following steps: (1) intelligent symbol extraction and analysis; (2) generating an LLM-driven test code; (3) performing automatic compiling and virtualization testing; and (4) intelligent error diagnosis and repair. According to the method, the test coverage degree is greatly improved, through the multi-level symbol context extraction technology, single function information is extracted, the dependency relationship of related functions in the same element is analyzed, a function call graph and data flow analysis are constructed, rich context information is provided for LLM, and the problem that traditional manual test case writing is incomplete in coverage is solved.
Owner:HANGZHOU SAIFUNAS TECH CO LTD

Test case generation method and device, equipment, storage medium and program product

The embodiment of the invention relates to a test case generation method and device, equipment, a storage medium and a program product. The method comprises the steps that a target test case document is analyzed, and interface calling description and an interface calling sequence are determined; based on the interface calling description, determining a target request method and a target request parameter corresponding to the interface calling description from the candidate interface information; performing parameter value extraction on the interface calling description based on each target request parameter, and determining a first request parameter and a first parameter value; based on the target request method and a second request parameter in the target request parameters, querying a parameter dependency relationship graph obtained based on historical test data, and determining a parameter value of a dependency parameter having a parameter transmission relationship with the second request parameter as a second parameter value; and based on the target request method, the first parameter value and the second parameter value, generating an automatic test code according to the interface calling sequence. In this way, the generation efficiency, integrity and performability of the automatic test code are improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Context engine test generation

The present disclosure is directed toward systems, methods, and non-transitory computer-readable media for generating function code and test code to determine that the function code satisfies an intent query. For example, the disclosed systems utilize a large language model to process an intent query and generate function code that defines one or more processes whose execution satisfies the intent query. In addition, the disclosed systems also utilize the large language model to generate test code that defines a function test for determining that the function code satisfies the intent query. Moreover, the disclosed systems can execute the test code to determine that the function code satisfies the intent query.
Owner:DROPBOX INC

Software monitoring method, system and equipment based on byte code replacement and risk perception and medium

The invention provides a software monitoring method, system and device based on byte code replacement and risk awareness and a medium, and belongs to the technical field of software security. The method comprises the steps that a special annotation mark in a source code is scanned, a test code entry point is recognized, and metadata information is extracted; performing encryption processing on the metadata and generating a registry file with a digital signature; environment safety data are collected through four monitoring dimensions, and a comprehensive risk score is calculated; generating a grading fusing instruction according to the score; and finally executing the fusing operation of byte code replacement or thread sandbox isolation. According to the invention, accurate identification and real-time protection of the leakage risk of the test code are realized; through a multi-dimensional monitoring and hierarchical fusing mechanism, the system security is ensured, and the influence on the service performance is minimized; and byte code replacement and thread isolation technologies are adopted, so that security protection can be realized without restarting the application, and the availability and the operation and maintenance efficiency of the system are improved.
Owner:SHANDONG ARTAPLAY INTELLIGENT TECH CO LTD

Full stack schema-driven development system and method

Efficient generation of multi-platform compatible source code and test code with consistency and quality in software development SOLUTION: The schema-driven development system includes a user input unit, a schema generation unit, and a code generation unit, wherein the user input unit acquires data in various formats such as a natural language and a CSV file, the schema generation unit converts the acquired data into a schema, and the code generation unit generates a source code and a test code based on the generated schema.SELECTED DRAWING: Figure 1
Owner:株式会社SHIELD

Physical simulation engine defect detection method based on variation

The invention belongs to the field of software testing and defect detection, focuses on reliability verification of a physical simulation engine, is suitable for scenes depending on physical simulation, such as robot simulation, automatic driving testing, unmanned aerial vehicle control, education and scientific research, and particularly relates to a variation-based physical simulation engine defect detection method. Potential defects of core modules of collision detection, mechanical calculation, dynamics and the like are efficiently found through a variation test method. According to the method, a feature library is constructed through static library API analysis and AST / IR code analysis, test code expansion is performed by utilizing a large model, a test driver adaptive to a specific data type is generated, a physical semantic constraint mutation seed is combined, a test is executed through libFuzzer, defect and coverage rate data are analyzed, a use case selection strategy is optimized, and the test efficiency is improved. Defects of core modules such as collision detection and dynamic solution are efficiently detected, and the test pertinence and efficiency are improved.
Owner:DALIAN UNIV OF TECH

Interface call assertion monitoring method and computer equipment

The invention relates to an interface calling assertion monitoring method and computer equipment. The method comprises the following steps: in response to a triggered interface calling instruction, generating a tracking address identifier of an interface; running a test code of the interface, and obtaining a test log and an interface response value generated in the running process of the test code; injecting the tracking address identifier into the test log and the interface response value, and binding the test log comprising the tracking address identifier with the interface response value comprising the tracking address identifier; according to the universal assertion and the self-defined assertion in the assertion library, assertion analysis is carried out on the test log and the interface response value which are bound with each other, and an assertion result of interface calling is obtained. By adopting the method, the accuracy of interface calling assertion can be improved.
Owner:SHENZHEN POWEROAK NEWENER CO LTD

Vehicle unit test code generation method and device, equipment, medium and product

The invention relates to the technical field of vehicle software testing, and discloses a vehicle unit test code generation method and device, equipment, a medium and a product. The method comprises the steps of obtaining a tested code; the tested code and the intention prompt word are input into a large language model to be analyzed, a test intention is generated through the large language model, and the test intention is used for indicating the process needed for testing the tested code; inputting the test intention, the tested code and the template cue word into a large language model for analysis so as to generate a test strategy through the large language model, and recommending a code template and a parameter value required by the test from a template library; and integrating the recommended code templates according to the test strategy, and filling the parameter values into the code templates to obtain test codes. The AI illusion is reduced, and the accuracy of generating the test code is improved.
Owner:CHONGQING CHANGAN AUTOMOBILE CO LTD

Server fault positioning system and method

The invention relates to a server fault positioning system and method, and the system comprises a debugging card and a mainboard, and the debugging card is electrically connected with the mainboard. The debugging card is used for acquiring a power-on self-test code of the mainboard and matching the power-on self-test code with a pre-stored fault code library; determining a fault code corresponding to the power-on self-test code, and determining a fault module corresponding to the fault code in the target server; the mainboard is used for calling and starting BIOS debugging firmware stored in the debugging card, entering a debugging mode and obtaining enumeration information of a fault module; the debugging card is also used for analyzing the enumeration information and determining a state code corresponding to each unit included in the fault module; respectively matching each state code with a pre-stored state code library; and determining a fault state code which cannot be matched with the correct state code in the state code library, and determining a fault unit corresponding to the fault state code. Through the method and the device, the problem of relatively low fault positioning efficiency of the server in related technologies is solved.
Owner:SHENZHEN YIWANKE DATA EQUIP TECH CO LTD

Unit test code generation method, system, equipment and medium

The invention discloses a unit test code generation method, system and device and a medium, which are applied to the technical field of code generation, and comprise the following steps: performing program structure interface analysis and abstract syntax tree analysis on a target engineering code to obtain a structured meta-information set and a source code syntax structure model; generating a structured context feature vector based on the structured meta-information set and the source code grammar structure model, and retrieving a historical test case sample set from a historical test case database, wherein the global line coverage rate weighted similarity of the historical test case sample set and the structured context feature vector meets a matching condition; after Prompt template filling of different test subtasks is performed based on a historical test case sample set and structured context data through an Agent agent, different modular test codes are generated by adopting different test code generation models, and closed-loop verification is performed after the different modular test codes are integrated into unit test codes. Therefore, the code quality, practicability and adaptability are improved.
Owner:THE BANK OF EAST ASIA (CHINA) LTD

Burial point test method and system, server, storage medium and program product

The embodiment of the invention relates to the field of computer software testing, and discloses a buried point testing method and system, a server, a storage medium and a program product. The method comprises the following steps: calling a burying point test case described by a natural language corresponding to a tested object; identifying an operation platform of the tested object; converting the burying point test case described by the natural language into an underlying operation instruction executable by the operation platform, and sending the underlying operation instruction to the operation platform; and obtaining test result data reported after the operation platform executes the underlying operation instruction, obtaining expected result data of the buried point test case for the operation platform, and performing data assertion according to the test result data and the expected result data. According to the application, through the burying point test case described by the natural language, the operation steps in the burying point test are decoupled from the operation platform and the specific business, and the same test case can be suitable for different operation platforms, so that the problem of high maintenance cost caused by the fact that different platforms need to maintain test codes respectively is solved.
Owner:SHANGHAI HODE INFORMATION TECH CO LTD

Test method based on code link dynamic tracking

The invention discloses a test method based on code link dynamic tracking. The method comprises the steps of obtaining version difference information of a to-be-tested code from a version library and generating a code test submission list; when a tester initiates a test request, performing flow identification injection on the test request through the front-end agent module and forwarding the test request to the tested application service module; the back-end acquisition module monitors all the tested application service modules in a dynamic code instrumentation mode, and extracts code link calling information of the service modules from all the tested application service modules based on the traffic identifiers; and comparing the code coverage rate of the code link calling information with the code test submission list, determining an abnormal code path based on the code coverage rate and the code link calling information, and generating abnormal information. According to the method, the code coverage rate can be calculated in real time in the process of executing the function test by testers, and the situations that the function test cases are missed and developers carry non-demand codes to be online are avoided.
Owner:XIAMEN ZHIHENG RONGXING INFORMATION TECH CO LTD +1

Intelligent optimization method for unit test coverage rate guided by using control flow

PendingCN121349900AError detection/correctionCode generationControl flow analysis
The invention discloses a unit test coverage rate intelligent optimization method guided by using a control flow. The method comprises the following steps: S1, obtaining and preprocessing a to-be-tested code; s2, a cycle generation stage: calling a predefined tool by using a large generative model to dynamically obtain a code to be tested, and generating a unit test code; s3, repairing the unit test codes which fail to compile or run; s4, acquiring the coverage rate and coverage information of the unit test code; performing control flow analysis on the to-be-detected code according to the coverage information and the coverage rate, and outputting a control flow information set; and uncovered control flow information is fed back to the generation cycle stage as output. According to the method, the automation degree of unit test generation based on the large model is high, the effectiveness of the codes generated by the large model is effectively improved, the coverage rate of the unit test codes generated by the large model is obviously improved, and the problems that the effectiveness of the codes generated by other unit test automatic generation tools based on the large model is low and the coverage rate in a complex scene is low are solved.
Owner:HANGZHOU DIANZI UNIV +2

Test code debugging method and device and test code debugging system

The invention provides a test code debugging method and device and a test code debugging system.The method comprises the steps that test information in a database is obtained, and the test information comprises a test code and identification information; a test breakpoint is added to a test line of the test code, the test code is executed, under the condition that the test code is executed to the test breakpoint, execution of the test code is suspended, a code of the test line corresponding to the test breakpoint serves as a to-be-debugged code, and the test line is any line in all code lines included in the test code; modifying the to-be-debugged code to obtain a target code, replacing the to-be-debugged code with the target code, and recovering execution of the test code until execution of the target code and the test line after the target code is completed; and under the condition that the test code is successfully executed, updating the corresponding test information in the database by adopting the target code according to the identification information. The method solves the problem that in the prior art, the test code debugging efficiency is low.
Owner:中国邮政储蓄银行股份有限公司

Context engine test generation

The present disclosure is directed toward systems, methods, and non-transitory computer-readable media for generating function code and test code to determine that the function code satisfies an intent query. For example, the disclosed systems utilize a large language model to process an intent query and generate function code that defines one or more processes whose execution satisfies the intent query. In addition, the disclosed systems also utilize the large language model to generate test code that defines a function test for determining that the function code satisfies the intent query. Moreover, the disclosed systems can execute the test code to determine that the function code satisfies the intent query.
Owner:DROPBOX INC

Test code generation method, device and equipment and readable storage medium

The embodiment of the invention relates to a test code generation method, device and equipment and a readable storage medium, test codes are iteratively generated through an LLM model, coverage rate improvement is automatically verified, a compilation failure rollback mechanism and environment adaptation are combined, automatic closed-loop control of test code generation and coverage rate improvement is achieved, and the test code generation efficiency is improved. And the manual writing and debugging cost is effectively reduced. And the generated test code is subjected to multiple rounds of compilation verification, so that the grammar correctness and the execution feasibility are ensured. The generation direction is continuously optimized through a dynamic feedback mechanism, and the coverage range of unit testing on target codes is systematically improved. And finally, automatically terminating the process when a preset quality index is reached, and outputting an effective test code set which is fully verified.
Owner:HUIZHOU DESAY SV AUTOMOTIVE

Code testing method and device, computer equipment and storage medium

The invention relates to the technical field of software development, and discloses a code testing method and device, computer equipment and a storage medium. The code testing method comprises the following steps: determining test input information and a target test type through an obtained target test request; determining a to-be-tested code and a test scheme file according to the test input information, and preprocessing the to-be-tested code and the test scheme file to obtain a target knowledge graph corresponding to the target test request; searching a target test design task matched with the target test type from a preset test task list; determining a task cue word, a task analysis model and a task output template according to the target test design task, and obtaining a task output result according to the task cue word, the target knowledge graph, the task analysis model and the task output template; when it is confirmed that the task output result is the target test case, test processing on the to-be-tested code is executed according to the target test case, and a target test result is obtained. According to the invention, the interaction complexity is reduced, and the test efficiency and the test accuracy are improved.
Owner:SHENZHEN LEXIN SOFTWARE TECH CO LTD

Beidou communication software development cross-platform adaptation method and system

The invention relates to the technical field of software adaptation, in particular to a Beidou communication software development cross-platform adaptation method and system. The method comprises the following steps: defining an interface function library; constructing a virtual hardware logic module; linking the to-be-tested software, the interface function library and the virtual hardware logic module by utilizing a link rule, and determining an executable file of a single process; in the process of performing adaptation on the to-be-tested software by using the executable file of the single process, setting a simulation state of the virtual hardware logic module in response to calling of the state control interface by the test code, and setting a simulation state of the virtual hardware logic module in response to function calling of the native interface function by the to-be-tested software. And calling the virtual hardware logic module through an interface function library so as to carry out adaptation processing on the to-be-tested software. The invention aims to solve the problem that cross-platform adaptation cannot be realized due to the fact that all behavior characteristics of native hardware interfaces of different operating systems cannot be accurately reproduced in a virtual environment in the prior art.
Owner:GUANGDONG GRAND CHAMBERLAIN TECH LLC

Method and system for evaluating test coverage rate based on Java call link

The invention discloses a method and a system for evaluating a test coverage rate based on a Java call link, and relates to the field of software testing. The method comprises the following steps: identifying a difference function according to a first comparison result, and constructing a call chain tree structure by taking the difference function as a root node based on a code call relation graph; analyzing the difference function to obtain a direct code change line of the difference function, based on a call chain tree structure, identifying a related code line on a call chain where each call point is located as a call point code line, and summarizing the direct code change line and the call point code line; and analyzing the code coverage rate data to obtain an actually covered code line, comparing the to-be-tested code line with the actually covered code line, determining coverage rate index data based on a call chain according to a second comparison result, and determining a test coverage rate evaluation result according to the coverage rate index data. The test coverage rate can be evaluated more comprehensively and accurately.
Owner:BEIJING YULORE INNOVATION TECH

Test code repairing method and related equipment

The invention discloses a test code repairing method which is applied to a code development platform and comprises the steps that a test code corresponding to a source code is obtained, then the test code is executed, execution information of the test code is obtained, and the execution information comprises abnormal stack tracking information output when the test code is executed; then error positioning is conducted on the test code according to the execution information, position information of an error code is obtained, context information is extracted according to the position information of the error code, and the context information comprises at least one of an error test case, error description or error content; and inputting a prompt constructed based on the context information into a language model for reasoning to obtain a first repair code. According to the method, error positioning is carried out by combining execution information, context information is extracted according to position information of error codes, and based on the context information, more accurate and complex repair codes are generated through an advanced language model so as to adapt to various complex error scenes, and the repair efficiency and accuracy are improved.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1