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

337 results about "Code coverage" patented technology

In computer science, test coverage is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs. A program with high test coverage, measured as a percentage, has had more of its source code executed during testing, which suggests it has a lower chance of containing undetected software bugs compared to a program with low test coverage. Many different metrics can be used to calculate test coverage; some of the most basic are the percentage of program subroutines and the percentage of program statements called during execution of the test suite.

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

Fuzzy test Kubernete-based three-party component vulnerability mining method

The invention relates to a fuzzy test Kubernete-based three-party component vulnerability mining method, which comprises the following steps of: firstly, automatically identifying a user controllable function by combining a large language model based on an official document, a configuration list and source code information of a three-party component, and constructing a keyword dictionary to assist in large-scale identification of a potential target function; then analyzing context information of the target function and an interaction relation of the target function in a Kubernetes cluster, constructing a front dependency library required by fuzzy testing, and automatically generating a fuzzy testing driving program; integrating a fuzzy test driving program with a three-party component source code, performing code instrumentation, pre-compiling and corpus optimization, generating test input according to a set variation strategy, dynamically monitoring a coverage rate and an abnormal behavior, and continuously optimizing a test corpus; and finally, based on the crash behavior of the fuzzy test record, analyzing a trigger path of the vulnerability, performing vulnerability verification in a local Kubernetes cluster environment, and finally generating a vulnerability analysis report.
Owner:HANGZHOU DIANZI UNIV

Method and device for generating test case based on large model and electronic equipment

The invention provides a method and device for generating a test case based on a large model and electronic equipment, and relates to the technical field of artificial intelligence such as natural language processing, large language models and deep learning. According to the specific implementation scheme, when a test case is executed to test a tested code, assertion error reporting information is obtained; generating a first prompt word based on at least one of the test case, the tested code and the assertion error report information; inputting the first cue word into the large model to obtain a first output result of the large model; the first output result comprises repair scheme information, and the large model is used for outputting the repair scheme information matched with the first cue word based on the first cue word; and performing multiple rounds of interactive dialogues with the large model based on the first output result to generate a test case of the tested code. By implementing the embodiment of the invention, the accuracy and the code coverage rate of the test case can be improved, the problem can be quickly positioned, the repair suggestion can be automatically generated, the manual intervention is reduced, and the test efficiency is improved.
Owner:BEIJING BAIDU NETCOM SCI & TECH CO LTD

Interactive visualization method, device and equipment for fuzz test bottleneck breakthrough

The invention relates to an interactive visualization method, device and equipment for fuzzy test bottleneck breakthrough, and belongs to the field of network security. According to the method, all compiling modules in a tested program are combined into a complete intermediate code, and a global view of the tested program is obtained; generating a unique label for each function by using a hash algorithm; constructing a call graph and a control flow graph, and obtaining function call instruction information by scanning a basic block of each function; carrying out pile insertion on the basic blocks; performing a fuzzy test on the tested program after compiling and instrumentation, and obtaining runtime data in real time; according to the fuzzy test runtime data and the static analysis data, data-driven visualization is carried out, and a call graph, a control flow graph and real-time execution statistical information are displayed in real time; a test engineer is assisted through an interactive chart, and fuzzy test bottleneck constraints are positioned. According to the method, a test engineer can be helped to better understand and intervene the fuzzy test process, and the fuzzy test code coverage rate and the defect detection number are improved.
Owner:CHINESE PEOPLES LIBERATION ARMY UNIT 61660

Creating an optimal test suite

A system and a method for creating an optimal test suite. The system may receive code coverage data from a set of testing channels. Further, a combined dataset is created by merging the code coverage data received from the set of testing channels. The combined dataset is analyzed to identify a line of code being executed by two or more test cases corresponding to two or more testing channels of the set of testing channels. Further, at least one test case from the two or more test cases having less efficiency is eliminated to create an optimal test suite. The efficiency is determined based on at least one of execution time, execution cost, and resources required to execute the line of code.
Owner:WEBOMATES INC

Test case generation method and device, test case test method and device, medium and program product

