- 博客(42)
- 收藏
- 关注
原创 ERROR! Unexpected Exception, this is probably a bug: [Errno 12] Cannot allocate memory
解决办法:加内存
2020-07-06 16:07:15 2900
原创 Jenkins Build step Execute shell marked build as failure
这里写自定义目录标题现象原因解决现象Build step ‘Execute shell’ marked build as failureFinished: FAILURE原因是你部署的项目的空间资源不足,应该是Jenkins给每个项目分配一定额的大小,我加载了一个大的文件导致的解决进入到对应的工作空间把不需要的空间清除掉如:/jenkins/workspace/v3testf#清除不需要的问题就行了...
2020-06-30 09:39:09 1482
原创 rancher提示Deployment does not have minimum availability.
Deployment does not have minimum availability.意思是没有最低的配额只要在rancherUI界面填写好预留的cpu\内存值就能部署成功如图:在安全/主机设置中填写下列项...
2019-06-13 15:00:10 42880 1
原创 centos安装dockers遇到的问题
报错如图解决方案:vim /etc/yum.repos.d/docker-ce.repo修改该文件84行少了"["符号
2019-06-05 15:54:51 249
原创 from selenium import webdriver no such file or directory isdisplayed.js
是离线安装的selenium(python setup.py install ),安装成功后报下图问题查找了很多资料,最后看到的意思是不使用pip安装的会有下图的问题解决方式:卸载再装(哈哈哈哈哈哈哈哈)pip uninstall seleniumpip install selenium...
2019-03-07 14:04:09 208
原创 katalon studio 设置运行浏览器
katalon studio 设置默认浏览器Project->settings->Execution 的默认defalut execution如图设置
2018-12-28 15:53:15 2959
原创 安装mongodb可视化工具studio 3T
第一步:打卡连接下载:https://studio3t.com/download/第二步安装。。。。第三部连接库然后点击保存及test connection
2018-11-08 14:59:47 756
原创 兼容性测试应考虑的方向
软件兼容性测试是指检查软件之间能否正确地进行交互和共享信息。随着用户对来自各种类型软件之间共享数据能力和充分利用空间同时执行多个程序能力的要求,测试软件之间能否协作变得越来越重要。软件兼容性测试工作的目标是保证软件按照用户期望的方式进行交互。...
2018-10-26 14:52:36 583
原创 python 计算1+2+3+4+5+......+1000的值
sum=0for i in range(1,1001):sum=sum+iprint(sum)
2018-10-26 14:20:14 9445
原创 查看显示协议统计信息和当前 TCP/IP 网络连接。(查看端口占有信息)
netstat -ano netstat 后的参数样式请看下列说明如需要查找5353端口是否被占用netstat -ano | findstr 5353协议 外部地址 本地地址 状态 进程IDUDP 0.0.0.0:5353 *:* ...
2018-10-26 14:17:50 6820
原创 jmeter 5.0 安装插件步骤
第一步:下载插件管理器,以免以后总找插件,地址:https://jmeter-plugins.org/install/Install/第二步,把下载的jar放入lib\ext(你的jmeter包的lib\ext下)3.重启jmeter ,然后到options下点击Plugins Manager4.搜索你想要安装的插件 ...
2018-10-25 17:13:59 6304 1
原创 python 冒泡
list=[5,3,19,8]for i in range(len(list)-1): for j in range(len(list)-1-i): if list[j]>list[j+1]: #交换位置 list[j],list[j+1]=list[j+1],list[j]print(list)
2018-10-18 20:09:43 94
原创 linux命令
Ls -al 该命令可以列出当前目录下的所有文件和子目录。2. 重新启动系统以 root 用户登录Linux 操作系统后执行reboot 命令可以重新启动linux 系统:[root@loclhost/root] # reboot Shutdown -r +10 系统在十分钟后关机并且马上重新启动Shutdown -h now 系统马上关机并且不重新启动Ls -a Li...
2018-10-16 19:31:41 181
原创 http协议状态码
消息1代表请求已被接受,需要继续处理100 continue 客户端应继续发送请求101 switching protocols 服务器已经理解了客户端的请求,并将通过Upgrade 消息头通知客户端采用不同的协议来完成这个请求102 processing 处理将被继续执行成功2代表请求已成功被服务器接收、理解、并接受200 OK 请求已成功201 created 请求已经...
2018-10-16 19:29:49 504
原创 Jmeter 正则表达式说明
Jmeter(1)引用名称:下一个请求要引用的参数名称,如填写title,则可用${title}引用它。 (2)正则表达式: ():括起来的部分就是要提取的。 .:匹配任何字符串。 +:一次或多次。 ?:不要太贪婪,在找到第一个匹配项后停止。 (3)模板:用$$引用起来,如果在正则表达式中有多个正则表达式,则可以是$2$$3$等等,表示解析...
2018-10-16 19:27:04 261
原创 使用appium实现登录功能的自动化
# This sample code uses the Appium python client# pip install Appium-Python-Client# Then you can paste this into a file and simply run with Pythonfrom appium import webdriverimport time,osimpor...
2018-10-16 16:17:41 2249
原创 selenium 基本函数
#代码分层#coding=utf-8import timeimport osfrom time import sleep,ctimefrom selenium.webdriver.common.action_chains import ActionChainsfrom selenium.webdriver.common.keys import Keysfrom seleni...
2018-10-16 16:13:18 1343
原创 list字段
list=['mo','ya','mei']#删除最后的一个,并打印出来print(list.pop())#添加list.append('jia')#中介的第三个位置添加list.insert(2,'00')#尾部提交list.extend(['jia','you'])print(list)li = ['server=mpilgrim', 'uid=sa', 'datab...
2018-10-16 16:09:10 402
原创 selenium
from selenium import webdriverdriver=webdriver.Firefox()driver.get("http://www.baidu.com")driver.find_element_by_id('kw').send_keys('selenium')driver.find_element_by_id('su').click()driver.quit(...
2018-10-10 16:32:04 164
原创 python 练习题
#coding:utf-8import cmathimport randomclass practise: def __init__(self): print("hello world!") def sumtest(self,a,b): # 数字求和 c=a+b print('数字{0},加上{1}等于:{2}...
2018-10-08 10:57:59 287
原创 not in 为啥筛选不出结果
select * from tablea where uid not in(select uid from tableB)执行该语句没有返回值原因是select uid from tableB该结果集中有null导致返回不了select * from tablea where uid not in(select uid from tableB where uid is not null...
2018-10-03 18:42:30 385
原创 Scrapy 实现搜索资料功能
第一步安装:pip3 install Scrapy第二步创建项目scrapy startproject tutorial第3步查看项目结构第4步:进入项目目录下执行爬虫scrapy crawl name文中
2018-09-27 10:58:19 706
原创 mysql 查看线程
显示正在运行线程数默认只显示100条show PROCESSLIST; show full processlist; 显示所有运行线程数
2018-09-05 19:10:03 1282
原创 netflix报错
com.netflix.client.ClientException: Load balancer does not have available server for client: ms-promotion客户端:负载均衡器没有为客户端提供的服务器:ms-promotion服务启动没有成功或者路由配置出错。...
2018-08-29 10:11:52 1945
原创 jmeter 使用mvn 构建脚本
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_...
2018-08-27 16:10:20 131
转载 线程
#coding=utf-8import threadingimport timeexitFlag=0# 定义对象# 继承父类threading.Threadclass myThread(threading.Thread): #初始化 def __init__(self,threadID,name,counter): threading.Thread....
2018-08-23 15:42:08 133
转载 python 创建线程
# -*- coding:UTF-8 -*-import _threadimport time # 为线程定义一个函数def print_time(threadName,delay): count=0 while count<5: time.sleep(delay) count+=1 print("%s:%s"%(t...
2018-08-21 18:31:30 114
原创 python 报 import thread ModuleNotFoundError: No module named 'thread'
原因:是python 3.5以上导入线程的重命名为_thread
2018-08-21 16:03:34 4144
转载 mysql删除重复记录
删除表中的重复记录第一步找出重复记录SELECT coachId,releaseDate,count(reId) FROM tb_releaseGROUP BY releaseDate,coachId HAVING COUNT(reId) > 1;第二步删除重复记录DELETE FROM tb_releasewhere reId in(SELECT reId from(...
2018-08-20 15:34:27 92
转载 慢查询
分析MySQL语句查询性能的方法除了使用 EXPLAIN 输出执行计划,还可以让MySQL记录下查询超过指定时间的语句,我们将超过指定时间的SQL语句查询称为“慢查询”。-- 查看/设置“慢查询”的时间定义show variables like "long%";-- 定义“慢查询”时间set long_query_time=0.0001;-- 开启“慢查询”记录功能show vari...
2018-08-10 20:39:18 166
转载 后台服务报错
com.netflix.zuul.exception.ZuulException: Forwarding error还有可能是数据库的问题,rds 数据库的问题我首先怀疑是断路器问题,加了配置 zuul: host: socket-timeout-millis: 60000 connect-timeout-millis: 60000 ...
2018-08-10 20:05:33 388
原创 update 语句常用规则
更新数据表中的字段,并且拼接一个变量set @i:=1;update table_users SET mobile=CONCAT(mobile,'_', (@i:=@i+1));更新数据表中的字段,并且拼接常量update table_users SET mobile=CONCAT(mobile,'_', 123);更新数据库添加条件update table_users ...
2018-08-04 14:57:59 271
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人