摘要:
#!/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
七月的尾巴_葵花
阅读(425)
评论(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
七月的尾巴_葵花
阅读(227)
评论(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
七月的尾巴_葵花
阅读(378)
评论(0)
推荐(0)

浙公网安备 33010602011771号