Berkay Orhan
WorkResearchExperienceAboutAskContact
Contact
← Papers

MASTER'S THESIS · ERICSSON · 2026

When Agentic Workflows Help: Hybrid Retrieval for Test Case Recommendation over Heterogeneous Software Artifacts

Berkay Orhan

Download PDF ↓

52

evaluation scenarios

Hand-built retrieval tasks stratified by family, complexity, and answerability.

11,366

production test cases

Semi-structured test cases with free text, instructions, metadata, and trace links.

3

metric families

Functional checks, rank-aware IR metrics, and LLM-as-a-judge response-quality scores.

18

controlled setups

Three models compared across ReAct, Orchestrator-worker, full-prompt, and skill-based setups.

Benchmark results

Results over 52 industrial retrieval scenarios, comparing ReAct and orchestrator-worker across full-prompt and skill-based setups.

···

Model / workflowSetupFunctional passNDCG@10JudgeTimeTools
GLM-5.1Orchestrator-worker · Full promptFull prompt90.4%90.4%0.5974.43167s36
DeepSeek-V3.2Orchestrator-worker · Prompt + skillsPrompt + skills88.5%88.5%0.7334.32437s48
GLM-5.1Orchestrator-worker · Guided skillsGuided skills88.5%88.5%0.6604.51195s30
DeepSeek-V3.2ReAct · Full promptFull prompt84.6%84.6%0.4374.33115s12
GLM-5.1Orchestrator-worker · Prompt + skillsPrompt + skills82.7%82.7%0.6954.28202s47
DeepSeek-V3.2Orchestrator-worker · Guided skillsGuided skills82.7%82.7%0.6924.41416s40
DeepSeek-V3.2ReAct · Guided skillsGuided skills80.8%80.8%0.4644.13151s14
DeepSeek-V3.2ReAct · Prompt + skillsPrompt + skills80.8%80.8%0.4324.16122s14
DeepSeek-V3.2Orchestrator-worker · Full promptFull prompt76.9%76.9%0.6154.28520s46
GLM-5.1ReAct · Full promptFull prompt76.9%76.9%0.6134.1143s6

Best per metric

Shown separately because they answer different questions: is the task done, are the right artifacts on top, and is the answer good.

Functional pass90.4%GLM-5.1, Orchestrator-worker, Full promptDeterministic checks for the expected artifacts and entities. 0 to 100 %.
IR, NDCG@100.733DeepSeek-V3.2, Orchestrator-worker, Prompt + skillsHow high the expected artifacts rank. 0 to 1.
LLM as judge4.51GLM-5.1, Orchestrator-worker, Guided skillsMean answer-quality score. 1 to 5.

Scenario families

The 52 scenarios are stratified by family instead of sampled as one pool. Each has expected artifacts, expected entity references, a reference answer and an answerability label, at three levels: single-hop, multi-hop and reasoning.

Traceability16 scenarios94.1% · 0.391Follow explicit links between procedures, requirements, backlog items and test cases.
Search14 scenarios54.0% · 0.325Find relevant tests from natural-language descriptions where the wording does not match cleanly.
Lookup10 scenarios95.0% · 0.762Resolve known entities or identifiers to the relevant test artifacts and evidence.
Impact8 scenarios66.7% · 0.246Estimate which tests are affected by a changed component or related artifact.
Comparison4 scenarios66.7% · 0.838Compare related artifact sets and explain overlaps, gaps or differences.

Bar: functional pass rate. Figures: pass rate · NDCG@10.

01 / Abstract

This master's thesis designs, implements, and evaluates an agentic hybrid retrieval assistant for test scope analysis in a telecommunications setting. The system combines dense semantic retrieval, sparse lexical matching, structured relational queries, and bounded graph navigation over heterogeneous industrial test artifacts. The evaluation uses 52 hand-built scenarios over a corpus of 11,366 semi-structured industrial test cases containing free-text descriptions, test instructions, structured metadata, and trace links. Each scenario includes expected artifact identifiers, expected entity references, a reference answer, and an answerability label, and is run across ReAct and Orchestrator-worker workflows with full-prompt and skill-based setups.

02 / Problem Setting

The thesis frames test scope analysis as a semantic retrieval problem: engineers need to map unstructured change descriptions to relevant existing test cases and inspectable evidence. This differs from traditional regression test selection, which usually starts from code changes and coverage or impact analysis.

03 / System Design

The assistant extends the DeepAgents harness with a polyglot retrieval substrate, constrained tool interfaces, guarded SQL and graph access, per-session artifact offloading, and explicit evidence aggregation. It combines vector, lexical, relational, and graph-based retrieval so the agent can choose tools step by step.

04 / Evaluation

The benchmark uses 52 hand-crafted scenarios stratified across lookup, search, traceability, impact, and comparison tasks. Each scenario includes expected artifacts, expected entity references, a reference answer, and an answerability label. The comparison spans three LLM backbones, ReAct versus Orchestrator-worker workflows, and three prompt/skill setups: full system prompt, base prompt + skills, and base prompt + guided skills. Quality is measured with functional checks, IR metrics, and a calibrated LLM-as-a-judge scoring pipeline.

05 / Findings

The results show that agentic retrieval quality depends on the model, workflow, and prompt/skill setup. Orchestrator-worker improved aggregate pass rate for GLM-5.1, reached near-parity for DeepSeek-V3.2, and did not improve Qwen3-Coder. Base prompt + skills helped DeepSeek-V3.2 under Orchestrator-worker but hurt GLM-5.1 without extra selection guidance.

Berkay Orhan© 2026

WorkResearchExperienceCVBack to top ↑