摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- """ @desc: 登陆126邮箱 """ from selenium import webdriver import unittest class TestLogin(unittest.TestCase): def setUp(self): self.drive... 阅读全文
posted @ 2016-05-19 20:37 七月的尾巴_葵花 阅读(419) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- """ @desc: 使用unittest组织用例 """ from selenium import webdriver import unittest import time class TestSearch(unittest.TestCase): def setUp(self)... 阅读全文
posted @ 2016-05-19 20:35 七月的尾巴_葵花 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- """ @desc:学习unittest的用法 注意setUp/setUpClass,tearDown/tearDownClass的区别 ① setUp():每个测试函数运行前运行 ② tearDown():每个测试函数运行完后执行 ③ setUpClass():必须使用@classmethod 装饰器,... 阅读全文
posted @ 2016-05-19 10:10 七月的尾巴_葵花 阅读(367) 评论(0) 推荐(0) 编辑