摘要: 1 var jsonData = JSON.parse(responseBody); 2 var schema = { 3 "status": "0", 4 "message": "请求成功", 5 "data": null 6 } 7 tests["json格式验证"] = tv4.validat 阅读全文
posted @ 2020-12-24 16:15 Camillezxl 阅读(319) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import unittest import os class CompareTestCase(unittest.TestCase): '''对比测试结果与预期结果是否一致''' def compare_data(self,case_name,actual_list,ac 阅读全文
posted @ 2020-12-08 08:47 Camillezxl 阅读(546) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 from HTMLTestRunner_cn import HTMLTestRunner import yagmail import unittest import time import os from common.send_email import SendEmai 阅读全文
posted @ 2020-12-08 08:45 Camillezxl 阅读(379) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import yagmail class SendEmail(): '''发送自动化测试报告''' def send_mail(self,new_report): sender = "1111@qq.com" #账号 pwd = "111" #密码 host = "smt 阅读全文
posted @ 2020-12-08 08:44 Camillezxl 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import unittest from common.gettime import GetTime import requests import os import pandas as pd import operator class CompletePhenology 阅读全文
posted @ 2020-12-03 16:52 Camillezxl 阅读(178) 评论(0) 推荐(0) 编辑