摘要: 1.time模块 import time time.time() #当前时间戳 tuple_time = time.localtime() #转换时间戳为元组 stamp_time = time.mktime(time.localtime()) #给定时间元组转为时间戳 time_change = 阅读全文
posted @ 2020-05-20 19:12 joy小羲 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1.框架内测试用例py文件内基本构成 import unittest from selenium import webdriver from time import sleep class Unittest_case(unittest.TestCase): #所有用例开始前执行 def setUp( 阅读全文
posted @ 2020-05-20 16:19 joy小羲 阅读(374) 评论(0) 推荐(0) 编辑