QA亮子的记事本

记录开发测试中碰到的问题和解决办法

导航

2015年12月22日 #

使用Firefox user agent进行移动端网页测试

摘要: Selenium 真是个强大的网页测试工具,设置Firefox user agent, 就可以轻松模拟手机端浏览器进行网页测试。 Demo Code# -*- coding:utf8 -*-import unittestfrom selenium import webdriverclass Mobi... 阅读全文

posted @ 2015-12-22 12:01 sdet_liang 阅读(883) 评论(0) 推荐(0) 编辑

2015年12月16日 #

Github 笔记

摘要: 在本地创建并切换git checkout -b your_branch_name把本地分支的修改提交到远端的分支上git push origin local_branch_name:remote_branch_name把本地分支重置成远端master分支的代码git reset --hard ori... 阅读全文

posted @ 2015-12-16 12:23 sdet_liang 阅读(125) 评论(0) 推荐(0) 编辑

2015年12月15日 #

crontabs Permission denied

摘要: Linux crontab 阅读全文

posted @ 2015-12-15 10:52 sdet_liang 阅读(1808) 评论(0) 推荐(0) 编辑

2015年12月14日 #

Sporadic IOException: Failed to persist config

摘要: 问题在调用Jenkins API来更新Job的时候报错‘Sporadic IOException: Failed to persist config’。原因https://issues.jenkins-ci.org/browse/JENKINS-27548#add-comment解决办法在上面bug... 阅读全文

posted @ 2015-12-14 10:58 sdet_liang 阅读(275) 评论(0) 推荐(0) 编辑

2015年12月11日 #

Jenkins Job 自杀 groovy

摘要: 下面的groovy可以加在post groovy script里面在job跑完的时候自杀(把本Job删掉)suicide_url="http://[USER]:[PASSWORD]@[JENKINS_URL]/job/"+manager.build.project.name+"/doDelete"s... 阅读全文

posted @ 2015-12-11 11:00 sdet_liang 阅读(352) 评论(0) 推荐(0) 编辑

2015年11月30日 #

github 如何合并不同分支

摘要: github merge branch 阅读全文

posted @ 2015-11-30 11:29 sdet_liang 阅读(778) 评论(0) 推荐(0) 编辑

2015年11月9日 #

如何取Android设备日志

摘要: 安装Android SDK运行 adb 命令adb devices 查看链接的设备adb logcat 日志相关 阅读全文

posted @ 2015-11-09 11:13 sdet_liang 阅读(327) 评论(0) 推荐(0) 编辑

2015年11月5日 #

加速你的py.test, pytest-dist

摘要: URL:https://pypi.python.org/pypi/pytest-xdist多线程跑测试Command:py.test -d --tx 3*popen 阅读全文

posted @ 2015-11-05 16:25 sdet_liang 阅读(1165) 评论(0) 推荐(0) 编辑

解决Jenkins console输出乱码

摘要: 背景Jenkins console输出乱码,如�������������1解决办法Jenkins Master 设置utf8 encoding Tomcat 启动脚本 export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8"Jenkins 系统管理 环境变量... 阅读全文

posted @ 2015-11-05 13:35 sdet_liang 阅读(2321) 评论(0) 推荐(0) 编辑

2015年9月25日 #

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... 阅读全文

posted @ 2015-09-25 11:02 sdet_liang 阅读(1031) 评论(0) 推荐(0) 编辑