摘要:
1.grep -n 'b' c 查看c中包含‘b’的 行 2. ps -ef | grep -n python ps查看所有进程,并且放到管道中| ,grep 在管道中查找包含python的 行 3.cat a b >> c cat查看a和b文件,把查看的内容重定向在c中, >> 是后加,>是覆盖 阅读全文
posted @ 2019-08-06 21:55
Tarzen
阅读(471)
评论(0)
推荐(0)
摘要:
import zmail #发送测试报告到邮件 with open(r'F:\asus\auto_file\unittest_html\2019-06-30 10-31-03report.html','r',encoding="utf-8") as f: #获取测试报告 content_html = f.read() mail_content = { 'subject':... 阅读全文
posted @ 2019-08-06 14:05
Tarzen
阅读(324)
评论(0)
推荐(0)
摘要:
import unittest,requests ''' 使用unittest框架的时候,这个接口需要上一个接口的返回值 ''' class Test_case(unittest.TestCase): def setUp(self): #定义全局变量使用globals()函数来 字典形式的 self.g = globals() self.s = r... 阅读全文
posted @ 2019-08-06 13:11
Tarzen
阅读(521)
评论(0)
推荐(0)

浙公网安备 33010602011771号