arXiv:2606.21151cs.SEcs.AI2026-06

用AI动态生成电信测试脚本,随系统变化自动更新。

Context-Aware Generative AI for Automated Telecom Test Script Generation

  • 基于实时知识图谱和变化检测,只改受影响的测试用例。
  • 在真实电信系统中减少人工干预,提升测试相关性与速度。
  • 适合需要持续集成的电信软件和网络测试团队。

电信软件系统与网络的自动化测试生成已因机器学习和规则方法取得显著进展。然而,现有方案大多生成针对系统快照的静态测试集;随着代码、配置、拓扑及关键性能指标(KPI)的演进,这些测试迅速过时或与实际系统脱节。目前尚无广泛采用的解决方案能持续检测细粒度变化,并仅针对性地调整受影响的测试用例,而非重生成整个测试套件。本文提出一种上下文感知的生成式AI框架,将测试视为由系统当前状态驱动的持续适应过程,而非静态产物。核心贡献是基于实时知识图谱(KG)的增量条件测试生成:采用持续更新的KG作为单一事实来源,通过增量引擎实现细粒度变化检测,并借助KG引导的生成式AI代理(基于模型上下文协议,MCP)自动创建、更新或淘汰测试用例。我们进一步集成检索增强生成(RAG),以融合电信领域知识与历史资产。该框架在软件系统与电信网络场景中均得到验证,包括在GitLab管理的Python KPI监控应用,有效降低了人工成本,提升了测试相关性并加速了测试周期。

原文摘要 · Abstract (English)

Automated test generation for telecom software systems and networks has advanced significantly with the adoption of machine learning and rule-based approaches. However, most existing solutions generate static test suites against a snapshot of the system; as code, configurations, topologies, and key performance indicators (KPIs) evolve, these tests quickly become outdated or misaligned with the live system. There is currently no widely adopted solution that continuously detects fine-grained changes and selectively adapts only the affected tests without regenerating entire test suites. This paper presents a context-aware generative AI framework for automated telecom test script generation that treats testing as a continuously adapting process driven by the current state of the system rather than a static artifact. The central contribution is delta-conditioned test generation over a live knowledge graph: our approach employs a continuously updated knowledge graph (KG) as a single source of truth, a delta engine for fine-grained change detection, and a KG-guided generative AI agent, operating via the Model Context Protocol (MCP), to create, update, or retire test cases automatically. We further integrate Retrieval-Augmented Generation (RAG) to enrich reasoning with telecom-domain knowledge and historical artifacts. We demonstrate applicability across software-system and telecom-network use cases, including a Python-based KPI monitoring application managed in GitLab, and show how the framework reduces manual effort, improves test relevance, and accelerates test cycles.

生成式AI测试自动化电信系统知识图谱

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。