The invention discloses a test case generation method and device, a test case test method and device, a medium and a program product, and relates to the technical field of interface test and artificial intelligence, the method comprises the following steps: obtaining flow data of a first interface in a first service and a code corresponding to the first service; based on the traffic data, the code and a target model, a test case is generated, the test case comprises a test scene, test traffic and an assertion rule, and the test scene is used for representing a target field in the traffic data and a combination of values of the target field, the assertion rule is used for representing a target test result of the test case. According to the method, the generation efficiency of the test case can be improved under the condition of ensuring the test coverage and the code coverage.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Test case completion method and system and electronic equipment

The invention relates to the field of software development, and discloses a test case completion method and system and electronic device.The test case completion method comprises the steps that a source code of software to be tested is analyzed, and a method calling relation library is obtained; code coverage analysis is carried out on the to-be-tested software, coverage codes and uncovered codes of the to-be-tested software are obtained, and the uncovered codes at least comprise the conditions that code lines and code branches are not covered respectively; calling the relation library based on the method to query to obtain a parameter association relation graph of a complete calling link, and generating a use case complementation suggestion of an uncovered code; and perfecting an executable test case of the to-be-tested software based on the case completion suggestion, and covering uncovered codes in the to-be-tested software. According to the method, trial case design blind spots are reversely speculated through the code coverage condition, information such as links and parameter association is called through the method, and uncovered code test case supplementary suggestions are provided in combination with an intelligent auxiliary programming tool, so that the test cases are effectively supplemented, and the problems of design insufficiency and low code coverage rate are solved.
Owner:广域铭岛数字科技有限公司 +1

Prototype verification method and device of DDR4 controller, equipment, medium and product

The invention discloses a prototype verification method of a DDR4 controller in the technical field of chip verification, the method is applied to a prototype verification platform, a DDR controller and a PHY module in a chip to be verified are matched on the prototype verification platform, and the PHY module integrates a DFI to phy only interface module and a standalone PHY only block module through a python script; the prototype verification method comprises the steps that in response to a verification instruction received by a DDR controller, the DDR controller generates a control instruction according to the verification instruction and sends the control instruction to a DFI to phy only interface module; in response to the control instruction received by the DFI to phy only interface module, the DFI to phy only interface module converts the control instruction from a DFI protocol to a target control instruction of a PHY protocol, and sends the target control instruction to the standalone PHY only block module; in response to the control instruction received by the standalone PHY only block module, the standalone PHY only block module sends a target control instruction to a DDR particle externally connected with the prototype verification platform, so that read-write and verification with the DDR particle are realized; according to the method, the DDR memory interface IP prototype verification code coverage rate can be improved.
Owner:SUZHOU R&D CENT OF NO 214 RES INST OF CHINA NORTH IND GRP

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

System for automated software testing and continuous integration in an agile environment

A system for automated software testing and continuous integration in an agile environment, consisting of: a central processing unit (CPU) configured to execute test protocols and manage integration processes; a test engine operationally connected to the CPU, configured to detect code changes, select relevant test cases based on dependency mapping, and execute automated tests across multiple environments, generating logs and coverage reports; a CPU-connected continuous integration server configured to compile and deploy software builds upon successful completion of test protocols, the server including a rollback mechanism to revert to previous builds in case of failure; and a containerization module linked to the test engine and the continuous integration server.The containerization module uses container technology to create isolated test environments for consistent and parallel test execution, thereby optimizing resource allocation; and a feedback reporting unit configured to consolidate test results, build status, and code coverage metrics and present them to development team members in real time via an integrated dashboard, enabling an immediate response to identified issues.
Owner:MOMANI ALAA

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 test optimization. According to the scheme, the multiple initial test cases are obtained, and the test reports corresponding to the initial test cases are generated through the first preset test tool, so that the time for manually compiling the test cases is effectively shortened; when it is determined that a to-be-supplemented test case of which the corresponding code coverage rate index does not meet a preset requirement exists according to each test report, code uncovered information of the to-be-supplemented test case is determined, and test case optimization parameters are configured in combination with project requirements; and based on the parameter, calling a second preset test tool and a large language model to supplement the to-be-supplemented test case to obtain a complete test case. According to the scheme, the availability of the test case is improved through combination of multiple tools; workflows of test cases covering complex environments such as a function calling relation and a control flow structure are generated by utilizing the inference capability of a large language model, and the code coverage rate of the test cases is remarkably increased.
Owner:SHANGHAI KOSTAL HUAYANG AUTOMOTIVE ELECTRIC +1

