首页|期刊导航|计算机应用与软件|基于图表示的用户会话测试用例约减方法

基于图表示的用户会话测试用例约减方法OA

USER-SESSION-BASED TEST SUITE REDUCTION METHOD BASED ON GRAPH REPRESENTATION

中文摘要英文摘要

用户会话测试(session test)是一种通过回放网络请求来再现用户行为的网络应用测试方法,能有效复现网络应用缺陷.然而,用户会话中往往包含大量重复或类似的网络请求,形成大量重复或类似的测试用例,降低了测试效率.用户会话测试用例约减能减少测试用例,但也存在测试覆盖率较低等问题.提出一种基于图表示的用户会话测试用例约减方法,利用监控数据构建用户行为图来表示用户会话中的用户行为,并通过图表示学习和聚类来聚合相似的用户会话,从而减少测试用例集.在企业实际应用日志数据上的实验表明,该方法相对于对照组方法取得了稳定且优越的测试用例约减效果.

User-session test is a common network application testing method,which can reproduce users'behaviors and network application defects by replaying a series of network requests.However,user sessions contain a large number of repeated or similar network requests,resulting in too many test cases,which reduced testing efficiency.Existing user-session-based test suite reduction has problems such as low test coverage after reduction.To address the above issues,a user-session-based test suite reduction method based on graph representation is proposed.This method used monitoring data to construct user behavior graphs to represent users'behaviors in user sessions,and aggregated similar user sessions through graph representation learning and clustering,thereby reducing the user-session-based test suite.Experiment on the actual application log data of enterprises shows that the method can achieve stable and superior test case reduction effect compared with the control group methods.

傅震卿;张晨曦;吴毅坚;赵文耘

复旦大学软件学院 上海 200438||上海市数据科学重点实验室(复旦大学) 上海 200438复旦大学计算机科学技术学院 上海 200438||上海市数据科学重点实验室(复旦大学) 上海 200438复旦大学软件学院 上海 200438||复旦大学计算机科学技术学院 上海 200438||上海市数据科学重点实验室(复旦大学) 上海 200438复旦大学软件学院 上海 200438||复旦大学计算机科学技术学院 上海 200438||上海市数据科学重点实验室(复旦大学) 上海 200438

信息技术与安全科学

软件测试测试用例约减用户会话聚类图表示学习

Software testingTest suite reductionUser sessionClusteringGraph representation learning

《计算机应用与软件》 2026 (3)

1-9,9

国家自然科学基金项目(62172099).

10.3969/j.issn.1000-386x.2026.03.001

评论