摘要: 操作excel #存到excel里面,python去操作excel文件 #只支持这种后缀,xlsx ,openpyxl只支持这种格式 # from openpyxl import load_workbook #1:打开文件,加载用例薄 wb=load_workbook("test.xlsx") #和 阅读全文
posted @ 2019-12-03 16:27 朱砂痣 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 执行用例 #写一个测试类 import unittest import HTMLTestRunnerNew #写好的模块可以直接调用 #import HTMLTest #测试报告模板 from class_004_unittest.class_003 import TestMathMethod su 阅读全文
posted @ 2019-12-03 16:25 朱砂痣 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 单元测试 #单元测试 #unittest+接口 unittest python自带 pytest+jenkins+allure #接口测试的本质 就是测试类里面的函数 #单元测试的本质 测试函数 代码级别 #功能测试 #1、写用例 Testcase #2、执行用例 Testsuite(存储用例) T 阅读全文
posted @ 2019-12-03 16:23 朱砂痣 阅读(287) 评论(0) 推荐(0) 编辑
摘要: python学习笔记 #requests import requests #from class_005.http_resuest import HttpRequest login_url = "http://api.nnzhp.cn/api/user/login" data = {'usernam 阅读全文
posted @ 2019-12-03 16:20 朱砂痣 阅读(354) 评论(0) 推荐(0) 编辑
摘要: #继承 class RobotOne: #第一代机器人 def __init__(self,year,name): self.year=year self.name=name def walking_on_ground(self): print(self.name+'只能在平地上行走,有障碍物就会摔 阅读全文
posted @ 2019-12-03 16:16 朱砂痣 阅读(167) 评论(0) 推荐(0) 编辑