Automatic test scheme generation method, equipment and medium

The invention relates to the technical field of automatic testing, and discloses an automatic testing scheme generation method and device and a medium, and the method comprises the steps: matching a demand action in a test demand with a code entry name corresponding to a code segment, and determining a code risk level of a current demand code block; analyzing the code change frequency and the code dependency degree of the current demand code block according to historical test records in the test domain knowledge base, and determining the test dynamic priority of the current demand code block; constructing a control flow diagram and a data flow diagram of the current demand code block, and detecting risk nodes in the control flow diagram and the data flow diagram; generating a test scene of the current demand code block according to the risk node, and generating a boundary value test rule according to a key constraint condition in the data flow diagram; and querying an environment simulation rule of the current demand code block, and packaging the test scene, the boundary value test rule and the environment simulation rule into an automatic test scheme. According to the invention, the code coverage when the test scheme is generated can be improved.
Owner:深圳市分期乐网络科技有限公司

Code coverage rate data exporting method and device, equipment and medium

The invention discloses a code coverage rate data exporting method and device, equipment and a medium, relates to the technical field of software testing, is applied to NVMe equipment, and comprises the steps that when a data exporting command sent by a target host is obtained, the data exporting command is analyzed to obtain address information of a memory buffer area pre-applied in the target host and the size of the buffer area; transmitting and writing pre-collected code coverage rate data into a memory buffer area; the code coverage rate data is data which is obtained by the NVMe equipment after establishing a one-way linked list for a target data structure used for storing code coverage rate information in each source file and counting executed code segments by using a preset instrumentation code and is added to the one-way linked list; and after writing of the code coverage rate data in the one-way linked list is completed, sending a target command used for representing that the execution of the writing operation is completed to the target host, so that the target host generates a coverage rate data file for the obtained code coverage rate data by using a local file system.
Owner:SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Large-scale chip code coverage rate acquisition method, electronic equipment and medium

The invention relates to the technical field of chips, in particular to a large-scale chip code coverage rate obtaining method, electronic equipment and a medium, and the method comprises the following steps: S1, constructing different test clusters; s2, setting verification configuration information, test parameters and a to-be-verified interface set for the Giq; s3, generating a corresponding file list based on each Aiq in parallel, and compiling to generate a corresponding executable file Fiq; s4, transmitting the Biq to a test case in the Giq in parallel, executing a corresponding verification operation based on the Fiq, and obtaining a set Eiq of the interfaces to be verified which are overturned by the Giq; s5, after the Gq is completely executed, obtaining a union set GEiq of all Eiq corresponding to the Gq; and S6, after all Gq are executed, obtaining a union set GE of all GEiq, and determining the code coverage rate of the large-scale chip based on GE and GD. According to the method, the large-scale chip code coverage rate can be accurately and quickly obtained.
Owner:METAX INTEGRATED CIRCUITS (SHANGHAI) CO LTD

Predicting code coverage without execution

A code coverage prediction system utilizes a neural transformer model with attention to generate a sequence of coverage symbols given a focal method and a test case. The sequence of coverage symbols indicates whether a line of source code is covered by the test case, missed by the test case or unreachable. The sequence of coverage symbols is aligned with the focal method to produce a coverage-annotated focal method that associates a predicted coverage symbol with each line of source code in the focal method.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Fuzzy testing method and system for code generation and automatic program repair based on large model

The invention discloses a fuzz testing method and system for code generation and automatic program repair based on a large model, which are used for solving the problems of high code generation error rate and high testing cost in the running process of an existing large model fuzzer. The method comprises four stages of cue word screening, fuzzy circulation, program repairing and vulnerability detection. A large language model is used as a main generator, an operator selection problem in a fuzzy loop stage is modeled as a multi-arm tiger machine problem, and a Thompson sampling algorithm is used to improve the diversity and effectiveness of program generation. The generated program is cyclically repaired, so that program errors caused by lack of API (Application Program Interface) combination constraints are reduced. According to the method, the effectiveness of the program generated by the fuzz test based on the large model is obviously improved, the problem that the error rate of the program generated by an existing fuzzer based on the large model is high is solved, and the code coverage rate is higher.
Owner:HANGZHOU DIANZI UNIV

