Python
liangread
SDET
展开
-
Google Python Style Guide
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Comments转载 2014-06-13 10:27:11 · 440 阅读 · 0 评论 -
【转】Python可变长度的函数参数
http://www.pythoner.com/4.html转载 2014-09-10 11:24:46 · 387 阅读 · 0 评论 -
Python字符串操作
http://www.pythonclub.org/python-basic/string转载 2014-09-11 15:01:15 · 344 阅读 · 0 评论 -
Python 判断一个字符串是否在列表中任何一个字符串中出现过
strlist = ['a1', 'a2', 'b1'] if any("a" in s for s in strlist):翻译 2015-02-10 11:48:21 · 11829 阅读 · 1 评论 -
加速你的py.test, pytest-dist
URL: https://pypi.python.org/pypi/pytest-xdist 多线程跑测试 Command: py.test -d --tx 3*popen原创 2015-11-05 16:24:13 · 972 阅读 · 0 评论 -
Python-Jenkins 查询Job是否存在
def check_jobs_from_jenkins(job_names): if isinstance(job_names, str): job_names = [job_names] job_dict = {} for job_name in job_names: job_dict[job_name] = True if is_job_原创 2015-09-25 11:09:48 · 1186 阅读 · 0 评论 -
写好unit test的建议和例子
最近翻了下写unit test 的文章,总结如下What’s unit test?“Unit testing is a software testing method by which individual units of source code.” – –WikipediaWhat’s integration test?“Integration testing is the phase in s原创 2016-10-20 10:50:30 · 1256 阅读 · 0 评论 -
如何在Jenkins CI 里调试
背景厂内的CI系统把 Jenkins 和Github 连接了起来,这样Dev 只要通过github pr 就能够了解到测试job 运行的情况。有的时候,Dev会找到QA问,如何在Jenkins CI 里面调试代码,所以就有了这篇小指导步骤 Open job url Open console log to find which slave runs this job and where is the原创 2016-12-08 17:45:19 · 466 阅读 · 0 评论