A Method for Automatically Generating Web Test Cases Based on Crowdsourcing Test Operation Records
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.
crowdsourcing testingWeb testtest recordstext test casestest case generation