摘要
随着软件行业的不断壮大,软件规模逐渐扩大且结构愈发复杂。传统的手动测试方式无法满足高效、高质量的需求,这为软件测试带来了新挑战。为了确保软件质量并提升测试效率,用户界面(UI)自动化测试应运而生,成为一种高效且可靠的测试方法。然而,在企业实际生产测试中,UI自动化测试仍然面临一些挑战,如在生产环境的测试集群中提高测试效率、针对多平台软件进行测试、处理非标准控件场景等问题。为了解决上述实际测试问题,本文提出以下方案:使用Paramiko构建轻量级分布式测试系统;结合Uiautomator2和Selenium构建移动端和Web端的跨平台测试;采用PaddleOCR与尺度不变特征变换(SIFT)算法处理非标准控件问题。经实践验证,所提方案能够有效地解决实际测试中的问题,并具有较高的实际应用价值。
With the continuous growth of the software industry,the scale of software gradually expands and its structure becomes more and more complex.Traditional manual testing methods cannot meet the requirements of high efficiency and high quality,which brings new challenges to software testing.In order to ensure software quality and improve testing efficiency,user interface(UI)automated testing is emerged as an efficient and reliable testing method.However,in the actual production testing of enterprises,UI automatied testing still faces some challenges,such as improving testing efficiency in the testing cluster of the production environment,testing for multi-platform software,and dealing with non-standard control scenarios.In order to solve the above practical testing problems,this paper proposes the following scheme.Paramiko is used to build a lightweight distributed testing system.Uiautomator2 and Selenium are combined to build a cross-platform testing for mobile and Web.PaddleOCR and scale invariant feature transform(SIFT)algorithm are used to deal with non-standard control problems.It has been verified by practice that the above scheme can effectively solve the problems in the actual testing and has high practical application value.
作者
闫红红
周千明
薛涛
YAN Honghong;ZHOU Qianming;XUE Tao(School of Computer Science,Xi’an Polytechnic University,Xi’an 710048,China;Shaanxi Key Laboratory of Clothing Intelligence,Xi’an Polytechnic University,Xi’an 710048,China)
出处
《微型电脑应用》
2025年第7期19-23,共5页
Microcomputer Applications
基金
陕西省2020年技术创新引导专项基金(2020CGXNG-012)
陕西省教育厅科研计划项目(19JK0377)
西安工程大学教学改革项目(21XXGH02)。