arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.09159cs.SE
收藏

生成轻量级Web服务测试的假骨架

Generating Mock Skeletons for Lightweight Web-Service Testing

Massey University(梅西大学);Victoria University of Wellington(惠灵顿维多利亚大学)

Thilini Bhagya, Jens Dietrich, Hans Guesgen

AI总结:

本文提出利用符号机器学习算法从网络流量记录中自动生成HTTP服务的假骨架,以支持轻量级Web服务测试。

摘要:

现代应用程序开发允许使用轻量级HTTP服务来构建应用程序。测试此类应用程序需要可用的应用程序请求的服务。然而,在测试期间可能受到依赖服务的访问限制。因此,模拟此类服务的行为是有用的,以解决其缺失并继续应用程序测试。本文研究了符号机器学习算法在从网络流量记录中自动合成HTTP服务的假骨架方面的适用性。这些骨架可以自定义以创建能够生成适合测试的服务响应的假。假骨架为服务响应的关键方面(如头信息和状态代码)提供了可读的逻辑,并且具有高度准确性。

英文摘要:

Modern application development allows applications to be composed using lightweight HTTP services. Testing such an application requires the availability of services that the application makes requests to. However, access to dependent services during testing may be restrained. Simulating the behaviour of such services is, therefore, useful to address their absence and move on application testing. This paper examines the appropriateness of Symbolic Machine Learning algorithms to automatically synthesise HTTP services' mock skeletons from network traffic recordings. These skeletons can then be customised to create mocks that can generate service responses suitable for testing. The mock skeletons have human-readable logic for key aspects of service responses, such as headers and status codes, and are highly accurate.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