Score
Constructing concrete test oracles that map abstract interaction traces to expected outputs for conformance, safety, or security tests. This includes turning high-level interaction paths into executable test suites and designing oracles robust to alignment issues or adversarial manipulations (e.g., token-by-token extraction attacks).
This work addresses the challenge of efficiently testing black-box systems with side effects by proposing a test generation approach that integrates under-approximate typing with effect systems. The method employs symbolic traces to capture data and control dependencies of side-effecting operations, preserving essential constraints to guide test case synthesis. Precise coverage is achieved through an integration of property-based testing and model checking. The implemented tool, Clouseau, demonstrates substantial improvements over default strategies in frameworks such as QCheck and P, achieving test effectiveness comparable to state-of-the-art hand-crafted test suites. These results validate both the efficacy and practicality of the proposed methodology.
This work addresses the limitations of traditional black-box API testing, which struggles to generate effective state-dependent call sequences due to a lack of behavioral semantics and suffers from the test oracle problem. The authors propose a model-checking-based systematic testing approach that employs TLA+ to formally model API state evolution and leverages the TLC model checker to perform coverage-guided, breadth-first traversal of the state space. This method mitigates state explosion while producing test sequences with provable coverage guarantees over the behavioral model. To enhance runtime validation, the approach integrates Glacier, an executable first-order logic contract language. Empirical evaluation on the EvoMaster benchmark demonstrates complete state coverage, effective detection of multi-operation interaction bugs, and confirms the method’s scalability and practical applicability boundaries.
To address the challenges of low accuracy and difficulty in automated test oracle generation for non-regression testing, this paper proposes a multi-agent collaborative deliberation framework. The method integrates reasoning-based generation, sandboxed execution validation, and an iterative self-refinement mechanism guided by runtime error feedback, establishing a structured deliberation process that ensures execution-grounded and progressively optimized oracles. Key innovations include: (1) a role-specialized multi-agent architecture, (2) a verifiable candidate implementation execution mechanism, and (3) a closed-loop self-correction algorithm. Evaluated on seven benchmarks, the approach significantly outperforms existing methods: GPT-4.1-Mini achieves 57.73% oracle accuracy on LiveCodeBench (+11.43% absolute gain), 95.45% defect detection rate on HumanEval, and 69.32% program repair success rate.
Protocol testing faces two key challenges: (1) generating high-quality inputs—syntactically and semantically valid messages that cover diverse behavioral scenarios—and (2) reliably verifying outputs due to the absence of effective test oracles. To address these, this paper introduces I/O Grammar, the first formalism unifying message syntax, state transitions, and interactive behavior across multiple protocol roles (e.g., client and server), enabling systematic test generation, mock-based simulation, and response validation. Built upon the FANDANGO framework, our approach integrates user-defined constraints with a k-path guided exploration strategy, establishing a cohesive tripartite framework encompassing test generation, mocking, and oracle-free response judgment. Experimental evaluation on DNS, FTP, and SMTP protocols demonstrates that our method significantly outperforms random testing in both input-space and response-space coverage efficiency, achieving faster and more comprehensive functional coverage.
Traditional model-based testing (MBT) for protocols relies on manual RFC parsing to construct behavioral models, resulting in high modeling overhead and hindering practical adoption. This paper proposes an LLM-driven automated black-box testing framework that extracts protocol behavioral specifications from unstructured sources—including RFCs and technical blogs—using large language models, and integrates symbolic execution to generate semantically complete test cases. It introduces the first unified approach jointly performing behavioral modeling and oracle synthesis, enabling semantic-level protocol testing without manual modeling. Evaluated on DNS, the framework uncovered 26 real-world defects across 10 mainstream DNS implementations, including 11 previously unknown vulnerabilities. This significantly advances automation in protocol conformance testing and enhances vulnerability detection capability.
This work addresses the limitations of existing large language models in generating concurrent, stateful Rust API tests—namely, frequent violations of preconditions, insufficient depth, and degeneration into sequential execution—as well as the heavy manual modeling burden of traditional model-driven testing. The authors propose a Petri net–guided test generation framework that employs colored Petri nets to formally model API resources, lifecycles, and causal dependencies. This formalism yields valid, near-valid, and partially ordered concurrent scenarios as constrained intermediate representations. Guided by local fidelity contracts, structural repair loops, and schedule shaping mechanisms, large language models synthesize executable tests exhibiting high conflict and coverage. The approach enables low-cost translation from formal scenarios to test code, significantly improving the legality, depth, and concurrency coverage of generated tests.
Current LLM agent frameworks lack effective automated testing mechanisms, with defects often manifesting as silent semantic errors that complicate test oracles. To address this challenge, this work proposes LogicHunter, a specification-aware active fuzzing approach that integrates Pydantic type constraints with real-world usage patterns to generate semantically extreme yet structurally valid inputs. Furthermore, it introduces the first Agentic Oracle mechanism, which leverages a ReAct-based architecture to dynamically retrieve documentation, analyze source code, and inspect runtime states for proactive bug identification. Evaluated across three major LLM agent frameworks, LogicHunter uncovered 40 previously unknown vulnerabilities—30 confirmed and 26 already patched—with the Agentic Oracle achieving a 91.17% accuracy, substantially outperforming the best passive oracle method (29.27%).
This work addresses the limitations of Python concolic testing, which often suffers from symbolic degradation due to library calls, intractable semantic operations, and stalled path exploration. The paper proposes the first integration of a large language model (LLM) as a lightweight, reactive oracle within the concolic execution loop. Without replacing the underlying symbolic solver, the LLM leverages execution feedback and path constraints to dynamically generate initial seeds, suggest concrete inputs upon solver failure, and guide targeted exploration toward uncovered code when coverage plateaus. This approach substantially enhances exploration efficacy, particularly across semantic barriers and library boundaries. Experimental results demonstrate average line coverage improvements of 8.6, 15.1, and 17.0 percentage points on synthetic benchmarks, real-world programs, and library-centric targets, respectively, with a total API cost of only \$1.63.
This work addresses the oracle problem in automated testing by proposing a novel approach that leverages large language models (LLMs) to generate Java test oracles directly from natural language business requirements, without requiring source code or example input-output pairs. Using the Defects4J real-world defect dataset, the study employs differential analysis to extract behavioral changes and construct a structured gold standard (REQ) for systematic evaluation. It assesses the consistency of oracles generated by prominent LLMs—including DeepSeek-V3 and Llama-3—with both the specified requirements and the system under test. Experimental results demonstrate that LLM-generated oracles exhibit non-trivial generalization capability, showing significantly higher alignment with business requirements than with system implementation. Moreover, oracle accuracy shows no significant linear correlation with the technicality or ambiguity of the requirements.
This work addresses the lack of effective proof-of-concept (PoC) generation methods for “one-day” vulnerabilities by proposing a novel paradigm that integrates patch analysis, large language models, and directed fuzzing. By extracting vulnerability-triggering preconditions from patches, the approach synthesizes executable oracles and combines agent-driven high-level constraint reasoning with low-level oracle injection and branch-distance feedback to enable precise and efficient PoC generation. Notably, it is the first to transform patch-derived information into explicit oracles, effectively mitigating goal drift in long-horizon reasoning. Evaluated on 138 real-world CVEs, the method successfully triggers 80 vulnerabilities—outperforming the best baseline by 40%—including nine previously untriggerable flaws. It achieves faster triggering in 92.9% of cases, with 48.8% accelerated by over 100× (up to 3,664×), and uncovers six new zero-day vulnerabilities.