Skip to content

Alan3344/Selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

优化了导入Unit测试类,自动导入测试类 删除了all_class_name方法 添加浏览器启动全局配置

用法: test_case 下面存放每一个单独的用例 类名开头大写和文件名一致 baidu.py => Baidu tencentCompany => TencentCompany

运行单个 UnitTest cd baiduTest then python -m test_case.baidu

or

python run.py baidu

输出 >>>
modules: ['baidu', 'taobao', 'tencent', 'wangyi']
sys.argv: ['baidu']
Selected module: <class 'test_case.baidu.Baidu'>
test_Baidu (test_case.baidu.Baidu)
Baidu搜索验证 ... ok

----------------------------------------------------------------------
Ran 1 test in 8.154s

OK

About

--Selenium--

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published