Code coverage rate determination method and device, computer equipment and storage medium

The invention relates to the technical field of software testing, and discloses a code coverage rate determination method and device, computer equipment and a storage medium, and the method comprises the following steps: obtaining a plurality of source code files of a firmware module of a disk array card, compiling the source code files into execution files, performing instrumentation processing on the plurality of source code files in the compiling process, and obtaining the execution files; the execution information of each source code is updated when the execution file is operated; generating basic block files corresponding to the plurality of source code files, wherein the basic block files comprise pointers pointing to execution information of the corresponding source code files; running the execution file to enable the disk array card to map execution information of the basic block file and the source code file to a host cache region; after the execution file is operated, obtaining execution information of each source code file, and writing the execution information into an execution information file; and analyzing the execution information file and the basic block file to obtain the code coverage rate of each source code file. According to the invention, the coverage rate of the software code of the disk array card can be obtained.
Owner:SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Incremental code coverage rate calculation method and device, electronic equipment and storage medium

The invention relates to the technical field of computer testing, in particular to an incremental code coverage rate calculation method which comprises the following steps: executing a test case on a current version code, and collecting code test coverage information; comparing the baseline version code with the current version code to obtain a change code; based on a baseline version code, performing semantic equivalence analysis on the change code to obtain a logic change code, the semantic equivalence analysis being used for filtering change codes of non-logic factors; and calculating an incremental code coverage rate according to the logic change code and the code test coverage information, wherein the incremental code coverage rate comprises a change line coverage rate and a change link coverage rate. According to the multi-dimensional analysis method, coverage rate evaluation is more scientific and comprehensive, developers can better find test blind spots and potential defects, and therefore the software quality is improved.
Owner:QIAN JIN NETWORK INFORMATION TECH SHANGHAI LTD

Method and system for heap vulnerability detection based on improved fuzzy testing

The invention discloses a heap vulnerability detection method and system based on improved fuzz testing. The heap vulnerability detection method at least comprises the steps of code instrumentation and fuzz testing. In the code instrumentation step, lightweight instrumentation is carried out on a key code segment, the code coverage rate and the heap operation number in the program execution process are collected in real time, and heap operation comprises heap memory allocation and release type operation, memory access type operation and pointer alias type operation; the fuzzy testing step sequentially comprises an exploration stage and a strengthening stage; in the exploration stage, seeds generating more heaps of related operations are selected through a non-dominated sorting priority algorithm for variation, in order to prevent local optimum, the seeds enter the strengthening stage after the exploration stage is executed, the execution frequency of the seeds in the exploration stage is counted, and the seeds with low execution frequency are selected for preferential variation. Compared with a traditional heap vulnerability detection method, the heap vulnerability detection method provided by the invention has the advantages that the detection capability and efficiency are higher by fully utilizing the characteristics of fuzzy test heritable variation.
Owner:SOUTHEAST UNIV

Automatic test case generation and execution method and system

The invention discloses an automatic test case generation and execution method, which comprises the following steps: obtaining input content uploaded by a user, and analyzing the input content uploaded by the user to obtain structured key data; generating a preliminary test case according to the structured key data and a general rule of a knowledge base, optimizing the preliminary test case according to historical data and a code coverage rate, and generating a test case; compiling a test script according to the test case, and executing the test script; analyzing and processing the test execution result, and generating an execution structure and a test case analysis report; and performing optimization processing on the test execution result and the historical data, and dynamically adjusting a test strategy according to an optimization processing result. The invention further discloses a system for realizing the automatic test case generation and execution method. The test efficiency is improved, the test coverage rate is increased, the execution performance is improved, and automatic continuous testing is supported.
Owner:KOAL SOFTWARE CO LTD

Incremental code coverage rate acquisition device based on Java bytecode dynamic instrumentation technology

PendingCN120407398AError detection/correctionJava syntaxData acquisition
The invention discloses an incremental code coverage rate acquisition device based on a Java bytecode dynamic instrumentation technology, and relates to the technical field of software testing and quality control. Comprising a code difference analysis module, a byte code instrumentation module, a coverage rate data acquisition module, a coverage rate data integration module, a coverage rate report generation module and a test trigger and threshold control module, and a syntax tree structure of incremental codes is generated based on a Java syntax analysis tool, so that line level analysis of code differences is realized. According to the method, incremental codes are accurately analyzed through Git and JavaParser, coverage rate data are collected through dynamic instrumentation, a unified report is generated in combination with path analysis, missing scenes are marked in a highlighted mode, and the test efficiency and the code quality control capacity are improved.
Owner:BEIJING BAIJU YIXING TECH CO LTD

