计算机科学 ›› 2021, Vol. 48 ›› Issue (6A): 568-571.doi: 10.11896/jsjkx.201000139
黄双芹1, 刘英博2, 黄向生3
HUANG Shuang-qin1, LIU Ying-bo2, HUANG Xiang-sheng3
摘要: 基于模型驱动的低代码量平台通过编写少量代码或不需要编码就可以快速定制产生大量的应用系统,对这些快速定制的应用系统的可靠性、稳定性、易用性等提出了更高的要求,测试是保障这些软件高质量、高可靠性的重要手段。传统的自动化测试存在两个方面的不足:1)通过手工查看源码的方式获取页面元素的定位信息的效率非常低;2)当页面经常变动时,定位不到页面元素将导致测试失败。低代码平台快速定制产生很多的应用系统,系统的页面数据量巨大且经常变化,传统的自动化测试方法已不适用。文中通过从后台数据库读取页面源码获取到页面内容,用深度优先搜索的方法解析源码,得到整个页面元素的定位表达式和元素的类型,结合表单的测试数据和表单的URL,对表单进行自动化测试。针对界面、功能各不相同的应用系统,搭建了一个自动化测试管理系统,实现了对不同的应用系统的测试,在实际的项目中得到了很好的运用,大大提高了效率。
中图分类号:
[1] ELALLAOUI M,NAFIL K,TOUAHNI R,et al.AutomatedModel Driven Testing Using AndroMDA and UML2 Testing Profile in Scrum Process[J].Procedia Computer Science,2016,83:221-228. [2] FENG G,LI N.Model driven mobile application testing method [J].Computer Science,2017,44(11):232-239,245. [3] TANG W Z,MO W D.Framework design of domain orientedmodel driven intelligent form system[J].Journal of Beijing University of Aeronautics and Astronautics,2007,33(9):1086-1089. [4] HOU Z Q.Design and implementation of model driven web form system [D].Beijing:Tsinghua University,2010. [5] Three data parsing methods of JSON[EB/OL].(2020-05-17).https://blog.csdn.net/oman001/article/details/79063278. [6] Automated testing-- eight positioning methods and waiting for detailed explanation[EB/OL].(2018-08-13).https://www.cnblogs.com/clairejing/p/9466993.html. [7] LIU Z H.Design and development of automated testing framework based on webdriver [D].Beijing:Tsinghua University,2016. [8] CHEN C.Method and implementation of web function automa-tic test based on Keyword Driven [J].Information and Compu-ter,2019(21):76-78. [9] SHI L S.Design and implementation of automatic test framework based on selenium visualization [D].Beijing:University of Chinese Academy of Sciences,2017. [10] YANG G X . Research and application of webdriver automated testing [J].Science and Technology Communication,2019,11(2):111-112. [11] QINH Q.Improvement and application of selenium based automated testing framework [D].Beijing:University of technology,Chinese Academy of Sciences,2014. [12] LIU J.Construction of selenium webdriver automated testing Framework for websystem [J].Database Technology,2017(21):171-172. |
[1] | 李智, 邓杰, 杨溢龙, 韦尚锋. 从信息物理融合系统问题模型到UML用例图的变换方法 Transformational Approach from Problem Models of Cyber-Physical Systems to Use Case Diagrams in UML 计算机科学, 2020, 47(12): 65-72. https://doi.org/10.11896/jsjkx.201200044 |
[2] | 侯金奎,王磊. 基于体系结构的模型转换语义描述框架 Formal Framework of Architecture-based Model Transformation 计算机科学, 2017, 44(4): 148-152. https://doi.org/10.11896/j.issn.1002-137X.2017.04.032 |
[3] | 梁浩然,周宽久,崔凯,潘杰,侯刚. 基于PEFSM行为模型的黑盒测试用例生成方法 Black-box Test Case Generation Method Based on PEFSM Behavioral Model 计算机科学, 2017, 44(4): 234-240. https://doi.org/10.11896/j.issn.1002-137X.2017.04.050 |
[4] | 冯谷,李尼格. 模型驱动的移动应用测试方法 Model-driven Testing for Mobile Applications 计算机科学, 2017, 44(11): 232-239. https://doi.org/10.11896/j.issn.1002-137X.2017.11.035 |
[5] | 余勇,郭骞. 基于Smali Code的移动应用行为模型的自动构建方法 Behavioral Model Construction Method for Mobile Applications Based on Smali Code 计算机科学, 2017, 44(11): 207-220. https://doi.org/10.11896/j.issn.1002-137X.2017.11.032 |
[6] | 郭鹏,李亚晖,孙磊,蔡晓乐. 面向嵌入式软件开发的UML到Simulink模型转换方法 UML Model to Simulink Model Transformation Method in Design of Embedded Software 计算机科学, 2016, 43(2): 192-198. https://doi.org/10.11896/j.issn.1002-137X.2016.02.042 |
[7] | 胡翔,焦莉,柴叶生. 从UML到GSPN的转换和性能分析方法 Transforming UML to GSPN for Performance Analysis 计算机科学, 2016, 43(11): 49-54. https://doi.org/10.11896/j.issn.1002-137X.2016.11.009 |
[8] | 谷青范,王国庆,张丽花,翟 鸣. 基于模型驱动的航电系统安全性分析技术研究 Research on Model Based Safety Analysis Technology for Avionics System 计算机科学, 2015, 42(3): 124-127. https://doi.org/10.11896/j.issn.1002-137X.2015.03.025 |
[9] | 刘欢欢,麻志毅,陈泓婕. 基于PaaS的云应用软件部署环境的元模型 Meta-model of PaaS-based Cloud Application’s Deployment Environment 计算机科学, 2015, 42(10): 45-49. |
[10] | 吴迎红,黄皓,曾庆凯. 分布式应用访问控制策略精化与冲突分析技术 Techniques of Distributed Application Access Control Policy Refinement and Policy Conflict Analysis 计算机科学, 2014, 41(3): 1-11. |
[11] | 侯超凡,吴际,刘超. 基于测试需求的互操作性测试用例生成方法 Interoperability Test Case Generation Based on Testing Requirements 计算机科学, 2014, 41(11): 162-168. https://doi.org/10.11896/j.issn.1002-137X.2014.11.032 |
[12] | 曾一,黄兴砚,李函逾,王翠钦. 基于MDA的需求捕获工具的设计与实现 Design and Implementation of Requirements Capture Tools Based on MDA 计算机科学, 2014, 41(10): 204-209. https://doi.org/10.11896/j.issn.1002-137X.2014.10.044 |
[13] | 沈春山. 协同状态网及其在软件建模和分析中的应用 Cooperative-state Network and its Application in Software Modeling and Analysis 计算机科学, 2013, 40(3): 238-243. |
[14] | 李 允,桂盛霖,陈 更,罗 蕾. 嵌入式实时软件模型开发环境研究 Model Development Environment Research of Embedded Real-time Software 计算机科学, 2012, 39(Z11): 226-229. |
[15] | 孙为军,李师贤,严玉清. 模型驱动开发中模型演化语法和语义特性研究 Study on Syntax and Semantics Properties of Model Evolution in Model Driven Development 计算机科学, 2012, 39(7): 123-126. |
|