COTS:面向 RESTful 应用的连接式 OpenAPI 测试综合
COTS: Connected OpenAPI Test Synthesis for RESTful Applications
AI总结:
本文提出受会话类型启发的 OpenAPI DSL 与 COTS 工具,通过模型驱动的随机测试执行检测 RESTful 应用缺陷,并在开源应用上取得优于或可比大型手工测试套件的覆盖率。
摘要:
我们提出了一种用于测试 RESTful 应用的新型模型驱动方法。我们引入了(i)一种用于 OpenAPI 规范的领域特定语言,以及(ii)一个支持该方法学的工具。我们的 DSL 受会话类型启发,能够对 REST 客户端与服务器之间的通信协议进行建模。我们的工具名为 COTS,可生成(随机化的)基于模型的测试执行并报告软件缺陷。我们通过将其应用于测试若干开源应用来评估该方法的有效性。研究结果表明,我们的方法学能够识别 REST API 中细微的缺陷,并且与规模大得多的手工测试套件相比,可达到相当或更优的代码覆盖率。
英文摘要:
We present a novel model-driven approach for testing RESTful applications. We introduce a (i) domain-specific language for OpenAPI specifications and (ii) a tool to support our methodology. Our DSL is inspired by session types and enables the modelling of communication protocols between a REST client and server. Our tool, dubbed COTS, generates (randomised) model-based test executions and reports software defects. We evaluate the effectiveness of our approach by applying it to test several open source applications. Our findings indicate that our methodology can identify nuanced defects in REST APIs and achieve comparable or superior code coverage when compared to much larger handcrafted test suites.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。