[1]张清睿,黄 松,孙乐乐.基于众测操作记录的 Web 测试用例自动生成方法[J].计算机技术与发展,2024,34(01):83-90.[doi:10. 3969 / j. issn. 1673-629X. 2024. 01. 013]
 ZHANG Qing-rui,HUANG Song,SUN Le-le.A Method for Automatically Generating Web Test Cases Based on Crowdsourcing Test Operation Records[J].,2024,34(01):83-90.[doi:10. 3969 / j. issn. 1673-629X. 2024. 01. 013]
点击复制

基于众测操作记录的 Web 测试用例自动生成方法()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
34
期数:
2024年01期
页码:
83-90
栏目:
软件技术与工程
出版日期:
2024-01-10

文章信息/Info

Title:
A Method for Automatically Generating Web Test Cases Based on Crowdsourcing Test Operation Records
文章编号:
1673-629X(2024)01-0083-08
作者:
张清睿黄 松孙乐乐
陆军工程大学 指挥控制工程学院,江苏 南京 210007
Author(s):
ZHANG Qing-ruiHUANG SongSUN Le-le
School of Command and Control Engineering,Army Engineering University of PLA,Nanjing 210007,China
关键词:
众包测试Web 测试测试记录文本测试用例测试用例生成
Keywords:
crowdsourcing testingWeb testtest recordstext test casestest case generation
分类号:
TP311. 5
DOI:
10. 3969 / j. issn. 1673-629X. 2024. 01. 013
摘要:
众包测试是软件测试领域的一种新兴趋势,具有更加可靠、成本更低和效率更快的优点。 但是由于众测工人专业水平不同,提交的测试用例报告缺乏规范性,为报告的审核、缺陷的复现
都增加了困难。 该文提出了一种通过众测工人的操作记录自动生成文本测试用例的新方法,并实现了该测试工具。 首先,对测试工人的操作进行录制从而获取录制信息,录制信息可以划分为三大模块,包含静态页面信息、动态页面信息和交互信息;其次,通过深度优先遍历算法获取组件名称、组件类型、交互动作和交互数据,并按照众测工人的实际操作步骤生成测试序列;对于测试序列中存在组件名称匹配错误的问题,通过 YOLOv5 目标检测和 OCR 文字识别技术设计了 n 元组生成算法,用于生成组件名称与其选项的对应关系,并对匹配错误的组件名称进行自动修改;最后,通过自定义规则集将测试序列转换为文本测试用例。 该方法自动生成统一规范的测试用例,降低了众测的门槛,提高了测试效率,并且有利于众测服务平台的质量评估工作。 为了验证该方法的有效性,针对不同开发技术的 Web 系统进行了测试,并与目前最新版本的 UFT,Selenium IDE 和 Katalon Recorder 三款工具进行了对比。 实验结果表明,该方法生成的测试用例在测试步骤完整性、测试用例信息完整性和时间性能方面具有较好的表现。
Abstract:
Crowdsourcing testing is an emerging trend in the field of software testing,with the advantages of greater reliability,lower cost,and faster efficiency. However,due to the different professional levels and abilities of the crowd testing workers,the submitted test casereports lack standardization, which increases difficulties for report review and defect recurrence. A new method for automaticallygenerating text test cases through the operation records of crowdsourced testing workers has been proposed and the testing tool has been implemented. Firstly,the test worker’s actions are recorded to obtain recording information, which can be divided into three modulesincluding static page information, dynamic page information and interactive information. Secondly, the control name, control type,interaction action and interaction data are obtained through the depth-first traversal algorithm,and the test sequence is generated accordingto the actual operation steps. For the issue of control name matching errors in the test sequence,an n - tuple generation algorithm wasdesigned using YOLOv5 object detection and OCR text recognition technology to generate the corresponding relationship between controlnames and their options,and to automatically modify control names that match incorrectly. Finally,the test sequence is converted to a texttest case through a custom rule set. To verify the effectiveness of the proposed method, Web systems with different developmenttechnologies are tested and compared with the latest UFT,Selenium IDE and Katalon Recorder tools. The experimental results show thatthe test cases generated by the proposed method have good performance in the integrity of test steps and test case information.
更新日期/Last Update: 2024-01-10