Automobile electronic control unit fuzzy test method based on partial code coverage rate feedback and computer

The invention provides an automobile electronic control unit fuzzy testing method based on partial code coverage rate feedback and a computer, and belongs to the technical field of automobile electronic control unit code testing. The computer performs static analysis on source codes of the automobile electronic control unit, identifies inevitable execution blocks and conditional execution blocks, performs selective instrumentation on the conditional execution blocks, and inserts coverage rate recording instructions of the conditional execution blocks. And the computer source code is loaded into the automobile electronic control unit, and a test input signal is generated through the fuzzy test engine and is injected into the automobile electronic control unit. In the process of executing the program by the automobile electronic control unit, recording the coverage condition of the condition execution block to a bitmap in the memory; the computer reads the coverage rate data of the condition execution block through the debugger every time a complete execution cycle is completed; and the fuzzy test engine adjusts the input generation strategy according to the coverage rate data feedback of the condition execution block and tests again. According to the method, the automobile electronic control unit source code fuzzy test coverage condition is efficiently collected.
Owner:ANHUI ZHUODUN SECURITY TECHNOLOGY CO LTD

Code testing method, code testing device, storage medium and program product

The invention discloses a code testing method, a code testing device, a storage medium and a program product. The method comprises the steps of obtaining target code data and historical code data, and determining a change line according to the target code data and the historical code data; obtaining a plurality of coverage lines corresponding to the target code data, and determining a change line coverage result according to whether the coverage lines are change lines or not; a code coverage report is generated at least according to the line coverage changing result, the code coverage report comprises the line coverage changing rate of the target code data, and the line coverage changing rate is the ratio of the total number of coverage changing lines to the total number of changing lines; and under the condition that the change line coverage rate is greater than a threshold value, determining that the target code data passes the test. According to the method and the device, the technical problem that the coverage condition of the changed content cannot be accurately explained by the incremental code coverage rate in the prior art is solved.
Owner:中国邮政储蓄银行股份有限公司

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

Code coverage rate filtering file generation method, system and equipment and medium

The invention relates to the technical field of chip verification, and mainly relates to a code coverage rate filtering file generation method, system and device and a medium, and the method comprises the steps: obtaining to-be-tested design information; the to-be-tested design information comprises path level information and a signal statement position; the path hierarchical information is used for indicating a hierarchical structure of the to-be-tested design; obtaining filtering configuration information, wherein the filtering configuration information comprises a filtering rule and / or a target function option; the target function options comprise a merging option, a splitting option and an inheriting option; and according to the filtering configuration information, the path level information and the signal statement position, generating a target code coverage rate filtering file. According to the embodiment of the invention, the method is suitable for an application scene of cooperative verification of a large-scale, system-level and complex to-be-tested design, and improves the efficiency of chip verification.
Owner:SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Seed scheduling method and system for multi-objective optimization in grey box fuzzy test

The invention relates to the technical field of program testing, in particular to a seed scheduling method and system for multi-objective optimization in grey box fuzzy testing, and the method comprises the steps: dividing related indexes of seeds into state related indexes and state independent indexes; modeling a priority ranking problem of the seeds into a multi-objective optimization problem according to state related indexes, calculating Pareto leading edges of the seeds based on a non-dominated ranking algorithm, and screening out the seeds with high priorities; selecting seeds according to a seed selection basic principle; determining the weight of each index by using an analytic hierarchy process according to the state-independent indexes, evaluating the quality of the seeds through an approximate ideal solution algorithm, and distributing reasonable energy for the seeds; and based on the priority and the energy distribution result, selecting the seeds for mutation to generate a new test case. According to the method, seed priority division and energy distribution are optimized, so that the seed scheduling efficiency in grey-box fuzzy testing is remarkably improved, and accurate testing is realized at a higher code coverage rate and a faster vulnerability discovery speed.
Owner:Chinese People's Liberation Army Cyberspace Force Information Engineering University

