首页|基于图像的航天业务软件Web UI自动化测试方法

基于图像的航天业务软件Web UI自动化测试方法

扫码查看
当前航天业务繁重,如何高效准确地完成相关软件的测试尤为重要.设计了一种基于图像的航天业务软件Web UI自动化测试方法.该方法以用户视角进行自动化测试,使用YOLOv8模型检测被测Web软件截图,识别出表格、折线图和导航按键(包括导航菜单、面包屑、按钮等按键)3类网页元素.之后利用Selenium工具自动测试导航按键元素的可访问性,使用文字识别技术PaddleOCR、结构相似性(Structural Similarity,SSIM)指数算法分别测试表格元素和折线图元素信息的正确性,并生成测试报告.该方法可移植性好,能够自动为Selenium提供元素定位,改善Selenium脚本易失效的问题,并且可以自动检查图表数据的正确性.实验结果表明,该方法能够覆盖90%的测试用例,可检测具体错误位置和相关信息,显著减少了手动测试工作量,提高了测试效率.
Image-Based Web UI Automated Testing Methods for Aerospace Business Software
Currently aerospace bisnesses are heavy,how to accomplish the testing of related software efficiently and accurately become particularly important.An image-based Web UI automated testing method for aerospace business software is designed.This method conducts automated testing from the user's perspective,and uses YOLOv8 model to detect the screenshot of tested web software page,and identifies three types of elements:ta-bles,line charts,and navigation buttons(including navigation menus,breadcrumbs,buttons,etc.).Then,Sele-nium is used to automatically test the accessibility of navigation button elements,and the text recognition tech-nology named PaddleOCR and Structural Similarity(SS1M)algorithm is used to test the accuracy of information for table elements and line chart elements respectively,and a test report is formed.This method is easy to port-able,it can provide the localization of elements for Selenium automatically and improve the issue that Selenium scripts are prone failure,and check the correctness of chart data automatically.Experimental results show that this method can cover 90%of the test cases,detect the location and information of errors clearly and reduce the workload of manual testing significantly and improve the testing efficiency.

Web UI automated testingYOLOv8structural similarity algorithmPaddleOCRSelenium

彭飞、王建、寇超、田芳

展开 >

西昌卫星发射中心,四川西昌 615000

Web UI自动化测试 YOLOv8算法 结构相似性算法 PaddleOCR Selenium

2024

测控技术
中国航空工业集团公司北京长城航空测控技术研究所

测控技术

CSTPCD
影响因子:0.5
ISSN:1000-8829
年,卷(期):2024.43(9)
  • 1