检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:许礼捷[1] 葛华 Xu Lijie;Ge Hua(Shazhou Professional Institute of Technology,Zhangjiagang 215600,Jiangsu,China)
机构地区:[1]沙洲职业工学院电子信息工程系,江苏张家港215600
出 处:《沙洲职业工学院学报》2022年第4期1-6,共6页Journal of Shazhou Professional Institute of Technology
基 金:2022年江苏高校“青蓝工程”优秀教学团队培养项目(苏教师函〔2022〕29号)。
摘 要:随着Web应用系统的广泛应用,传统的手工测试已经难以满足Web应用系统测试需求。根据自动化测试的特点,研究Selenium自动化测试框架,分析Selenium的工作原理和元素定位的方法。进一步研究自动化测试用例的设计方法和编写流程,阐述Python自带的单元测试框架(Unittest框架)编写自动化测试用例的基本使用方法和常用断言方法。最后以资产管理系统的登录模块测试用例为例,完成具体脚本的编写和执行,实现了自动化测试代替手工测试,提高了软件测试效率。Along with the wide application of Web application systems,traditional manual testing canmeet the needs of web application system testing no longer.This paper describes the characteristics of automatedtesting,and studies the selenium automated testing framework,and analyses the working principleofselenium and the methods of element positioning,and further studies the designing method and writingprocess of automated test cases,describes the basic usage methods and common assertion methods of writingautomated test cases by Python’s built-in unit test framework(Unittest framework).Finally,with the log-inmodule test case of the asset management system as an example,the writing and execution of specific scriptsare completed,which realizes the automatic testing instead of manual testing,and greatly improves theefficiency of software testing.
关 键 词:软件测试 Web自动化测试 Selenium框架 PYTHON Unittest测试框架
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.30