| 注册
首页|期刊导航|计算机技术与发展|基于众测操作记录的Web测试用例自动生成方法

基于众测操作记录的Web测试用例自动生成方法

张清睿 黄松 孙乐乐

计算机技术与发展2024,Vol.34Issue(1):83-90,8.
计算机技术与发展2024,Vol.34Issue(1):83-90,8.DOI:10.3969/j.issn.1673-629X.2024.01.013

基于众测操作记录的Web测试用例自动生成方法

A Method for Automatically Generating Web Test Cases Based on Crowdsourcing Test Operation Records

张清睿 1黄松 1孙乐乐1

作者信息

  • 1. 陆军工程大学 指挥控制工程学院,江苏 南京 210007
  • 折叠

摘要

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 case reports lack standardization,which increases difficulties for report review and defect recurrence.A new method for automatically generating 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 modules including 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 according to the actual operation steps.For the issue of control name matching errors in the test sequence,an n-tuple generation algorithm was designed using YOLOv5 object detection and OCR text recognition technology to generate the corresponding relationship between control names and their options,and to automatically modify control names that match incorrectly.Finally,the test sequence is converted to a text test case through a custom rule set.To verify the effectiveness of the proposed method,Web systems with different development technologies are tested and compared with the latest UFT,Selenium IDE and Katalon Recorder tools.The experimental results show that the test cases generated by the proposed method have good performance in the integrity of test steps and test case information.

关键词

众包测试/Web测试/测试记录/文本测试用例/测试用例生成

Key words

crowdsourcing testing/Web test/test records/text test cases/test case generation

分类

信息技术与安全科学

引用本文复制引用

张清睿,黄松,孙乐乐..基于众测操作记录的Web测试用例自动生成方法[J].计算机技术与发展,2024,34(1):83-90,8.

基金项目

国家重点研发计划基金项目(2018YFB1403400) (2018YFB1403400)

计算机技术与发展

OACSTPCD

1673-629X

访问量0
|
下载量0
段落导航相关论文