MCU firmware grey box fuzzy test method and device based on simulation and strategy selection

The invention discloses an MCU firmware grey box fuzzy test method and device based on simulation and strategy selection, and the method comprises the following steps: 1) loading an MCU firmware binary file to a Unicorn simulator, and starting to run from a firmware entry point; 2) intercepting all MMIO accesses generated during firmware running, and judging whether a corresponding MMIO access model exists or not; (3) the energy-saving fuzzifier selects a variation strategy with the maximum probability of generating a new path to perform variation on the seeds, and inputs the variation strategy into the simulator; (4) the simulator obtains the variation seeds, the processing mode of the seeds is selected according to the access model, and therefore peripheral input needed by firmware is generated, and simulation operation is recovered; 5) recording and feeding back execution conditions of the variant seeds to the exploration-utilization model, and simultaneously determining whether the variant seeds are discarded or added into the seed sample set; and 6) calculating the probabilities of different variation modes by the exploration-utilization model according to feedback information of a seed operation result for strategy selection in the step 3). According to the method, MCU firmware peripheral modeling and an energy-saving fuzzifier are combined, and vulnerability mining is carried out on full-simulation firmware by using input overhead judgment and abrupt change selection strategies. Through the input overhead judgment of the simulator and the exploration-utilization model of the fuzzer, the input overhead of peripheral modeling is reduced, the generation of redundant seeds is reduced, and the code coverage rate of fuzz testing is ensured.
Owner:ZHEJIANG UNIV OF TECH

Stateful protocol fuzzy test method and system based on response information

The invention relates to a stateful protocol fuzzy test method and system based on response information. The method comprises the following steps: S1, a preprocessing stage; S2, a fuzzy test stage; s3, a state selection stage; and S4, a seed scheduling stage. The system comprises a test preparation module, a fuzzy test module, a state selection module and a seed scheduling module. According to the method, the source code of the protocol entity program to be tested is statically analyzed to capture distribution and use of enumeration type variables in the source code. According to the method, the response result information of the tested program is analyzed, the response header field is extracted, on the basis that the response code represents the state, the state is further subdivided, the states represented by a plurality of same state codes in the same seed are effectively distinguished, and the detection accuracy is improved. And the seed value and the variation position are adjusted by using the response header field information reaching the target state and the coverage rate information, so that the code coverage rate of the stateful protocol fuzz test is remarkably improved, more vulnerabilities are found, and the fuzz test efficiency is greatly improved.
Owner:HANGZHOU DIANZI UNIV

Test case obtaining method and device, equipment and medium

The invention discloses a test case obtaining method and device, equipment and a medium. The method comprises the following steps: generating a test case feature vector and a code branch condition coverage feature vector according to a historically generated code coverage report, and splicing the test case feature vector and the code branch condition coverage feature vector to generate a transaction set; generating a plurality of multi-item sets according to a preset support degree and the transaction set; generating a first result set and a second result set according to a preset confidence coefficient and each multi-item set; and when the incremental code coverage report is generated each time, determining a plurality of target test case feature vectors in the first result set or the second result set according to the incremental code coverage report, and obtaining a test case according to the target test case feature vectors. By adopting the technical scheme, the supplementary test case can be intelligently and accurately provided for the uncovered code, the test efficiency and quality are improved, and the cost is saved.
Owner:AGRICULTURAL BANK OF CHINA

Chaotic test scene supplementing method and device, equipment and storage medium

The invention discloses a chaos test scene supplementing method and device, equipment and a storage medium. The method comprises the steps that a software system is analyzed through a micro-service analysis tool, and a chaos test scene corresponding to the software system is generated in combination with a rule engine tool; executing the chaos test scene on a chaos engineering platform, and obtaining scene data when the chaos test scene is executed in combination with a code coverage rate tool; and when the current code coverage rate of the software system does not reach the expectation, inputting the scene data into a pre-trained machine learning model, and supplementing a new chaos test scene based on the machine learning model. According to the method, when the current code coverage rate of the software system does not reach the expectation, a new chaos test scene is supplemented through the machine learning model, and the code coverage rate of the chaos test scene can be improved.
Owner:AGRICULTURAL BANK OF CHINA