上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页

2021年4月16日

摘要: 在命令行执行:pytest xx.py ,提示找不到另一个文件yy里的包 解决办法:在xx.py导包前加上以下两句: import sys from os.path import dirname sys.path.append(dirname(dirname(__file__))) 阅读全文
posted @ 2021-04-16 17:08 _titleInfo 阅读(379) 评论(0) 推荐(0)
 
摘要: 1.使用多个条件组合查询://*/div[@class='' and @id = ''] 2.使用container包含://*/span[contains(@class,'xxxxxxxxxxxxx') and @title=''] 解释:span标签的class包含了"xxxxxxxxxxx"则 阅读全文
posted @ 2021-04-16 11:37 _titleInfo 阅读(141) 评论(0) 推荐(0)
 

2021年3月25日

摘要: 1.str="10条数据" 输入: str=str[:-3] print(str) 输出:str=10 2.str="共10条数据" 输入: str=str[1:-3] print(str) 输出:str=10 3.“共165条数据,每页10条,一共多少页?” 输入:165//10+1页 //:取整 阅读全文
posted @ 2021-03-25 20:00 _titleInfo 阅读(52) 评论(0) 推荐(0)
 
摘要: 1.time.sleep(1):强制等待1s,使用效果明显但是脚本执行也变慢不少 2.隐式等待:使用一次后全程生效 1 def wait(self,seconds): 2 self.driver.implicity_wait(seconds) 3.显式等待 from selenium.webdriv 阅读全文
posted @ 2021-03-25 19:56 _titleInfo 阅读(96) 评论(0) 推荐(0)
 

2021年1月28日

摘要: 一个接口,参数包括file,MIME类型填的是:multipart/form-data,执行后报错:Current request is not a multipart request 解决办法:implementation 必须选择java 阅读全文
posted @ 2021-01-28 11:00 _titleInfo 阅读(1096) 评论(1) 推荐(1)
 

2020年12月31日

摘要: 时间:2020/12/31 本文是对文章https://www.cnblogs.com/jinziguang/p/13610209.html的补充:将locust生成的数据通过prometheus收集,再通过grafana展示出来 环境: windows:运行locust的master机和slave 阅读全文
posted @ 2020-12-31 14:24 _titleInfo 阅读(1706) 评论(0) 推荐(0)
 

2020年12月29日

摘要: 设置go mod:go mod init filename.go 转载自:https://www.cnblogs.com/bbllw/p/12377155.html 阅读全文
posted @ 2020-12-29 15:36 _titleInfo 阅读(105) 评论(0) 推荐(0)
 
摘要: locust -f xx.py报错: /usr/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility 阅读全文
posted @ 2020-12-29 14:03 _titleInfo 阅读(2585) 评论(0) 推荐(0)
 

2020年12月17日

摘要: psql查询某个表的列名: select column_name from information_schema.columns where table_name='xx' and table_schema=''public; 阅读全文
posted @ 2020-12-17 15:28 _titleInfo 阅读(1511) 评论(0) 推荐(0)
 

2020年12月4日

摘要: 查看当前定时任务:cat /etc/crontab和crontab -l 添加定时任务:crontab -e,进入编辑模式,格式如"* * * * * sh /path/xx.sh",退出i模式后shift+zz退出保存即可、使用crontab -l查看 阅读全文
posted @ 2020-12-04 10:21 _titleInfo 阅读(109) 评论(0) 推荐(0)
 
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页