python自动化——selenium
之前学习示例01:https://www.cnblogs.com/xiaobaibailongma/category/1611572.html
之前学习示例02:https://www.cnblogs.com/xiaobaibailongma/category/1648021.html
之前面试整理:https://www.cnblogs.com/xiaobaibailongma/p/15219713.html
===========================================================================
根据以上内容,补充知识点:
unittest单元测试框架,之前面试整理:https://www.cnblogs.com/xiaobaibailongma/p/14494184.html
import unittest class TestCase0(unittest.TestCase): @classmethod def setUpClass(cls): print(("类前置=============")) @classmethod def tearDownClass(cls): print(("类后置=============")) def setUp(self): print("启动Case-------------") def tearDown(self): print("结束Case++++++++++++++") def test_001(self): print("第1条测试用例") def test_002(self): print("第2条测试用例") def test_003(self): print("第3条测试用例") def test_004(self): print("第4条测试用例") def test_005(self): print("第5条测试用例") if __name__ == '__main__': unittest.main()
DDT数据驱动:之前复习和整理:
https://www.cnblogs.com/xiaobaibailongma/p/12631569.html
https://www.cnblogs.com/xiaobaibailongma/category/1685644.html
Excel模块:
之前学习整理:https://www.cnblogs.com/xiaobaibailongma/category/1654910.html
日志模块:
多个模块文件,防止日志收集器重复,解决方法:
功能py模块中,不创建日志收集器,
配置文件:
https://www.cnblogs.com/xiaobaibailongma/category/1685644.html
写: