Research and Application of PC UI Automated Testing Framework Based on Pywinauto ——Taking the CNKI E-Study Platform as an Example
(Tongfang Knowledge Network Digital Publishing Technology Co., Ltd., Beijing 100192, China)
Abstract
As the CNKI E-Study desktop (Windows) version continues to iterate, the increasing coupling degree of its functional modules poses dual challenges of efficiency and coverage for traditional manual regression testing. To break through the bottleneck of conventional manual testing, a Python-based PC UI automated testing framework is researched and implemented. This framework, centered on the Pywinauto library, achieves precise control over Windows application interfaces by integrating multimodal positioning strategies, manages test cases via the Pytest testing framework, and generates visual test reports using the Allure tool. Applied to the core functional points of the CNKI E-Study platform, the framework demonstrates significant improvements in testing efficiency and product quality, providing a reliable solution for automated testing of similar desktop applications.
Keywords
UI automated testing; Pywinauto; multimodal positioning; testing framework; desktop application
References
- [1] Yang Gang, Lu Tianliang, Zhang Kaixin, etc A Multi modal Fusion and Boundary Aware Tampering Image Detection Network [J]. Computer Engineering and Applications, 2026, 62 (14): 315-328
- [2] Zhang Fei, Wei Yajun Research on Selenium based Automated Testing Framework Technology [J]. Computer Measurement and Control, 2025, 33 (10): 23-29
- [3] Zhu Jiayi Design and Implementation of Selenium based Automated Testing Framework [D]. Zhenjiang: Jiangsu University of Science and Technology, 2023
- [4] Shi Kun, Mu Jiancheng, Ye Feng Research on Data Driven Automated Testing of Train Control Center Messages [J]. Railway Computer Applications, 2011, 20 (8): 47-49
- [5] Weng Shenghui, Yu Wulong Research on the Application of Pywinauto in Automated Testing of Windows Twain Driver [J]. Microcomputer and Applications, 2012, 31 (3): 8-10, 14
- [6] Chen Cong Research on GUI Automation Testing Technology Based on Pywinauto [J]. Information Technology and Informatization, 2022 (2): 49-52
- [7] Li Yifeng Design and Implementation of an Automated Testing System Based on Pytest and JMeter [J]. Intelligent Computers and Applications, 2019, 9 (1): 277-279283
- [8] Huang Feilong, Zhang Huanxin, Liu Zelin Automated testing platform based on Pytest testing framework [J]. Industrial Control Computer, 2025, 38 (2): 60-62
- [9] Han Lu Research on Pytest based Interface Automation Testing System [D]. Xi'an: Xi'an University of Petroleum, 2025
- [10] Fan Liangjun Implementation and Application of YAML based iOS Software Development Framework [D]. Hefei: Anhui Medical University, 2024
- [11] Fan Liangjun, Peng Zhenwan, Wang Chen, etc YAML based iOS application development framework [J]. Computer and Modernization, 2024 (4): 115-120
About the authors
Lyu Ying (1991-), female, Han ethnicity, from Hengshui, Hebei, engineer, bachelor's degree, research interests include software testing.