2019年6月3日

摘要: 一下例子即把testcase添加到suit里面 import unittest class TestStringMethods(unittest.TestCase): def test_upper(self): self.assertEqual("foo".upper(), "FOO") def t 阅读全文
posted @ 2019-06-03 17:55 lbxx 阅读(701) 评论(0) 推荐(0) 编辑
摘要: python unittest简单的例子如下: class TestString(unittest.TestCase): def test_upper(self): self.assertEqual("foo".upper(), "FOO") def test_isupper(self): self 阅读全文
posted @ 2019-06-03 14:36 lbxx 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Python的untiltest的单元测试框架最初受Junit的启发,同所有其他语言的单元测试框架一样,具有相似的特性。 单元测试框架,一般包括自动化测试,配置共享,关机测试,以及聚合测试用例到测试用例集,且测试用例和报告相互独立等。 unittest包含了几个重要的概念,如下: 1. test f 阅读全文
posted @ 2019-06-03 12:02 lbxx 阅读(117) 评论(0) 推荐(0) 编辑

2019年5月29日

摘要: import osimport sysimport unittestfrom time import strftimefrom lib.log import *from public.HTMLTestRunner import HTMLTestRunnerfrom lib.sendemail imp 阅读全文
posted @ 2019-05-29 15:44 lbxx 阅读(105) 评论(0) 推荐(0) 编辑

2019年5月21日

摘要: import paramikoimport select def link_server_client2(serverip, user, pwd): # 进行连接 print(' 开始连接服务器(%s) ' % serverip) client = paramiko.SSHClient() clie 阅读全文
posted @ 2019-05-21 10:41 lbxx 阅读(794) 评论(0) 推荐(0) 编辑

2019年3月4日

摘要: #-*- coding:utf-8 -*-#author='Shichao-Dong' import osfrom appium import webdriverfrom time import sleep, strftimefrom selenium.webdriver.support.wait 阅读全文
posted @ 2019-03-04 15:54 lbxx 阅读(277) 评论(0) 推荐(0) 编辑

2018年7月9日

摘要: appinum+python环境搭建 前提:java、android studio(包括android sdk)、配置环境变量 (1)安装nodejshttps://nodejs.org/zh-cn/(2)npm使用淘宝源alias cnpm="npm --registry=https://regi 阅读全文
posted @ 2018-07-09 15:05 lbxx 阅读(568) 评论(0) 推荐(0) 编辑

2017年12月28日

摘要: Python学习-pymysql(一) Python3.3如何连接MySQL数据库,并向数据库里面插入输入数据 例子: #!/usr/bin/python# -*- coding:utf-8 -*-import pymysql# 创建连接conn = pymysql.connect(host='xx 阅读全文
posted @ 2017-12-28 17:46 lbxx 阅读(129) 评论(0) 推荐(0) 编辑

导航