节点文献
基于图表示的用户会话测试用例约减方法
USER-SESSION-BASED TEST SUITE REDUCTION METHOD BASED ON GRAPH REPRESENTATION
【摘要】 用户会话测试(session test)是一种通过回放网络请求来再现用户行为的网络应用测试方法,能有效复现网络应用缺陷。然而,用户会话中往往包含大量重复或类似的网络请求,形成大量重复或类似的测试用例,降低了测试效率。用户会话测试用例约减能减少测试用例,但也存在测试覆盖率较低等问题。提出一种基于图表示的用户会话测试用例约减方法,利用监控数据构建用户行为图来表示用户会话中的用户行为,并通过图表示学习和聚类来聚合相似的用户会话,从而减少测试用例集。在企业实际应用日志数据上的实验表明,该方法相对于对照组方法取得了稳定且优越的测试用例约减效果。
【Abstract】 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.
【Key words】 Software testing; Test suite reduction; User session; Clustering; Graph representation learning;
- 【文献出处】 计算机应用与软件 ,Computer Applications and Software , 编辑部邮箱 ,2026年03期
- 【分类号】TP311.53
- 【下载频次】21